chore(oas): update order OAS schema to include new fields (#5436)

This commit is contained in:
Shahed Nasser
2023-10-20 18:34:26 +03:00
committed by GitHub
parent 0ffa48b07f
commit 8bc902fb0f
4 changed files with 39 additions and 1 deletions

View File

@@ -202,7 +202,11 @@ export interface Order {
/**
* The total of shipping
*/
shipping_total?: number
shipping_total?: number | null
/**
* The tax total applied on shipping
*/
shipping_tax_total?: number
/**
* The total of discount
*/
@@ -215,6 +219,10 @@ export interface Order {
* The total of tax
*/
tax_total?: number
/**
* The tax total applied on items
*/
item_tax_total?: number | null
/**
* The total amount refunded if the order is returned.
*/

View File

@@ -529,6 +529,11 @@ export class Order extends BaseEntity {
* type: integer
* description: The total of shipping
* example: 1000
* nullable: true
* shipping_tax_total:
* type: integer
* description: The tax total applied on shipping
* example: 1000
* raw_discount_total:
* description: The total of discount
* type: integer
@@ -541,6 +546,11 @@ export class Order extends BaseEntity {
* description: The total of tax
* type: integer
* example: 0
* item_tax_total:
* description: The tax total applied on items
* type: integer
* example: 0
* nullable: true
* refunded_total:
* description: The total amount refunded if the order is returned.
* type: integer

View File

@@ -263,6 +263,11 @@ properties:
type: integer
description: The total of shipping
example: 1000
nullable: true
shipping_tax_total:
type: integer
description: The tax total applied on shipping
example: 1000
raw_discount_total:
description: The total of discount
type: integer
@@ -275,6 +280,11 @@ properties:
description: The total of tax
type: integer
example: 0
item_tax_total:
description: The tax total applied on items
type: integer
example: 0
nullable: true
refunded_total:
description: The total amount refunded if the order is returned.
type: integer

View File

@@ -263,6 +263,11 @@ properties:
type: integer
description: The total of shipping
example: 1000
nullable: true
shipping_tax_total:
type: integer
description: The tax total applied on shipping
example: 1000
raw_discount_total:
description: The total of discount
type: integer
@@ -275,6 +280,11 @@ properties:
description: The total of tax
type: integer
example: 0
item_tax_total:
description: The tax total applied on items
type: integer
example: 0
nullable: true
refunded_total:
description: The total amount refunded if the order is returned.
type: integer