Skip to content

Commit a1b0ed2

Browse files
committed
fixes
1 parent 9e4401d commit a1b0ed2

49 files changed

Lines changed: 1015 additions & 1998 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

www/apps/api-reference/specs/admin/components/schemas/AdminCampaign.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ properties:
8686
attribute:
8787
type: string
8888
title: attribute
89-
description: The budget's attribute.
89+
description: The cart attribute to limit the budget by.
90+
externalDocs:
91+
url: >-
92+
https://docs.medusajs.com/resources/commerce-modules/promotion/campaign#attribute-based-budgets
9093
created_at:
9194
type: string
9295
format: date-time
Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type: object
2-
description: SUMMARY
2+
description: The calculated shipping option's details.
33
x-schemaName: AdminCreateCalculatedShippingOption
44
required:
55
- price_type
@@ -11,37 +11,45 @@ properties:
1111
price_type:
1212
type: string
1313
title: price_type
14-
description: The shipping option's price type.
14+
description: The calculated shipping option's price type.
15+
enum:
16+
- calculated
17+
- flat
1518
name:
1619
type: string
1720
title: name
18-
description: The shipping option's name.
21+
description: The calculated shipping option's name.
1922
service_zone_id:
2023
type: string
2124
title: service_zone_id
22-
description: The shipping option's service zone id.
25+
description: The ID of the associated service zone.
2326
shipping_profile_id:
2427
type: string
2528
title: shipping_profile_id
26-
description: The shipping option's shipping profile id.
29+
description: The ID of the associated shipping profile.
2730
data:
2831
type: object
29-
description: The shipping option's data.
32+
description: The calculated shipping option's data.
33+
externalDocs:
34+
url: >-
35+
https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
3036
provider_id:
3137
type: string
3238
title: provider_id
33-
description: The shipping option's provider id.
39+
description: >-
40+
The ID of the fulfillment provider handling this calculated shipping
41+
option.
3442
type:
3543
$ref: ./AdminCreateShippingOptionType.yaml
3644
type_id:
3745
type: string
3846
title: type_id
39-
description: The shipping option's type id.
47+
description: The ID of the shipping option type that this shipping option belongs to.
4048
rules:
4149
type: array
42-
description: The shipping option's rules.
50+
description: The calculated shipping option's rules.
4351
items:
4452
$ref: ./AdminCreateShippingOptionRule.yaml
4553
metadata:
4654
type: object
47-
description: The shipping option's metadata.
55+
description: The shipping option's metadata, can hold custom key-value pairs.

www/apps/api-reference/specs/admin/components/schemas/AdminCreateFlatRateShippingOption.yaml

