diff --git a/.changeset/itchy-rockets-bake.md b/.changeset/itchy-rockets-bake.md new file mode 100644 index 0000000..e5fc692 --- /dev/null +++ b/.changeset/itchy-rockets-bake.md @@ -0,0 +1,5 @@ +--- +"bigrequest": patch +--- + +Fixes response type of GET category products sort order to be an array of objects rather than a single object (bigcommerce/api-specs#1430). Expose new `discounted_total_inc_tax` property in the GET order product and GET order products response (bigcommerce/api-specs#1457). diff --git a/packages/bigrequest/src/generated/categories_catalog.v3.ts b/packages/bigrequest/src/generated/categories_catalog.v3.ts index ccdcacf..f100bc3 100644 --- a/packages/bigrequest/src/generated/categories_catalog.v3.ts +++ b/packages/bigrequest/src/generated/categories_catalog.v3.ts @@ -586,7 +586,7 @@ export interface components { }; }; responses: { - /** @description Multi-status. Multiple operations have taken place and the status for each operation can be viewed in the body of the response. Typically indicates that a partial failure has occured, such as when a `POST` or `PUT` request is successful, but saving the URL or inventory data has failed. */ + /** @description Multi-status. Multiple operations have taken place and the status for each operation can be viewed in the body of the response. Typically indicates that a partial failure has occurred, such as when a `POST` or `PUT` request is successful, but saving the URL or inventory data has failed. */ General207Status: { content: { "application/json": components["schemas"]["error_Base"]; @@ -1607,7 +1607,10 @@ export interface operations { responses: { 200: { content: { - "application/json": Record; + "application/json": { + product_id?: number; + sort_order?: number; + }[]; }; }; /** @description The requested category was not found. */ diff --git a/packages/bigrequest/src/generated/orders.v2.oas2.ts b/packages/bigrequest/src/generated/orders.v2.oas2.ts index bda5111..b43f4c1 100644 --- a/packages/bigrequest/src/generated/orders.v2.oas2.ts +++ b/packages/bigrequest/src/generated/orders.v2.oas2.ts @@ -590,20 +590,20 @@ export interface components { */ quantity?: number; /** - * @description The product’s cost price. This can be set using the Catalog API. (Float, Float-As-String, Integer) Read Only - * @example 0.0000 + * @description The product’s cost price. This can be set using the Catalog API. (Float, Float-As-String, Integer) + * @example 50.0000 */ base_cost_price?: string; /** * @description The product’s cost price including tax. (Float, Float-As-String, Integer) - * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. Read Only - * @example 0.0000 + * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. + * @example 50.0000 */ cost_price_inc_tax?: string; /** - * @description The products cost price excluding tax. (Float, Float-As-String, Integer) - * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. Read Only - * @example 0.0000 + * @description The product cost price excluding tax. (Float, Float-As-String, Integer) + * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. + * @example 50.0000 */ cost_price_ex_tax?: string; /** @@ -728,6 +728,15 @@ export interface components { * @example 52 */ gift_certificate_id?: number | null; + /** + * @description Represent the correct total amount of the line item after deducting all the discounts and including the tax. This number can be used for accounting purpose. + * + * This makes it easier to have the "shopper paid" value for a line item and api user doesn't have to do any calculation to deduct discount on the client side. + * + * This field includes all types of discounts (automatic, coupon, manual) and therefore if you use this value, you don't need to deduct any more discounts at line item level or order level. + * @example 0.0000 + */ + discounted_total_inc_tax?: string; }; /** * orderCount @@ -1801,15 +1810,13 @@ export interface components { product_options?: { /** * @description The product’s cost price including tax. (Float, Float-As-String, Integer) - * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. Read Only. - * readOnly: true - * @example 0.0000 + * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. + * @example 50.0000 */ cost_price_inc_tax?: string; /** * @description The products cost price excluding tax. (Float, Float-As-String, Integer) * The cost of your products to you; this is never shown to customers, but can be used for accounting purposes. Read Only. - * readOnly: true * @example 0.0000 */ price_ex_tax?: string; diff --git a/packages/bigrequest/src/generated/scripts.v3.ts b/packages/bigrequest/src/generated/scripts.v3.ts index 785b0e1..f99309f 100644 --- a/packages/bigrequest/src/generated/scripts.v3.ts +++ b/packages/bigrequest/src/generated/scripts.v3.ts @@ -24,6 +24,9 @@ export interface paths { * **Read Only Fields** * * uuid * + * **Limits** + * * 50 scripts per channel. + * * **Notes** * * If the `kind` is `src`: * * Specify the `src` property. @@ -459,6 +462,9 @@ export interface operations { * **Read Only Fields** * * uuid * + * **Limits** + * * 50 scripts per channel. + * * **Notes** * * If the `kind` is `src`: * * Specify the `src` property. diff --git a/packages/bigrequest/src/generated/themes.v3.ts b/packages/bigrequest/src/generated/themes.v3.ts index 906be70..80430ed 100644 --- a/packages/bigrequest/src/generated/themes.v3.ts +++ b/packages/bigrequest/src/generated/themes.v3.ts @@ -79,7 +79,7 @@ export interface paths { "/themes/jobs/{job_id}": { /** * Get a Theme Job - * @description Returns a theme *Job*. If job is completed, the result is included in the response. + * @description Returns a theme *Job*. When the job is complete, the results array provides a generated link to access the theme. The link is active for 60 seconds. */ get: operations["getJob"]; parameters: { @@ -976,7 +976,7 @@ export interface operations { }; /** * Get a Theme Job - * @description Returns a theme *Job*. If job is completed, the result is included in the response. + * @description Returns a theme *Job*. When the job is complete, the results array provides a generated link to access the theme. The link is active for 60 seconds. */ getJob: { parameters: {