|
1
|
{ |
|
2
|
"Address": { |
|
3
|
"filePath": "packages/modules/cart/src/models/address.ts", |
|
4
|
"properties": { |
|
5
|
"id": "The ID of the address.", |
|
6
|
"customer_id": "The ID of the customer that the address belongs to.", |
|
7
|
"company": "The company of the address", |
|
8
|
"first_name": "The first name of the address", |
|
9
|
"last_name": "The last name of the address", |
|
10
|
"address_1": "The first line of the address", |
|
11
|
"address_2": "The second line of the address", |
|
12
|
"city": "The city of the address", |
|
13
|
"country_code": "The ISO 2 country code of the address. For example, `us`.", |
|
14
|
"province": "The province of the address", |
|
15
|
"postal_code": "The postal code of the address", |
|
16
|
"phone": "The phone of the address", |
|
17
|
"metadata": "Holds custom data in key-value pairs." |
|
18
|
}, |
|
19
|
"deprecated": { |
|
20
|
"is_deprecated": false |
|
21
|
} |
|
22
|
}, |
|
23
|
"LineItemTaxLine": { |
|
24
|
"filePath": "packages/modules/cart/src/models/line-item-tax-line.ts", |
|
25
|
"properties": { |
|
26
|
"id": "The ID of the line item tax line.", |
|
27
|
"description": "The description of the line item tax line", |
|
28
|
"code": "The code of the applied tax rate.", |
|
29
|
"rate": "The rate of the applied tax rate.", |
|
30
|
"provider_id": "The ID of the provider used to calculate the tax line.", |
|
31
|
"metadata": "Holds custom data in key-value pairs.", |
|
32
|
"tax_rate_id": "The ID of the applied tax rate.", |
|
33
|
"item": "The associated line item.\n\n@expandable", |
|
34
|
"data": "The data of the line item tax line\n\n@since 2.17.3" |
|
35
|
}, |
|
36
|
"deprecated": { |
|
37
|
"is_deprecated": false |
|
38
|
} |
|
39
|
}, |
|
40
|
"LineItemAdjustment": { |
|
41
|
"filePath": "packages/modules/cart/src/models/line-item-adjustment.ts", |
|
42
|
"properties": { |
|
43
|
"id": "The ID of the line item adjustment.", |
|
44
|
"description": "The description of the line item adjustment", |
|
45
|
"code": "The code of promotion that applied the adjustment", |
|
46
|
"amount": "The amount of the line item adjustment", |
|
47
|
"provider_id": "The ID of the external provider that the adjustment is related to.", |
|
48
|
"promotion_id": "The ID of the applied promotion.", |
|
49
|
"metadata": "Holds custom data in key-value pairs.", |
|
50
|
"item": "The associated line item.\n\n@expandable", |
|
51
|
"is_tax_inclusive": "Whether the line item adjustment is tax inclusive." |
|
52
|
}, |
|
53
|
"deprecated": { |
|
54
|
"is_deprecated": false |
|
55
|
} |
|
56
|
}, |
|
57
|
"LineItem": { |
|
58
|
"filePath": "packages/modules/cart/src/models/line-item.ts", |
|
59
|
"properties": { |
|
60
|
"id": "The ID of the line item.", |
|
61
|
"title": "The title of the line item", |
|
62
|
"subtitle": "The subtitle of the line item", |
|
63
|
"thumbnail": "The thumbnail URL of the line item", |
|
64
|
"quantity": "The quantity of the line item", |
|
65
|
"variant_id": "The ID of the variant added to the cart.", |
|
66
|
"product_id": "The ID of the product added to the cart.", |
|
67
|
"product_title": "The title of the line item's product", |
|
68
|
"product_description": "The description of the line item's product", |
|
69
|
"product_subtitle": "The subtitle of the line item's product", |
|
70
|
"product_type": "The type of the line item's product", |
|
71
|
"product_type_id": "The ID of the type of the line item's product", |
|
72
|
"product_collection": "The collection of the line item's product", |
|
73
|
"product_handle": "The unique handle of the line item's product", |
|
74
|
"variant_sku": "The SKU of the line item's variant", |
|
75
|
"variant_barcode": "The barcode of the line item's variant", |
|
76
|
"variant_title": "The title of the line item's variant", |
|
77
|
"variant_option_values": "The values of the line item variant's options.", |
|
78
|
"requires_shipping": "Whether the line item requires shipping.", |
|
79
|
"is_discountable": "Whether the line item is discountable.", |
|
80
|
"is_tax_inclusive": "Whether the line item's price is tax inclusive.", |
|
81
|
"compare_at_unit_price": "The original price of the item before a promotion or sale.", |
|
82
|
"unit_price": "The unit price of the line item", |
|
83
|
"metadata": "Holds custom data in key-value pairs.", |
|
84
|
"adjustments": "The associated adjustments.\n\n@expandable", |
|
85
|
"tax_lines": "The associated tax_lines.\n\n@expandable", |
|
86
|
"cart": "The associated cart.\n\n@expandable", |
|
87
|
"is_custom_price": "Whether the line item's price is custom.", |
|
88
|
"is_giftcard": "Whether the line item is a giftcard.", |
|
89
|
"original_total": "The original total of the line item", |
|
90
|
"original_subtotal": "The original subtotal of the line item", |
|
91
|
"original_tax_total": "The original tax total of the line item", |
|
92
|
"item_total": "The item total of the line item", |
|
93
|
"item_subtotal": "The item subtotal of the line item", |
|
94
|
"item_tax_total": "The item tax total of the line item", |
|
95
|
"total": "The total of the line item", |
|
96
|
"subtotal": "The subtotal of the line item", |
|
97
|
"tax_total": "The tax total of the line item", |
|
98
|
"discount_total": "The discount total of the line item", |
|
99
|
"discount_tax_total": "The discount tax total of the line item" |
|
100
|
}, |
|
101
|
"deprecated": { |
|
102
|
"is_deprecated": false |
|
103
|
} |
|
104
|
}, |
|
105
|
"ShippingMethodAdjustment": { |
|
106
|
"filePath": "packages/modules/cart/src/models/shipping-method-adjustment.ts", |
|
107
|
"properties": { |
|
108
|
"id": "The ID of the shipping method adjustment.", |
|
109
|
"description": "The description of the shipping method adjustment", |
|
110
|
"code": "The code of promotion that applied the adjustment", |
|
111
|
"amount": "The shipping method adjustment's amount", |
|
112
|
"provider_id": "The ID of the external provider that the adjustment is related to.", |
|
113
|
"metadata": "Holds custom data in key-value pairs.", |
|
114
|
"promotion_id": "The ID of the promotion applied", |
|
115
|
"shipping_method": "The associated shipping_method.\n\n@expandable" |
|
116
|
}, |
|
117
|
"deprecated": { |
|
118
|
"is_deprecated": false |
|
119
|
} |
|
120
|
}, |
|
121
|
"ShippingMethodTaxLine": { |
|
122
|
"filePath": "packages/modules/cart/src/models/shipping-method-tax-line.ts", |
|
123
|
"properties": { |
|
124
|
"id": "The ID of the shipping method tax line.", |
|
125
|
"description": "The description of the shipping method tax line", |
|
126
|
"code": "The code of the applied tax rate.", |
|
127
|
"rate": "The rate of the applied tax rate.", |
|
128
|
"provider_id": "The ID of the provider used to calculate the tax lines.", |
|
129
|
"tax_rate_id": "The ID of the applied tax rate.", |
|
130
|
"metadata": "Holds custom data in key-value pairs.", |
|
131
|
"shipping_method": "The associated shipping_method.\n\n@expandable", |
|
132
|
"data": "The data of the shipping method tax line\n\n@since 2.17.3" |
|
133
|
}, |
|
134
|
"deprecated": { |
|
135
|
"is_deprecated": false |
|
136
|
} |
|
137
|
}, |
|
138
|
"ShippingMethod": { |
|
139
|
"filePath": "packages/modules/cart/src/models/shipping-method.ts", |
|
140
|
"properties": { |
|
141
|
"id": "The ID of the shipping method.", |
|
142
|
"name": "The name of the shipping method", |
|
143
|
"description": "The description of the shipping method", |
|
144
|
"amount": "The amount of the shipping method", |
|
145
|
"is_tax_inclusive": "Whether the shipping method's amount is tax inclusive.", |
|
146
|
"shipping_option_id": "The ID of the related shipping option.", |
|
147
|
"data": "The data of the shipping method, used by the associated fulfillment provider when processing the shipping method.", |
|
148
|
"metadata": "Holds custom data in key-value pairs.", |
|
149
|
"cart": "The associated cart.\n\n@expandable", |
|
150
|
"tax_lines": "The associated tax_lines.\n\n@expandable", |
|
151
|
"adjustments": "The associated adjustments.\n\n@expandable", |
|
152
|
"original_total": "The original total of the shipping method", |
|
153
|
"original_subtotal": "The original subtotal of the shipping method", |
|
154
|
"original_tax_total": "The original tax total of the shipping method", |
|
155
|
"total": "The total of the shipping method", |
|
156
|
"subtotal": "The subtotal of the shipping method", |
|
157
|
"tax_total": "The tax total of the shipping method", |
|
158
|
"discount_total": "The discount total of the shipping method", |
|
159
|
"discount_tax_total": "The discount tax total of the shipping method" |
|
160
|
}, |
|
161
|
"deprecated": { |
|
162
|
"is_deprecated": false |
|
163
|
} |
|
164
|
}, |
|
165
|
"Cart": { |
|
166
|
"filePath": "packages/modules/cart/src/models/cart.ts", |
|
167
|
"properties": { |
|
168
|
"id": "The ID of the cart.", |
|
169
|
"region_id": "The ID of the cart's region.", |
|
170
|
"customer_id": "The ID of the cart's customer.", |
|
171
|
"sales_channel_id": "The ID of the cart's sales channel.", |
|
172
|
"email": "The email of the cart's customer", |
|
173
|
"currency_code": "The ISO 3 currency code of the cart, such as `usd`.", |
|
174
|
"metadata": "Holds custom data in key-value pairs.", |
|
175
|
"completed_at": "The date the cart was completed.", |
|
176
|
"shipping_address": "The associated shipping_address.\n\n@expandable", |
|
177
|
"billing_address": "The associated billing_address.\n\n@expandable", |
|
178
|
"items": "The associated items.\n\n@expandable", |
|
179
|
"shipping_methods": "The associated shipping_methods.\n\n@expandable", |
|
180
|
"credit_lines": "The associated credit lines.\n\n@expandable", |
|
181
|
"locale": "The locale of the cart", |
|
182
|
"original_item_total": "The original item total of the cart\n\n@since 2.13.7", |
|
183
|
"original_item_subtotal": "The original item subtotal of the cart\n\n@since 2.13.7", |
|
184
|
"original_item_tax_total": "The original item tax total of the cart\n\n@since 2.13.7", |
|
185
|
"item_total": "The item total of the cart\n\n@since 2.13.7", |
|
186
|
"item_subtotal": "The item subtotal of the cart\n\n@since 2.13.7", |
|
187
|
"item_tax_total": "The item tax total of the cart\n\n@since 2.13.7", |
|
188
|
"original_total": "The original total of the cart\n\n@since 2.13.7", |
|
189
|
"original_subtotal": "The original subtotal of the cart\n\n@since 2.13.7", |
|
190
|
"original_tax_total": "The original tax total of the cart\n\n@since 2.13.7", |
|
191
|
"total": "The total of the cart", |
|
192
|
"subtotal": "The subtotal of the cart", |
|
193
|
"tax_total": "The tax total of the cart", |
|
194
|
"discount_total": "The discount total of the cart", |
|
195
|
"discount_tax_total": "The discount tax total of the cart", |
|
196
|
"gift_card_total": "The gift card total of the cart", |
|
197
|
"gift_card_tax_total": "The gift card tax total of the cart", |
|
198
|
"shipping_total": "The shipping total of the cart", |
|
199
|
"shipping_subtotal": "The shipping subtotal of the cart", |
|
200
|
"shipping_tax_total": "The shipping tax total of the cart", |
|
201
|
"original_shipping_total": "The original shipping total of the cart", |
|
202
|
"original_shipping_subtotal": "The original shipping subtotal of the cart", |
|
203
|
"original_shipping_tax_total": "The original shipping tax total of the cart" |
|
204
|
}, |
|
205
|
"deprecated": { |
|
206
|
"is_deprecated": false |
|
207
|
} |
|
208
|
}, |
|
209
|
"CreditLine": { |
|
210
|
"filePath": "packages/modules/cart/src/models/credit-line.ts", |
|
211
|
"properties": { |
|
212
|
"id": "The ID of the credit line.", |
|
213
|
"cart": "The associated cart.\n\n@expandable", |
|
214
|
"reference": "The reference of the credit line", |
|
215
|
"reference_id": "The reference id of the credit line", |
|
216
|
"amount": "The amount of the credit line", |
|
217
|
"raw_amount": "The raw amount of the credit line", |
|
218
|
"metadata": "Holds custom data in key-value pairs." |
|
219
|
}, |
|
220
|
"deprecated": { |
|
221
|
"is_deprecated": false |
|
222
|
} |
|
223
|
} |
|
224
|
} |