Lines changed: 41 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type: object
2-
description: SUMMARY
2+
description: The flat rate shipping option's details.
33
x-schemaName: AdminCreateFlatRateShippingOption
44
required:
55
- price_type
@@ -9,17 +9,48 @@ required:
99
- shipping_profile_id
1010
- provider_id
1111
properties:
12+
name:
13+
type: string
14+
title: name
15+
description: The flat-rate shipping option's name.
16+
service_zone_id:
17+
type: string
18+
title: service_zone_id
19+
description: The ID of the associated service zone.
20+
shipping_profile_id:
21+
type: string
22+
title: shipping_profile_id
23+
description: The ID of the associated shipping profile.
24+
data:
25+
type: object
26+
description: >-
27+
The flat-rate shipping option's data, useful for the fulfillment provider
28+
handling its processing.
29+
externalDocs:
30+
url: >-
31+
https://docs.medusajs.com/v2/resources/commerce-modules/fulfillment/shipping-option#data-property
1232
price_type:
1333
type: string
14-
title: price_type
15-
description: The shipping option's price type.
34+
description: >-
35+
The shipping option's price type. If `flat`, the shipping option has a
36+
fixed price set in `prices`. Otherwise, the shipping option's price is
37+
calculated by the fulfillment provider.
38+
enum:
39+
- flat
40+
- calculated
41+
provider_id:
42+
type: string
43+
title: provider_id
44+
description: The ID of the fulfillment provider handling this shipping option.
45+
type:
46+
$ref: ./AdminCreateShippingOptionType.yaml
1647
prices:
1748
type: array
1849
description: The shipping option's prices.
1950
items:
2051
oneOf:
2152
- type: object
22-
description: The price's prices.
53+
description: The price's details.
2354
x-schemaName: AdminCreateShippingOptionPriceWithCurrency
2455
required:
2556
- currency_code
@@ -29,6 +60,7 @@ properties:
2960
type: string
3061
title: currency_code
3162
description: The price's currency code.
63+
example: usd
3264
amount:
3365
type: number
3466
title: amount
@@ -38,7 +70,7 @@ properties:
3870
description: The price's rules.
3971
items:
4072
type: object
41-
description: The rule's rules.
73+
description: The rule's details.
4274
x-schemaName: PriceRule
4375
required:
4476
- attribute
@@ -63,7 +95,7 @@ properties:
6395
title: value
6496
description: The rule's value.
6597
- type: object
66-
description: The price's prices.
98+
description: The price's details.
6799
x-schemaName: AdminCreateShippingOptionPriceWithRegion
68100
required:
69101
- region_id
@@ -72,7 +104,7 @@ properties:
72104
region_id:
73105
type: string
74106
title: region_id
75-
description: The price's region id.
107+
description: The ID of the region this price is used in.
76108
amount:
77109
type: number
78110
title: amount
@@ -82,7 +114,7 @@ properties:
82114
description: The price's rules.
83115
items:
84116
type: object
85-
description: The rule's rules.
117+
description: The rule's details.
86118
x-schemaName: PriceRule
87119
required:
88120
- attribute
@@ -106,31 +138,10 @@ properties:
106138
type: number
107139
title: value
108140
description: The rule's value.
109-
name:
110-
type: string
111-
title: name
112-
description: The shipping option's name.
113-
service_zone_id:
114-
type: string
115-
title: service_zone_id
116-
description: The shipping option's service zone id.
117-
shipping_profile_id:
118-
type: string
119-
title: shipping_profile_id
120-
description: The shipping option's shipping profile id.
121-
data:
122-
type: object
123-
description: The shipping option's data.
124-
provider_id:
125-
type: string
126-
title: provider_id
127-
description: The shipping option's provider id.
128-
type:
129-
$ref: ./AdminCreateShippingOptionType.yaml
130141
type_id:
131142
type: string
132143
title: type_id
133-
description: The shipping option's type id.
144+
description: The ID of the shipping option type that this shipping option belongs to.
134145
rules:
135146
type: array
136147
description: The shipping option's rules.

www/apps/api-reference/specs/admin/components/schemas/AdminCreateRefundReason.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ properties:
1919
description: The refund reason's code.
2020
metadata:
2121
type: object
22-
description: The refund reason's metadata.
22+
description: The refund reason's metadata. Can hold custom key-value pairs.
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type: object
2-
description: The rule's rules.
2+
description: The details of the shipping option rule.
33
x-schemaName: AdminCreateShippingOptionRule
44
required:
55
- operator
@@ -8,7 +8,7 @@ required:
88
properties:
99
operator:
1010
type: string
11-
description: The rule's operator.
11+
description: The operator used to check whether a rule applies.
1212
enum:
1313
- gt
1414
- lt
@@ -21,15 +21,18 @@ properties:
2121
attribute:
2222
type: string
2323
title: attribute
24-
description: The rule's attribute.
24+
description: The name of a property or table that the rule applies to.
25+
example: customer_group
2526
value:
2627
oneOf:
2728
- type: string
2829
title: value
29-
description: The rule's value.
30+
description: A value of the attribute that enables this rule.
31+
example: cusgroup_123
3032
- type: array
31-
description: The rule's value.
33+
description: Values of the attribute that enable this rule.
3234
items:
3335
type: string
3436
title: value
35-
description: The value's details.
37+
description: A value of the attribute that enables this rule.
38+
example: cusgroup_123

www/apps/api-reference/specs/admin/components/schemas/BaseCart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ properties:
7373
metadata:
7474
type: object
7575
description: The cart's metadata.
76+
externalDocs:
77+
url: https://docs.medusajs.com/api/store#manage-metadata
78+
description: Learn how to manage metadata
7679
created_at:
7780
type: string
7881
format: date-time

