@flowio/types 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-internal.d.ts +30 -26
- package/dist/api.d.ts +831 -6
- package/package.json +2 -2
- package/src/api-internal.ts +32 -35
- package/src/api.ts +1029 -6
package/src/api.ts
CHANGED
|
@@ -1,3 +1,1006 @@
|
|
|
1
|
+
declare namespace io.flow.shopify.external.v0.enums {
|
|
2
|
+
type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
|
|
3
|
+
type DiscountStatus = 'enabled' | 'disabled' | 'depleted';
|
|
4
|
+
type DiscountType = 'fixed_amount' | 'percentage' | 'shipping';
|
|
5
|
+
type DiscrepancyReason = 'restock' | 'damage' | 'customer' | 'other';
|
|
6
|
+
type Event =
|
|
7
|
+
| 'cart'
|
|
8
|
+
| 'checkout'
|
|
9
|
+
| 'collection'
|
|
10
|
+
| 'customer'
|
|
11
|
+
| 'customer_saved_search'
|
|
12
|
+
| 'fulfillment'
|
|
13
|
+
| 'fulfillment_event'
|
|
14
|
+
| 'order'
|
|
15
|
+
| 'order_transaction'
|
|
16
|
+
| 'product'
|
|
17
|
+
| 'refund'
|
|
18
|
+
| 'shop';
|
|
19
|
+
type FinancialStatusType =
|
|
20
|
+
| 'pending'
|
|
21
|
+
| 'authorized'
|
|
22
|
+
| 'partially_paid'
|
|
23
|
+
| 'paid'
|
|
24
|
+
| 'partially_refunded'
|
|
25
|
+
| 'refunded'
|
|
26
|
+
| 'voided';
|
|
27
|
+
type Format = 'json' | 'xml';
|
|
28
|
+
type FulfillmentService = 'manual' | 'gift_card';
|
|
29
|
+
type FulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
|
|
30
|
+
type InventoryBehaviour =
|
|
31
|
+
| 'bypass'
|
|
32
|
+
| 'decrement_ignoring_policy'
|
|
33
|
+
| 'decrement_obeying_policy';
|
|
34
|
+
type InventoryManagement = 'blank' | 'shopify';
|
|
35
|
+
type InventoryPolicy = 'deny' | 'continue';
|
|
36
|
+
type KindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
|
|
37
|
+
type LocalizedPrice =
|
|
38
|
+
| 'localized_item_price'
|
|
39
|
+
| 'localized_item_vat'
|
|
40
|
+
| 'localized_item_duty'
|
|
41
|
+
| 'localized_total';
|
|
42
|
+
type OrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
|
|
43
|
+
type PriceRuleAllocationMethod = 'across' | 'each';
|
|
44
|
+
type PriceRuleCustomerSelection = 'all' | 'prerequisite';
|
|
45
|
+
type PriceRuleTargetSelection = 'all' | 'entitled';
|
|
46
|
+
type PriceRuleTargetType = 'line_item' | 'shipping_line';
|
|
47
|
+
type PriceRuleValueType = 'fixed_amount' | 'percentage';
|
|
48
|
+
type PublishedScope = 'global';
|
|
49
|
+
type RestockType = 'no_restock' | 'cancel' | 'return';
|
|
50
|
+
type ShopifyCustomerState = 'disabled' | 'invited' | 'enabled';
|
|
51
|
+
type ShopifyDiscountPaginationDirection = 'next' | 'prev';
|
|
52
|
+
type ShopifyGiftCardStatus = 'any' | 'enabled' | 'disabled';
|
|
53
|
+
type ShopifyProcessingMethodType =
|
|
54
|
+
| 'checkout'
|
|
55
|
+
| 'direct'
|
|
56
|
+
| 'manual'
|
|
57
|
+
| 'offsite'
|
|
58
|
+
| 'express';
|
|
59
|
+
type ShopifyTransactionErrorCode =
|
|
60
|
+
| 'incorrect_number'
|
|
61
|
+
| 'invalid_number'
|
|
62
|
+
| 'invalid_expiry_date'
|
|
63
|
+
| 'invalid_cvc'
|
|
64
|
+
| 'expired_card'
|
|
65
|
+
| 'incorrect_cvc'
|
|
66
|
+
| 'incorrect_zip'
|
|
67
|
+
| 'incorrect_address'
|
|
68
|
+
| 'card_declined'
|
|
69
|
+
| 'processing_error'
|
|
70
|
+
| 'call_issuer'
|
|
71
|
+
| 'pick_up_card';
|
|
72
|
+
type ShopifyTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
|
|
73
|
+
type Topic =
|
|
74
|
+
| 'carts/create'
|
|
75
|
+
| 'carts/update'
|
|
76
|
+
| 'checkouts/create'
|
|
77
|
+
| 'checkouts/delete'
|
|
78
|
+
| 'checkouts/update'
|
|
79
|
+
| 'collections/create'
|
|
80
|
+
| 'collections/delete'
|
|
81
|
+
| 'collections/update'
|
|
82
|
+
| 'customer_groups/create'
|
|
83
|
+
| 'customer_groups/delete'
|
|
84
|
+
| 'customer_groups/update'
|
|
85
|
+
| 'customers/create'
|
|
86
|
+
| 'customers/delete'
|
|
87
|
+
| 'customers/disable'
|
|
88
|
+
| 'customers/enable'
|
|
89
|
+
| 'customers/update'
|
|
90
|
+
| 'customers/redact'
|
|
91
|
+
| 'disputes/create'
|
|
92
|
+
| 'disputes/update'
|
|
93
|
+
| 'fulfillment_events/create'
|
|
94
|
+
| 'fulfillment_events/delete'
|
|
95
|
+
| 'fulfillments/create'
|
|
96
|
+
| 'fulfillments/update'
|
|
97
|
+
| 'inventory_items/create'
|
|
98
|
+
| 'inventory_items/update'
|
|
99
|
+
| 'inventory_items/delete'
|
|
100
|
+
| 'inventory_levels/connect'
|
|
101
|
+
| 'inventory_levels/update'
|
|
102
|
+
| 'inventory_levels/disconnect'
|
|
103
|
+
| 'locations/create'
|
|
104
|
+
| 'locations/update'
|
|
105
|
+
| 'locations/delete'
|
|
106
|
+
| 'order_transactions/create'
|
|
107
|
+
| 'orders/cancelled'
|
|
108
|
+
| 'orders/create'
|
|
109
|
+
| 'orders/delete'
|
|
110
|
+
| 'orders/fulfilled'
|
|
111
|
+
| 'orders/paid'
|
|
112
|
+
| 'orders/partially_fulfilled'
|
|
113
|
+
| 'orders/updated'
|
|
114
|
+
| 'products/create'
|
|
115
|
+
| 'products/delete'
|
|
116
|
+
| 'products/update'
|
|
117
|
+
| 'refunds/create'
|
|
118
|
+
| 'shop/update'
|
|
119
|
+
| 'shop/redact'
|
|
120
|
+
| 'themes/create'
|
|
121
|
+
| 'themes/delete'
|
|
122
|
+
| 'themes/publish'
|
|
123
|
+
| 'themes/update';
|
|
124
|
+
type ValueType = 'string' | 'integer';
|
|
125
|
+
type WeightUnit = 'g' | 'kg' | 'oz' | 'lb';
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare namespace io.flow.shopify.external.v0.models {
|
|
129
|
+
interface Collect {
|
|
130
|
+
readonly id: number;
|
|
131
|
+
readonly collection_id: number;
|
|
132
|
+
readonly product_id: number;
|
|
133
|
+
readonly created_at?: string;
|
|
134
|
+
readonly updated_at?: string;
|
|
135
|
+
readonly position: number;
|
|
136
|
+
readonly sort_value: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface Collection {
|
|
140
|
+
readonly id: number;
|
|
141
|
+
readonly handle?: string;
|
|
142
|
+
readonly title?: string;
|
|
143
|
+
readonly published?: boolean;
|
|
144
|
+
readonly published_at?: string;
|
|
145
|
+
readonly updated_at?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface Count {
|
|
149
|
+
readonly count: number;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface Discount {
|
|
153
|
+
readonly id: number;
|
|
154
|
+
readonly discount_type: io.flow.shopify.external.v0.enums.DiscountType;
|
|
155
|
+
readonly code: string;
|
|
156
|
+
readonly value?: number;
|
|
157
|
+
readonly status: io.flow.shopify.external.v0.enums.DiscountStatus;
|
|
158
|
+
readonly usage_limit?: number;
|
|
159
|
+
readonly applies_once: boolean;
|
|
160
|
+
readonly applies_once_per_customer: boolean;
|
|
161
|
+
readonly ends_at?: string;
|
|
162
|
+
readonly starts_at?: string;
|
|
163
|
+
readonly minimum_order_amount?: number;
|
|
164
|
+
readonly applies_to_id?: number;
|
|
165
|
+
readonly applies_to_resource?: string;
|
|
166
|
+
readonly times_used: number;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface Metafield {
|
|
170
|
+
readonly id: number;
|
|
171
|
+
readonly key: string;
|
|
172
|
+
readonly namespace: string;
|
|
173
|
+
readonly value: string;
|
|
174
|
+
readonly value_type: io.flow.shopify.external.v0.enums.ValueType;
|
|
175
|
+
readonly description?: string;
|
|
176
|
+
readonly owner_id: number;
|
|
177
|
+
readonly owner_resource: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
interface MetafieldForm {
|
|
181
|
+
readonly key: string;
|
|
182
|
+
readonly namespace: string;
|
|
183
|
+
readonly value: string;
|
|
184
|
+
readonly value_type: io.flow.shopify.external.v0.enums.ValueType;
|
|
185
|
+
readonly description?: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface Option {
|
|
189
|
+
readonly id: number;
|
|
190
|
+
readonly product_id: number;
|
|
191
|
+
readonly name: string;
|
|
192
|
+
readonly position: number;
|
|
193
|
+
readonly values?: string[];
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface PriceRule {
|
|
197
|
+
readonly id: number;
|
|
198
|
+
readonly value_type: io.flow.shopify.external.v0.enums.PriceRuleValueType;
|
|
199
|
+
readonly target_type: io.flow.shopify.external.v0.enums.PriceRuleTargetType;
|
|
200
|
+
readonly value: number;
|
|
201
|
+
readonly starts_at: string;
|
|
202
|
+
readonly ends_at?: string;
|
|
203
|
+
readonly prerequisite_subtotal_range?: io.flow.shopify.external.v0.models.PriceRuleGreaterThanRange;
|
|
204
|
+
readonly prerequisite_shipping_range?: io.flow.shopify.external.v0.models.PriceRuleLessThanRange;
|
|
205
|
+
readonly usage_limit?: number;
|
|
206
|
+
readonly entitled_product_ids: number[];
|
|
207
|
+
readonly entitled_variant_ids: number[];
|
|
208
|
+
readonly entitled_collection_ids: number[];
|
|
209
|
+
readonly entitled_country_ids: number[];
|
|
210
|
+
readonly allocation_method: io.flow.shopify.external.v0.enums.PriceRuleAllocationMethod;
|
|
211
|
+
readonly once_per_customer: boolean;
|
|
212
|
+
readonly target_selection: io.flow.shopify.external.v0.enums.PriceRuleTargetSelection;
|
|
213
|
+
readonly customer_selection: io.flow.shopify.external.v0.enums.PriceRuleCustomerSelection;
|
|
214
|
+
readonly prerequisite_saved_search_ids: number[];
|
|
215
|
+
readonly prerequisite_customer_ids?: number[];
|
|
216
|
+
readonly prerequisite_quantity_range?: io.flow.shopify.external.v0.models.PriceRuleGreaterThanRange;
|
|
217
|
+
readonly prerequisite_product_ids?: number[];
|
|
218
|
+
readonly prerequisite_variant_ids?: number[];
|
|
219
|
+
readonly prerequisite_collection_ids?: number[];
|
|
220
|
+
readonly prerequisite_to_entitlement_quantity_ratio?: io.flow.shopify.external.v0.models.PriceRulePrerequisiteToEntitlementQuantityRatio;
|
|
221
|
+
readonly allocation_limit?: number;
|
|
222
|
+
readonly title?: string;
|
|
223
|
+
readonly created_at?: string;
|
|
224
|
+
readonly updated_at?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface PriceRuleDiscountCode {
|
|
228
|
+
readonly id: number;
|
|
229
|
+
readonly price_rule_id: number;
|
|
230
|
+
readonly code: string;
|
|
231
|
+
readonly usage_count: number;
|
|
232
|
+
readonly created_at: string;
|
|
233
|
+
readonly updated_at: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface PriceRuleForm {
|
|
237
|
+
readonly price_rule: io.flow.shopify.external.v0.models.PriceRule;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
interface PriceRuleGreaterThanRange {
|
|
241
|
+
readonly greater_than?: number;
|
|
242
|
+
readonly greater_than_or_equal_to?: number;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface PriceRuleLessThanRange {
|
|
246
|
+
readonly less_than?: number;
|
|
247
|
+
readonly less_than_or_equal_to?: number;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
interface PriceRulePrerequisiteToEntitlementQuantityRatio {
|
|
251
|
+
readonly prerequisite_quantity?: number;
|
|
252
|
+
readonly entitled_quantity?: number;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
interface Product {
|
|
256
|
+
readonly id: number;
|
|
257
|
+
readonly handle: string;
|
|
258
|
+
readonly variants: io.flow.shopify.external.v0.models.ProductVariant[];
|
|
259
|
+
readonly images: io.flow.shopify.external.v0.models.ProductImage[];
|
|
260
|
+
readonly title: string;
|
|
261
|
+
readonly vendor?: string;
|
|
262
|
+
readonly body_html?: string;
|
|
263
|
+
readonly product_type?: string;
|
|
264
|
+
readonly options: io.flow.shopify.external.v0.models.Option[];
|
|
265
|
+
readonly tags?: string;
|
|
266
|
+
readonly template_suffix?: string;
|
|
267
|
+
readonly published_scope: io.flow.shopify.external.v0.enums.PublishedScope;
|
|
268
|
+
readonly published_at?: string;
|
|
269
|
+
readonly created_at: string;
|
|
270
|
+
readonly updated_at: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
interface ProductDelete {
|
|
274
|
+
readonly id: number;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
interface ProductImage {
|
|
278
|
+
readonly id: number;
|
|
279
|
+
readonly product_id: number;
|
|
280
|
+
readonly variant_ids: number[];
|
|
281
|
+
readonly src: string;
|
|
282
|
+
readonly position: number;
|
|
283
|
+
readonly created_at: string;
|
|
284
|
+
readonly updated_at: string;
|
|
285
|
+
readonly alt?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface ProductVariant {
|
|
289
|
+
readonly id: number;
|
|
290
|
+
readonly sku?: string;
|
|
291
|
+
readonly product_id: number;
|
|
292
|
+
readonly price: number;
|
|
293
|
+
readonly title: string;
|
|
294
|
+
readonly taxable: boolean;
|
|
295
|
+
readonly compare_at_price?: number;
|
|
296
|
+
readonly grams?: number;
|
|
297
|
+
readonly image_id?: number;
|
|
298
|
+
readonly barcode?: string;
|
|
299
|
+
readonly fulfillment_service?: io.flow.shopify.external.v0.enums.FulfillmentService;
|
|
300
|
+
readonly inventory_management?: io.flow.shopify.external.v0.enums.InventoryManagement;
|
|
301
|
+
readonly inventory_policy: io.flow.shopify.external.v0.enums.InventoryPolicy;
|
|
302
|
+
readonly weight?: number;
|
|
303
|
+
readonly weight_unit?: io.flow.shopify.external.v0.enums.WeightUnit;
|
|
304
|
+
readonly inventory_item_id?: number;
|
|
305
|
+
readonly inventory_quantity?: number;
|
|
306
|
+
readonly metafield?: io.flow.shopify.external.v0.models.MetafieldForm[];
|
|
307
|
+
readonly option1?: string;
|
|
308
|
+
readonly option2?: string;
|
|
309
|
+
readonly option3?: string;
|
|
310
|
+
readonly requires_shipping: boolean;
|
|
311
|
+
readonly metafields?: io.flow.shopify.external.v0.models.Metafield[];
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
interface RequestMetafieldForm {
|
|
315
|
+
readonly metafield: io.flow.shopify.external.v0.models.MetafieldForm;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
interface RequestShopifyGiftCard {
|
|
319
|
+
readonly gift_card: io.flow.shopify.external.v0.models.ShopifyGiftCardForm;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
interface RequestShopifyRefundForm {
|
|
323
|
+
readonly refund: io.flow.shopify.external.v0.models.ShopifyRefundForm;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
interface RequestShopifyTransactionForm {
|
|
327
|
+
readonly transaction: io.flow.shopify.external.v0.models.ShopifyTransactionForm;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface ResponseCollect {
|
|
331
|
+
readonly collect: io.flow.shopify.external.v0.models.Collect;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
interface ResponseCollects {
|
|
335
|
+
readonly collects: io.flow.shopify.external.v0.models.Collect[];
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
interface ResponseDiscount {
|
|
339
|
+
readonly discount: io.flow.shopify.external.v0.models.Discount;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
interface ResponseDiscounts {
|
|
343
|
+
readonly discounts: io.flow.shopify.external.v0.models.Discount[];
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
interface ResponseMetafield {
|
|
347
|
+
readonly metafield: io.flow.shopify.external.v0.models.Metafield;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
interface ResponseMetafields {
|
|
351
|
+
readonly metafields: io.flow.shopify.external.v0.models.Metafield[];
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
interface ResponseOrdersWrapper {
|
|
355
|
+
readonly orders: io.flow.shopify.external.v0.models.ShopifyOrder[];
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
interface ResponsePriceRule {
|
|
359
|
+
readonly price_rule: io.flow.shopify.external.v0.models.PriceRule;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
interface ResponsePriceRuleDiscountCode {
|
|
363
|
+
readonly discount_code: io.flow.shopify.external.v0.models.PriceRuleDiscountCode;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface ResponsePriceRuleDiscountCodes {
|
|
367
|
+
readonly discount_codes: io.flow.shopify.external.v0.models.PriceRuleDiscountCode[];
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface ResponsePriceRules {
|
|
371
|
+
readonly price_rules: io.flow.shopify.external.v0.models.PriceRule[];
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
interface ResponseProduct {
|
|
375
|
+
readonly product: io.flow.shopify.external.v0.models.Product;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
interface ResponseProducts {
|
|
379
|
+
readonly products: io.flow.shopify.external.v0.models.Product[];
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
interface ResponseShopifyGiftCard {
|
|
383
|
+
readonly gift_card: io.flow.shopify.external.v0.models.ShopifyGiftCard;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
interface ResponseShopifyGiftCards {
|
|
387
|
+
readonly gift_cards: io.flow.shopify.external.v0.models.ShopifyGiftCard[];
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
interface ResponseShopifyRefundSingle {
|
|
391
|
+
readonly refund: io.flow.shopify.external.v0.models.ShopifyRefund;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
interface ResponseShopifyTransaction {
|
|
395
|
+
readonly transactions: io.flow.shopify.external.v0.models.ShopifyTransaction[];
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
interface ResponseShopifyTransactionSingle {
|
|
399
|
+
readonly transaction: io.flow.shopify.external.v0.models.ShopifyTransaction;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
interface ResponseVariant {
|
|
403
|
+
readonly variant: io.flow.shopify.external.v0.models.ProductVariant;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
interface Shop {
|
|
407
|
+
readonly id: number;
|
|
408
|
+
readonly domain: string;
|
|
409
|
+
readonly myshopify_domain: string;
|
|
410
|
+
readonly name: string;
|
|
411
|
+
readonly primary_locale: string;
|
|
412
|
+
readonly currency: string;
|
|
413
|
+
readonly country_code: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
interface ShopResponse {
|
|
417
|
+
readonly shop: io.flow.shopify.external.v0.models.Shop;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
interface ShopifyAddress {
|
|
421
|
+
readonly id?: number;
|
|
422
|
+
readonly address1?: string;
|
|
423
|
+
readonly address2?: string;
|
|
424
|
+
readonly city?: string;
|
|
425
|
+
readonly company?: string;
|
|
426
|
+
readonly country?: string;
|
|
427
|
+
readonly country_code?: string;
|
|
428
|
+
readonly default?: boolean;
|
|
429
|
+
readonly first_name?: string;
|
|
430
|
+
readonly last_name?: string;
|
|
431
|
+
readonly latitude?: number;
|
|
432
|
+
readonly longitude?: number;
|
|
433
|
+
readonly name?: string;
|
|
434
|
+
readonly phone?: string;
|
|
435
|
+
readonly province?: string;
|
|
436
|
+
readonly province_code?: string;
|
|
437
|
+
readonly zip?: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
interface ShopifyAttribute {
|
|
441
|
+
readonly name: string;
|
|
442
|
+
readonly value: string;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
interface ShopifyCart {
|
|
446
|
+
readonly token: string;
|
|
447
|
+
readonly note?: string;
|
|
448
|
+
readonly attributes?: any /*object*/;
|
|
449
|
+
readonly items_subtotal_price?: number;
|
|
450
|
+
readonly total_price: number;
|
|
451
|
+
readonly total_weight: number;
|
|
452
|
+
readonly total_discount: number;
|
|
453
|
+
readonly original_total_price: number;
|
|
454
|
+
readonly item_count: number;
|
|
455
|
+
readonly requires_shipping: boolean;
|
|
456
|
+
readonly currency?: string;
|
|
457
|
+
readonly items: io.flow.shopify.external.v0.models.ShopifyCartItem[];
|
|
458
|
+
readonly cart_level_discount_applications?: io.flow.shopify.external.v0.models.ShopifyDiscountApplication[];
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
interface ShopifyCartItem {
|
|
462
|
+
readonly id: number;
|
|
463
|
+
readonly title: string;
|
|
464
|
+
readonly key?: string;
|
|
465
|
+
readonly price: number;
|
|
466
|
+
readonly line_price: number;
|
|
467
|
+
readonly final_price: number;
|
|
468
|
+
readonly final_line_price: number;
|
|
469
|
+
readonly original_price: number;
|
|
470
|
+
readonly original_line_price: number;
|
|
471
|
+
readonly total_discount: number;
|
|
472
|
+
readonly discounted_price: number;
|
|
473
|
+
readonly discounts?: io.flow.shopify.external.v0.models.ShopifyCartItemDiscount[];
|
|
474
|
+
readonly taxable: boolean;
|
|
475
|
+
readonly quantity: number;
|
|
476
|
+
readonly sku?: string;
|
|
477
|
+
readonly grams?: number;
|
|
478
|
+
readonly vendor?: string;
|
|
479
|
+
readonly properties?: any /*object*/;
|
|
480
|
+
readonly variant_id?: number;
|
|
481
|
+
readonly gift_card: boolean;
|
|
482
|
+
readonly url: string;
|
|
483
|
+
readonly image?: string;
|
|
484
|
+
readonly handle: string;
|
|
485
|
+
readonly requires_shipping: boolean;
|
|
486
|
+
readonly product_id: number;
|
|
487
|
+
readonly product_title: string;
|
|
488
|
+
readonly product_description?: string;
|
|
489
|
+
readonly product_type: string;
|
|
490
|
+
readonly variant_title?: string;
|
|
491
|
+
readonly variant_options?: string[];
|
|
492
|
+
readonly line_level_discount_allocations?: io.flow.shopify.external.v0.models.ShopifyLineLevelDiscountAllocation[];
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
interface ShopifyCartItemDiscount {
|
|
496
|
+
readonly amount: number;
|
|
497
|
+
readonly title: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
interface ShopifyClientDetail {
|
|
501
|
+
readonly accept_language: boolean;
|
|
502
|
+
readonly browser_height?: number;
|
|
503
|
+
readonly browser_ip: string;
|
|
504
|
+
readonly browser_width?: number;
|
|
505
|
+
readonly session_hash?: string;
|
|
506
|
+
readonly user_agent?: string;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
interface ShopifyCustomer {
|
|
510
|
+
readonly id: number;
|
|
511
|
+
readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
|
|
512
|
+
readonly created_at: string;
|
|
513
|
+
readonly tags: string;
|
|
514
|
+
readonly tax_exempt: boolean;
|
|
515
|
+
readonly verified_email: boolean;
|
|
516
|
+
readonly state: io.flow.shopify.external.v0.enums.ShopifyCustomerState;
|
|
517
|
+
readonly accepts_marketing?: boolean;
|
|
518
|
+
readonly default_address?: any /*object*/;
|
|
519
|
+
readonly email?: string;
|
|
520
|
+
readonly first_name?: string;
|
|
521
|
+
readonly last_name?: string;
|
|
522
|
+
readonly last_order_id?: number;
|
|
523
|
+
readonly last_order_name?: string;
|
|
524
|
+
readonly note?: string;
|
|
525
|
+
readonly orders_count?: number;
|
|
526
|
+
readonly phone?: string;
|
|
527
|
+
readonly total_spent?: string;
|
|
528
|
+
readonly updated_at?: string;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
interface ShopifyCustomerAddress {
|
|
532
|
+
readonly id: number;
|
|
533
|
+
readonly customer_id: number;
|
|
534
|
+
readonly default: boolean;
|
|
535
|
+
readonly address1?: string;
|
|
536
|
+
readonly address2?: string;
|
|
537
|
+
readonly city?: string;
|
|
538
|
+
readonly company?: string;
|
|
539
|
+
readonly first_name?: string;
|
|
540
|
+
readonly last_name?: string;
|
|
541
|
+
readonly name?: string;
|
|
542
|
+
readonly phone?: string;
|
|
543
|
+
readonly country?: string;
|
|
544
|
+
readonly country_code?: string;
|
|
545
|
+
readonly country_name?: string;
|
|
546
|
+
readonly province?: string;
|
|
547
|
+
readonly province_code?: string;
|
|
548
|
+
readonly zip?: string;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
interface ShopifyCustomerDelete {
|
|
552
|
+
readonly id: number;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
interface ShopifyCustomersResponseWrapper {
|
|
556
|
+
readonly customers: io.flow.shopify.external.v0.models.ShopifyCustomer[];
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
interface ShopifyDiscountApplication {
|
|
560
|
+
readonly type: string;
|
|
561
|
+
readonly key: string;
|
|
562
|
+
readonly title: string;
|
|
563
|
+
readonly description?: string;
|
|
564
|
+
readonly value: string;
|
|
565
|
+
readonly created_at: string;
|
|
566
|
+
readonly value_type: string;
|
|
567
|
+
readonly allocation_method: string;
|
|
568
|
+
readonly target_selection: string;
|
|
569
|
+
readonly target_type: string;
|
|
570
|
+
readonly total_allocated_amount: number;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
interface ShopifyDiscountCode {
|
|
574
|
+
readonly amount: string;
|
|
575
|
+
readonly code: string;
|
|
576
|
+
readonly type: io.flow.shopify.external.v0.enums.DiscountType;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
interface ShopifyError {
|
|
580
|
+
readonly errors: any /*object*/;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
interface ShopifyFulfillment {
|
|
584
|
+
readonly location_id: number;
|
|
585
|
+
readonly created_at?: string;
|
|
586
|
+
readonly id?: number;
|
|
587
|
+
readonly line_items: io.flow.shopify.external.v0.models.ShopifyLineItem[];
|
|
588
|
+
readonly order_id?: number;
|
|
589
|
+
readonly receipt?: any /*object*/;
|
|
590
|
+
readonly status?: string;
|
|
591
|
+
readonly tracking_company?: string;
|
|
592
|
+
readonly tracking_number?: string;
|
|
593
|
+
readonly tracking_numbers?: string[];
|
|
594
|
+
readonly tracking_url?: string;
|
|
595
|
+
readonly tracking_urls?: string[];
|
|
596
|
+
readonly updated_at?: string;
|
|
597
|
+
readonly notify_customer?: boolean;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
interface ShopifyFulfillmentWrapper {
|
|
601
|
+
readonly fulfillment: io.flow.shopify.external.v0.models.ShopifyFulfillment;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
interface ShopifyGiftCard {
|
|
605
|
+
readonly id: number;
|
|
606
|
+
readonly balance: number;
|
|
607
|
+
readonly currency: string;
|
|
608
|
+
readonly initial_value: number;
|
|
609
|
+
readonly last_characters: string;
|
|
610
|
+
readonly created_at: string;
|
|
611
|
+
readonly updated_at: string;
|
|
612
|
+
readonly api_client_id?: number;
|
|
613
|
+
readonly code?: string;
|
|
614
|
+
readonly customer_id?: number;
|
|
615
|
+
readonly disabled_at?: string;
|
|
616
|
+
readonly expires_on?: string;
|
|
617
|
+
readonly line_item_id?: number;
|
|
618
|
+
readonly note?: string;
|
|
619
|
+
readonly order_id?: number;
|
|
620
|
+
readonly template_suffix?: string;
|
|
621
|
+
readonly user_id?: number;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
interface ShopifyGiftCardAdjustment {
|
|
625
|
+
readonly id: number;
|
|
626
|
+
readonly gift_card_id: number;
|
|
627
|
+
readonly number: number;
|
|
628
|
+
readonly amount: number;
|
|
629
|
+
readonly created_at: string;
|
|
630
|
+
readonly processed_at: string;
|
|
631
|
+
readonly note?: string;
|
|
632
|
+
readonly remote_transaction_ref?: string;
|
|
633
|
+
readonly remote_transaction_url?: string;
|
|
634
|
+
readonly api_client_id?: number;
|
|
635
|
+
readonly user_id?: number;
|
|
636
|
+
readonly order_transaction_id?: number;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
interface ShopifyGiftCardAdjustmentForm {
|
|
640
|
+
readonly amount: number;
|
|
641
|
+
readonly note?: string;
|
|
642
|
+
readonly order_transaction_id?: number;
|
|
643
|
+
readonly processed_at?: string;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
interface ShopifyGiftCardAdjustmentFormWrapper {
|
|
647
|
+
readonly adjustment: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustmentForm;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
interface ShopifyGiftCardAdjustmentResponseWrapper {
|
|
651
|
+
readonly adjustment: io.flow.shopify.external.v0.models.ShopifyGiftCardAdjustment;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
interface ShopifyGiftCardForm {
|
|
655
|
+
readonly initial_value: number;
|
|
656
|
+
readonly code?: string;
|
|
657
|
+
readonly note?: string;
|
|
658
|
+
readonly template_suffix?: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
interface ShopifyInventoryItem {
|
|
662
|
+
readonly id: number;
|
|
663
|
+
readonly tracked: boolean;
|
|
664
|
+
readonly sku?: string;
|
|
665
|
+
readonly cost?: string;
|
|
666
|
+
readonly country_code_of_origin?: string;
|
|
667
|
+
readonly created_at: string;
|
|
668
|
+
readonly updated_at?: string;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
interface ShopifyInventoryItemDelete {
|
|
672
|
+
readonly id: number;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
interface ShopifyInventoryLevel {
|
|
676
|
+
readonly inventory_item_id: number;
|
|
677
|
+
readonly location_id: number;
|
|
678
|
+
readonly updated_at: string;
|
|
679
|
+
readonly available?: number;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
interface ShopifyInventoryLevelDisconnect {
|
|
683
|
+
readonly inventory_item_id: number;
|
|
684
|
+
readonly location_id: number;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
interface ShopifyInventoryLevelResponseWrapper {
|
|
688
|
+
readonly inventory_levels: io.flow.shopify.external.v0.models.ShopifyInventoryLevel[];
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
interface ShopifyLineItem {
|
|
692
|
+
readonly id: number;
|
|
693
|
+
readonly quantity: number;
|
|
694
|
+
readonly fulfillable_quantity?: number;
|
|
695
|
+
readonly fulfillment_service: string;
|
|
696
|
+
readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
|
|
697
|
+
readonly grams?: number;
|
|
698
|
+
readonly price?: string;
|
|
699
|
+
readonly product_id?: number;
|
|
700
|
+
readonly requires_shipping: boolean;
|
|
701
|
+
readonly sku?: string;
|
|
702
|
+
readonly title?: string;
|
|
703
|
+
readonly variant_id?: number;
|
|
704
|
+
readonly variant_title?: string;
|
|
705
|
+
readonly vendor?: string;
|
|
706
|
+
readonly name?: string;
|
|
707
|
+
readonly gift_card: boolean;
|
|
708
|
+
readonly properties: Record<string, string>[];
|
|
709
|
+
readonly taxable: boolean;
|
|
710
|
+
readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
|
|
711
|
+
readonly total_discount?: string;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
interface ShopifyLineItemForm {
|
|
715
|
+
readonly fulfillable_quantity?: number;
|
|
716
|
+
readonly fulfillment_service: string;
|
|
717
|
+
readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
|
|
718
|
+
readonly grams?: number;
|
|
719
|
+
readonly price?: string;
|
|
720
|
+
readonly product_id?: number;
|
|
721
|
+
readonly quantity?: number;
|
|
722
|
+
readonly requires_shipping: boolean;
|
|
723
|
+
readonly sku?: string;
|
|
724
|
+
readonly title?: string;
|
|
725
|
+
readonly variant_id?: number;
|
|
726
|
+
readonly variant_title?: string;
|
|
727
|
+
readonly vendor?: string;
|
|
728
|
+
readonly name?: string;
|
|
729
|
+
readonly gift_card: boolean;
|
|
730
|
+
readonly properties?: io.flow.shopify.external.v0.models.ShopifyAttribute[];
|
|
731
|
+
readonly taxable: boolean;
|
|
732
|
+
readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
|
|
733
|
+
readonly total_discount?: string;
|
|
734
|
+
readonly id?: number;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
interface ShopifyLineLevelDiscountAllocation {
|
|
738
|
+
readonly amount: number;
|
|
739
|
+
readonly discount_application: io.flow.shopify.external.v0.models.ShopifyDiscountApplication;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
interface ShopifyLocation {
|
|
743
|
+
readonly active: boolean;
|
|
744
|
+
readonly address1?: string;
|
|
745
|
+
readonly address2?: string;
|
|
746
|
+
readonly city?: string;
|
|
747
|
+
readonly country?: string;
|
|
748
|
+
readonly country_code?: string;
|
|
749
|
+
readonly created_at: string;
|
|
750
|
+
readonly id: number;
|
|
751
|
+
readonly legacy: boolean;
|
|
752
|
+
readonly name: string;
|
|
753
|
+
readonly phone?: string;
|
|
754
|
+
readonly province?: string;
|
|
755
|
+
readonly province_code?: string;
|
|
756
|
+
readonly updated_at?: string;
|
|
757
|
+
readonly zip?: string;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
interface ShopifyLocationDelete {
|
|
761
|
+
readonly id: number;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
interface ShopifyLocationsResponseWrapper {
|
|
765
|
+
readonly locations: io.flow.shopify.external.v0.models.ShopifyLocation[];
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
interface ShopifyOrder {
|
|
769
|
+
readonly billing_address?: io.flow.shopify.external.v0.models.ShopifyAddress;
|
|
770
|
+
readonly browser_ip?: string;
|
|
771
|
+
readonly buyer_accepts_marketing: boolean;
|
|
772
|
+
readonly cancel_reason?: io.flow.shopify.external.v0.enums.CancelReason;
|
|
773
|
+
readonly cancelled_at?: string;
|
|
774
|
+
readonly cart_token?: string;
|
|
775
|
+
readonly client_details?: io.flow.shopify.external.v0.models.ShopifyClientDetail;
|
|
776
|
+
readonly closed_at?: string;
|
|
777
|
+
readonly created_at?: string;
|
|
778
|
+
readonly currency?: string;
|
|
779
|
+
readonly customer?: io.flow.shopify.external.v0.models.ShopifyOrderCustomer;
|
|
780
|
+
readonly discount_codes: io.flow.shopify.external.v0.models.ShopifyDiscountCode[];
|
|
781
|
+
readonly email?: string;
|
|
782
|
+
readonly financial_status: io.flow.shopify.external.v0.enums.FinancialStatusType;
|
|
783
|
+
readonly fulfillments: io.flow.shopify.external.v0.models.ShopifyFulfillment[];
|
|
784
|
+
readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
|
|
785
|
+
readonly id?: number;
|
|
786
|
+
readonly landing_site?: string;
|
|
787
|
+
readonly line_items: io.flow.shopify.external.v0.models.ShopifyLineItemForm[];
|
|
788
|
+
readonly location_id?: number;
|
|
789
|
+
readonly name?: string;
|
|
790
|
+
readonly note?: string;
|
|
791
|
+
readonly note_attributes: io.flow.shopify.external.v0.models.ShopifyAttribute[];
|
|
792
|
+
readonly number?: number;
|
|
793
|
+
readonly order_number?: number;
|
|
794
|
+
readonly payment_gateway_names: string[];
|
|
795
|
+
readonly processed_at?: string;
|
|
796
|
+
readonly processing_method?: io.flow.shopify.external.v0.enums.ShopifyProcessingMethodType;
|
|
797
|
+
readonly referring_site?: string;
|
|
798
|
+
readonly refunds: io.flow.shopify.external.v0.models.ShopifyRefund[];
|
|
799
|
+
readonly shipping_address?: io.flow.shopify.external.v0.models.ShopifyAddress;
|
|
800
|
+
readonly shipping_lines: io.flow.shopify.external.v0.models.ShopifyShippingLine[];
|
|
801
|
+
readonly source_name?: string;
|
|
802
|
+
readonly subtotal_price?: string;
|
|
803
|
+
readonly tags?: string;
|
|
804
|
+
readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
|
|
805
|
+
readonly taxes_included: boolean;
|
|
806
|
+
readonly token?: string;
|
|
807
|
+
readonly total_discounts?: string;
|
|
808
|
+
readonly total_line_items_price?: string;
|
|
809
|
+
readonly total_price?: string;
|
|
810
|
+
readonly total_tax?: string;
|
|
811
|
+
readonly total_weight?: number;
|
|
812
|
+
readonly updated_at?: string;
|
|
813
|
+
readonly user_id?: number;
|
|
814
|
+
readonly order_status_url?: string;
|
|
815
|
+
readonly inventory_behaviour?: io.flow.shopify.external.v0.enums.InventoryBehaviour;
|
|
816
|
+
readonly gateway?: string;
|
|
817
|
+
readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
|
|
818
|
+
readonly send_receipt?: boolean;
|
|
819
|
+
readonly metafields?: io.flow.shopify.external.v0.models.MetafieldForm[];
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
interface ShopifyOrderCount {
|
|
823
|
+
readonly count: number;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
interface ShopifyOrderCustomer {
|
|
827
|
+
readonly email?: string;
|
|
828
|
+
readonly first_name?: string;
|
|
829
|
+
readonly last_name?: string;
|
|
830
|
+
readonly phone?: string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
interface ShopifyOrderWrapper {
|
|
834
|
+
readonly order: io.flow.shopify.external.v0.models.ShopifyOrder;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
interface ShopifyPaymentDetail {
|
|
838
|
+
readonly avs_result_code?: string;
|
|
839
|
+
readonly credit_card_bin?: string;
|
|
840
|
+
readonly credit_card_company: string;
|
|
841
|
+
readonly credit_card_number: string;
|
|
842
|
+
readonly cvv_result_code?: string;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
interface ShopifyRefund {
|
|
846
|
+
readonly id: number;
|
|
847
|
+
readonly order_id: number;
|
|
848
|
+
readonly created_at: string;
|
|
849
|
+
readonly processed_at: string;
|
|
850
|
+
readonly note?: string;
|
|
851
|
+
readonly refund_line_items?: io.flow.shopify.external.v0.models.ShopifyRefundLineItem[];
|
|
852
|
+
readonly restock?: boolean;
|
|
853
|
+
readonly transactions?: io.flow.shopify.external.v0.models.ShopifyTransaction[];
|
|
854
|
+
readonly user_id?: number;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
interface ShopifyRefundForm {
|
|
858
|
+
readonly note?: string;
|
|
859
|
+
readonly discrepancy_reason?: io.flow.shopify.external.v0.enums.DiscrepancyReason;
|
|
860
|
+
readonly refund_line_items: io.flow.shopify.external.v0.models.ShopifyRefundLineItemForm[];
|
|
861
|
+
readonly transactions: io.flow.shopify.external.v0.models.ShopifyTransactionForm[];
|
|
862
|
+
readonly currency: string;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
interface ShopifyRefundLineItem {
|
|
866
|
+
readonly id: number;
|
|
867
|
+
readonly line_item: io.flow.shopify.external.v0.models.ShopifyLineItem;
|
|
868
|
+
readonly line_item_id: number;
|
|
869
|
+
readonly quantity: number;
|
|
870
|
+
readonly restock_type: io.flow.shopify.external.v0.enums.RestockType;
|
|
871
|
+
readonly location_id?: number;
|
|
872
|
+
readonly subtotal?: number;
|
|
873
|
+
readonly total_tax?: number;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
interface ShopifyRefundLineItemForm {
|
|
877
|
+
readonly line_item_id: number;
|
|
878
|
+
readonly quantity: number;
|
|
879
|
+
readonly restock_type: io.flow.shopify.external.v0.enums.RestockType;
|
|
880
|
+
readonly location_id?: number;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
interface ShopifyShippingLine {
|
|
884
|
+
readonly code: string;
|
|
885
|
+
readonly price: string;
|
|
886
|
+
readonly source: string;
|
|
887
|
+
readonly title: string;
|
|
888
|
+
readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
|
|
889
|
+
readonly carrier_identifier?: string;
|
|
890
|
+
readonly requested_fulfillment_service_id?: string;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
interface ShopifyTaxLine {
|
|
894
|
+
readonly price: string;
|
|
895
|
+
readonly rate: number;
|
|
896
|
+
readonly title: string;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
interface ShopifyTransaction {
|
|
900
|
+
readonly id: number;
|
|
901
|
+
readonly order_id: number;
|
|
902
|
+
readonly amount: number;
|
|
903
|
+
readonly kind: io.flow.shopify.external.v0.enums.KindType;
|
|
904
|
+
readonly gateway: string;
|
|
905
|
+
readonly currency: string;
|
|
906
|
+
readonly status: io.flow.shopify.external.v0.enums.ShopifyTransactionStatus;
|
|
907
|
+
readonly payment_details?: io.flow.shopify.external.v0.models.ShopifyPaymentDetail;
|
|
908
|
+
readonly receipt: any /*object*/;
|
|
909
|
+
readonly authorization?: string;
|
|
910
|
+
readonly created_at: string;
|
|
911
|
+
readonly device_id?: number;
|
|
912
|
+
readonly gift_card_id?: number;
|
|
913
|
+
readonly source_name: string;
|
|
914
|
+
readonly error_code?: io.flow.shopify.external.v0.enums.ShopifyTransactionErrorCode;
|
|
915
|
+
readonly test: boolean;
|
|
916
|
+
readonly parent_id?: number;
|
|
917
|
+
readonly user_id?: number;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface ShopifyTransactionForm {
|
|
921
|
+
readonly amount: number;
|
|
922
|
+
readonly currency: string;
|
|
923
|
+
readonly gateway: string;
|
|
924
|
+
readonly kind: io.flow.shopify.external.v0.enums.KindType;
|
|
925
|
+
readonly source: string;
|
|
926
|
+
readonly authorization?: string;
|
|
927
|
+
readonly gift_card_id?: number;
|
|
928
|
+
readonly parent_id?: number;
|
|
929
|
+
readonly receipt?: any /*object*/;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
interface ShopifyTransactionGiftCardReceipt {
|
|
933
|
+
readonly gift_card_id: number;
|
|
934
|
+
readonly gift_card_last_characters: string;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
interface ShopifyWebhookCustomersRedact {
|
|
938
|
+
readonly shop_id: number;
|
|
939
|
+
readonly shop_domain: string;
|
|
940
|
+
readonly customer: io.flow.shopify.external.v0.models.ShopifyWebhookCustomersRedactCustomer;
|
|
941
|
+
readonly orders_to_redact?: number[];
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
interface ShopifyWebhookCustomersRedactCustomer {
|
|
945
|
+
readonly id: number;
|
|
946
|
+
readonly email?: string;
|
|
947
|
+
readonly phone?: string;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
interface ShopifyWebhookOrder {
|
|
951
|
+
readonly id?: number;
|
|
952
|
+
readonly line_items?: io.flow.shopify.external.v0.models.ShopifyWebhookOrderLineItem[];
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
interface ShopifyWebhookOrderCancelled {
|
|
956
|
+
readonly id: number;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
interface ShopifyWebhookOrderLineItem {
|
|
960
|
+
readonly fulfillable_quantity?: number;
|
|
961
|
+
readonly fulfillment_status?: io.flow.shopify.external.v0.enums.FulfillmentStatusType;
|
|
962
|
+
readonly product_id?: number;
|
|
963
|
+
readonly quantity?: number;
|
|
964
|
+
readonly requires_shipping: boolean;
|
|
965
|
+
readonly variant_id?: number;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
interface ShopifyWebhookShopRedact {
|
|
969
|
+
readonly shop_id: number;
|
|
970
|
+
readonly shop_domain: string;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
interface Webhook {
|
|
974
|
+
readonly address: string;
|
|
975
|
+
readonly created_at: string;
|
|
976
|
+
readonly format: io.flow.shopify.external.v0.enums.Format;
|
|
977
|
+
readonly id: number;
|
|
978
|
+
readonly topic: io.flow.shopify.external.v0.enums.Topic;
|
|
979
|
+
readonly updated_at: string;
|
|
980
|
+
readonly fields?: string[];
|
|
981
|
+
readonly metafield_namespaces?: string[];
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
interface WebhookForm {
|
|
985
|
+
readonly topic: io.flow.shopify.external.v0.enums.Topic;
|
|
986
|
+
readonly address: string;
|
|
987
|
+
readonly format: io.flow.shopify.external.v0.enums.Format;
|
|
988
|
+
readonly metafield_namespaces?: string[];
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
interface WebhookFormWrapper {
|
|
992
|
+
readonly webhook: io.flow.shopify.external.v0.models.WebhookForm;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
interface WebhookResponseList {
|
|
996
|
+
readonly webhooks: io.flow.shopify.external.v0.models.Webhook[];
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
interface WebhookResponseSingle {
|
|
1000
|
+
readonly webhook: io.flow.shopify.external.v0.models.Webhook;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1
1004
|
declare namespace io.flow.v0.enums {
|
|
2
1005
|
type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
|
|
3
1006
|
type Aggregate = 'maximum' | 'minimum';
|
|
@@ -570,6 +1573,7 @@ declare namespace io.flow.v0.enums {
|
|
|
570
1573
|
type TaxabilityType = 'tax_rule';
|
|
571
1574
|
type TaxabilityValue = 'exempt';
|
|
572
1575
|
type ThreeDSecureCode = 'verified' | 'not_verified' | 'failed';
|
|
1576
|
+
type TierAvailability = 'always' | 'backup';
|
|
573
1577
|
type TierEstimateType = 'calculated' | 'custom';
|
|
574
1578
|
type TierStrategy = 'fastest' | 'lowest_cost';
|
|
575
1579
|
type TokenType = 'permanent' | 'one_time';
|
|
@@ -2509,6 +3513,16 @@ declare namespace io.flow.v0.models {
|
|
|
2509
3513
|
readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
|
|
2510
3514
|
}
|
|
2511
3515
|
|
|
3516
|
+
interface EmailAbandonedOrder {
|
|
3517
|
+
readonly discriminator: 'abandoned_order';
|
|
3518
|
+
readonly order: io.flow.v0.models.OrderSummary;
|
|
3519
|
+
readonly urls: io.flow.v0.models.EmailAbandonedOrderUrls;
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
interface EmailAbandonedOrderUrls {
|
|
3523
|
+
readonly checkout: string;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
2512
3526
|
interface EmailNotification {
|
|
2513
3527
|
readonly id: string;
|
|
2514
3528
|
readonly to: io.flow.v0.models.EmailRecipient;
|
|
@@ -6545,8 +7559,6 @@ declare namespace io.flow.v0.models {
|
|
|
6545
7559
|
readonly language?: string;
|
|
6546
7560
|
readonly locale?: string;
|
|
6547
7561
|
readonly attributes?: Record<string, string>;
|
|
6548
|
-
readonly experiment?: io.flow.v0.models.SessionExperimentForm;
|
|
6549
|
-
readonly context?: io.flow.v0.models.ContextForm;
|
|
6550
7562
|
}
|
|
6551
7563
|
|
|
6552
7564
|
interface SessionFormat {
|
|
@@ -6568,8 +7580,6 @@ declare namespace io.flow.v0.models {
|
|
|
6568
7580
|
readonly language?: string;
|
|
6569
7581
|
readonly locale?: string;
|
|
6570
7582
|
readonly attributes?: Record<string, string>;
|
|
6571
|
-
readonly experiment?: io.flow.v0.models.SessionExperimentForm;
|
|
6572
|
-
readonly context?: io.flow.v0.models.ContextForm;
|
|
6573
7583
|
}
|
|
6574
7584
|
|
|
6575
7585
|
interface SessionReference {
|
|
@@ -6872,7 +7882,7 @@ declare namespace io.flow.v0.models {
|
|
|
6872
7882
|
}
|
|
6873
7883
|
|
|
6874
7884
|
interface ShopifyCartConversionShopifyCart {
|
|
6875
|
-
readonly cart:
|
|
7885
|
+
readonly cart: io.flow.shopify.external.v0.models.ShopifyCart;
|
|
6876
7886
|
}
|
|
6877
7887
|
|
|
6878
7888
|
interface ShopifyCartItem {
|
|
@@ -7334,6 +8344,7 @@ declare namespace io.flow.v0.models {
|
|
|
7334
8344
|
readonly shipping_lane?: string;
|
|
7335
8345
|
readonly surcharge_settings?: io.flow.v0.models.SurchargeSetting[];
|
|
7336
8346
|
readonly lane?: io.flow.v0.models.ShippingLaneSummary;
|
|
8347
|
+
readonly settings?: io.flow.v0.models.TierSettings;
|
|
7337
8348
|
}
|
|
7338
8349
|
|
|
7339
8350
|
interface TierDeletedV2 {
|
|
@@ -7371,6 +8382,7 @@ declare namespace io.flow.v0.models {
|
|
|
7371
8382
|
readonly display?: io.flow.v0.models.TierDisplayForm;
|
|
7372
8383
|
readonly shipping_lane: string;
|
|
7373
8384
|
readonly surcharge_settings?: io.flow.v0.models.SurchargeSetting[];
|
|
8385
|
+
readonly settings?: io.flow.v0.models.TierSettings;
|
|
7374
8386
|
}
|
|
7375
8387
|
|
|
7376
8388
|
interface TierReference {
|
|
@@ -7397,6 +8409,10 @@ declare namespace io.flow.v0.models {
|
|
|
7397
8409
|
readonly tier_rule: io.flow.v0.models.TierRule;
|
|
7398
8410
|
}
|
|
7399
8411
|
|
|
8412
|
+
interface TierSettings {
|
|
8413
|
+
readonly availability: io.flow.v0.enums.TierAvailability;
|
|
8414
|
+
}
|
|
8415
|
+
|
|
7400
8416
|
interface TierSummary {
|
|
7401
8417
|
readonly id: string;
|
|
7402
8418
|
readonly experience?: io.flow.v0.models.FulfillmentExperienceReference;
|
|
@@ -7408,6 +8424,7 @@ declare namespace io.flow.v0.models {
|
|
|
7408
8424
|
readonly currency: string;
|
|
7409
8425
|
readonly display?: io.flow.v0.models.TierDisplay;
|
|
7410
8426
|
readonly message?: string;
|
|
8427
|
+
readonly settings?: io.flow.v0.models.TierSettings;
|
|
7411
8428
|
}
|
|
7412
8429
|
|
|
7413
8430
|
interface TierUpsertedV2 {
|
|
@@ -7845,7 +8862,9 @@ declare namespace io.flow.v0.unions {
|
|
|
7845
8862
|
type Document =
|
|
7846
8863
|
| io.flow.v0.models.CatalogItemDocument
|
|
7847
8864
|
| io.flow.v0.models.HarmonizationDocument;
|
|
7848
|
-
type EmailNotificationData =
|
|
8865
|
+
type EmailNotificationData =
|
|
8866
|
+
| io.flow.v0.models.EmailNotificationDataRefund
|
|
8867
|
+
| io.flow.v0.models.EmailAbandonedOrder;
|
|
7849
8868
|
type Event =
|
|
7850
8869
|
| io.flow.v0.models.AttributeUpserted
|
|
7851
8870
|
| io.flow.v0.models.AttributeDeleted
|
|
@@ -8489,6 +9508,8 @@ export type EcommercePlatformForm = io.flow.v0.models.EcommercePlatformForm;
|
|
|
8489
9508
|
export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
|
|
8490
9509
|
export type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
|
|
8491
9510
|
export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
|
|
9511
|
+
export type EmailAbandonedOrder = io.flow.v0.models.EmailAbandonedOrder;
|
|
9512
|
+
export type EmailAbandonedOrderUrls = io.flow.v0.models.EmailAbandonedOrderUrls;
|
|
8492
9513
|
export type EmailNotification = io.flow.v0.models.EmailNotification;
|
|
8493
9514
|
export type EmailNotificationData = io.flow.v0.unions.EmailNotificationData;
|
|
8494
9515
|
export type EmailNotificationDataRefund = io.flow.v0.models.EmailNotificationDataRefund;
|
|
@@ -9294,6 +10315,7 @@ export type TaxabilityValue = io.flow.v0.enums.TaxabilityValue;
|
|
|
9294
10315
|
export type ThreeDSecure = io.flow.v0.models.ThreeDSecure;
|
|
9295
10316
|
export type ThreeDSecureCode = io.flow.v0.enums.ThreeDSecureCode;
|
|
9296
10317
|
export type Tier = io.flow.v0.models.Tier;
|
|
10318
|
+
export type TierAvailability = io.flow.v0.enums.TierAvailability;
|
|
9297
10319
|
export type TierDeletedV2 = io.flow.v0.models.TierDeletedV2;
|
|
9298
10320
|
export type TierDisplay = io.flow.v0.models.TierDisplay;
|
|
9299
10321
|
export type TierDisplayForm = io.flow.v0.models.TierDisplayForm;
|
|
@@ -9306,6 +10328,7 @@ export type TierRuleForm = io.flow.v0.models.TierRuleForm;
|
|
|
9306
10328
|
export type TierRuleOutcome = io.flow.v0.unions.TierRuleOutcome;
|
|
9307
10329
|
export type TierRuleOutcomeForm = io.flow.v0.unions.TierRuleOutcomeForm;
|
|
9308
10330
|
export type TierRuleVersion = io.flow.v0.models.TierRuleVersion;
|
|
10331
|
+
export type TierSettings = io.flow.v0.models.TierSettings;
|
|
9309
10332
|
export type TierStrategy = io.flow.v0.enums.TierStrategy;
|
|
9310
10333
|
export type TierSummary = io.flow.v0.models.TierSummary;
|
|
9311
10334
|
export type TierUpsertedV2 = io.flow.v0.models.TierUpsertedV2;
|