@flowio/types 11.19.35 → 11.20.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 +382 -132
- package/dist/api.d.ts +199 -53
- package/package.json +2 -2
- package/src/api-internal.ts +539 -189
- package/src/api.ts +270 -55
package/src/api.ts
CHANGED
|
@@ -251,13 +251,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
251
251
|
| 'source.canceled'
|
|
252
252
|
| 'source.chargeable'
|
|
253
253
|
| 'source.failed';
|
|
254
|
-
type KlarnaPaymentMethodCategoryType =
|
|
255
|
-
| 'direct_bank_transfer'
|
|
256
|
-
| 'direct_debit'
|
|
257
|
-
| 'pay_later'
|
|
258
|
-
| 'pay_now'
|
|
259
|
-
| 'pay_over_time';
|
|
260
|
-
type KlarnaProduct = 'payment';
|
|
261
254
|
type NetworkStatus =
|
|
262
255
|
| 'approved_by_network'
|
|
263
256
|
| 'declined_by_network'
|
|
@@ -561,7 +554,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
561
554
|
}
|
|
562
555
|
|
|
563
556
|
interface OrderItem {
|
|
564
|
-
readonly object
|
|
557
|
+
readonly object: string;
|
|
565
558
|
readonly amount: number;
|
|
566
559
|
readonly currency: string;
|
|
567
560
|
readonly description?: string;
|
|
@@ -803,7 +796,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
803
796
|
|
|
804
797
|
interface Shipping {
|
|
805
798
|
readonly address: io.flow.stripe.v0.models.Address;
|
|
806
|
-
readonly name
|
|
799
|
+
readonly name: string;
|
|
807
800
|
readonly phone?: string;
|
|
808
801
|
}
|
|
809
802
|
|
|
@@ -826,7 +819,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
826
819
|
readonly status: io.flow.stripe.v0.enums.SourceStatus;
|
|
827
820
|
readonly type: io.flow.stripe.v0.enums.SourceType;
|
|
828
821
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
829
|
-
readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
|
|
830
822
|
}
|
|
831
823
|
|
|
832
824
|
interface SourceCard {
|
|
@@ -857,50 +849,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
857
849
|
readonly first_name?: string;
|
|
858
850
|
readonly last_name?: string;
|
|
859
851
|
readonly client_token: string;
|
|
860
|
-
readonly payment_method_categories?: string;
|
|
861
|
-
readonly purchase_country?: string;
|
|
862
|
-
readonly shipping_first_name?: string;
|
|
863
|
-
readonly shipping_last_name?: string;
|
|
864
|
-
readonly locale?: string;
|
|
865
|
-
readonly pay_later_name?: string;
|
|
866
|
-
readonly pay_later_asset_urls_standard?: string;
|
|
867
|
-
readonly pay_later_asset_urls_descriptive?: string;
|
|
868
|
-
readonly pay_now_name?: string;
|
|
869
|
-
readonly pay_now_asset_urls_standard?: string;
|
|
870
|
-
readonly pay_now_asset_urls_descriptive?: string;
|
|
871
|
-
readonly pay_over_time_name?: string;
|
|
872
|
-
readonly pay_over_time_asset_urls_standard?: string;
|
|
873
|
-
readonly pay_over_time_asset_urls_descriptive?: string;
|
|
874
|
-
readonly direct_bank_transfer_name?: string;
|
|
875
|
-
readonly direct_bank_transfer_asset_urls_standard?: string;
|
|
876
|
-
readonly direct_bank_transfer_asset_urls_descriptive?: string;
|
|
877
|
-
readonly direct_debit_name?: string;
|
|
878
|
-
readonly direct_debit_asset_urls_standard?: string;
|
|
879
|
-
readonly direct_debit_asset_urls_descriptive?: string;
|
|
880
852
|
}
|
|
881
853
|
|
|
882
854
|
interface SourceKlarnaRequest {
|
|
883
855
|
readonly first_name: string;
|
|
884
856
|
readonly last_name: string;
|
|
885
|
-
readonly purchase_country?: string;
|
|
886
|
-
readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
|
|
887
857
|
readonly attachment?: string;
|
|
888
|
-
readonly shipping_first_name?: string;
|
|
889
|
-
readonly shipping_last_name?: string;
|
|
890
|
-
readonly locale?: string;
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
interface SourceOrder {
|
|
894
|
-
readonly amount?: number;
|
|
895
|
-
readonly currency?: string;
|
|
896
|
-
readonly email?: string;
|
|
897
|
-
readonly items?: io.flow.stripe.v0.models.OrderItem[];
|
|
898
|
-
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
interface SourceOrderRequest {
|
|
902
|
-
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
903
|
-
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
904
858
|
}
|
|
905
859
|
|
|
906
860
|
interface SourceRequest {
|
|
@@ -918,7 +872,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
918
872
|
readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
|
|
919
873
|
readonly token?: string;
|
|
920
874
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
921
|
-
readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
|
|
922
875
|
}
|
|
923
876
|
|
|
924
877
|
interface Stripe3Ds2Fingerprint {
|
|
@@ -2000,6 +1953,16 @@ declare namespace io.flow.channel.internal.v0.enums {
|
|
|
2000
1953
|
type ChannelCurrencyCapability =
|
|
2001
1954
|
| 'payment_authorizations'
|
|
2002
1955
|
| 'settlement_currency';
|
|
1956
|
+
type ChannelOrderAcceptanceRejectionReason =
|
|
1957
|
+
| 'unsupported_origin_country'
|
|
1958
|
+
| 'unsupported_destination_country'
|
|
1959
|
+
| 'domestic_order'
|
|
1960
|
+
| 'order_contains_gift_card';
|
|
1961
|
+
type ChannelOrderAcceptanceStatus =
|
|
1962
|
+
| 'accepted'
|
|
1963
|
+
| 'rejected'
|
|
1964
|
+
| 'held_for_review'
|
|
1965
|
+
| 'reviewed';
|
|
2003
1966
|
}
|
|
2004
1967
|
|
|
2005
1968
|
declare namespace io.flow.channel.internal.v0.models {
|
|
@@ -2028,6 +1991,36 @@ declare namespace io.flow.channel.internal.v0.models {
|
|
|
2028
1991
|
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2029
1992
|
readonly organization_id_prefix?: string;
|
|
2030
1993
|
}
|
|
1994
|
+
|
|
1995
|
+
interface ChannelMembership {
|
|
1996
|
+
readonly id: string;
|
|
1997
|
+
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
1998
|
+
readonly user: io.flow.common.v0.unions.ExpandableUser;
|
|
1999
|
+
readonly role?: io.flow.common.v0.enums.Role;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
interface ChannelMembershipForm {
|
|
2003
|
+
readonly channel_id: string;
|
|
2004
|
+
readonly user_id: string;
|
|
2005
|
+
readonly role?: io.flow.common.v0.enums.Role;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
interface ChannelMembershipPutForm {
|
|
2009
|
+
readonly role?: io.flow.common.v0.enums.Role;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
interface ChannelOrderAcceptance {
|
|
2013
|
+
readonly id: string;
|
|
2014
|
+
readonly organization_id: string;
|
|
2015
|
+
readonly order_number: string;
|
|
2016
|
+
readonly channel_id: string;
|
|
2017
|
+
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
2018
|
+
readonly reasons: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason[];
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
interface ChannelOrderAcceptanceForm {
|
|
2022
|
+
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
2023
|
+
}
|
|
2031
2024
|
}
|
|
2032
2025
|
|
|
2033
2026
|
declare namespace io.flow.common.v0.enums {
|
|
@@ -2083,7 +2076,11 @@ declare namespace io.flow.common.v0.enums {
|
|
|
2083
2076
|
type MeasurementSystem = 'imperial' | 'metric';
|
|
2084
2077
|
type MerchantOfRecord = 'flow' | 'organization';
|
|
2085
2078
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
2086
|
-
type OrganizationStatus =
|
|
2079
|
+
type OrganizationStatus =
|
|
2080
|
+
| 'active'
|
|
2081
|
+
| 'inactive'
|
|
2082
|
+
| 'deactivated'
|
|
2083
|
+
| 'provisioned';
|
|
2087
2084
|
type PriceBookStatus = 'draft' | 'published' | 'archived';
|
|
2088
2085
|
type Role = 'admin' | 'member';
|
|
2089
2086
|
type RoundingMethod = 'up' | 'down' | 'nearest';
|
|
@@ -2522,10 +2519,16 @@ declare namespace io.flow.token.v0.models {
|
|
|
2522
2519
|
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2523
2520
|
readonly user: io.flow.common.v0.models.UserReference;
|
|
2524
2521
|
readonly partial: string;
|
|
2522
|
+
readonly cleartext?: string;
|
|
2525
2523
|
readonly created_at: string;
|
|
2526
2524
|
readonly description?: string;
|
|
2527
2525
|
}
|
|
2528
2526
|
|
|
2527
|
+
interface ChannelTokenForm {
|
|
2528
|
+
readonly channel_id: string;
|
|
2529
|
+
readonly description?: string;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2529
2532
|
interface ChannelTokenReference {
|
|
2530
2533
|
readonly discriminator: 'channel_token_reference';
|
|
2531
2534
|
readonly id: string;
|
|
@@ -2553,6 +2556,11 @@ declare namespace io.flow.token.v0.models {
|
|
|
2553
2556
|
readonly description?: string;
|
|
2554
2557
|
}
|
|
2555
2558
|
|
|
2559
|
+
interface OrganizationTokenFormV2 {
|
|
2560
|
+
readonly organization_id: string;
|
|
2561
|
+
readonly description?: string;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2556
2564
|
interface OrganizationTokenReference {
|
|
2557
2565
|
readonly discriminator: 'organization_token_reference';
|
|
2558
2566
|
readonly id: string;
|
|
@@ -2561,6 +2569,23 @@ declare namespace io.flow.token.v0.models {
|
|
|
2561
2569
|
readonly user: io.flow.common.v0.models.UserReference;
|
|
2562
2570
|
}
|
|
2563
2571
|
|
|
2572
|
+
interface OrganizationTokenV2 {
|
|
2573
|
+
readonly discriminator: 'organization_token_v2';
|
|
2574
|
+
readonly id: string;
|
|
2575
|
+
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2576
|
+
readonly user: io.flow.common.v0.models.UserReference;
|
|
2577
|
+
readonly partial: string;
|
|
2578
|
+
readonly cleartext?: string;
|
|
2579
|
+
readonly created_at: string;
|
|
2580
|
+
readonly description?: string;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
interface OrganizationTokenV2Reference {
|
|
2584
|
+
readonly discriminator: 'organization_token_v2_reference';
|
|
2585
|
+
readonly id: string;
|
|
2586
|
+
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2564
2589
|
interface PartnerToken {
|
|
2565
2590
|
readonly discriminator: 'partner_token';
|
|
2566
2591
|
readonly id: string;
|
|
@@ -2606,10 +2631,12 @@ declare namespace io.flow.token.v0.unions {
|
|
|
2606
2631
|
type Token =
|
|
2607
2632
|
| io.flow.token.v0.models.ChannelToken
|
|
2608
2633
|
| io.flow.token.v0.models.OrganizationToken
|
|
2634
|
+
| io.flow.token.v0.models.OrganizationTokenV2
|
|
2609
2635
|
| io.flow.token.v0.models.PartnerToken;
|
|
2610
2636
|
type TokenReference =
|
|
2611
2637
|
| io.flow.token.v0.models.ChannelTokenReference
|
|
2612
2638
|
| io.flow.token.v0.models.OrganizationTokenReference
|
|
2639
|
+
| io.flow.token.v0.models.OrganizationTokenV2Reference
|
|
2613
2640
|
| io.flow.token.v0.models.PartnerTokenReference;
|
|
2614
2641
|
}
|
|
2615
2642
|
|
|
@@ -2689,6 +2716,13 @@ declare namespace io.flow.permission.v0.models {
|
|
|
2689
2716
|
}
|
|
2690
2717
|
}
|
|
2691
2718
|
|
|
2719
|
+
declare namespace io.flow.token.internal.v0.models {
|
|
2720
|
+
interface ChannelTokenForm {
|
|
2721
|
+
readonly channel_id: string;
|
|
2722
|
+
readonly description?: string;
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2692
2726
|
declare namespace io.flow.apple.pay.v0.enums {
|
|
2693
2727
|
type ApplePayContactField =
|
|
2694
2728
|
| 'email'
|
|
@@ -2848,6 +2882,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2848
2882
|
type AuthorizationOption = 'store_card';
|
|
2849
2883
|
type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
|
|
2850
2884
|
type AuthorizationStatus =
|
|
2885
|
+
| 'initiated'
|
|
2851
2886
|
| 'pending'
|
|
2852
2887
|
| 'expired'
|
|
2853
2888
|
| 'authorized'
|
|
@@ -3220,6 +3255,7 @@ declare namespace io.flow.v0.enums {
|
|
|
3220
3255
|
type LanePreselectPreference = 'lowest_cost' | 'default_tier';
|
|
3221
3256
|
type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
|
|
3222
3257
|
type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
|
|
3258
|
+
type LevyInclusion = 'tax' | 'duty';
|
|
3223
3259
|
type LevyStrategy = 'minimum' | 'average' | 'maximum';
|
|
3224
3260
|
type LocationErrorCode =
|
|
3225
3261
|
| 'address_required'
|
|
@@ -3344,7 +3380,11 @@ declare namespace io.flow.v0.enums {
|
|
|
3344
3380
|
type OrderStorage = 'do_not_persist' | 'persist';
|
|
3345
3381
|
type OrderType = 'standard' | 'replacement';
|
|
3346
3382
|
type OrganizationPaymentMethodTag = 'deny';
|
|
3347
|
-
type OrganizationStatus =
|
|
3383
|
+
type OrganizationStatus =
|
|
3384
|
+
| 'active'
|
|
3385
|
+
| 'inactive'
|
|
3386
|
+
| 'deactivated'
|
|
3387
|
+
| 'provisioned';
|
|
3348
3388
|
type PaymentActionType =
|
|
3349
3389
|
| 'redirect'
|
|
3350
3390
|
| 'use_sdk_klarna_v1'
|
|
@@ -3529,6 +3569,27 @@ declare namespace io.flow.v0.enums {
|
|
|
3529
3569
|
type SyncStreamType = 'submitted_order' | 'placed_order';
|
|
3530
3570
|
type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
|
|
3531
3571
|
type TaxApplicability = 'none' | 'all';
|
|
3572
|
+
type TaxDutyCalculatorValidationErrorCode =
|
|
3573
|
+
| 'generic_error'
|
|
3574
|
+
| 'destination_country_not_defined'
|
|
3575
|
+
| 'destination_address_iso3166_unrecognized'
|
|
3576
|
+
| 'line_item_shipfrom_shipto_country_invalid'
|
|
3577
|
+
| 'line_item_ship_from_invalid'
|
|
3578
|
+
| 'line_item_currency_iso4217_unrecognized'
|
|
3579
|
+
| 'line_quantity_invalid'
|
|
3580
|
+
| 'line_item_quantity_invalid'
|
|
3581
|
+
| 'line_item_unit_price_precision_invalid'
|
|
3582
|
+
| 'line_item_unit_price_negative'
|
|
3583
|
+
| 'line_item_discount_amount_precision_invalid'
|
|
3584
|
+
| 'line_item_discount_amount_positive'
|
|
3585
|
+
| 'line_item_country_of_origin_iso3166_unrecognized'
|
|
3586
|
+
| 'line_item_hs_code_invalid'
|
|
3587
|
+
| 'line_item_duty_provider_invalid'
|
|
3588
|
+
| 'shipping_unit_price_precision_invalid'
|
|
3589
|
+
| 'shipping_unit_price_negative'
|
|
3590
|
+
| 'shipping_discount_amount_precision_invalid'
|
|
3591
|
+
| 'shipping_discount_amount_invalid'
|
|
3592
|
+
| 'merchant_of_record_invalid';
|
|
3532
3593
|
type TaxReportType = 'consumer' | 'b2b';
|
|
3533
3594
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
3534
3595
|
type TaxabilityType = 'tax_rule';
|
|
@@ -3579,6 +3640,17 @@ declare namespace io.flow.v0.enums {
|
|
|
3579
3640
|
type Visibility = 'public' | 'private';
|
|
3580
3641
|
type WebhookStatus = 'pending' | 'success' | 'failure';
|
|
3581
3642
|
type ZeroAmountIndicator = 'zero' | 'free';
|
|
3643
|
+
type ZeroLevyReasonCode =
|
|
3644
|
+
| 'zero_basis'
|
|
3645
|
+
| 'zero_rate_on_goods'
|
|
3646
|
+
| 'value_rounds_to_zero'
|
|
3647
|
+
| 'order_below_de_minimis_threshold'
|
|
3648
|
+
| 'amount_below_de_minimis_threshold'
|
|
3649
|
+
| 'delivered_unpaid'
|
|
3650
|
+
| 'duty_free_domestic'
|
|
3651
|
+
| 'duty_free_intra_community'
|
|
3652
|
+
| 'duty_free_reimport'
|
|
3653
|
+
| 'duty_free_by_trade_agreement';
|
|
3582
3654
|
}
|
|
3583
3655
|
|
|
3584
3656
|
declare namespace io.flow.v0.models {
|
|
@@ -4881,14 +4953,14 @@ declare namespace io.flow.v0.models {
|
|
|
4881
4953
|
|
|
4882
4954
|
interface ChannelOrganizationForm {
|
|
4883
4955
|
readonly key: string;
|
|
4884
|
-
readonly name
|
|
4956
|
+
readonly name?: string;
|
|
4885
4957
|
readonly slug?: string;
|
|
4886
4958
|
readonly defaults: io.flow.v0.models.OrganizationDefaults;
|
|
4887
4959
|
readonly attributes?: Record<string, string>;
|
|
4888
4960
|
}
|
|
4889
4961
|
|
|
4890
4962
|
interface ChannelOrganizationPutForm {
|
|
4891
|
-
readonly name
|
|
4963
|
+
readonly name?: string;
|
|
4892
4964
|
readonly slug?: string;
|
|
4893
4965
|
readonly defaults: io.flow.v0.models.OrganizationDefaults;
|
|
4894
4966
|
readonly attributes?: Record<string, string>;
|
|
@@ -4915,10 +4987,16 @@ declare namespace io.flow.v0.models {
|
|
|
4915
4987
|
readonly channel: io.flow.v0.models.ChannelReference;
|
|
4916
4988
|
readonly user: io.flow.v0.models.UserReference;
|
|
4917
4989
|
readonly partial: string;
|
|
4990
|
+
readonly cleartext?: string;
|
|
4918
4991
|
readonly created_at: string;
|
|
4919
4992
|
readonly description?: string;
|
|
4920
4993
|
}
|
|
4921
4994
|
|
|
4995
|
+
interface ChannelTokenForm {
|
|
4996
|
+
readonly channel_id: string;
|
|
4997
|
+
readonly description?: string;
|
|
4998
|
+
}
|
|
4999
|
+
|
|
4922
5000
|
interface ChannelTokenReference {
|
|
4923
5001
|
readonly discriminator: 'channel_token_reference';
|
|
4924
5002
|
readonly id: string;
|
|
@@ -7606,6 +7684,7 @@ declare namespace io.flow.v0.models {
|
|
|
7606
7684
|
readonly price: io.flow.v0.models.LocalizedItemPrice;
|
|
7607
7685
|
readonly vat?: io.flow.v0.models.LocalizedItemVat;
|
|
7608
7686
|
readonly duty?: io.flow.v0.models.LocalizedItemDuty;
|
|
7687
|
+
readonly shipping?: io.flow.v0.models.Price;
|
|
7609
7688
|
readonly attributes: Record<string, io.flow.v0.models.PriceWithBase>;
|
|
7610
7689
|
readonly price_attributes?: Record<
|
|
7611
7690
|
string,
|
|
@@ -8149,6 +8228,7 @@ declare namespace io.flow.v0.models {
|
|
|
8149
8228
|
readonly discounts?: io.flow.v0.models.PaymentDiscount[];
|
|
8150
8229
|
readonly tax?: io.flow.v0.models.PaymentTax;
|
|
8151
8230
|
readonly duty?: io.flow.v0.models.PaymentDuty;
|
|
8231
|
+
readonly reference?: string;
|
|
8152
8232
|
}
|
|
8153
8233
|
|
|
8154
8234
|
interface OrderError {
|
|
@@ -8957,6 +9037,11 @@ declare namespace io.flow.v0.models {
|
|
|
8957
9037
|
readonly description?: string;
|
|
8958
9038
|
}
|
|
8959
9039
|
|
|
9040
|
+
interface OrganizationTokenFormV2 {
|
|
9041
|
+
readonly organization_id: string;
|
|
9042
|
+
readonly description?: string;
|
|
9043
|
+
}
|
|
9044
|
+
|
|
8960
9045
|
interface OrganizationTokenReference {
|
|
8961
9046
|
readonly discriminator: 'organization_token_reference';
|
|
8962
9047
|
readonly id: string;
|
|
@@ -8965,6 +9050,23 @@ declare namespace io.flow.v0.models {
|
|
|
8965
9050
|
readonly user: io.flow.v0.models.UserReference;
|
|
8966
9051
|
}
|
|
8967
9052
|
|
|
9053
|
+
interface OrganizationTokenV2 {
|
|
9054
|
+
readonly discriminator: 'organization_token_v2';
|
|
9055
|
+
readonly id: string;
|
|
9056
|
+
readonly organization: io.flow.v0.models.OrganizationReference;
|
|
9057
|
+
readonly user: io.flow.v0.models.UserReference;
|
|
9058
|
+
readonly partial: string;
|
|
9059
|
+
readonly cleartext?: string;
|
|
9060
|
+
readonly created_at: string;
|
|
9061
|
+
readonly description?: string;
|
|
9062
|
+
}
|
|
9063
|
+
|
|
9064
|
+
interface OrganizationTokenV2Reference {
|
|
9065
|
+
readonly discriminator: 'organization_token_v2_reference';
|
|
9066
|
+
readonly id: string;
|
|
9067
|
+
readonly organization: io.flow.v0.models.OrganizationReference;
|
|
9068
|
+
}
|
|
9069
|
+
|
|
8968
9070
|
interface OrganizationUpserted {
|
|
8969
9071
|
readonly discriminator: 'organization_upserted';
|
|
8970
9072
|
readonly event_id: string;
|
|
@@ -9139,7 +9241,7 @@ declare namespace io.flow.v0.models {
|
|
|
9139
9241
|
}
|
|
9140
9242
|
|
|
9141
9243
|
interface PaymentContactBilling {
|
|
9142
|
-
readonly first_name
|
|
9244
|
+
readonly first_name?: string;
|
|
9143
9245
|
readonly last_name: string;
|
|
9144
9246
|
readonly company?: string;
|
|
9145
9247
|
readonly email?: string;
|
|
@@ -9147,7 +9249,7 @@ declare namespace io.flow.v0.models {
|
|
|
9147
9249
|
}
|
|
9148
9250
|
|
|
9149
9251
|
interface PaymentContactShipping {
|
|
9150
|
-
readonly first_name
|
|
9252
|
+
readonly first_name?: string;
|
|
9151
9253
|
readonly last_name: string;
|
|
9152
9254
|
readonly email: string;
|
|
9153
9255
|
readonly phone: string;
|
|
@@ -11514,6 +11616,14 @@ declare namespace io.flow.v0.models {
|
|
|
11514
11616
|
readonly sort?: string;
|
|
11515
11617
|
}
|
|
11516
11618
|
|
|
11619
|
+
interface StreetAddress {
|
|
11620
|
+
readonly streets?: string[];
|
|
11621
|
+
readonly city?: string;
|
|
11622
|
+
readonly province?: string;
|
|
11623
|
+
readonly postal?: string;
|
|
11624
|
+
readonly country?: string;
|
|
11625
|
+
}
|
|
11626
|
+
|
|
11517
11627
|
interface StripeAuthenticationData {
|
|
11518
11628
|
readonly discriminator: 'stripe_authentication_data';
|
|
11519
11629
|
readonly secret_key_reference: string;
|
|
@@ -11739,6 +11849,89 @@ declare namespace io.flow.v0.models {
|
|
|
11739
11849
|
readonly deminimis?: io.flow.v0.unions.Deminimis;
|
|
11740
11850
|
}
|
|
11741
11851
|
|
|
11852
|
+
interface TaxDutyCalculatorValidationError {
|
|
11853
|
+
readonly code: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
|
|
11854
|
+
readonly messages: string[];
|
|
11855
|
+
readonly codes: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode[];
|
|
11856
|
+
}
|
|
11857
|
+
|
|
11858
|
+
interface TaxDutyQuote {
|
|
11859
|
+
readonly id: string;
|
|
11860
|
+
readonly primary_identifier: string;
|
|
11861
|
+
readonly attributes?: Record<string, string>;
|
|
11862
|
+
readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
|
|
11863
|
+
readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
|
|
11864
|
+
readonly destination: io.flow.v0.models.StreetAddress;
|
|
11865
|
+
readonly quote_date: string;
|
|
11866
|
+
readonly currency: string;
|
|
11867
|
+
readonly lines: io.flow.v0.models.TaxDutyQuoteLineItem[];
|
|
11868
|
+
readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShipping[];
|
|
11869
|
+
readonly total_values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
11870
|
+
}
|
|
11871
|
+
|
|
11872
|
+
interface TaxDutyQuoteFeeValue {
|
|
11873
|
+
readonly amount: number;
|
|
11874
|
+
readonly description: string;
|
|
11875
|
+
}
|
|
11876
|
+
|
|
11877
|
+
interface TaxDutyQuoteForm {
|
|
11878
|
+
readonly primary_identifier: string;
|
|
11879
|
+
readonly attributes?: Record<string, string>;
|
|
11880
|
+
readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
|
|
11881
|
+
readonly destination: io.flow.v0.models.StreetAddress;
|
|
11882
|
+
readonly currency: string;
|
|
11883
|
+
readonly lines: io.flow.v0.models.TaxDutyQuoteLineItemForm[];
|
|
11884
|
+
readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShippingForm[];
|
|
11885
|
+
}
|
|
11886
|
+
|
|
11887
|
+
interface TaxDutyQuoteLineItem {
|
|
11888
|
+
readonly primary_identifier: string;
|
|
11889
|
+
readonly attributes?: Record<string, string>;
|
|
11890
|
+
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
11891
|
+
readonly quantity: number;
|
|
11892
|
+
readonly unit_values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
11893
|
+
readonly country_of_origin: string;
|
|
11894
|
+
readonly hs_code: string;
|
|
11895
|
+
}
|
|
11896
|
+
|
|
11897
|
+
interface TaxDutyQuoteLineItemForm {
|
|
11898
|
+
readonly primary_identifier: string;
|
|
11899
|
+
readonly attributes?: Record<string, string>;
|
|
11900
|
+
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
11901
|
+
readonly quantity: number;
|
|
11902
|
+
readonly unit_price: number;
|
|
11903
|
+
readonly country_of_origin: string;
|
|
11904
|
+
readonly hs_code: string;
|
|
11905
|
+
readonly includes: io.flow.v0.enums.LevyInclusion[];
|
|
11906
|
+
}
|
|
11907
|
+
|
|
11908
|
+
interface TaxDutyQuoteSimpleLevyValue {
|
|
11909
|
+
readonly discriminator: 'tax_duty_quote_simple_levy_value';
|
|
11910
|
+
readonly amount: number;
|
|
11911
|
+
readonly rate: number;
|
|
11912
|
+
readonly description: string;
|
|
11913
|
+
readonly zero_levy_reason?: io.flow.v0.enums.ZeroLevyReasonCode[];
|
|
11914
|
+
}
|
|
11915
|
+
|
|
11916
|
+
interface TaxDutyQuoteSimpleShipping {
|
|
11917
|
+
readonly values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
11918
|
+
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
11919
|
+
}
|
|
11920
|
+
|
|
11921
|
+
interface TaxDutyQuoteSimpleShippingForm {
|
|
11922
|
+
readonly price: number;
|
|
11923
|
+
readonly includes: io.flow.v0.enums.LevyInclusion[];
|
|
11924
|
+
readonly ship_from?: io.flow.v0.models.StreetAddress;
|
|
11925
|
+
}
|
|
11926
|
+
|
|
11927
|
+
interface TaxDutyQuoteValues {
|
|
11928
|
+
readonly price: number;
|
|
11929
|
+
readonly duty: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
11930
|
+
readonly tax: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
11931
|
+
readonly fees: io.flow.v0.models.TaxDutyQuoteFeeValue;
|
|
11932
|
+
readonly total: number;
|
|
11933
|
+
}
|
|
11934
|
+
|
|
11742
11935
|
interface TaxRegistration {
|
|
11743
11936
|
readonly id: string;
|
|
11744
11937
|
readonly key: string;
|
|
@@ -12758,6 +12951,7 @@ declare namespace io.flow.v0.unions {
|
|
|
12758
12951
|
| io.flow.v0.models.ShopifyCartAddSingleForm
|
|
12759
12952
|
| io.flow.v0.models.ShopifyCartAddMultipleForm;
|
|
12760
12953
|
type ShopifyEventBucket = io.flow.v0.models.ShopifyItemEventBucket;
|
|
12954
|
+
type TaxDutyQuoteLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
12761
12955
|
type TaxSetting =
|
|
12762
12956
|
| io.flow.v0.models.AvalaraTaxSetting
|
|
12763
12957
|
| io.flow.v0.models.AvalaraTaxCsvSetting;
|
|
@@ -12776,10 +12970,12 @@ declare namespace io.flow.v0.unions {
|
|
|
12776
12970
|
type Token =
|
|
12777
12971
|
| io.flow.v0.models.ChannelToken
|
|
12778
12972
|
| io.flow.v0.models.OrganizationToken
|
|
12973
|
+
| io.flow.v0.models.OrganizationTokenV2
|
|
12779
12974
|
| io.flow.v0.models.PartnerToken;
|
|
12780
12975
|
type TokenReference =
|
|
12781
12976
|
| io.flow.v0.models.ChannelTokenReference
|
|
12782
12977
|
| io.flow.v0.models.OrganizationTokenReference
|
|
12978
|
+
| io.flow.v0.models.OrganizationTokenV2Reference
|
|
12783
12979
|
| io.flow.v0.models.PartnerTokenReference;
|
|
12784
12980
|
}
|
|
12785
12981
|
|
|
@@ -12998,6 +13194,7 @@ export type ChannelOrganizationUpserted = io.flow.v0.models.ChannelOrganizationU
|
|
|
12998
13194
|
export type ChannelRate = io.flow.v0.models.ChannelRate;
|
|
12999
13195
|
export type ChannelReference = io.flow.v0.models.ChannelReference;
|
|
13000
13196
|
export type ChannelToken = io.flow.v0.models.ChannelToken;
|
|
13197
|
+
export type ChannelTokenForm = io.flow.v0.models.ChannelTokenForm;
|
|
13001
13198
|
export type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
|
|
13002
13199
|
export type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
|
|
13003
13200
|
export type CheckoutAttribute = io.flow.v0.models.CheckoutAttribute;
|
|
@@ -13465,6 +13662,7 @@ export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
|
|
|
13465
13662
|
export type LaneSummary = io.flow.v0.models.LaneSummary;
|
|
13466
13663
|
export type Language = io.flow.v0.models.Language;
|
|
13467
13664
|
export type LevyComponent = io.flow.v0.enums.LevyComponent;
|
|
13665
|
+
export type LevyInclusion = io.flow.v0.enums.LevyInclusion;
|
|
13468
13666
|
export type LevyStrategy = io.flow.v0.enums.LevyStrategy;
|
|
13469
13667
|
export type Line = io.flow.v0.models.Line;
|
|
13470
13668
|
export type LineItem = io.flow.v0.models.LineItem;
|
|
@@ -13692,7 +13890,10 @@ export type OrganizationStatus = io.flow.v0.enums.OrganizationStatus;
|
|
|
13692
13890
|
export type OrganizationSummary = io.flow.v0.models.OrganizationSummary;
|
|
13693
13891
|
export type OrganizationToken = io.flow.v0.models.OrganizationToken;
|
|
13694
13892
|
export type OrganizationTokenForm = io.flow.v0.models.OrganizationTokenForm;
|
|
13893
|
+
export type OrganizationTokenFormV2 = io.flow.v0.models.OrganizationTokenFormV2;
|
|
13695
13894
|
export type OrganizationTokenReference = io.flow.v0.models.OrganizationTokenReference;
|
|
13895
|
+
export type OrganizationTokenV2 = io.flow.v0.models.OrganizationTokenV2;
|
|
13896
|
+
export type OrganizationTokenV2Reference = io.flow.v0.models.OrganizationTokenV2Reference;
|
|
13696
13897
|
export type OrganizationUpserted = io.flow.v0.models.OrganizationUpserted;
|
|
13697
13898
|
export type OrganizationUpsertedV2 = io.flow.v0.models.OrganizationUpsertedV2;
|
|
13698
13899
|
export type OrganizationVersion = io.flow.v0.models.OrganizationVersion;
|
|
@@ -14121,6 +14322,7 @@ export type SolidusProductExportType = io.flow.v0.models.SolidusProductExportTyp
|
|
|
14121
14322
|
export type SolidusVariantExportType = io.flow.v0.models.SolidusVariantExportType;
|
|
14122
14323
|
export type SortDirection = io.flow.v0.enums.SortDirection;
|
|
14123
14324
|
export type Strategy = io.flow.v0.enums.Strategy;
|
|
14325
|
+
export type StreetAddress = io.flow.v0.models.StreetAddress;
|
|
14124
14326
|
export type StripeAuthenticationData = io.flow.v0.models.StripeAuthenticationData;
|
|
14125
14327
|
export type StripeAuthenticationDataForm = io.flow.v0.models.StripeAuthenticationDataForm;
|
|
14126
14328
|
export type StripeAuthorizationResultActionDetails = io.flow.v0.models.StripeAuthorizationResultActionDetails;
|
|
@@ -14161,6 +14363,18 @@ export type SyncStreamType = io.flow.v0.enums.SyncStreamType;
|
|
|
14161
14363
|
export type SyncUnitOfTime = io.flow.v0.enums.SyncUnitOfTime;
|
|
14162
14364
|
export type Tax = io.flow.v0.models.Tax;
|
|
14163
14365
|
export type TaxApplicability = io.flow.v0.enums.TaxApplicability;
|
|
14366
|
+
export type TaxDutyCalculatorValidationError = io.flow.v0.models.TaxDutyCalculatorValidationError;
|
|
14367
|
+
export type TaxDutyCalculatorValidationErrorCode = io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
|
|
14368
|
+
export type TaxDutyQuote = io.flow.v0.models.TaxDutyQuote;
|
|
14369
|
+
export type TaxDutyQuoteFeeValue = io.flow.v0.models.TaxDutyQuoteFeeValue;
|
|
14370
|
+
export type TaxDutyQuoteForm = io.flow.v0.models.TaxDutyQuoteForm;
|
|
14371
|
+
export type TaxDutyQuoteLevyValue = io.flow.v0.unions.TaxDutyQuoteLevyValue;
|
|
14372
|
+
export type TaxDutyQuoteLineItem = io.flow.v0.models.TaxDutyQuoteLineItem;
|
|
14373
|
+
export type TaxDutyQuoteLineItemForm = io.flow.v0.models.TaxDutyQuoteLineItemForm;
|
|
14374
|
+
export type TaxDutyQuoteSimpleLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
|
|
14375
|
+
export type TaxDutyQuoteSimpleShipping = io.flow.v0.models.TaxDutyQuoteSimpleShipping;
|
|
14376
|
+
export type TaxDutyQuoteSimpleShippingForm = io.flow.v0.models.TaxDutyQuoteSimpleShippingForm;
|
|
14377
|
+
export type TaxDutyQuoteValues = io.flow.v0.models.TaxDutyQuoteValues;
|
|
14164
14378
|
export type TaxRegistration = io.flow.v0.models.TaxRegistration;
|
|
14165
14379
|
export type TaxRegistrationForm = io.flow.v0.models.TaxRegistrationForm;
|
|
14166
14380
|
export type TaxReport = io.flow.v0.models.TaxReport;
|
|
@@ -14264,4 +14478,5 @@ export type WebhookResponse = io.flow.v0.models.WebhookResponse;
|
|
|
14264
14478
|
export type WebhookSettings = io.flow.v0.models.WebhookSettings;
|
|
14265
14479
|
export type WebhookStatus = io.flow.v0.enums.WebhookStatus;
|
|
14266
14480
|
export type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
|
|
14481
|
+
export type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
|
|
14267
14482
|
export type Zone = io.flow.v0.models.Zone;
|