www/apps/api-reference/specs/admin/components/schemas/BaseCartLineItem.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ properties:
122122
metadata:
123123
type: object
124124
description: The item's metadata.
125+
externalDocs:
126+
url: https://docs.medusajs.com/api/store#manage-metadata
127+
description: Learn how to manage metadata
125128
created_at:
126129
type: string
127130
format: date-time

www/apps/api-reference/specs/admin/components/schemas/BaseCartShippingMethod.yaml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type: object
2-
description: The tax line's shipping method.
2+
description: A cart's shipping method.
33
x-schemaName: BaseCartShippingMethod
44
required:
55
- id
@@ -17,7 +17,7 @@ properties:
1717
cart_id:
1818
type: string
1919
title: cart_id
20-
description: The shipping method's cart id.
20+
description: The ID of the cart this shipping method belongs to.
2121
name:
2222
type: string
2323
title: name
@@ -33,66 +33,78 @@ properties:
3333
is_tax_inclusive:
3434
type: boolean
3535
title: is_tax_inclusive
36-
description: The shipping method's is tax inclusive.
36+
description: Whether the shipping method's amount is tax inclusive.
3737
shipping_option_id:
3838
type: string
3939
title: shipping_option_id
40-
description: The shipping method's shipping option id.
40+
description: The ID of the shipping option this method was created from.
4141
data:
4242
type: object
43-
description: The shipping method's data.
43+
description: >-
44+
The shipping method's data, useful for fulfillment handling by third-party
45+
services.
46+
externalDocs:
47+
url: >-
48+
https://docs.medusajs.com/resources/commerce-modules/cart/concepts#data-property
4449
metadata:
4550
type: object
46-
description: The shipping method's metadata.
51+
description: The shipping method's metadata, can hold custom key-value pairs.
52+
externalDocs:
53+
url: https://docs.medusajs.com/api/store#manage-metadata
54+
description: Learn how to manage metadata
4755
tax_lines:
4856
type: array
4957
description: The shipping method's tax lines.
5058
items:
5159
$ref: ./BaseShippingMethodTaxLine.yaml
5260
adjustments:
5361
type: array
54-
description: The shipping method's adjustments.
62+
description: The shipping method's adjustments, such as applied promotions.
5563
items:
5664
$ref: ./BaseShippingMethodAdjustment.yaml
5765
created_at:
5866
type: string
5967
format: date-time
6068
title: created_at
61-
description: The shipping method's created at.
69+
description: The date the shipping method was created.
6270
updated_at:
6371
type: string
6472
format: date-time
6573
title: updated_at
66-
description: The shipping method's updated at.
74+
description: The date the shipping method was updated.
6775
original_total:
6876
type: number
6977
title: original_total
70-
description: The shipping method's original total.
78+
description: The shipping method's total including taxes, excluding promotions.
7179
original_subtotal:
7280
type: number
7381
title: original_subtotal
74-
description: The shipping method's original subtotal.
82+
description: The shipping method's total excluding taxes, including promotions.
7583
original_tax_total:
7684
type: number
7785
title: original_tax_total
78-
description: The shipping method's original tax total.
86+
description: >-
87+
The total taxes applied on the shipping method's amount including
88+
promotions.
7989
total:
8090
type: number
8191
title: total
82-
description: The shipping method's total.
92+
description: The shipping method's total amount including taxes and promotions.
8393
subtotal:
8494
type: number
8595
title: subtotal
86-
description: The shipping method's subtotal.
96+
description: The shipping method's total amount excluding taxes, including promotions.
8797
tax_total:
8898
type: number
8999
title: tax_total
90-
description: The shipping method's tax total.
100+
description: >-
101+
The total taxes applied on the shipping method's amount including
102+
promotions.
91103
discount_total:
92104
type: number
93105
title: discount_total
94-
description: The shipping method's discount total.
106+
description: The total amount discounted.
95107
discount_tax_total:
96108
type: number
97109
title: discount_tax_total
98-
description: The shipping method's discount tax total.
110+
description: The taxes applied on the discounted amount.

0 commit comments

Comments
 (0)