@flowio/api-types 0.0.261 → 0.0.262

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.
@@ -3,10 +3,11 @@ declare namespace io.flow.billing.v0.enums {
3
3
  type PayoutAttachmentType = 'transactions';
4
4
  type PayoutStatusFailureCode = 'invalid_account_number' | 'account_closed' | 'could_not_process';
5
5
  type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance' | 'unfulfilled_amount_greater_than_negative_balance' | 'account_payment_hold';
6
- type StatementAttachmentType = 'csv';
7
- type TaxDutyTransactionReasonCode = 'post_capture' | 'post_fulfilment' | 'manual_payment_or_gift_card' | 'order_edit' | 'mixed_fulfilment_non_lvg' | 'lvg_refund' | 'order_cancellation_above_de_min' | 'wyol_shipment_above_de_min' | 'full_refund_without_shipment' | 'unfulfilled_order_above_de_min';
8
- type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund' | 'duty_refund' | 'non_l4l_tax_duty_fx' | 'merchant_payout' | 'merchant_refund' | 'ge_revenue_share' | 'merchant_fee';
9
- type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
6
+ type StatementAttachmentType = 'csv' | 'pdf';
7
+ type StatementStatusCode = 'scheduled' | 'sent' | 'failed';
8
+ type TaxDutyTransactionReasonCode = 'post_capture' | 'post_fulfilment' | 'manual_payment_or_gift_card' | 'order_edit' | 'mixed_fulfilment_non_lvg' | 'lvg_refund' | 'us_inbound_tax_refund' | 'order_cancellation_above_de_min' | 'wyol_shipment_above_de_min' | 'full_refund_without_shipment' | 'unfulfilled_order_above_de_min';
9
+ type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund' | 'duty_refund' | 'non_l4l_tax_duty_fx' | 'merchant_payout' | 'merchant_refund' | 'ge_revenue_share' | 'merchant_fee' | 'b2b_tax' | 'b2b_tax_refund';
10
+ type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups' | 'fedex';
10
11
  type WithholdingDeductionType = 'tax' | 'duty' | 'freight' | 'insurance';
11
12
  }
12
13
 
@@ -268,6 +269,11 @@ declare namespace io.flow.billing.v0.models {
268
269
  readonly 'created_at': string;
269
270
  }
270
271
 
