@flowio/types 11.21.1 → 11.22.0
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 +534 -100
- package/dist/api.d.ts +2 -42
- package/package.json +2 -2
- package/src/api-internal.ts +810 -242
- package/src/api.ts +2 -49
package/dist/api-internal.d.ts
CHANGED
|
@@ -1847,6 +1847,25 @@ declare namespace io.flow.tracking.v0.models {
|
|
|
1847
1847
|
readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
+
declare namespace io.flow.invoice.v0.enums {
|
|
1851
|
+
type PaymentTerm = 'net7' | 'net15' | 'net30';
|
|
1852
|
+
}
|
|
1853
|
+
declare namespace io.flow.invoice.v0.models {
|
|
1854
|
+
interface Invoice {
|
|
1855
|
+
readonly id: string;
|
|
1856
|
+
readonly number: string;
|
|
1857
|
+
readonly date: string;
|
|
1858
|
+
readonly terms: io.flow.invoice.v0.enums.PaymentTerm;
|
|
1859
|
+
readonly due_date: string;
|
|
1860
|
+
readonly lines: io.flow.invoice.v0.models.InvoiceLine[];
|
|
1861
|
+
readonly total: io.flow.common.v0.models.Price;
|
|
1862
|
+
}
|
|
1863
|
+
interface InvoiceLine {
|
|
1864
|
+
readonly id: string;
|
|
1865
|
+
readonly description: string;
|
|
1866
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1850
1869
|
declare namespace io.flow.token.internal.v0.models {
|
|
1851
1870
|
interface ChannelTokenForm {
|
|
1852
1871
|
readonly channel_id: string;
|
|
@@ -3117,8 +3136,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
3117
3136
|
type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
|
|
3118
3137
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
3119
3138
|
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
|
|
3120
|
-
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
3121
|
-
type KlarnaProduct = 'payment';
|
|
3122
3139
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
3123
3140
|
type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
|
|
3124
3141
|
type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
|
|
@@ -3354,7 +3371,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3354
3371
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3355
3372
|
}
|
|
3356
3373
|
interface OrderItem {
|
|
3357
|
-
readonly object
|
|
3374
|
+
readonly object: string;
|
|
3358
3375
|
readonly amount: number;
|
|
3359
3376
|
readonly currency: string;
|
|
3360
3377
|
readonly description?: string;
|
|
@@ -3573,7 +3590,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3573
3590
|
}
|
|
3574
3591
|
interface Shipping {
|
|
3575
3592
|
readonly address: io.flow.stripe.v0.models.Address;
|
|
3576
|
-
readonly name
|
|
3593
|
+
readonly name: string;
|
|
3577
3594
|
readonly phone?: string;
|
|
3578
3595
|
}
|
|
3579
3596
|
interface Source {
|
|
@@ -3595,7 +3612,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3595
3612
|
readonly status: io.flow.stripe.v0.enums.SourceStatus;
|
|
3596
3613
|
readonly type: io.flow.stripe.v0.enums.SourceType;
|
|
3597
3614
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
3598
|
-
readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
|
|
3599
3615
|
}
|
|
3600
3616
|
interface SourceCard {
|
|
3601
3617
|
readonly exp_month: number;
|
|
@@ -3623,47 +3639,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3623
3639
|
readonly first_name?: string;
|
|
3624
3640
|
readonly last_name?: string;
|
|
3625
3641
|
readonly client_token: string;
|
|
3626
|
-
readonly payment_method_categories?: string;
|
|
3627
|
-
readonly purchase_country?: string;
|
|
3628
|
-
readonly shipping_first_name?: string;
|
|
3629
|
-
readonly shipping_last_name?: string;
|
|
3630
|
-
readonly locale?: string;
|
|
3631
|
-
readonly pay_later_name?: string;
|
|
3632
|
-
readonly pay_later_asset_urls_standard?: string;
|
|
3633
|
-
readonly pay_later_asset_urls_descriptive?: string;
|
|
3634
|
-
readonly pay_now_name?: string;
|
|
3635
|
-
readonly pay_now_asset_urls_standard?: string;
|
|
3636
|
-
readonly pay_now_asset_urls_descriptive?: string;
|
|
3637
|
-
readonly pay_over_time_name?: string;
|
|
3638
|
-
readonly pay_over_time_asset_urls_standard?: string;
|
|
3639
|
-
readonly pay_over_time_asset_urls_descriptive?: string;
|
|
3640
|
-
readonly direct_bank_transfer_name?: string;
|
|
3641
|
-
readonly direct_bank_transfer_asset_urls_standard?: string;
|
|
3642
|
-
readonly direct_bank_transfer_asset_urls_descriptive?: string;
|
|
3643
|
-
readonly direct_debit_name?: string;
|
|
3644
|
-
readonly direct_debit_asset_urls_standard?: string;
|
|
3645
|
-
readonly direct_debit_asset_urls_descriptive?: string;
|
|
3646
3642
|
}
|
|
3647
3643
|
interface SourceKlarnaRequest {
|
|
3648
3644
|
readonly first_name: string;
|
|
3649
3645
|
readonly last_name: string;
|
|
3650
|
-
readonly purchase_country?: string;
|
|
3651
|
-
readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
|
|
3652
3646
|
readonly attachment?: string;
|
|
3653
|
-
readonly shipping_first_name?: string;
|
|
3654
|
-
readonly shipping_last_name?: string;
|
|
3655
|
-
readonly locale?: string;
|
|
3656
|
-
}
|
|
3657
|
-
interface SourceOrder {
|
|
3658
|
-
readonly amount?: number;
|
|
3659
|
-
readonly currency?: string;
|
|
3660
|
-
readonly email?: string;
|
|
3661
|
-
readonly items?: io.flow.stripe.v0.models.OrderItem[];
|
|
3662
|
-
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3663
|
-
}
|
|
3664
|
-
interface SourceOrderRequest {
|
|
3665
|
-
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
3666
|
-
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3667
3647
|
}
|
|
3668
3648
|
interface SourceRequest {
|
|
3669
3649
|
readonly type?: io.flow.stripe.v0.enums.SourceType;
|
|
@@ -3680,7 +3660,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3680
3660
|
readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
|
|
3681
3661
|
readonly token?: string;
|
|
3682
3662
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
3683
|
-
readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
|
|
3684
3663
|
}
|
|
3685
3664
|
interface Stripe3Ds2Fingerprint {
|
|
3686
3665
|
readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
|
|
@@ -4577,7 +4556,7 @@ declare namespace io.flow.brickftp.v0.models {
|
|
|
4577
4556
|
readonly id: number;
|
|
4578
4557
|
readonly path: string;
|
|
4579
4558
|
readonly behavior: io.flow.brickftp.v0.enums.BehaviorType;
|
|
4580
|
-
readonly value:
|
|
4559
|
+
readonly value: string[];
|
|
4581
4560
|
}
|
|
4582
4561
|
interface BehaviorForm {
|
|
4583
4562
|
readonly path: string;
|
|
@@ -4709,10 +4688,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4709
4688
|
readonly value: number;
|
|
4710
4689
|
readonly currency: string;
|
|
4711
4690
|
}
|
|
4712
|
-
interface Applepay {
|
|
4713
|
-
readonly type: 'applepay';
|
|
4714
|
-
readonly applePayToken: string;
|
|
4715
|
-
}
|
|
4716
4691
|
interface Authentication {
|
|
4717
4692
|
readonly 'threeds2.fingerprintToken'?: string;
|
|
4718
4693
|
readonly 'threeds2.challengeToken'?: string;
|
|
@@ -4739,8 +4714,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4739
4714
|
readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
|
|
4740
4715
|
readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
|
|
4741
4716
|
readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
|
|
4742
|
-
readonly mcc?: string;
|
|
4743
|
-
readonly metadata?: any;
|
|
4744
4717
|
}
|
|
4745
4718
|
interface AuthorizeRequest3D {
|
|
4746
4719
|
readonly merchantAccount: string;
|
|
@@ -4874,12 +4847,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4874
4847
|
readonly details: any;
|
|
4875
4848
|
readonly paymentData?: string;
|
|
4876
4849
|
}
|
|
4877
|
-
interface PaymentDetailsV663Ds2Challenge {
|
|
4878
|
-
readonly 'threeds2.challengeResult': string;
|
|
4879
|
-
}
|
|
4880
|
-
interface PaymentDetailsV663Ds2Fingerprint {
|
|
4881
|
-
readonly 'threeds2.fingerprint': string;
|
|
4882
|
-
}
|
|
4883
4850
|
interface PaymentRequest {
|
|
4884
4851
|
readonly reference: string;
|
|
4885
4852
|
readonly merchantAccount: string;
|
|
@@ -4901,9 +4868,7 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4901
4868
|
readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
|
|
4902
4869
|
readonly origin?: string;
|
|
4903
4870
|
readonly channel?: io.flow.adyen.v0.enums.Channel;
|
|
4904
|
-
readonly
|
|
4905
|
-
readonly mcc?: string;
|
|
4906
|
-
readonly metadata?: any;
|
|
4871
|
+
readonly returnURL?: string;
|
|
4907
4872
|
}
|
|
4908
4873
|
interface PaymentResponse {
|
|
4909
4874
|
readonly resultCode: io.flow.adyen.v0.enums.ResultCode;
|
|
@@ -4951,13 +4916,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4951
4916
|
readonly number: string;
|
|
4952
4917
|
readonly cvc?: string;
|
|
4953
4918
|
}
|
|
4954
|
-
interface SdkV3OnCompleteData {
|
|
4955
|
-
readonly details: any;
|
|
4956
|
-
readonly payment_data?: string;
|
|
4957
|
-
}
|
|
4958
|
-
interface SdkV3OnCompleteResult {
|
|
4959
|
-
readonly data: io.flow.adyen.v0.models.SdkV3OnCompleteData;
|
|
4960
|
-
}
|
|
4961
4919
|
interface ThreeDSecureData {
|
|
4962
4920
|
readonly authenticationResponse?: string;
|
|
4963
4921
|
readonly cavv?: string;
|
|
@@ -4983,7 +4941,7 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4983
4941
|
}
|
|
4984
4942
|
declare namespace io.flow.adyen.v0.unions {
|
|
4985
4943
|
type BrowserInfo = io.flow.adyen.v0.models.BrowserInfo3Ds1 | io.flow.adyen.v0.models.BrowserInfo3Ds2;
|
|
4986
|
-
type PaymentMethodData = io.flow.adyen.v0.models.Scheme
|
|
4944
|
+
type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
|
|
4987
4945
|
}
|
|
4988
4946
|
declare namespace io.flow.order.management.v0.enums {
|
|
4989
4947
|
type CancelReason = 'out_of_stock' | 'consumer_requested' | 'flow_cancel';
|
|
@@ -7647,13 +7605,10 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
7647
7605
|
interface CryptoPaymentInfo {
|
|
7648
7606
|
readonly publishable_key: string;
|
|
7649
7607
|
}
|
|
7650
|
-
interface Error {
|
|
7651
|
-
readonly type?: io.flow.crypto.v0.enums.ErrorType;
|
|
7652
|
-
readonly code?: string;
|
|
7653
|
-
readonly param?: string;
|
|
7654
|
-
}
|
|
7655
7608
|
interface ErrorResponse {
|
|
7656
|
-
readonly
|
|
7609
|
+
readonly type: io.flow.crypto.v0.enums.ErrorType;
|
|
7610
|
+
readonly code: string;
|
|
7611
|
+
readonly param: string;
|
|
7657
7612
|
}
|
|
7658
7613
|
interface Payment {
|
|
7659
7614
|
readonly id: string;
|
|
@@ -7672,6 +7627,7 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
7672
7627
|
readonly recipient: string;
|
|
7673
7628
|
readonly refunded: boolean;
|
|
7674
7629
|
readonly status: io.flow.crypto.v0.enums.PaymentStatus;
|
|
7630
|
+
readonly time_window: number;
|
|
7675
7631
|
}
|
|
7676
7632
|
interface PaymentRequest {
|
|
7677
7633
|
readonly amount: number;
|
|
@@ -8240,6 +8196,483 @@ declare namespace io.flow.item.v0.models {
|
|
|
8240
8196
|
readonly price_attributes?: Record<string, io.flow.item.v0.models.LocalItemAttributePricing>;
|
|
8241
8197
|
}
|
|
8242
8198
|
}
|
|
8199
|
+
declare namespace io.flow.billing.internal.v0.enums {
|
|
8200
|
+
type BillingAllocationKey = 'freight_cost' | 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'fuel_surcharge' | 'remote_area_surcharge';
|
|
8201
|
+
type BillingStatementBatchFileKey = 'archive' | 'summary';
|
|
8202
|
+
type BillingStatementReviewStatus = 'approved' | 'pending';
|
|
8203
|
+
type ManualTransactionCategory = 'cancelled_order_refund' | 'client_accepted_chargeback' | 'fee_reimbursement' | 'partial_refund' | 'platform_fee' | 'shipping_true_up' | 'tax_credit';
|
|
8204
|
+
type PreferredBillingSchedule = 'monthly' | 'bi-monthly';
|
|
8205
|
+
type ProcessingTransactionType = 'adjustment' | 'capture' | 'refund' | 'fully_subsidized_order' | 'credit_payment';
|
|
8206
|
+
type ResponsibleParty = 'flow' | 'organization';
|
|
8207
|
+
type TransferMethod = 'ach';
|
|
8208
|
+
}
|
|
8209
|
+
declare namespace io.flow.billing.internal.v0.models {
|
|
8210
|
+
interface AccountForm {
|
|
8211
|
+
readonly timezone: string;
|
|
8212
|
+
readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
|
|
8213
|
+
readonly payment_conditions?: string;
|
|
8214
|
+
readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRuleForm;
|
|
8215
|
+
readonly center_key?: string;
|
|
8216
|
+
}
|
|
8217
|
+
interface BankPayment {
|
|
8218
|
+
readonly id: string;
|
|
8219
|
+
readonly key: string;
|
|
8220
|
+
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
8221
|
+
readonly reference?: string;
|
|
8222
|
+
readonly sent_on: string;
|
|
8223
|
+
readonly expected_delivery_by: string;
|
|
8224
|
+
readonly total: io.flow.common.v0.models.Price;
|
|
8225
|
+
}
|
|
8226
|
+
interface BankPaymentForm {
|
|
8227
|
+
readonly account_id: string;
|
|
8228
|
+
readonly reference?: string;
|
|
8229
|
+
readonly sent_on: string;
|
|
8230
|
+
readonly expected_delivery_by: string;
|
|
8231
|
+
readonly amount: number;
|
|
8232
|
+
readonly currency: string;
|
|
8233
|
+
readonly transfer_transaction_ids: string[];
|
|
8234
|
+
}
|
|
8235
|
+
interface BillingAuthorizationReference {
|
|
8236
|
+
readonly id: string;
|
|
8237
|
+
}
|
|
8238
|
+
interface BillingInvoiceSummary {
|
|
8239
|
+
readonly id: string;
|
|
8240
|
+
readonly url: string;
|
|
8241
|
+
}
|
|
8242
|
+
interface BillingOrderDestination {
|
|
8243
|
+
readonly city?: string;
|
|
8244
|
+
readonly province?: string;
|
|
8245
|
+
readonly postal?: string;
|
|
8246
|
+
readonly country: string;
|
|
8247
|
+
}
|
|
8248
|
+
interface BillingOrderSummary {
|
|
8249
|
+
readonly number: string;
|
|
8250
|
+
readonly submitted_at: string;
|
|
8251
|
+
readonly primary_identifier?: string;
|
|
8252
|
+
readonly destination?: io.flow.billing.internal.v0.models.BillingOrderDestination;
|
|
8253
|
+
}
|
|
8254
|
+
interface BillingOrganizationProcessingRateForm {
|
|
8255
|
+
readonly query: string;
|
|
8256
|
+
readonly capture: number;
|
|
8257
|
+
readonly refund: number;
|
|
8258
|
+
readonly fraud: number;
|
|
8259
|
+
}
|
|
8260
|
+
interface BillingOrganizationProcessingRates {
|
|
8261
|
+
readonly id: string;
|
|
8262
|
+
readonly query: string;
|
|
8263
|
+
readonly capture: number;
|
|
8264
|
+
readonly refund: number;
|
|
8265
|
+
readonly fraud: number;
|
|
8266
|
+
readonly position: number;
|
|
8267
|
+
}
|
|
8268
|
+
interface BillingOrganizationProcessingRatesForm {
|
|
8269
|
+
readonly processing_rates: io.flow.billing.internal.v0.models.BillingOrganizationProcessingRateForm[];
|
|
8270
|
+
}
|
|
8271
|
+
interface BillingOrganizationSettings {
|
|
8272
|
+
readonly id: string;
|
|
8273
|
+
readonly days_until_posted: number;
|
|
8274
|
+
readonly logistics: io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
8275
|
+
readonly include_transaction_created_at: boolean;
|
|
8276
|
+
readonly include_order_exchange_rate: boolean;
|
|
8277
|
+
readonly send_statements_to_flow_ftp_server: boolean;
|
|
8278
|
+
readonly invoicing_terms?: io.flow.invoice.v0.enums.PaymentTerm;
|
|
8279
|
+
readonly transfer_method?: io.flow.billing.internal.v0.enums.TransferMethod;
|
|
8280
|
+
readonly b2b_tax_remittance_days?: number;
|
|
8281
|
+
}
|
|
8282
|
+
interface BillingStatementBatch {
|
|
8283
|
+
readonly id: string;
|
|
8284
|
+
readonly period: io.flow.common.v0.models.DatetimeRange;
|
|
8285
|
+
}
|
|
8286
|
+
interface BillingStatementPendingReview {
|
|
8287
|
+
readonly organization: string;
|
|
8288
|
+
readonly statement: io.flow.billing.v0.models.BillingStatement;
|
|
8289
|
+
}
|
|
8290
|
+
interface BillingStatementReview {
|
|
8291
|
+
readonly id: string;
|
|
8292
|
+
readonly billing_statement: io.flow.billing.v0.models.BillingStatementReference;
|
|
8293
|
+
readonly reviewed_by: io.flow.common.v0.models.UserReference;
|
|
8294
|
+
readonly reviewed_at: string;
|
|
8295
|
+
}
|
|
8296
|
+
interface BillingStatementReviewForm {
|
|
8297
|
+
readonly reviewed_by_id: string;
|
|
8298
|
+
readonly reviewed_at: string;
|
|
8299
|
+
}
|
|
8300
|
+
interface ChannelServiceFee {
|
|
8301
|
+
readonly tiers: io.flow.billing.internal.v0.models.ChannelServiceFeeTier[];
|
|
8302
|
+
}
|
|
8303
|
+
interface ChannelServiceFeeTier {
|
|
8304
|
+
readonly minimum_orders: number;
|
|
8305
|
+
readonly amount: number;
|
|
8306
|
+
}
|
|
8307
|
+
interface ChannelTransaction {
|
|
8308
|
+
readonly id: string;
|
|
8309
|
+
readonly organization_id: string;
|
|
8310
|
+
readonly processing_transaction_id: string;
|
|
8311
|
+
readonly order_number: string;
|
|
8312
|
+
readonly channel_currency: string;
|
|
8313
|
+
readonly mor_convenience_fee: number;
|
|
8314
|
+
readonly flow_fx_fee_on_mor: number;
|
|
8315
|
+
readonly flow_processing_fee: number;
|
|
8316
|
+
readonly flow_fraud_fee: number;
|
|
8317
|
+
readonly service_fee: number;
|
|
8318
|
+
readonly logistics_fee: number;
|
|
8319
|
+
readonly total: number;
|
|
8320
|
+
}
|
|
8321
|
+
interface Components {
|
|
8322
|
+
readonly vat: io.flow.common.v0.models.Price;
|
|
8323
|
+
readonly duty: io.flow.common.v0.models.Price;
|
|
8324
|
+
readonly freight: io.flow.common.v0.models.Price;
|
|
8325
|
+
readonly insurance: io.flow.common.v0.models.Price;
|
|
8326
|
+
}
|
|
8327
|
+
interface DisputeTransaction {
|
|
8328
|
+
readonly discriminator: 'dispute_transaction';
|
|
8329
|
+
readonly id: string;
|
|
8330
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8331
|
+
readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
|
|
8332
|
+
readonly posted_at: string;
|
|
8333
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8334
|
+
readonly description: string;
|
|
8335
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8336
|
+
readonly created_at: string;
|
|
8337
|
+
}
|
|
8338
|
+
interface Fee {
|
|
8339
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8340
|
+
readonly description?: string;
|
|
8341
|
+
}
|
|
8342
|
+
interface Fees {
|
|
8343
|
+
readonly processing: io.flow.billing.internal.v0.models.Fee;
|
|
8344
|
+
readonly rate_lock: io.flow.billing.internal.v0.models.Fee;
|
|
8345
|
+
readonly mor: io.flow.billing.internal.v0.models.Fee;
|
|
8346
|
+
}
|
|
8347
|
+
interface FxFee {
|
|
8348
|
+
readonly base: io.flow.common.v0.models.Money;
|
|
8349
|
+
readonly local: io.flow.common.v0.models.Money;
|
|
8350
|
+
}
|
|
8351
|
+
interface FxRevenueRecognition {
|
|
8352
|
+
readonly id: string;
|
|
8353
|
+
readonly organization: io.flow.billing.internal.v0.models.FxRevenueRecognitionOrganization;
|
|
8354
|
+
readonly account: io.flow.billing.internal.v0.models.FxRevenueRecognitionAccount;
|
|
8355
|
+
readonly fx: io.flow.billing.internal.v0.models.FxFee;
|
|
8356
|
+
readonly spot_rate: io.flow.billing.internal.v0.models.FxRevenueRecognitionRate;
|
|
8357
|
+
readonly created_at: string;
|
|
8358
|
+
readonly order: io.flow.billing.internal.v0.models.FxRevenueRecognitionOrder;
|
|
8359
|
+
readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
|
|
8360
|
+
readonly source: io.flow.billing.internal.v0.models.FxRevenueRecognitionSource;
|
|
8361
|
+
readonly reporting_date?: string;
|
|
8362
|
+
}
|
|
8363
|
+
interface FxRevenueRecognitionAccount {
|
|
8364
|
+
readonly value: io.flow.common.v0.models.Money;
|
|
8365
|
+
readonly spot_rate: io.flow.billing.internal.v0.models.FxRevenueRecognitionAccountRate;
|
|
8366
|
+
}
|
|
8367
|
+
interface FxRevenueRecognitionAccountRate {
|
|
8368
|
+
readonly value: number;
|
|
8369
|
+
}
|
|
8370
|
+
interface FxRevenueRecognitionOrder {
|
|
8371
|
+
readonly number: string;
|
|
8372
|
+
readonly submitted_at: string;
|
|
8373
|
+
}
|
|
8374
|
+
interface FxRevenueRecognitionOrganization {
|
|
8375
|
+
readonly id: string;
|
|
8376
|
+
}
|
|
8377
|
+
interface FxRevenueRecognitionRate {
|
|
8378
|
+
readonly value: number;
|
|
8379
|
+
readonly margin: number;
|
|
8380
|
+
readonly timestamp: string;
|
|
8381
|
+
}
|
|
8382
|
+
interface FxRevenueRecognitionSource {
|
|
8383
|
+
readonly id: string;
|
|
8384
|
+
readonly local: io.flow.common.v0.models.Money;
|
|
8385
|
+
readonly transaction_created_at: string;
|
|
8386
|
+
}
|
|
8387
|
+
interface InvoiceTransaction {
|
|
8388
|
+
readonly discriminator: 'invoice_transaction';
|
|
8389
|
+
readonly id: string;
|
|
8390
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8391
|
+
readonly posted_at: string;
|
|
8392
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8393
|
+
readonly description: string;
|
|
8394
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8395
|
+
readonly created_at: string;
|
|
8396
|
+
readonly invoice: io.flow.invoice.v0.models.Invoice;
|
|
8397
|
+
}
|
|
8398
|
+
interface MainTransaction {
|
|
8399
|
+
readonly id: string;
|
|
8400
|
+
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
8401
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8402
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8403
|
+
readonly posted_at: string;
|
|
8404
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8405
|
+
readonly created_at: string;
|
|
8406
|
+
readonly original_at?: string;
|
|
8407
|
+
readonly disposition?: io.flow.billing.internal.v0.enums.BillingStatementReviewStatus;
|
|
8408
|
+
}
|
|
8409
|
+
interface ManualTransaction {
|
|
8410
|
+
readonly discriminator: 'manual_transaction';
|
|
8411
|
+
readonly id: string;
|
|
8412
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8413
|
+
readonly posted_at: string;
|
|
8414
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8415
|
+
readonly description: string;
|
|
8416
|
+
readonly category?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
|
|
8417
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8418
|
+
readonly created_at: string;
|
|
8419
|
+
}
|
|
8420
|
+
interface ManualTransactionForm {
|
|
8421
|
+
readonly amount: number;
|
|
8422
|
+
readonly description: string;
|
|
8423
|
+
readonly category?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
|
|
8424
|
+
readonly posted_at?: string;
|
|
8425
|
+
}
|
|
8426
|
+
interface PendingBankPayment {
|
|
8427
|
+
readonly organization: string;
|
|
8428
|
+
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
8429
|
+
readonly recommended_reference: string;
|
|
8430
|
+
readonly total: io.flow.common.v0.models.Price;
|
|
8431
|
+
readonly details: io.flow.billing.internal.v0.models.PendingBankPaymentDetail[];
|
|
8432
|
+
}
|
|
8433
|
+
interface PendingBankPaymentDetail {
|
|
8434
|
+
readonly transaction: io.flow.billing.internal.v0.models.TransactionReference;
|
|
8435
|
+
readonly statement: io.flow.billing.v0.models.BillingStatementReference;
|
|
8436
|
+
}
|
|
8437
|
+
interface PlatformFeeChange {
|
|
8438
|
+
readonly organization_id: string;
|
|
8439
|
+
readonly key: string;
|
|
8440
|
+
readonly platform_fee: io.flow.billing.internal.v0.unions.PlatformFee;
|
|
8441
|
+
readonly starts_at: string;
|
|
8442
|
+
}
|
|
8443
|
+
interface PlatformFeeChangeForm {
|
|
8444
|
+
readonly platform_fee: io.flow.billing.internal.v0.unions.PlatformFee;
|
|
8445
|
+
readonly starts_at: string;
|
|
8446
|
+
}
|
|
8447
|
+
interface PlatformFeeDisabled {
|
|
8448
|
+
readonly discriminator: 'platform_fee_disabled';
|
|
8449
|
+
readonly attributes?: Record<string, string>;
|
|
8450
|
+
}
|
|
8451
|
+
interface PlatformFeeFlat {
|
|
8452
|
+
readonly discriminator: 'platform_fee_flat';
|
|
8453
|
+
readonly amount: number;
|
|
8454
|
+
readonly currency: string;
|
|
8455
|
+
readonly frequency: io.flow.billing.v0.enums.SubscriptionFrequency;
|
|
8456
|
+
}
|
|
8457
|
+
interface PlatformFeePause {
|
|
8458
|
+
readonly discriminator: 'platform_fee_pause';
|
|
8459
|
+
readonly attributes?: Record<string, string>;
|
|
8460
|
+
}
|
|
8461
|
+
interface PlatformFeePercentage {
|
|
8462
|
+
readonly discriminator: 'platform_fee_percentage';
|
|
8463
|
+
readonly tiers: io.flow.billing.internal.v0.models.PlatformFeePercentageTier[];
|
|
8464
|
+
}
|
|
8465
|
+
interface PlatformFeePercentageTier {
|
|
8466
|
+
readonly minimum_amount_base: number;
|
|
8467
|
+
readonly rate: number;
|
|
8468
|
+
}
|
|
8469
|
+
interface ProcessingTransaction {
|
|
8470
|
+
readonly discriminator: 'processing_transaction';
|
|
8471
|
+
readonly id: string;
|
|
8472
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8473
|
+
readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
|
|
8474
|
+
readonly posted_at: string;
|
|
8475
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8476
|
+
readonly description: string;
|
|
8477
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8478
|
+
readonly created_at: string;
|
|
8479
|
+
readonly original_at?: string;
|
|
8480
|
+
readonly reference: string;
|
|
8481
|
+
readonly primary_identifier?: string;
|
|
8482
|
+
readonly payment_method: string;
|
|
8483
|
+
readonly original: io.flow.common.v0.models.PriceWithBase;
|
|
8484
|
+
readonly original_base_at_spot_rate?: io.flow.common.v0.models.Price;
|
|
8485
|
+
readonly fees: io.flow.billing.internal.v0.models.Fees;
|
|
8486
|
+
readonly components?: io.flow.billing.internal.v0.models.Components;
|
|
8487
|
+
readonly withholdings: io.flow.billing.internal.v0.models.Components;
|
|
8488
|
+
readonly parent_transaction_id?: string;
|
|
8489
|
+
readonly order?: io.flow.billing.internal.v0.models.BillingOrderSummary;
|
|
8490
|
+
readonly spot_rate: number;
|
|
8491
|
+
readonly flow_rate: number;
|
|
8492
|
+
readonly organization_rate: number;
|
|
8493
|
+
readonly flow_margin: number;
|
|
8494
|
+
readonly organization_margin: number;
|
|
8495
|
+
readonly revenue_share?: io.flow.common.v0.models.Price;
|
|
8496
|
+
readonly disposition?: io.flow.billing.internal.v0.enums.BillingStatementReviewStatus;
|
|
8497
|
+
}
|
|
8498
|
+
interface SubscriptionTransaction {
|
|
8499
|
+
readonly discriminator: 'subscription_transaction';
|
|
8500
|
+
readonly id: string;
|
|
8501
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8502
|
+
readonly posted_at: string;
|
|
8503
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8504
|
+
readonly description: string;
|
|
8505
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8506
|
+
readonly created_at: string;
|
|
8507
|
+
readonly period: io.flow.common.v0.models.DatetimeRange;
|
|
8508
|
+
}
|
|
8509
|
+
interface TaxRemittanceTransaction {
|
|
8510
|
+
readonly discriminator: 'tax_remittance_transaction';
|
|
8511
|
+
readonly id: string;
|
|
8512
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8513
|
+
readonly posted_at: string;
|
|
8514
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8515
|
+
readonly description: string;
|
|
8516
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8517
|
+
readonly created_at: string;
|
|
8518
|
+
readonly order: io.flow.billing.internal.v0.models.BillingOrderSummary;
|
|
8519
|
+
readonly invoice: io.flow.billing.internal.v0.models.BillingInvoiceSummary;
|
|
8520
|
+
}
|
|
8521
|
+
interface TransactionReference {
|
|
8522
|
+
readonly id: string;
|
|
8523
|
+
}
|
|
8524
|
+
interface TransferTransaction {
|
|
8525
|
+
readonly discriminator: 'transfer_transaction';
|
|
8526
|
+
readonly id: string;
|
|
8527
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8528
|
+
readonly posted_at: string;
|
|
8529
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8530
|
+
readonly description: string;
|
|
8531
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8532
|
+
readonly created_at: string;
|
|
8533
|
+
readonly method: io.flow.billing.internal.v0.enums.TransferMethod;
|
|
8534
|
+
}
|
|
8535
|
+
interface VirtualCardTransaction {
|
|
8536
|
+
readonly discriminator: 'virtual_card_transaction';
|
|
8537
|
+
readonly id: string;
|
|
8538
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8539
|
+
readonly posted_at: string;
|
|
8540
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8541
|
+
readonly description: string;
|
|
8542
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8543
|
+
readonly created_at: string;
|
|
8544
|
+
readonly virtual_card: io.flow.payment.v0.models.VirtualCardReference;
|
|
8545
|
+
readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
|
|
8546
|
+
readonly original: io.flow.common.v0.models.PriceWithBase;
|
|
8547
|
+
readonly processing_fee: io.flow.billing.internal.v0.models.Fee;
|
|
8548
|
+
}
|
|
8549
|
+
}
|
|
8550
|
+
declare namespace io.flow.billing.internal.v0.unions {
|
|
8551
|
+
type PlatformFee = io.flow.billing.internal.v0.models.PlatformFeePause | io.flow.billing.internal.v0.models.PlatformFeeFlat | io.flow.billing.internal.v0.models.PlatformFeePercentage | io.flow.billing.internal.v0.models.PlatformFeeDisabled;
|
|
8552
|
+
type Transaction = io.flow.billing.internal.v0.models.InvoiceTransaction | io.flow.billing.internal.v0.models.ManualTransaction | io.flow.billing.internal.v0.models.ProcessingTransaction | io.flow.billing.internal.v0.models.SubscriptionTransaction | io.flow.billing.internal.v0.models.TaxRemittanceTransaction | io.flow.billing.internal.v0.models.TransferTransaction | io.flow.billing.internal.v0.models.VirtualCardTransaction | io.flow.billing.internal.v0.models.DisputeTransaction;
|
|
8553
|
+
}
|
|
8554
|
+
declare namespace io.flow.billing.v0.enums {
|
|
8555
|
+
type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'transactions' | 'channel_transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'all';
|
|
8556
|
+
type BillingTransactionStatus = 'pending' | 'posted';
|
|
8557
|
+
type BillingTransactionType = 'manual' | 'subscription' | 'invoice' | 'transfer' | 'adjustment' | 'capture' | 'refund' | 'virtual_card_capture' | 'virtual_card_refund' | 'tax_remittance' | 'fully_subsidized_order' | 'credit_payment' | 'dispute';
|
|
8558
|
+
type SubscriptionFrequency = 'yearly' | 'monthly';
|
|
8559
|
+
}
|
|
8560
|
+
declare namespace io.flow.billing.v0.models {
|
|
8561
|
+
interface Account {
|
|
8562
|
+
readonly id: string;
|
|
8563
|
+
readonly currency: string;
|
|
8564
|
+
readonly updated_at: string;
|
|
8565
|
+
readonly timezone: io.flow.reference.v0.models.Timezone;
|
|
8566
|
+
readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
|
|
8567
|
+
readonly payment_conditions?: string;
|
|
8568
|
+
readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRule;
|
|
8569
|
+
readonly center_key?: string;
|
|
8570
|
+
readonly statistics: io.flow.billing.v0.models.AccountStatistics;
|
|
8571
|
+
readonly next_statement: io.flow.billing.v0.models.NextBillingStatement;
|
|
8572
|
+
readonly created_at: string;
|
|
8573
|
+
}
|
|
8574
|
+
interface AccountContact {
|
|
8575
|
+
readonly id: string;
|
|
8576
|
+
readonly email: string;
|
|
8577
|
+
readonly first_name?: string;
|
|
8578
|
+
readonly last_name?: string;
|
|
8579
|
+
readonly phone?: string;
|
|
8580
|
+
}
|
|
8581
|
+
interface AccountContactForm {
|
|
8582
|
+
readonly email: string;
|
|
8583
|
+
readonly first_name?: string;
|
|
8584
|
+
readonly last_name?: string;
|
|
8585
|
+
readonly phone?: string;
|
|
8586
|
+
}
|
|
8587
|
+
interface AccountDepositRule {
|
|
8588
|
+
readonly target: number;
|
|
8589
|
+
readonly rate: number;
|
|
8590
|
+
}
|
|
8591
|
+
interface AccountDepositRuleForm {
|
|
8592
|
+
readonly target: number;
|
|
8593
|
+
readonly rate: number;
|
|
8594
|
+
}
|
|
8595
|
+
interface AccountReference {
|
|
8596
|
+
readonly id: string;
|
|
8597
|
+
readonly currency: string;
|
|
8598
|
+
}
|
|
8599
|
+
interface AccountStatistics {
|
|
8600
|
+
readonly transfers: io.flow.common.v0.models.Price;
|
|
8601
|
+
readonly balance: io.flow.common.v0.models.Price;
|
|
8602
|
+
readonly pending: io.flow.common.v0.models.Price;
|
|
8603
|
+
}
|
|
8604
|
+
interface BillingStatement {
|
|
8605
|
+
readonly id: string;
|
|
8606
|
+
readonly account: io.flow.billing.v0.models.AccountReference;
|
|
8607
|
+
readonly period: io.flow.common.v0.models.DatetimeRange;
|
|
8608
|
+
readonly totals: io.flow.billing.v0.models.BillingStatementTotals;
|
|
8609
|
+
readonly attachments: io.flow.billing.v0.models.BillingStatementAttachment[];
|
|
8610
|
+
}
|
|
8611
|
+
interface BillingStatementAttachment {
|
|
8612
|
+
readonly key: io.flow.billing.v0.enums.BillingStatementAttachmentKey;
|
|
8613
|
+
readonly name: string;
|
|
8614
|
+
readonly url: string;
|
|
8615
|
+
}
|
|
8616
|
+
interface BillingStatementReference {
|
|
8617
|
+
readonly id: string;
|
|
8618
|
+
}
|
|
8619
|
+
interface BillingStatementTotals {
|
|
8620
|
+
readonly starting_balance: io.flow.common.v0.models.Price;
|
|
8621
|
+
readonly subscription: io.flow.common.v0.models.Price;
|
|
8622
|
+
readonly transfer: io.flow.common.v0.models.Price;
|
|
8623
|
+
readonly invoice: io.flow.common.v0.models.Price;
|
|
8624
|
+
readonly manual: io.flow.common.v0.models.Price;
|
|
8625
|
+
readonly adjustment: io.flow.common.v0.models.Price;
|
|
8626
|
+
readonly capture: io.flow.common.v0.models.Price;
|
|
8627
|
+
readonly refund: io.flow.common.v0.models.Price;
|
|
8628
|
+
readonly virtual_card_capture: io.flow.common.v0.models.Price;
|
|
8629
|
+
readonly virtual_card_refund: io.flow.common.v0.models.Price;
|
|
8630
|
+
readonly tax_remittance: io.flow.common.v0.models.Price;
|
|
8631
|
+
readonly dispute: io.flow.common.v0.models.Price;
|
|
8632
|
+
readonly ending_balance: io.flow.common.v0.models.Price;
|
|
8633
|
+
}
|
|
8634
|
+
interface BillingTransaction {
|
|
8635
|
+
readonly id: string;
|
|
8636
|
+
readonly type: io.flow.billing.v0.enums.BillingTransactionType;
|
|
8637
|
+
readonly status: io.flow.billing.v0.enums.BillingTransactionStatus;
|
|
8638
|
+
readonly posted_at?: string;
|
|
8639
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8640
|
+
readonly description: string;
|
|
8641
|
+
readonly created_at: string;
|
|
8642
|
+
readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
|
|
8643
|
+
}
|
|
8644
|
+
interface ChannelAccount {
|
|
8645
|
+
readonly id: string;
|
|
8646
|
+
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
8647
|
+
readonly account: io.flow.billing.v0.models.SimpleAccountReference;
|
|
8648
|
+
}
|
|
8649
|
+
interface EmailForm {
|
|
8650
|
+
readonly to: string[];
|
|
8651
|
+
readonly cc?: string[];
|
|
8652
|
+
readonly bcc?: string[];
|
|
8653
|
+
}
|
|
8654
|
+
interface NextBillingStatement {
|
|
8655
|
+
readonly date: string;
|
|
8656
|
+
readonly amount: io.flow.common.v0.models.Price;
|
|
8657
|
+
readonly conditions?: string;
|
|
8658
|
+
}
|
|
8659
|
+
interface OrganizationAccount {
|
|
8660
|
+
readonly id: string;
|
|
8661
|
+
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
8662
|
+
readonly account: io.flow.billing.v0.models.SimpleAccountReference;
|
|
8663
|
+
}
|
|
8664
|
+
interface SimpleAccountReference {
|
|
8665
|
+
readonly id: string;
|
|
8666
|
+
}
|
|
8667
|
+
interface Subscription {
|
|
8668
|
+
readonly id: string;
|
|
8669
|
+
readonly organization: string;
|
|
8670
|
+
readonly value: io.flow.common.v0.models.Price;
|
|
8671
|
+
readonly frequency: io.flow.billing.v0.enums.SubscriptionFrequency;
|
|
8672
|
+
readonly starts_at: string;
|
|
8673
|
+
readonly created_at: string;
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8243
8676
|
declare namespace io.flow.harmonization.v0.enums {
|
|
8244
8677
|
type TaxApplicability = 'none' | 'all';
|
|
8245
8678
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
@@ -9562,7 +9995,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
9562
9995
|
type AddressConfigurationSettingProvinceCode = 'iso_3166_2' | 'name';
|
|
9563
9996
|
type ApiCallReferenceId = 'duty_rates_data_event' | 'integration_test' | 'unit_test';
|
|
9564
9997
|
type BillingAllocationKey = 'freight_cost' | 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'fuel_surcharge' | 'remote_area_surcharge';
|
|
9565
|
-
type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'transactions' | '
|
|
9998
|
+
type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'all';
|
|
9566
9999
|
type BillingStatementBatchFileKey = 'archive' | 'summary';
|
|
9567
10000
|
type BillingStatementReviewStatus = 'approved' | 'pending';
|
|
9568
10001
|
type BillingTransactionStatus = 'pending' | 'posted';
|
|
@@ -10944,44 +11377,23 @@ declare namespace io.flow.internal.v0.models {
|
|
|
10944
11377
|
readonly form: io.flow.channel.v0.models.ChannelOrganizationForm;
|
|
10945
11378
|
readonly metadata: io.flow.internal.v0.models.ShopifyMetadata;
|
|
10946
11379
|
}
|
|
10947
|
-
interface ChannelServiceFee {
|
|
10948
|
-
readonly tiers: io.flow.internal.v0.models.ChannelServiceFeeTier[];
|
|
10949
|
-
}
|
|
10950
|
-
interface ChannelServiceFeeTier {
|
|
10951
|
-
readonly minimum_orders: number;
|
|
10952
|
-
readonly amount: number;
|
|
10953
|
-
}
|
|
10954
11380
|
interface ChannelTokenForm {
|
|
10955
11381
|
readonly channel_id: string;
|
|
10956
11382
|
readonly description?: string;
|
|
10957
11383
|
}
|
|
10958
|
-
interface ChannelTransaction {
|
|
10959
|
-
readonly id: string;
|
|
10960
|
-
readonly organization_id: string;
|
|
10961
|
-
readonly processing_transaction_id: string;
|
|
10962
|
-
readonly order_number: string;
|
|
10963
|
-
readonly channel_currency: string;
|
|
10964
|
-
readonly mor_convenience_fee: number;
|
|
10965
|
-
readonly flow_fx_fee_on_mor: number;
|
|
10966
|
-
readonly flow_processing_fee: number;
|
|
10967
|
-
readonly flow_fraud_fee: number;
|
|
10968
|
-
readonly service_fee: number;
|
|
10969
|
-
readonly logistics_fee: number;
|
|
10970
|
-
readonly total: number;
|
|
10971
|
-
}
|
|
10972
11384
|
interface ChannelTransactionDeleted {
|
|
10973
11385
|
readonly discriminator: 'channel_transaction_deleted';
|
|
10974
11386
|
readonly event_id: string;
|
|
10975
11387
|
readonly timestamp: string;
|
|
10976
11388
|
readonly organization: string;
|
|
10977
|
-
readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
|
|
11389
|
+
readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
|
|
10978
11390
|
}
|
|
10979
11391
|
interface ChannelTransactionUpserted {
|
|
10980
11392
|
readonly discriminator: 'channel_transaction_upserted';
|
|
10981
11393
|
readonly event_id: string;
|
|
10982
11394
|
readonly timestamp: string;
|
|
10983
11395
|
readonly organization: string;
|
|
10984
|
-
readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
|
|
11396
|
+
readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
|
|
10985
11397
|
}
|
|
10986
11398
|
interface Chargeback {
|
|
10987
11399
|
readonly id: string;
|
|
@@ -11079,6 +11491,14 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11079
11491
|
readonly discriminator: 'checkout_address_book_contact_removed';
|
|
11080
11492
|
readonly id: string;
|
|
11081
11493
|
}
|
|
11494
|
+
interface CheckoutAddressCountriesFormData {
|
|
11495
|
+
readonly countries: io.flow.internal.v0.models.CheckoutAddressCountry[];
|
|
11496
|
+
}
|
|
11497
|
+
interface CheckoutAddressCountry {
|
|
11498
|
+
readonly name: string;
|
|
11499
|
+
readonly code: string;
|
|
11500
|
+
readonly availability: io.flow.internal.v0.enums.CheckoutAddressType[];
|
|
11501
|
+
}
|
|
11082
11502
|
interface CheckoutAddressPrediction {
|
|
11083
11503
|
readonly description: string;
|
|
11084
11504
|
readonly id: string;
|
|
@@ -11603,6 +12023,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11603
12023
|
readonly field: io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
|
|
11604
12024
|
readonly value: string;
|
|
11605
12025
|
}
|
|
12026
|
+
interface CheckoutInfoAddressCountriesFormData {
|
|
12027
|
+
readonly discriminator: 'checkout_info_address_countries_form_data';
|
|
12028
|
+
readonly data: io.flow.internal.v0.models.CheckoutAddressCountriesFormData;
|
|
12029
|
+
}
|
|
11606
12030
|
interface CheckoutInfoAddressPredictions {
|
|
11607
12031
|
readonly discriminator: 'checkout_info_address_predictions';
|
|
11608
12032
|
readonly key: io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey[];
|
|
@@ -16197,6 +16621,14 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16197
16621
|
readonly from_service_id: string;
|
|
16198
16622
|
readonly to_service_id: string;
|
|
16199
16623
|
}
|
|
16624
|
+
interface OrderServiceFee {
|
|
16625
|
+
readonly currency: string;
|
|
16626
|
+
readonly tiers: io.flow.internal.v0.models.OrderServiceFeeTier[];
|
|
16627
|
+
}
|
|
16628
|
+
interface OrderServiceFeeTier {
|
|
16629
|
+
readonly minimum_orders: number;
|
|
16630
|
+
readonly amount: number;
|
|
16631
|
+
}
|
|
16200
16632
|
interface OrderShipped {
|
|
16201
16633
|
readonly discriminator: 'order_shipped';
|
|
16202
16634
|
readonly event_id: string;
|
|
@@ -18410,7 +18842,7 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
18410
18842
|
type CheckoutFeaturesResponse = io.flow.internal.v0.models.CheckoutFeaturesResponseError | io.flow.internal.v0.models.CheckoutFeaturesResponseSuccess;
|
|
18411
18843
|
type CheckoutForm = io.flow.internal.v0.models.CheckoutOrderForm | io.flow.internal.v0.models.CheckoutOrderNumberForm;
|
|
18412
18844
|
type CheckoutGetResponse = io.flow.internal.v0.models.CheckoutGetResponseError | io.flow.internal.v0.models.CheckoutGetResponseSuccess;
|
|
18413
|
-
type CheckoutInfo = io.flow.internal.v0.models.CheckoutInfoAddressBookContacts | io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.internal.v0.models.CheckoutInfoAddressPredictions | io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder | io.flow.internal.v0.models.CheckoutInfoAnalyticsSession | io.flow.internal.v0.models.CheckoutInfoContent | io.flow.internal.v0.models.CheckoutInfoCountriesFormData | io.flow.internal.v0.models.CheckoutInfoDeliveriesFormData | io.flow.internal.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.internal.v0.models.CheckoutInfoMustUseOrder | io.flow.internal.v0.models.CheckoutInfoNationalIdNumberConfigurationFormData | io.flow.internal.v0.models.CheckoutInfoOptins | io.flow.internal.v0.models.CheckoutInfoOrderSummary | io.flow.internal.v0.models.CheckoutInfoPaymentDetails | io.flow.internal.v0.models.CheckoutInfoPaymentSourceOptions | io.flow.internal.v0.models.CheckoutInfoPaymentsFormData | io.flow.internal.v0.models.CheckoutInfoPublicKey | io.flow.internal.v0.models.CheckoutInfoTranslations;
|
|
18845
|
+
type CheckoutInfo = io.flow.internal.v0.models.CheckoutInfoAddressBookContacts | io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData | io.flow.internal.v0.models.CheckoutInfoAddressCountriesFormData | io.flow.internal.v0.models.CheckoutInfoAddressPredictions | io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder | io.flow.internal.v0.models.CheckoutInfoAnalyticsSession | io.flow.internal.v0.models.CheckoutInfoContent | io.flow.internal.v0.models.CheckoutInfoCountriesFormData | io.flow.internal.v0.models.CheckoutInfoDeliveriesFormData | io.flow.internal.v0.models.CheckoutInfoHostedConfirmationPage | io.flow.internal.v0.models.CheckoutInfoMustUseOrder | io.flow.internal.v0.models.CheckoutInfoNationalIdNumberConfigurationFormData | io.flow.internal.v0.models.CheckoutInfoOptins | io.flow.internal.v0.models.CheckoutInfoOrderSummary | io.flow.internal.v0.models.CheckoutInfoPaymentDetails | io.flow.internal.v0.models.CheckoutInfoPaymentSourceOptions | io.flow.internal.v0.models.CheckoutInfoPaymentsFormData | io.flow.internal.v0.models.CheckoutInfoPublicKey | io.flow.internal.v0.models.CheckoutInfoTranslations;
|
|
18414
18846
|
type CheckoutInitiatePaymentForm = io.flow.internal.v0.models.CheckoutInitiateRedirectPaymentForm | io.flow.internal.v0.models.CheckoutInitiateInlinePaymentForm | io.flow.internal.v0.models.CheckoutInitiateDirectPaymentForm;
|
|
18415
18847
|
type CheckoutInput = io.flow.internal.v0.models.CheckoutInputAddAttributes | io.flow.internal.v0.models.CheckoutInputDeleteAddressBookContact | io.flow.internal.v0.models.CheckoutInputDeleteAddressStreet | io.flow.internal.v0.models.CheckoutInputDeletePaymentSource | io.flow.internal.v0.models.CheckoutInputSaveAddressBook | io.flow.internal.v0.models.CheckoutInputSavePaymentSource | io.flow.internal.v0.models.CheckoutInputSelectAddressBookContact | io.flow.internal.v0.models.CheckoutInputSetAddressCity | io.flow.internal.v0.models.CheckoutInputSetAddressCompany | io.flow.internal.v0.models.CheckoutInputSetAddressCountry | io.flow.internal.v0.models.CheckoutInputSetAddressFirstName | io.flow.internal.v0.models.CheckoutInputSetAddressLastName | io.flow.internal.v0.models.CheckoutInputSetAddressName | io.flow.internal.v0.models.CheckoutInputSetAddressPostal | io.flow.internal.v0.models.CheckoutInputSetAddressProvince | io.flow.internal.v0.models.CheckoutInputSetAddressSource | io.flow.internal.v0.models.CheckoutInputSetAddressStreet | io.flow.internal.v0.models.CheckoutInputSetAttributes | io.flow.internal.v0.models.CheckoutInputSetContactEmail | io.flow.internal.v0.models.CheckoutInputSetContactPhone | io.flow.internal.v0.models.CheckoutInputSetCurrency | io.flow.internal.v0.models.CheckoutInputSetDeliveryOption | io.flow.internal.v0.models.CheckoutInputSetLanguage | io.flow.internal.v0.models.CheckoutInputSetLocale | io.flow.internal.v0.models.CheckoutInputSetNationalIdNumber | io.flow.internal.v0.models.CheckoutInputSetOptinPrompt | io.flow.internal.v0.models.CheckoutInputSetPaymentSource;
|
|
18416
18848
|
type CheckoutOrder = io.flow.internal.v0.models.CheckoutOpenOrder | io.flow.internal.v0.models.CheckoutSubmittedOrder;
|
|
@@ -18746,10 +19178,7 @@ export declare type ChannelOrderAcceptanceStatus = io.flow.internal.v0.enums.Cha
|
|
|
18746
19178
|
export declare type ChannelOrderAcceptanceUpserted = io.flow.internal.v0.models.ChannelOrderAcceptanceUpserted;
|
|
18747
19179
|
export declare type ChannelOrganizationShopify = io.flow.internal.v0.models.ChannelOrganizationShopify;
|
|
18748
19180
|
export declare type ChannelOrganizationShopifyForm = io.flow.internal.v0.models.ChannelOrganizationShopifyForm;
|
|
18749
|
-
export declare type ChannelServiceFee = io.flow.internal.v0.models.ChannelServiceFee;
|
|
18750
|
-
export declare type ChannelServiceFeeTier = io.flow.internal.v0.models.ChannelServiceFeeTier;
|
|
18751
19181
|
export declare type ChannelTokenForm = io.flow.internal.v0.models.ChannelTokenForm;
|
|
18752
|
-
export declare type ChannelTransaction = io.flow.internal.v0.models.ChannelTransaction;
|
|
18753
19182
|
export declare type ChannelTransactionDeleted = io.flow.internal.v0.models.ChannelTransactionDeleted;
|
|
18754
19183
|
export declare type ChannelTransactionUpserted = io.flow.internal.v0.models.ChannelTransactionUpserted;
|
|
18755
19184
|
export declare type Chargeback = io.flow.internal.v0.models.Chargeback;
|
|
@@ -18777,6 +19206,8 @@ export declare type CheckoutAddressBookContact = io.flow.internal.v0.models.Chec
|
|
|
18777
19206
|
export declare type CheckoutAddressBookContactReference = io.flow.internal.v0.models.CheckoutAddressBookContactReference;
|
|
18778
19207
|
export declare type CheckoutAddressBookContactRemoved = io.flow.internal.v0.models.CheckoutAddressBookContactRemoved;
|
|
18779
19208
|
export declare type CheckoutAddressBookEdit = io.flow.internal.v0.unions.CheckoutAddressBookEdit;
|
|
19209
|
+
export declare type CheckoutAddressCountriesFormData = io.flow.internal.v0.models.CheckoutAddressCountriesFormData;
|
|
19210
|
+
export declare type CheckoutAddressCountry = io.flow.internal.v0.models.CheckoutAddressCountry;
|
|
18780
19211
|
export declare type CheckoutAddressPrediction = io.flow.internal.v0.models.CheckoutAddressPrediction;
|
|
18781
19212
|
export declare type CheckoutAddressPredictionMetadata = io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
|
|
18782
19213
|
export declare type CheckoutAddressPredictions = io.flow.internal.v0.models.CheckoutAddressPredictions;
|
|
@@ -18938,6 +19369,7 @@ export declare type CheckoutInfoAddressBookContactsKeyField = io.flow.internal.v
|
|
|
18938
19369
|
export declare type CheckoutInfoAddressConfigurationFormData = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData;
|
|
18939
19370
|
export declare type CheckoutInfoAddressConfigurationFormDataKey = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormDataKey;
|
|
18940
19371
|
export declare type CheckoutInfoAddressConfigurationFormDataKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
|
|
19372
|
+
export declare type CheckoutInfoAddressCountriesFormData = io.flow.internal.v0.models.CheckoutInfoAddressCountriesFormData;
|
|
18941
19373
|
export declare type CheckoutInfoAddressPredictions = io.flow.internal.v0.models.CheckoutInfoAddressPredictions;
|
|
18942
19374
|
export declare type CheckoutInfoAddressPredictionsKey = io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey;
|
|
18943
19375
|
export declare type CheckoutInfoAddressPredictionsKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
|
|
@@ -19892,6 +20324,8 @@ export declare type OrderRevenueRegionDataPoint = io.flow.internal.v0.models.Ord
|
|
|
19892
20324
|
export declare type OrderRevenueTimelineChart = io.flow.internal.v0.models.OrderRevenueTimelineChart;
|
|
19893
20325
|
export declare type OrderRevenueTimelineDataPoint = io.flow.internal.v0.models.OrderRevenueTimelineDataPoint;
|
|
19894
20326
|
export declare type OrderServiceChangeCsvForm = io.flow.internal.v0.models.OrderServiceChangeCsvForm;
|
|
20327
|
+
export declare type OrderServiceFee = io.flow.internal.v0.models.OrderServiceFee;
|
|
20328
|
+
export declare type OrderServiceFeeTier = io.flow.internal.v0.models.OrderServiceFeeTier;
|
|
19895
20329
|
export declare type OrderShipped = io.flow.internal.v0.models.OrderShipped;
|
|
19896
20330
|
export declare type OrderSubmissionForm = io.flow.internal.v0.models.OrderSubmissionForm;
|
|
19897
20331
|
export declare type OrganizationAccount = io.flow.internal.v0.models.OrganizationAccount;
|