productV1
@bosonprotocol/core-sdk / Exports / productV1
Namespace: productV1
Table of contents
Type Aliases
Variables
Functions
Type Aliases
ProductBase
Ƭ ProductBase: Object
Type declaration
Name | Type |
---|---|
description | string |
identification_productId? | string |
identification_productIdType? | string |
identification_sKU? | string |
packaging_dimensions_height? | string |
packaging_dimensions_length? | string |
packaging_dimensions_unit? | string |
packaging_dimensions_width? | string |
packaging_packageQuantity? | string |
packaging_weight_unit? | string |
packaging_weight_value? | string |
productionInformation_brandName | string |
productionInformation_manufacturer? | string |
productionInformation_manufacturerPartNumber? | string |
productionInformation_materials? | string [] |
productionInformation_modelNumber? | string |
title | string |
visuals_images | { tag? : string ; url : string }[] |
visuals_videos? | { tag? : string ; url : string }[] |
Defined in
node_modules/@bosonprotocol/metadata/dist/cjs/product-v1/index.d.ts:3
ProductV1Metadata
Ƭ ProductV1Metadata: Object
Type declaration
Name | Type |
---|---|
animationUrl? | string |
attributes | { display_type? : string ; trait_type : string ; value : string }[] |
condition? | string |
description | string |
exchangePolicy | ExchangePolicy |
externalUrl | string |
image | string |
licenseUrl | string |
name | string |
product | ProductBase & ProductDetails & { uuid : string ; version : number } |
productOverrides? | Partial <ProductBase > |
schemaUrl | string |
seller | SellerMetadata |
shipping | ShippingMetadata |
type | "PRODUCT_V1" |
uuid | string |
variations? | Variation [] |
Defined in
node_modules/@bosonprotocol/metadata/dist/cjs/product-v1/index.d.ts:76
ProductV1Variant
Ƭ ProductV1Variant: Variation
[]
Defined in
node_modules/@bosonprotocol/metadata/dist/cjs/product-v1/index.d.ts:102
Variables
productV1MetadataSchema
• Const
productV1MetadataSchema: SchemaOf
<ProductV1Metadata
>
Defined in
node_modules/@bosonprotocol/metadata/dist/cjs/product-v1/index.d.ts:2
Functions
buildUuid
▸ buildUuid(): string
Returns
string
Defined in
node_modules/@bosonprotocol/metadata/dist/cjs/product-v1/index.d.ts:107
createVariantProductMetadata
▸ createVariantProductMetadata(productMetadata
, variants
): ProductV1Metadata
[]
Parameters
Name | Type |
---|---|
productMetadata | ProductV1Metadata |
variants | { productOverrides? : Partial <ProductBase > ; productVariant : ProductV1Variant }[] |
Returns
Defined in
node_modules/@bosonprotocol/metadata/dist/cjs/product-v1/index.d.ts:103