272
+ interface StatementStatusForm {
273
+ readonly 'code': io.flow.billing.v0.enums.StatementStatusCode;
274
+ readonly 'failure_reason'?: io.flow.billing.v0.enums.PayoutStatusFailureCode;
275
+ }
276
+
271
277
  interface Transaction {
272
278
  readonly 'statement'?: io.flow.billing.v0.models.BillingChannelStatementReference;
273
279
  readonly 'id': string;
@@ -2,7 +2,7 @@ declare namespace io.flow.channel.internal.v0.enums {
2
2
  type ChannelOrderAcceptanceErrorAction = 'auto_reject' | 'auto_accept';
3
3
  type ChannelOrderAcceptanceFailureReasonCode = 'channel_order_mor_invalid' | 'channel_order_does_not_exist';
4
4
  type ChannelOrderAcceptanceNextActionFrom = 'cx_team' | 'core_team' | 'core_team_investigate' | 'mex_team' | 'payments_team' | 'tc_team' | 'logistics_team';
5
- type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card' | 'order_contains_restricted_goods' | 'missing_order_information' | 'missing_classification_information' | 'unsupported_payment_information' | 'unsupported_shop_currency' | 'unsupported_free_order' | 'extracting_distribution_info_failed' | 'shipping_estimation_failed' | 'payment_authorization_failed' | 'unsupported_subsidized_order' | 'unsupported_virtual_goods' | 'non_matching_currencies' | 'unsupported_order_edit' | 'order_missing';
5
+ type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card' | 'order_contains_restricted_goods' | 'missing_order_information' | 'missing_classification_information' | 'unsupported_payment_information' | 'unsupported_shop_currency' | 'unsupported_free_order' | 'extracting_distribution_info_failed' | 'shipping_estimation_failed' | 'payment_authorization_failed' | 'unsupported_subsidized_order' | 'unsupported_virtual_goods' | 'non_matching_currencies' | 'unsupported_order_edit' | 'order_allocation_duties_mismatch' | 'order_missing';
6
6
  type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review' | 'edit_review' | 'edit_accepted';
7
7
  type ChannelService = 'payment' | 'duty_tax_calculator' | 'sellability' | 'all';
8
8
  type OrderPaymentSourceType = 'globale' | 'third_party';
@@ -54,6 +54,7 @@ declare namespace io.flow.channel.internal.v0.models {
54
54
  readonly 'order_updated_at'?: string;
55
55
  readonly 'order_edit_summary'?: io.flow.channel.internal.v0.models.OrderEditSummary;
56
56
  readonly 'payment_source'?: io.flow.channel.internal.v0.enums.OrderPaymentSourceType;
57
+ readonly 'external_order_summary'?: io.flow.channel.shopify.v0.models.ExternalOrderSummary;
57
58
  }
58
59
 
59
60
  interface ChannelOrderAcceptanceDetails {
@@ -0,0 +1,28 @@
1
+ declare namespace io.flow.channel.shopify.v0.enums {
2
+ type ChannelShopifyOrderStateReasonCode = 'placeholder_reason_code';
3
+ }
4
+
5
+ declare namespace io.flow.channel.shopify.v0.models {
6
+ interface ChannelShopifyOrderState {
7
+ readonly 'id': string;
8
+ readonly 'shopify_order_summary': io.flow.channel.shopify.v0.models.ChannelShopifyOrderSummary;
9
+ readonly 'status': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
10
+ readonly 'reasons'?: io.flow.channel.shopify.v0.models.ChannelShopifyOrderStateReason[];
11
+ readonly 'external_order_summary'?: io.flow.channel.shopify.v0.models.ExternalOrderSummary;
12
+ }
13
+
14
+ interface ChannelShopifyOrderStateReason {
15
+ readonly 'code': io.flow.channel.shopify.v0.enums.ChannelShopifyOrderStateReasonCode;
16
+ readonly 'message': string;
17
+ }
18
+
19
+ interface ChannelShopifyOrderSummary {
20
+ readonly 'order_id': number;
21
+ readonly 'shop_id': number;
22
+ }
23
+
24
+ interface ExternalOrderSummary {
25
+ readonly 'id': string;
26
+ readonly 'edit_ids': string[];
27
+ }
28
+ }
@@ -262,6 +262,8 @@ declare namespace io.flow.common.v0.models {
262
262
  interface MerchantOfRecordEntityRegistration {
263
263
  readonly 'number': string;
264
264
  readonly 'country': string;
265
+ readonly 'province_number'?: string;
266
+ readonly 'province'?: string;
265
267
  }
266
268
 
267
269
  interface Money {
@@ -0,0 +1,242 @@
1
+ declare namespace io.flow.consumer.invoice.v0.enums {
2
+ type B2BInvoiceType = 'self_bill_invoice' | 'invoice';
3
+ type ConsumerInvoiceCustomerType = 'business_eu_verified' | 'business_non_verified' | 'individual';
4
+ type ConsumerInvoiceDocumentType = 'pdf';
5
+ type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
6
+ type TaxJurisdictionType = 'country' | 'province';
7
+ type TaxType = 'vat' | 'gst' | 'hst' | 'pst' | 'qst' | 'sales_tax';
8
+ }
9
+
10
+ declare namespace io.flow.consumer.invoice.v0.models {
11
+ interface B2BCreditMemo {
12
+ readonly 'id': string;
13
+ readonly 'number': string;
14
+ readonly 'buyer': io.flow.common.v0.models.MerchantOfRecordEntity;
15
+ readonly 'seller': io.flow.common.v0.models.MerchantOfRecordEntity;
16
+ readonly 'status': io.flow.consumer.invoice.v0.enums.ConsumerInvoiceStatus;
17
+ readonly 'date': string;
18
+ readonly 'key': string;
19
+ readonly 'invoice': io.flow.consumer.invoice.v0.models.B2BInvoiceReference;
20
+ readonly 'lines': io.flow.consumer.invoice.v0.unions.ConsumerInvoiceLine[];
21
+ readonly 'tax_lines'?: io.flow.consumer.invoice.v0.models.InvoiceTaxLine[];
22
+ readonly 'tax'?: io.flow.common.v0.models.Money;
23
+ readonly 'documents': io.flow.consumer.invoice.v0.models.ConsumerInvoiceDocument[];
24
+ readonly 'attributes': Record<string, string>;
25
+ readonly 'b2b_invoice_type': io.flow.consumer.invoice.v0.enums.B2BInvoiceType;
26
+ readonly 'center'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceCenterReference;
27
+ readonly 'order'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceOrderSummary;
28
+ }
29
+
30
+ interface B2BInvoice {
31
+ readonly 'id': string;
32
+ readonly 'number': string;
33
+ readonly 'buyer': io.flow.common.v0.models.MerchantOfRecordEntity;
34
+ readonly 'seller': io.flow.common.v0.models.MerchantOfRecordEntity;
35
+ readonly 'status': io.flow.consumer.invoice.v0.enums.ConsumerInvoiceStatus;
36
+ readonly 'date': string;
37
+ readonly 'key': string;
38
+ readonly 'order': io.flow.consumer.invoice.v0.models.ConsumerInvoiceOrderSummary;
39
+ readonly 'economic_title_location': io.flow.merchant.of.record.v0.enums.EconomicTitleLocation;
40
+ readonly 'center'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceCenterReference;
41
+ readonly 'destination'?: io.flow.experience.v0.models.OrderAddress;
42
+ readonly 'tax': io.flow.common.v0.models.Money;
43
+ readonly 'tax_lines'?: io.flow.consumer.invoice.v0.models.InvoiceTaxLine[];
44
+ readonly 'lines': io.flow.consumer.invoice.v0.unions.ConsumerInvoiceLine[];
45
+ readonly 'documents': io.flow.consumer.invoice.v0.models.ConsumerInvoiceDocument[];
46
+ readonly 'attributes': Record<string, string>;
47
+ readonly 'estimated_delivery_date'?: string;
48
+ readonly 'b2b_invoice_type': io.flow.consumer.invoice.v0.enums.B2BInvoiceType;
49
+ }
50
+
51
+ interface B2BInvoiceReference {
52
+ readonly 'id': string;
53
+ readonly 'key': string;
54
+ readonly 'number': string;
55
+ }
56
+
57
+ interface ConsumerInvoice {
58
+ readonly 'id': string;
59
+ readonly 'number': string;
60
+ readonly 'status': io.flow.consumer.invoice.v0.enums.ConsumerInvoiceStatus;
61
+ readonly 'date': string;
62
+ readonly 'key': string;
63
+ readonly 'order': io.flow.consumer.invoice.v0.models.ConsumerInvoiceOrderSummary;
64
+ readonly 'entity': io.flow.common.v0.models.MerchantOfRecordEntity;
65
+ readonly 'payments': io.flow.consumer.invoice.v0.models.ConsumerInvoicePayment[];
66
+ readonly 'center'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceCenterReference;
67
+ readonly 'destination': io.flow.experience.v0.models.OrderAddress;
68
+ readonly 'billing_address'?: io.flow.common.v0.models.BillingAddress;
69
+ readonly 'lines': io.flow.consumer.invoice.v0.unions.ConsumerInvoiceLine[];
70
+ readonly 'documents': io.flow.consumer.invoice.v0.models.ConsumerInvoiceDocument[];
71
+ readonly 'attributes': Record<string, string>;
72
+ readonly 'tax_registration'?: io.flow.harmonization.v0.models.TaxRegistration;
73
+ readonly 'customer_type'?: io.flow.consumer.invoice.v0.enums.ConsumerInvoiceCustomerType;
74
+ readonly 'estimated_delivery_date'?: string;
75
+ }
76
+
77
+ interface ConsumerInvoiceCenterReference {
78
+ readonly 'id': string;
79
+ readonly 'key': string;
80
+ readonly 'name': string;
81
+ readonly 'address': io.flow.common.v0.models.Address;
82
+ }
83
+
84
+ interface ConsumerInvoiceDocument {
85
+ readonly 'type': io.flow.consumer.invoice.v0.enums.ConsumerInvoiceDocumentType;
86
+ readonly 'language': string;
87
+ readonly 'url': string;
88
+ }
89
+
90
+ interface ConsumerInvoiceForm {
91
+ readonly 'order_number': string;
92
+ readonly 'attributes'?: Record<string, string>;
93
+ }
94
+
95
+ interface ConsumerInvoiceFormByOrder {
96
+ readonly 'attributes'?: Record<string, string>;
97
+ }
98
+
99
+ interface ConsumerInvoiceLevy {
100
+ readonly 'rate': number;
101
+ readonly 'value': io.flow.common.v0.models.Price;
102
+ }
103
+
104
+ interface ConsumerInvoiceLevyForm {
105
+ readonly 'rate': number;
106
+ readonly 'amount': number;
107
+ }
108
+
109
+ interface ConsumerInvoiceLineDiscount {
110
+ readonly 'discriminator': 'discount';
111
+ readonly 'line_id'?: string;
112
+ readonly 'price': io.flow.common.v0.models.Price;
113
+ }
114
+
115
+ interface ConsumerInvoiceLineDiscountForm {
116
+ readonly 'discriminator': 'discount';
117
+ readonly 'price': number;
118
+ }
119
+
120
+ interface ConsumerInvoiceLineItem {
121
+ readonly 'discriminator': 'item';
122
+ readonly 'line_id'?: string;
123
+ readonly 'item': io.flow.common.v0.models.ItemReference;
124
+ readonly 'description': string;
125
+ readonly 'quantity': number;
126
+ readonly 'unit_price': io.flow.common.v0.models.Price;
127
+ readonly 'unit_discount'?: io.flow.common.v0.models.Price;
128
+ readonly 'unit_tax'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevy;
129
+ readonly 'unit_duty'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevy;
130
+ }
131
+
132
+ interface ConsumerInvoiceLineItemForm {
133
+ readonly 'discriminator': 'item';
134
+ readonly 'item_number': string;
135
+ readonly 'quantity': number;
136
+ readonly 'unit_price': number;
137
+ readonly 'unit_discount'?: number;
138
+ readonly 'unit_tax'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevyForm;
139
+ readonly 'unit_duty'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevyForm;
140
+ }
141
+
142
+ interface ConsumerInvoiceLineShipping {
143
+ readonly 'discriminator': 'shipping';
144
+ readonly 'line_id'?: string;
145
+ readonly 'price': io.flow.common.v0.models.Price;
146
+ readonly 'discount'?: io.flow.common.v0.models.Price;
147
+ readonly 'tax'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevy;
148
+ readonly 'duty'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevy;
149
+ }
150
+
151
+ interface ConsumerInvoiceLineShippingForm {
152
+ readonly 'discriminator': 'shipping';
153
+ readonly 'price': number;
154
+ readonly 'discount'?: number;
155
+ readonly 'tax'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevyForm;
156
+ readonly 'duty'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevyForm;
157
+ }
158
+
159
+ interface ConsumerInvoiceLineTip {
160
+ readonly 'discriminator': 'tip';
161
+ readonly 'line_id'?: string;
162
+ readonly 'price': io.flow.common.v0.models.Price;
163
+ readonly 'tax'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevy;
164
+ }
165
+
166
+ interface ConsumerInvoiceLineTipForm {
167
+ readonly 'discriminator': 'tip';
168
+ readonly 'price': number;
169
+ readonly 'tax'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceLevyForm;
170
+ }
171
+
172
+ interface ConsumerInvoiceOrderSummary {
173
+ readonly 'id': string;
174
+ readonly 'number': string;
175
+ readonly 'submitted_at': string;
176
+ }
177
+
178
+ interface ConsumerInvoicePayment {
179
+ readonly 'date': string;
180
+ readonly 'description': string;
181
+ readonly 'value': io.flow.common.v0.models.Price;
182
+ readonly 'billing_address'?: io.flow.common.v0.models.BillingAddress;
183
+ }
184
+
185
+ interface ConsumerInvoiceReference {
186
+ readonly 'id': string;
187
+ readonly 'key': string;
188
+ readonly 'number': string;
189
+ }
190
+
191
+ interface CreditMemo {
192
+ readonly 'id': string;
193
+ readonly 'number'?: string;
194
+ readonly 'status': io.flow.consumer.invoice.v0.enums.ConsumerInvoiceStatus;
195
+ readonly 'date': string;
196
+ readonly 'key': string;
197
+ readonly 'invoice': io.flow.consumer.invoice.v0.models.ConsumerInvoiceReference;
198
+ readonly 'entity': io.flow.common.v0.models.MerchantOfRecordEntity;
199
+ readonly 'payments': io.flow.consumer.invoice.v0.models.ConsumerInvoicePayment[];
200
+ readonly 'lines': io.flow.consumer.invoice.v0.unions.ConsumerInvoiceLine[];
201
+ readonly 'documents': io.flow.consumer.invoice.v0.models.ConsumerInvoiceDocument[];
202
+ readonly 'attributes': Record<string, string>;
203
+ readonly 'tax_registration'?: io.flow.harmonization.v0.models.TaxRegistration;
204
+ readonly 'center'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceCenterReference;
205
+ readonly 'order'?: io.flow.consumer.invoice.v0.models.ConsumerInvoiceOrderSummary;
206
+ }
207
+
208
+ interface CreditMemoForm {
209
+ readonly 'refund_id'?: string;
210
+ readonly 'refund_key'?: string;
211
+ readonly 'refund_identifier'?: string;
212
+ readonly 'lines': io.flow.consumer.invoice.v0.unions.ConsumerInvoiceLineForm[];
213
+ readonly 'attributes'?: Record<string, string>;
214
+ }
215
+
216
+ interface InvoiceExport {
217
+ readonly 'id': string;
218
+ }
219
+
220
+ interface InvoiceExportForm {
221
+ readonly 'date_from'?: string;
222
+ readonly 'date_to'?: string;
223
+ }
224
+
225
+ interface InvoiceTaxLine {
226
+ readonly 'line_id': string;
227
+ readonly 'tax_breakdown': io.flow.consumer.invoice.v0.models.TaxBreakdown[];
228
+ }
229
+
230
+ interface TaxBreakdown {
231
+ readonly 'label': string;
232
+ readonly 'calculated_tax': io.flow.common.v0.models.Money;
233
+ readonly 'rate': number;
234
+ readonly 'line_total': io.flow.common.v0.models.Money;
235
+ readonly 'jurisdiction_type': io.flow.consumer.invoice.v0.enums.TaxJurisdictionType;
236
+ }
237
+ }
238
+
239
+ declare namespace io.flow.consumer.invoice.v0.unions {
240
+ type ConsumerInvoiceLine = (io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineItem | io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineDiscount | io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineShipping | io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineTip);
241
+ type ConsumerInvoiceLineForm = (io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineItemForm | io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineDiscountForm | io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineShippingForm | io.flow.consumer.invoice.v0.models.ConsumerInvoiceLineTipForm);
242
+ }