@flowio/types 11.21.0 → 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 +546 -100
- package/dist/api.d.ts +5 -43
- package/package.json +2 -2
- package/src/api-internal.ts +823 -242
- package/src/api.ts +6 -50
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;
|
|
@@ -2818,6 +2837,7 @@ declare namespace io.flow.payment.v0.models {
|
|
|
2818
2837
|
readonly payment_state?: string;
|
|
2819
2838
|
readonly payer_email?: string;
|
|
2820
2839
|
readonly payer_status?: string;
|
|
2840
|
+
readonly approval_url?: string;
|
|
2821
2841
|
}
|
|
2822
2842
|
interface PaypalAuthorizationForm {
|
|
2823
2843
|
readonly discriminator: 'paypal_authorization_form';
|
|
@@ -3116,8 +3136,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
3116
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';
|
|
3117
3137
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
3118
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';
|
|
3119
|
-
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
3120
|
-
type KlarnaProduct = 'payment';
|
|
3121
3139
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
3122
3140
|
type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
|
|
3123
3141
|
type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
|
|
@@ -3353,7 +3371,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3353
3371
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3354
3372
|
}
|
|
3355
3373
|
interface OrderItem {
|
|
3356
|
-
readonly object
|
|
3374
|
+
readonly object: string;
|
|
3357
3375
|
readonly amount: number;
|
|
3358
3376
|
readonly currency: string;
|
|
3359
3377
|
readonly description?: string;
|
|
@@ -3572,7 +3590,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3572
3590
|
}
|
|
3573
3591
|
interface Shipping {
|
|
3574
3592
|
readonly address: io.flow.stripe.v0.models.Address;
|
|
3575
|
-
readonly name
|
|
3593
|
+
readonly name: string;
|
|
3576
3594
|
readonly phone?: string;
|
|
3577
3595
|
}
|
|
3578
3596
|
interface Source {
|
|
@@ -3594,7 +3612,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3594
3612
|
readonly status: io.flow.stripe.v0.enums.SourceStatus;
|
|
3595
3613
|
readonly type: io.flow.stripe.v0.enums.SourceType;
|
|
3596
3614
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
3597
|
-
readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
|
|
3598
3615
|
}
|
|
3599
3616
|
interface SourceCard {
|
|
3600
3617
|
readonly exp_month: number;
|
|
@@ -3622,47 +3639,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3622
3639
|
readonly first_name?: string;
|
|
3623
3640
|
readonly last_name?: string;
|
|
3624
3641
|
readonly client_token: string;
|
|
3625
|
-
readonly payment_method_categories?: string;
|
|
3626
|
-
readonly purchase_country?: string;
|
|
3627
|
-
readonly shipping_first_name?: string;
|
|
3628
|
-
readonly shipping_last_name?: string;
|
|
3629
|
-
readonly locale?: string;
|
|
3630
|
-
readonly pay_later_name?: string;
|
|
3631
|
-
readonly pay_later_asset_urls_standard?: string;
|
|
3632
|
-
readonly pay_later_asset_urls_descriptive?: string;
|
|
3633
|
-
readonly pay_now_name?: string;
|
|
3634
|
-
readonly pay_now_asset_urls_standard?: string;
|
|
3635
|
-
readonly pay_now_asset_urls_descriptive?: string;
|
|
3636
|
-
readonly pay_over_time_name?: string;
|
|
3637
|
-
readonly pay_over_time_asset_urls_standard?: string;
|
|
3638
|
-
readonly pay_over_time_asset_urls_descriptive?: string;
|
|
3639
|
-
readonly direct_bank_transfer_name?: string;
|
|
3640
|
-
readonly direct_bank_transfer_asset_urls_standard?: string;
|
|
3641
|
-
readonly direct_bank_transfer_asset_urls_descriptive?: string;
|
|
3642
|
-
readonly direct_debit_name?: string;
|
|
3643
|
-
readonly direct_debit_asset_urls_standard?: string;
|
|
3644
|
-
readonly direct_debit_asset_urls_descriptive?: string;
|
|
3645
3642
|
}
|
|
3646
3643
|
interface SourceKlarnaRequest {
|
|
3647
3644
|
readonly first_name: string;
|
|
3648
3645
|
readonly last_name: string;
|
|
3649
|
-
readonly purchase_country?: string;
|
|
3650
|
-
readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
|
|
3651
3646
|
readonly attachment?: string;
|
|
3652
|
-
readonly shipping_first_name?: string;
|
|
3653
|
-
readonly shipping_last_name?: string;
|
|
3654
|
-
readonly locale?: string;
|
|
3655
|
-
}
|
|
3656
|
-
interface SourceOrder {
|
|
3657
|
-
readonly amount?: number;
|
|
3658
|
-
readonly currency?: string;
|
|
3659
|
-
readonly email?: string;
|
|
3660
|
-
readonly items?: io.flow.stripe.v0.models.OrderItem[];
|
|
3661
|
-
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3662
|
-
}
|
|
3663
|
-
interface SourceOrderRequest {
|
|
3664
|
-
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
3665
|
-
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3666
3647
|
}
|
|
3667
3648
|
interface SourceRequest {
|
|
3668
3649
|
readonly type?: io.flow.stripe.v0.enums.SourceType;
|
|
@@ -3679,7 +3660,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3679
3660
|
readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
|
|
3680
3661
|
readonly token?: string;
|
|
3681
3662
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
3682
|
-
readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
|
|
3683
3663
|
}
|
|
3684
3664
|
interface Stripe3Ds2Fingerprint {
|
|
3685
3665
|
readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
|
|
@@ -4576,7 +4556,7 @@ declare namespace io.flow.brickftp.v0.models {
|
|
|
4576
4556
|
readonly id: number;
|
|
4577
4557
|
readonly path: string;
|
|
4578
4558
|
readonly behavior: io.flow.brickftp.v0.enums.BehaviorType;
|
|
4579
|
-
readonly value:
|
|
4559
|
+
readonly value: string[];
|
|
4580
4560
|
}
|
|
4581
4561
|
interface BehaviorForm {
|
|
4582
4562
|
readonly path: string;
|
|
@@ -4708,10 +4688,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4708
4688
|
readonly value: number;
|
|
4709
4689
|
readonly currency: string;
|
|
4710
4690
|
}
|
|
4711
|
-
interface Applepay {
|
|
4712
|
-
readonly type: 'applepay';
|
|
4713
|
-
readonly applePayToken: string;
|
|
4714
|
-
}
|
|
4715
4691
|
interface Authentication {
|
|
4716
4692
|
readonly 'threeds2.fingerprintToken'?: string;
|
|
4717
4693
|
readonly 'threeds2.challengeToken'?: string;
|
|
@@ -4738,8 +4714,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4738
4714
|
readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
|
|
4739
4715
|
readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
|
|
4740
4716
|
readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
|
|
4741
|
-
readonly mcc?: string;
|
|
4742
|
-
readonly metadata?: any;
|
|
4743
4717
|
}
|
|
4744
4718
|
interface AuthorizeRequest3D {
|
|
4745
4719
|
readonly merchantAccount: string;
|
|
@@ -4873,12 +4847,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4873
4847
|
readonly details: any;
|
|
4874
4848
|
readonly paymentData?: string;
|
|
4875
4849
|
}
|
|
4876
|
-
interface PaymentDetailsV663Ds2Challenge {
|
|
4877
|
-
readonly 'threeds2.challengeResult': string;
|
|
4878
|
-
}
|
|
4879
|
-
interface PaymentDetailsV663Ds2Fingerprint {
|
|
4880
|
-
readonly 'threeds2.fingerprint': string;
|
|
4881
|
-
}
|
|
4882
4850
|
interface PaymentRequest {
|
|
4883
4851
|
readonly reference: string;
|
|
4884
4852
|
readonly merchantAccount: string;
|
|
@@ -4900,9 +4868,7 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4900
4868
|
readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
|
|
4901
4869
|
readonly origin?: string;
|
|
4902
4870
|
readonly channel?: io.flow.adyen.v0.enums.Channel;
|
|
4903
|
-
readonly
|
|
4904
|
-
readonly mcc?: string;
|
|
4905
|
-
readonly metadata?: any;
|
|
4871
|
+
readonly returnURL?: string;
|
|
4906
4872
|
}
|
|
4907
4873
|
interface PaymentResponse {
|
|
4908
4874
|
readonly resultCode: io.flow.adyen.v0.enums.ResultCode;
|
|
@@ -4950,13 +4916,6 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4950
4916
|
readonly number: string;
|
|
4951
4917
|
readonly cvc?: string;
|
|
4952
4918
|
}
|
|
4953
|
-
interface SdkV3OnCompleteData {
|
|
4954
|
-
readonly details: any;
|
|
4955
|
-
readonly payment_data?: string;
|
|
4956
|
-
}
|
|
4957
|
-
interface SdkV3OnCompleteResult {
|
|
4958
|
-
readonly data: io.flow.adyen.v0.models.SdkV3OnCompleteData;
|
|
4959
|
-
}
|
|
4960
4919
|
interface ThreeDSecureData {
|
|
4961
4920
|
readonly authenticationResponse?: string;
|
|
4962
4921
|
readonly cavv?: string;
|
|
@@ -4982,7 +4941,7 @@ declare namespace io.flow.adyen.v0.models {
|
|
|
4982
4941
|
}
|
|
4983
4942
|
declare namespace io.flow.adyen.v0.unions {
|
|
4984
4943
|
type BrowserInfo = io.flow.adyen.v0.models.BrowserInfo3Ds1 | io.flow.adyen.v0.models.BrowserInfo3Ds2;
|
|
4985
|
-
type PaymentMethodData = io.flow.adyen.v0.models.Scheme
|
|
4944
|
+
type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
|
|
4986
4945
|
}
|
|
4987
4946
|
declare namespace io.flow.order.management.v0.enums {
|
|
4988
4947
|
type CancelReason = 'out_of_stock' | 'consumer_requested' | 'flow_cancel';
|
|
@@ -7646,13 +7605,10 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
7646
7605
|
interface CryptoPaymentInfo {
|
|
7647
7606
|
readonly publishable_key: string;
|
|
7648
7607
|
}
|
|
7649
|
-
interface Error {
|
|
7650
|
-
readonly type?: io.flow.crypto.v0.enums.ErrorType;
|
|
7651
|
-
readonly code?: string;
|
|
7652
|
-
readonly param?: string;
|
|
7653
|
-
}
|
|
7654
7608
|
interface ErrorResponse {
|
|
7655
|
-
readonly
|
|
7609
|
+
readonly type: io.flow.crypto.v0.enums.ErrorType;
|
|
7610
|
+
readonly code: string;
|
|
7611
|
+
readonly param: string;
|
|
7656
7612
|
}
|
|
7657
7613
|
interface Payment {
|
|
7658
7614
|
readonly id: string;
|
|
@@ -7671,6 +7627,7 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
7671
7627
|
readonly recipient: string;
|
|
7672
7628
|
readonly refunded: boolean;
|
|
7673
7629
|
readonly status: io.flow.crypto.v0.enums.PaymentStatus;
|
|
7630
|
+
readonly time_window: number;
|
|
7674
7631
|
}
|
|
7675
7632
|
interface PaymentRequest {
|
|
7676
7633
|
readonly amount: number;
|
|
@@ -8239,6 +8196,483 @@ declare namespace io.flow.item.v0.models {
|
|
|
8239
8196
|
readonly price_attributes?: Record<string, io.flow.item.v0.models.LocalItemAttributePricing>;
|
|
8240
8197
|
}
|
|
8241
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
|
+
}
|
|
8242
8676
|
declare namespace io.flow.harmonization.v0.enums {
|
|
8243
8677
|
type TaxApplicability = 'none' | 'all';
|
|
8244
8678
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
@@ -9561,7 +9995,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
9561
9995
|
type AddressConfigurationSettingProvinceCode = 'iso_3166_2' | 'name';
|
|
9562
9996
|
type ApiCallReferenceId = 'duty_rates_data_event' | 'integration_test' | 'unit_test';
|
|
9563
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';
|
|
9564
|
-
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';
|
|
9565
9999
|
type BillingStatementBatchFileKey = 'archive' | 'summary';
|
|
9566
10000
|
type BillingStatementReviewStatus = 'approved' | 'pending';
|
|
9567
10001
|
type BillingTransactionStatus = 'pending' | 'posted';
|
|
@@ -10943,44 +11377,23 @@ declare namespace io.flow.internal.v0.models {
|
|
|
10943
11377
|
readonly form: io.flow.channel.v0.models.ChannelOrganizationForm;
|
|
10944
11378
|
readonly metadata: io.flow.internal.v0.models.ShopifyMetadata;
|
|
10945
11379
|
}
|
|
10946
|
-
interface ChannelServiceFee {
|
|
10947
|
-
readonly tiers: io.flow.internal.v0.models.ChannelServiceFeeTier[];
|
|
10948
|
-
}
|
|
10949
|
-
interface ChannelServiceFeeTier {
|
|
10950
|
-
readonly minimum_orders: number;
|
|
10951
|
-
readonly amount: number;
|
|
10952
|
-
}
|
|
10953
11380
|
interface ChannelTokenForm {
|
|
10954
11381
|
readonly channel_id: string;
|
|
10955
11382
|
readonly description?: string;
|
|
10956
11383
|
}
|
|
10957
|
-
interface ChannelTransaction {
|
|
10958
|
-
readonly id: string;
|
|
10959
|
-
readonly organization_id: string;
|
|
10960
|
-
readonly processing_transaction_id: string;
|
|
10961
|
-
readonly order_number: string;
|
|
10962
|
-
readonly channel_currency: string;
|
|
10963
|
-
readonly mor_convenience_fee: number;
|
|
10964
|
-
readonly flow_fx_fee_on_mor: number;
|
|
10965
|
-
readonly flow_processing_fee: number;
|
|
10966
|
-
readonly flow_fraud_fee: number;
|
|
10967
|
-
readonly service_fee: number;
|
|
10968
|
-
readonly logistics_fee: number;
|
|
10969
|
-
readonly total: number;
|
|
10970
|
-
}
|
|
10971
11384
|
interface ChannelTransactionDeleted {
|
|
10972
11385
|
readonly discriminator: 'channel_transaction_deleted';
|
|
10973
11386
|
readonly event_id: string;
|
|
10974
11387
|
readonly timestamp: string;
|
|
10975
11388
|
readonly organization: string;
|
|
10976
|
-
readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
|
|
11389
|
+
readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
|
|
10977
11390
|
}
|
|
10978
11391
|
interface ChannelTransactionUpserted {
|
|
10979
11392
|
readonly discriminator: 'channel_transaction_upserted';
|
|
10980
11393
|
readonly event_id: string;
|
|
10981
11394
|
readonly timestamp: string;
|
|
10982
11395
|
readonly organization: string;
|
|
10983
|
-
readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
|
|
11396
|
+
readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
|
|
10984
11397
|
}
|
|
10985
11398
|
interface Chargeback {
|
|
10986
11399
|
readonly id: string;
|
|
@@ -11078,6 +11491,14 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11078
11491
|
readonly discriminator: 'checkout_address_book_contact_removed';
|
|
11079
11492
|
readonly id: string;
|
|
11080
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
|
+
}
|
|
11081
11502
|
interface CheckoutAddressPrediction {
|
|
11082
11503
|
readonly description: string;
|
|
11083
11504
|
readonly id: string;
|
|
@@ -11602,6 +12023,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11602
12023
|
readonly field: io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
|
|
11603
12024
|
readonly value: string;
|
|
11604
12025
|
}
|
|
12026
|
+
interface CheckoutInfoAddressCountriesFormData {
|
|
12027
|
+
readonly discriminator: 'checkout_info_address_countries_form_data';
|
|
12028
|
+
readonly data: io.flow.internal.v0.models.CheckoutAddressCountriesFormData;
|
|
12029
|
+
}
|
|
11605
12030
|
interface CheckoutInfoAddressPredictions {
|
|
11606
12031
|
readonly discriminator: 'checkout_info_address_predictions';
|
|
11607
12032
|
readonly key: io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey[];
|
|
@@ -12849,6 +13274,16 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12849
13274
|
readonly classification: string;
|
|
12850
13275
|
readonly classification_model_id: string;
|
|
12851
13276
|
}
|
|
13277
|
+
interface ClassifiedProductDetail {
|
|
13278
|
+
readonly product_id: string;
|
|
13279
|
+
readonly description?: string;
|
|
13280
|
+
readonly items: io.flow.common.v0.models.CatalogItemSummary[];
|
|
13281
|
+
readonly images: io.flow.catalog.v0.models.Image[];
|
|
13282
|
+
readonly categories: string[];
|
|
13283
|
+
readonly product_harmonization: io.flow.internal.v0.models.ClassificationProductHarmonization;
|
|
13284
|
+
readonly status: io.flow.internal.v0.enums.ItemClassificationStatus;
|
|
13285
|
+
readonly classified_by: string;
|
|
13286
|
+
}
|
|
12852
13287
|
interface Compliance {
|
|
12853
13288
|
readonly id: string;
|
|
12854
13289
|
readonly destination: string;
|
|
@@ -16186,6 +16621,14 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16186
16621
|
readonly from_service_id: string;
|
|
16187
16622
|
readonly to_service_id: string;
|
|
16188
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
|
+
}
|
|
16189
16632
|
interface OrderShipped {
|
|
16190
16633
|
readonly discriminator: 'order_shipped';
|
|
16191
16634
|
readonly event_id: string;
|
|
@@ -18399,7 +18842,7 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
18399
18842
|
type CheckoutFeaturesResponse = io.flow.internal.v0.models.CheckoutFeaturesResponseError | io.flow.internal.v0.models.CheckoutFeaturesResponseSuccess;
|
|
18400
18843
|
type CheckoutForm = io.flow.internal.v0.models.CheckoutOrderForm | io.flow.internal.v0.models.CheckoutOrderNumberForm;
|
|
18401
18844
|
type CheckoutGetResponse = io.flow.internal.v0.models.CheckoutGetResponseError | io.flow.internal.v0.models.CheckoutGetResponseSuccess;
|
|
18402
|
-
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;
|
|
18403
18846
|
type CheckoutInitiatePaymentForm = io.flow.internal.v0.models.CheckoutInitiateRedirectPaymentForm | io.flow.internal.v0.models.CheckoutInitiateInlinePaymentForm | io.flow.internal.v0.models.CheckoutInitiateDirectPaymentForm;
|
|
18404
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;
|
|
18405
18848
|
type CheckoutOrder = io.flow.internal.v0.models.CheckoutOpenOrder | io.flow.internal.v0.models.CheckoutSubmittedOrder;
|
|
@@ -18735,10 +19178,7 @@ export declare type ChannelOrderAcceptanceStatus = io.flow.internal.v0.enums.Cha
|
|
|
18735
19178
|
export declare type ChannelOrderAcceptanceUpserted = io.flow.internal.v0.models.ChannelOrderAcceptanceUpserted;
|
|
18736
19179
|
export declare type ChannelOrganizationShopify = io.flow.internal.v0.models.ChannelOrganizationShopify;
|
|
18737
19180
|
export declare type ChannelOrganizationShopifyForm = io.flow.internal.v0.models.ChannelOrganizationShopifyForm;
|
|
18738
|
-
export declare type ChannelServiceFee = io.flow.internal.v0.models.ChannelServiceFee;
|
|
18739
|
-
export declare type ChannelServiceFeeTier = io.flow.internal.v0.models.ChannelServiceFeeTier;
|
|
18740
19181
|
export declare type ChannelTokenForm = io.flow.internal.v0.models.ChannelTokenForm;
|
|
18741
|
-
export declare type ChannelTransaction = io.flow.internal.v0.models.ChannelTransaction;
|
|
18742
19182
|
export declare type ChannelTransactionDeleted = io.flow.internal.v0.models.ChannelTransactionDeleted;
|
|
18743
19183
|
export declare type ChannelTransactionUpserted = io.flow.internal.v0.models.ChannelTransactionUpserted;
|
|
18744
19184
|
export declare type Chargeback = io.flow.internal.v0.models.Chargeback;
|
|
@@ -18766,6 +19206,8 @@ export declare type CheckoutAddressBookContact = io.flow.internal.v0.models.Chec
|
|
|
18766
19206
|
export declare type CheckoutAddressBookContactReference = io.flow.internal.v0.models.CheckoutAddressBookContactReference;
|
|
18767
19207
|
export declare type CheckoutAddressBookContactRemoved = io.flow.internal.v0.models.CheckoutAddressBookContactRemoved;
|
|
18768
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;
|
|
18769
19211
|
export declare type CheckoutAddressPrediction = io.flow.internal.v0.models.CheckoutAddressPrediction;
|
|
18770
19212
|
export declare type CheckoutAddressPredictionMetadata = io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
|
|
18771
19213
|
export declare type CheckoutAddressPredictions = io.flow.internal.v0.models.CheckoutAddressPredictions;
|
|
@@ -18927,6 +19369,7 @@ export declare type CheckoutInfoAddressBookContactsKeyField = io.flow.internal.v
|
|
|
18927
19369
|
export declare type CheckoutInfoAddressConfigurationFormData = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData;
|
|
18928
19370
|
export declare type CheckoutInfoAddressConfigurationFormDataKey = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormDataKey;
|
|
18929
19371
|
export declare type CheckoutInfoAddressConfigurationFormDataKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
|
|
19372
|
+
export declare type CheckoutInfoAddressCountriesFormData = io.flow.internal.v0.models.CheckoutInfoAddressCountriesFormData;
|
|
18930
19373
|
export declare type CheckoutInfoAddressPredictions = io.flow.internal.v0.models.CheckoutInfoAddressPredictions;
|
|
18931
19374
|
export declare type CheckoutInfoAddressPredictionsKey = io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey;
|
|
18932
19375
|
export declare type CheckoutInfoAddressPredictionsKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
|
|
@@ -19297,6 +19740,7 @@ export declare type ClassificationStatistics = io.flow.internal.v0.models.Classi
|
|
|
19297
19740
|
export declare type ClassificationTaxonomy = io.flow.internal.v0.unions.ClassificationTaxonomy;
|
|
19298
19741
|
export declare type ClassificationWrapper = io.flow.internal.v0.models.ClassificationWrapper;
|
|
19299
19742
|
export declare type ClassifiedProduct = io.flow.internal.v0.models.ClassifiedProduct;
|
|
19743
|
+
export declare type ClassifiedProductDetail = io.flow.internal.v0.models.ClassifiedProductDetail;
|
|
19300
19744
|
export declare type Compliance = io.flow.internal.v0.models.Compliance;
|
|
19301
19745
|
export declare type ComplianceData = io.flow.internal.v0.unions.ComplianceData;
|
|
19302
19746
|
export declare type ComplianceForm = io.flow.internal.v0.unions.ComplianceForm;
|
|
@@ -19880,6 +20324,8 @@ export declare type OrderRevenueRegionDataPoint = io.flow.internal.v0.models.Ord
|
|
|
19880
20324
|
export declare type OrderRevenueTimelineChart = io.flow.internal.v0.models.OrderRevenueTimelineChart;
|
|
19881
20325
|
export declare type OrderRevenueTimelineDataPoint = io.flow.internal.v0.models.OrderRevenueTimelineDataPoint;
|
|
19882
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;
|
|
19883
20329
|
export declare type OrderShipped = io.flow.internal.v0.models.OrderShipped;
|
|
19884
20330
|
export declare type OrderSubmissionForm = io.flow.internal.v0.models.OrderSubmissionForm;
|
|
19885
20331
|
export declare type OrganizationAccount = io.flow.internal.v0.models.OrganizationAccount;
|