@flowio/types 11.24.89 → 11.24.90

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/src/api.ts CHANGED
@@ -361,7 +361,7 @@ declare namespace io.flow.stripe.v0.enums {
361
361
  | 'pay_now'
362
362
  | 'pay_with_financing'
363
363
  | 'pay_in_installments';
364
- type PaymentMethodType = 'card' | 'card_present';
364
+ type PaymentMethodType = 'card' | 'card_present' | 'klarna';
365
365
  type PaymentOutcomeType =
366
366
  | 'authorized'
367
367
  | 'manual_review'
@@ -717,6 +717,12 @@ declare namespace io.flow.stripe.v0.models {
717
717
  readonly marketplace_seller_info?: io.flow.stripe.v0.models.KlarnaMarketplaceSellerInfo[];
718
718
  }
719
719
 
720
+ interface KlarnaDobForm {
721
+ readonly day: number;
722
+ readonly month: number;
723
+ readonly year: number;
724
+ }
725
+
720
726
  interface KlarnaMarketplaceSellerInfo {
721
727
  readonly sub_merchant_id?: string;
722
728
  readonly product_category?: string;
@@ -726,6 +732,12 @@ declare namespace io.flow.stripe.v0.models {
726
732
  readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
727
733
  }
728
734
 
735
+ interface MarketplaceSellerInfo {
736
+ readonly name: string;
737
+ readonly id?: string;
738
+ readonly product_category?: string;
739
+ }
740
+
729
741
  interface Masterpass {
730
742
  readonly type: 'masterpass';
731
743
  readonly masterpass: io.flow.stripe.v0.models.MasterpassInformation;
@@ -814,6 +826,10 @@ declare namespace io.flow.stripe.v0.models {
814
826
  readonly verified_phone?: string;
815
827
  }
816
828
 
829
+ interface PaymentDetails {
830
+ readonly marketplace_seller_info?: io.flow.stripe.v0.models.MarketplaceSellerInfo;
831
+ }
832
+
817
833
  interface PaymentIntent {
818
834
  readonly id: string;
819
835
  readonly object: string;
@@ -938,6 +954,7 @@ declare namespace io.flow.stripe.v0.models {
938
954
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
939
955
  readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
940
956
  readonly card_present?: any /*object*/;
957
+ readonly klarna?: any /*object*/;
941
958
  readonly created: number;
942
959
  readonly customer?: string;
943
960
  readonly livemode: boolean;
@@ -978,6 +995,13 @@ declare namespace io.flow.stripe.v0.models {
978
995
  readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
979
996
  }
980
997
 
998
+ interface PaymentMethodDataKlarna {
999
+ readonly type: 'klarna';
1000
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1001
+ readonly metadata?: any /*object*/;
1002
+ readonly klarna: io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
1003
+ }
1004
+
981
1005
  interface PaymentMethodDetailsCard {
982
1006
  readonly type: 'card';
983
1007
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -1026,8 +1050,20 @@ declare namespace io.flow.stripe.v0.models {
1026
1050
  readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
1027
1051
  }
1028
1052
 
1053
+ interface PaymentMethodFormKlarna {
1054
+ readonly type: 'klarna';
1055
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1056
+ readonly metadata?: any /*object*/;
1057
+ readonly klarna: io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
1058
+ }
1059
+
1060
+ interface PaymentMethodKlarnaForm {
1061
+ readonly dob?: io.flow.stripe.v0.models.KlarnaDobForm;
1062
+ }
1063
+
1029
1064
  interface PaymentMethodOptions {
1030
1065
  readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
1066
+ readonly klarna?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarna;
1031
1067
  }
1032
1068
 
1033
1069
  interface PaymentMethodOptionsCard {
@@ -1047,6 +1083,21 @@ declare namespace io.flow.stripe.v0.models {
1047
1083
 
1048
1084
  interface PaymentMethodOptionsForm {
1049
1085
  readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
1086
+ readonly klarna?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarnaForm;
1087
+ }
1088
+
1089
+ interface PaymentMethodOptionsKlarna {
1090
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
1091
+ readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
1092
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1093
+ readonly payment_details?: io.flow.stripe.v0.models.PaymentDetails;
1094
+ }
1095
+
1096
+ interface PaymentMethodOptionsKlarnaForm {
1097
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
1098
+ readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
1099
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1100
+ readonly payment_details?: io.flow.stripe.v0.models.PaymentDetails;
1050
1101
  }
1051
1102
 
1052
1103
  interface PaymentOutcome {
@@ -1347,11 +1398,15 @@ declare namespace io.flow.stripe.v0.unions {
1347
1398
  | io.flow.stripe.v0.models.Masterpass
1348
1399
  | io.flow.stripe.v0.models.ApplePay
1349
1400
  | io.flow.stripe.v0.models.VisaCheckout;
1350
- type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
1401
+ type PaymentMethodData =
1402
+ | io.flow.stripe.v0.models.PaymentMethodDataCard
1403
+ | io.flow.stripe.v0.models.PaymentMethodDataKlarna;
1351
1404
  type PaymentMethodDetails =
1352
1405
  | io.flow.stripe.v0.models.PaymentMethodDetailsCard
1353
1406
  | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
1354
- type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
1407
+ type PaymentMethodForm =
1408
+ | io.flow.stripe.v0.models.PaymentMethodFormCard
1409
+ | io.flow.stripe.v0.models.PaymentMethodFormKlarna;
1355
1410
  }
1356
1411
 
1357
1412
  declare namespace io.flow.shopify.external.v0.enums {
@@ -2926,6 +2981,7 @@ declare namespace io.flow.v0.enums {
2926
2981
  | 'organization_fulfillment'
2927
2982
  | 'organization_marketing'
2928
2983
  | 'organization_finance'
2984
+ | 'organization_classification'
2929
2985
  | 'flow_operations'
2930
2986
  | 'channel_admin'
2931
2987
  | 'channel_organization_admin';
@@ -3011,6 +3067,7 @@ declare namespace io.flow.v0.enums {
3011
3067
  | 'byo_integration';
3012
3068
  type MarginType = 'fixed' | 'percent';
3013
3069
  type MeasurementSystem = 'imperial' | 'metric';
3070
+ type MerchantDisabledReason = 'merchant_deactivated' | 'merchant_rejected';
3014
3071
  type MerchantGiftCardErrorCode =
3015
3072
  | 'invalid'
3016
3073
  | 'expired'
@@ -3034,7 +3091,8 @@ declare namespace io.flow.v0.enums {
3034
3091
  | 'street_address_is_po_box_3pl'
3035
3092
  | 'business_street_address_is_blank'
3036
3093
  | 'business_street_address_is_po_box'
3037
- | 'exception_merchant';
3094
+ | 'exception_merchant'
3095
+ | 'application_missing';
3038
3096
  type OnboardingTradeSector =
3039
3097
  | 'accessories'
3040
3098
  | 'animals_and_pet_supplies'
@@ -3520,7 +3578,11 @@ declare namespace io.flow.v0.enums {
3520
3578
  | 'duties_paid'
3521
3579
  | 'emergency'
3522
3580
  | 'peak'
3523
- | 'address_correction';
3581
+ | 'address_correction'
3582
+ | 'security_ratecard_fee'
3583
+ | 'eei_filing_ratecard_fee'
3584
+ | 'fixed_ddp_ratecard_fee'
3585
+ | 'fixed_currency_conversion_ratecard_fee';
3524
3586
  type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
3525
3587
  type UnitOfMeasurement =
3526
3588
  | 'millimeter'
@@ -3743,6 +3805,17 @@ declare namespace io.flow.v0.models {
3743
3805
  readonly placeholder?: boolean;
3744
3806
  }
3745
3807
 
3808
+ interface AdditionalHandlingServiceFee {
3809
+ readonly discriminator: 'additional_handling_service_fee';
3810
+ readonly length_girth_threshold?: number;
3811
+ readonly length_threshold?: number;
3812
+ readonly width_threshold?: number;
3813
+ readonly dimensional_unit?: io.flow.v0.enums.UnitOfMeasurement;
3814
+ readonly weight_threshold?: number;
3815
+ readonly weight_unit?: io.flow.v0.enums.UnitOfMeasurement;
3816
+ readonly amount: io.flow.v0.models.Money;
3817
+ }
3818
+
3746
3819
  interface AdditionalServicesRequested {
3747
3820
  readonly name: string;
3748
3821
  readonly description?: string;
@@ -6362,6 +6435,17 @@ declare namespace io.flow.v0.models {
6362
6435
  readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
6363
6436
  }
6364
6437
 
6438
+ interface EeiFilingRatecardFee {
6439
+ readonly discriminator: 'eei_filing_ratecard_fee';
6440
+ readonly amount: io.flow.v0.models.Money;
6441
+ }
6442
+
6443
+ interface EeiFilingServiceFee {
6444
+ readonly discriminator: 'eei_filing_service_fee';
6445
+ readonly amount: io.flow.v0.models.Money;
6446
+ readonly value_threshold: io.flow.v0.models.Money;
6447
+ }
6448
+
6365
6449
  interface EmailAbandonedOrderPromotion {
6366
6450
  readonly discount_form: io.flow.v0.models.DiscountForm;
6367
6451
  readonly attributes: Record<string, string>;
@@ -6884,6 +6968,31 @@ declare namespace io.flow.v0.models {
6884
6968
  readonly placeholder?: string;
6885
6969
  }
6886
6970
 
6971
+ interface FixedCurrencyConversionRatecardFee {
6972
+ readonly discriminator: 'fixed_currency_conversion_ratecard_fee';
6973
+ readonly amount: io.flow.v0.models.Money;
6974
+ }
6975
+
6976
+ interface FixedCurrencyConversionServiceFee {
6977
+ readonly discriminator: 'fixed_currency_conversion_service_fee';
6978
+ readonly conditions: io.flow.v0.models.FixedFeeCondition[];
6979
+ }
6980
+
6981
+ interface FixedDdpRatecardFee {
6982
+ readonly discriminator: 'fixed_ddp_ratecard_fee';
6983
+ readonly amount: io.flow.v0.models.Money;
6984
+ }
6985
+
6986
+ interface FixedDdpServiceFee {
6987
+ readonly discriminator: 'fixed_ddp_service_fee';
6988
+ readonly conditions: io.flow.v0.models.FixedFeeCondition[];
6989
+ }
6990
+
6991
+ interface FixedFeeCondition {
6992
+ readonly countries: string[];
6993
+ readonly amount: io.flow.v0.models.Money;
6994
+ }
6995
+
6887
6996
  interface FlatRate {
6888
6997
  readonly discriminator: 'flat_rate';
6889
6998
  readonly price: io.flow.v0.models.Price;
@@ -8107,6 +8216,15 @@ declare namespace io.flow.v0.models {
8107
8216
  readonly iso_639_2: string;
8108
8217
  }
8109
8218
 
8219
+ interface LargePackageServiceFee {
8220
+ readonly discriminator: 'large_package_service_fee';
8221
+ readonly length_girth_threshold?: number;
8222
+ readonly dimensional_unit?: io.flow.v0.enums.UnitOfMeasurement;
8223
+ readonly weight_threshold?: number;
8224
+ readonly weight_unit?: io.flow.v0.enums.UnitOfMeasurement;
8225
+ readonly amount: io.flow.v0.models.Money;
8226
+ }
8227
+
8110
8228
  interface Line {
8111
8229
  readonly id?: string;
8112
8230
  readonly item_number: string;
@@ -8461,6 +8579,11 @@ declare namespace io.flow.v0.models {
8461
8579
  readonly reason: string;
8462
8580
  }
8463
8581
 
8582
+ interface MerchantDisabled {
8583
+ readonly discriminator: 'merchant_disabled';
8584
+ readonly reason: io.flow.v0.enums.MerchantDisabledReason;
8585
+ }
8586
+
8464
8587
  interface MerchantGiftCardBalance {
8465
8588
  readonly amount: number;
8466
8589
  readonly currency: string;
@@ -11585,6 +11708,12 @@ declare namespace io.flow.v0.models {
11585
11708
  readonly status: io.flow.v0.enums.AvailabilityStatus;
11586
11709
  }
11587
11710
 
11711
+ interface RemoteAreaByWeightServiceFee {
11712
+ readonly discriminator: 'remote_area_by_weight_service_fee';
11713
+ readonly amount: io.flow.v0.models.Money;
11714
+ readonly weight_unit: io.flow.v0.enums.UnitOfMeasurement;
11715
+ }
11716
+
11588
11717
  interface RemoteAreaRatecardFee {
11589
11718
  readonly discriminator: 'remote_area_ratecard_fee';
11590
11719
  readonly amount: io.flow.v0.models.Money;
@@ -11931,6 +12060,17 @@ declare namespace io.flow.v0.models {
11931
12060
  readonly minute_of_hour: string;
11932
12061
  }
11933
12062
 
12063
+ interface SecurityRatecardFee {
12064
+ readonly discriminator: 'security_ratecard_fee';
12065
+ readonly amount: io.flow.v0.models.Money;
12066
+ }
12067
+
12068
+ interface SecurityServiceFee {
12069
+ readonly discriminator: 'security_service_fee';
12070
+ readonly amount: io.flow.v0.models.Money;
12071
+ readonly countries: string[];
12072
+ }
12073
+
11934
12074
  interface SelectIssuerOptionActionDetails {
11935
12075
  readonly discriminator: 'select_issuer_option_action_details';
11936
12076
  readonly issuer_options: io.flow.v0.models.IssuerReference[];
@@ -14223,7 +14363,8 @@ declare namespace io.flow.v0.unions {
14223
14363
  | io.flow.v0.models.SetupBlocked
14224
14364
  | io.flow.v0.models.SetupCompleted
14225
14365
  | io.flow.v0.models.MerchantActivated
14226
- | io.flow.v0.models.MerchantDeactivated;
14366
+ | io.flow.v0.models.MerchantDeactivated
14367
+ | io.flow.v0.models.MerchantDisabled;
14227
14368
  type OnlineAuthorizationDetails =
14228
14369
  | io.flow.v0.models.CryptopayAuthorizationDetails
14229
14370
  | io.flow.v0.models.PaypalAuthorizationDetails
@@ -14349,7 +14490,11 @@ declare namespace io.flow.v0.unions {
14349
14490
  | io.flow.v0.models.RemoteAreaRatecardFee
14350
14491
  | io.flow.v0.models.EmergencySituationSurchargeRatecardFee
14351
14492
  | io.flow.v0.models.PeakSurchargeRatecardFee
14352
- | io.flow.v0.models.DutiesTaxesPaidSurchargeRatecardFee;
14493
+ | io.flow.v0.models.DutiesTaxesPaidSurchargeRatecardFee
14494
+ | io.flow.v0.models.SecurityRatecardFee
14495
+ | io.flow.v0.models.EeiFilingRatecardFee
14496
+ | io.flow.v0.models.FixedDdpRatecardFee
14497
+ | io.flow.v0.models.FixedCurrencyConversionRatecardFee;
14353
14498
  type RepeatSchedule =
14354
14499
  | io.flow.v0.models.RepeatHourly
14355
14500
  | io.flow.v0.models.RepeatDaily
@@ -14376,7 +14521,14 @@ declare namespace io.flow.v0.unions {
14376
14521
  | io.flow.v0.models.PeakSurchargeServiceFee
14377
14522
  | io.flow.v0.models.PeakSurchargeByWeightServiceFee
14378
14523
  | io.flow.v0.models.DutiesTaxesPaidSurchargeServiceFee
14379
- | io.flow.v0.models.OversizePieceSurchargeServiceFee;
14524
+ | io.flow.v0.models.OversizePieceSurchargeServiceFee
14525
+ | io.flow.v0.models.RemoteAreaByWeightServiceFee
14526
+ | io.flow.v0.models.AdditionalHandlingServiceFee
14527
+ | io.flow.v0.models.LargePackageServiceFee
14528
+ | io.flow.v0.models.SecurityServiceFee
14529
+ | io.flow.v0.models.FixedDdpServiceFee
14530
+ | io.flow.v0.models.FixedCurrencyConversionServiceFee
14531
+ | io.flow.v0.models.EeiFilingServiceFee;
14380
14532
  type Session = io.flow.v0.models.OrganizationSession;
14381
14533
  type SessionAuthorization =
14382
14534
  io.flow.v0.models.OrganizationSessionAuthorization;
@@ -14469,6 +14621,8 @@ export type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
14469
14621
  export type ActionUseSdkStripeV3 = io.flow.v0.models.ActionUseSdkStripeV3;
14470
14622
  export type ActionWait = io.flow.v0.models.ActionWait;
14471
14623
  export type ActivationPutForm = io.flow.v0.models.ActivationPutForm;
14624
+ export type AdditionalHandlingServiceFee =
14625
+ io.flow.v0.models.AdditionalHandlingServiceFee;
14472
14626
  export type AdditionalServicesRequested =
14473
14627
  io.flow.v0.models.AdditionalServicesRequested;
14474
14628
  export type Address = io.flow.v0.models.Address;
@@ -15023,6 +15177,8 @@ export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
15023
15177
  export type EcommercePlatformUpserted =
15024
15178
  io.flow.v0.models.EcommercePlatformUpserted;
15025
15179
  export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
15180
+ export type EeiFilingRatecardFee = io.flow.v0.models.EeiFilingRatecardFee;
15181
+ export type EeiFilingServiceFee = io.flow.v0.models.EeiFilingServiceFee;
15026
15182
  export type EmailAbandonedOrderPromotion =
15027
15183
  io.flow.v0.models.EmailAbandonedOrderPromotion;
15028
15184
  export type EmailAbandonedOrderUrls = io.flow.v0.models.EmailAbandonedOrderUrls;
@@ -15170,6 +15326,13 @@ export type FieldValidationRequired = io.flow.v0.models.FieldValidationRequired;
15170
15326
  export type FieldValidationRequiredIfPresent =
15171
15327
  io.flow.v0.models.FieldValidationRequiredIfPresent;
15172
15328
  export type FieldValidationRule = io.flow.v0.unions.FieldValidationRule;
15329
+ export type FixedCurrencyConversionRatecardFee =
15330
+ io.flow.v0.models.FixedCurrencyConversionRatecardFee;
15331
+ export type FixedCurrencyConversionServiceFee =
15332
+ io.flow.v0.models.FixedCurrencyConversionServiceFee;
15333
+ export type FixedDdpRatecardFee = io.flow.v0.models.FixedDdpRatecardFee;
15334
+ export type FixedDdpServiceFee = io.flow.v0.models.FixedDdpServiceFee;
15335
+ export type FixedFeeCondition = io.flow.v0.models.FixedFeeCondition;
15173
15336
  export type FlatRate = io.flow.v0.models.FlatRate;
15174
15337
  export type FlatRateForm = io.flow.v0.models.FlatRateForm;
15175
15338
  export type FlowBehavior = io.flow.v0.enums.FlowBehavior;
@@ -15425,6 +15588,7 @@ export type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
15425
15588
  export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
15426
15589
  export type LaneSummary = io.flow.v0.models.LaneSummary;
15427
15590
  export type Language = io.flow.v0.models.Language;
15591
+ export type LargePackageServiceFee = io.flow.v0.models.LargePackageServiceFee;
15428
15592
  export type LevyComponent = io.flow.v0.enums.LevyComponent;
15429
15593
  export type LevyInclusion = io.flow.v0.enums.LevyInclusion;
15430
15594
  export type LevyStrategy = io.flow.v0.enums.LevyStrategy;
@@ -15495,6 +15659,8 @@ export type MerchantApplicationUpserted =
15495
15659
  export type MerchantApplicationsSummary =
15496
15660
  io.flow.v0.unions.MerchantApplicationsSummary;
15497
15661
  export type MerchantDeactivated = io.flow.v0.models.MerchantDeactivated;
15662
+ export type MerchantDisabled = io.flow.v0.models.MerchantDisabled;
15663
+ export type MerchantDisabledReason = io.flow.v0.enums.MerchantDisabledReason;
15498
15664
  export type MerchantGiftCardBalance = io.flow.v0.models.MerchantGiftCardBalance;
15499
15665
  export type MerchantGiftCardBalanceForm =
15500
15666
  io.flow.v0.models.MerchantGiftCardBalanceForm;
@@ -16186,6 +16352,8 @@ export type RegionReference = io.flow.v0.models.RegionReference;
16186
16352
  export type RegionSetting = io.flow.v0.models.RegionSetting;
16187
16353
  export type RegionSettingForm = io.flow.v0.models.RegionSettingForm;
16188
16354
  export type RegionType = io.flow.v0.enums.RegionType;
16355
+ export type RemoteAreaByWeightServiceFee =
16356
+ io.flow.v0.models.RemoteAreaByWeightServiceFee;
16189
16357
  export type RemoteAreaRatecardFee = io.flow.v0.models.RemoteAreaRatecardFee;
16190
16358
  export type RemoteAreaServiceFee = io.flow.v0.models.RemoteAreaServiceFee;
16191
16359
  export type RepeatDaily = io.flow.v0.models.RepeatDaily;
@@ -16256,6 +16424,8 @@ export type ScheduledExportForm = io.flow.v0.models.ScheduledExportForm;
16256
16424
  export type ScheduledPickup = io.flow.v0.models.ScheduledPickup;
16257
16425
  export type SdkAdyenV3AuthenticationToken =
16258
16426
  io.flow.v0.unions.SdkAdyenV3AuthenticationToken;
16427
+ export type SecurityRatecardFee = io.flow.v0.models.SecurityRatecardFee;
16428
+ export type SecurityServiceFee = io.flow.v0.models.SecurityServiceFee;
16259
16429
  export type SelectIssuerOptionActionDetails =
16260
16430
  io.flow.v0.models.SelectIssuerOptionActionDetails;
16261
16431
  export type ServiceDescription = io.flow.v0.unions.ServiceDescription;