@flowio/types 11.24.89 → 11.24.91

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'
@@ -3182,7 +3240,11 @@ declare namespace io.flow.v0.enums {
3182
3240
  | 'deactivated'
3183
3241
  | 'provisioned';
3184
3242
  type OrganizationType = 'standalone' | 'channel';
3185
- type PackageDimensionsSource = 'provided' | 'dimensions_estimated';
3243
+ type PackageDimensionsSource =
3244
+ | 'provided'
3245
+ | 'item_dimensions_estimated'
3246
+ | 'dimensions_estimated'
3247
+ | 'default_item_dimensions_estimated';
3186
3248
  type PaymentActionType =
3187
3249
  | 'redirect'
3188
3250
  | 'redirect_get'
@@ -3520,7 +3582,11 @@ declare namespace io.flow.v0.enums {
3520
3582
  | 'duties_paid'
3521
3583
  | 'emergency'
3522
3584
  | 'peak'
3523
- | 'address_correction';
3585
+ | 'address_correction'
3586
+ | 'security'
3587
+ | 'eei_filing'
3588
+ | 'fixed_ddp'
3589
+ | 'fixed_currency_conversion';
3524
3590
  type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
3525
3591
  type UnitOfMeasurement =
3526
3592
  | 'millimeter'
@@ -3743,6 +3809,17 @@ declare namespace io.flow.v0.models {
3743
3809
  readonly placeholder?: boolean;
3744
3810
  }
3745
3811
 
3812
+ interface AdditionalHandlingServiceFee {
3813
+ readonly discriminator: 'additional_handling_service_fee';
3814
+ readonly length_girth_threshold?: number;
3815
+ readonly length_threshold?: number;
3816
+ readonly width_threshold?: number;
3817
+ readonly dimensional_unit?: io.flow.v0.enums.UnitOfMeasurement;
3818
+ readonly weight_threshold?: number;
3819
+ readonly weight_unit?: io.flow.v0.enums.UnitOfMeasurement;
3820
+ readonly amount: io.flow.v0.models.Money;
3821
+ }
3822
+
3746
3823
  interface AdditionalServicesRequested {
3747
3824
  readonly name: string;
3748
3825
  readonly description?: string;
@@ -6362,6 +6439,17 @@ declare namespace io.flow.v0.models {
6362
6439
  readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
6363
6440
  }
6364
6441
 
6442
+ interface EeiFilingRatecardFee {
6443
+ readonly discriminator: 'eei_filing_ratecard_fee';
6444
+ readonly amount: io.flow.v0.models.Money;
6445
+ }
6446
+
6447
+ interface EeiFilingServiceFee {
6448
+ readonly discriminator: 'eei_filing_service_fee';
6449
+ readonly amount: io.flow.v0.models.Money;
6450
+ readonly value_threshold: io.flow.v0.models.Money;
6451
+ }
6452
+
6365
6453
  interface EmailAbandonedOrderPromotion {
6366
6454
  readonly discount_form: io.flow.v0.models.DiscountForm;
6367
6455
  readonly attributes: Record<string, string>;
@@ -6884,6 +6972,31 @@ declare namespace io.flow.v0.models {
6884
6972
  readonly placeholder?: string;
6885
6973
  }
6886
6974
 
6975
+ interface FixedCurrencyConversionRatecardFee {
6976
+ readonly discriminator: 'fixed_currency_conversion_ratecard_fee';
6977
+ readonly amount: io.flow.v0.models.Money;
6978
+ }
6979
+
6980
+ interface FixedCurrencyConversionServiceFee {
6981
+ readonly discriminator: 'fixed_currency_conversion_service_fee';
6982
+ readonly conditions: io.flow.v0.models.FixedFeeCondition[];
6983
+ }
6984
+
6985
+ interface FixedDdpRatecardFee {
6986
+ readonly discriminator: 'fixed_ddp_ratecard_fee';
6987
+ readonly amount: io.flow.v0.models.Money;
6988
+ }
6989
+
6990
+ interface FixedDdpServiceFee {
6991
+ readonly discriminator: 'fixed_ddp_service_fee';
6992
+ readonly conditions: io.flow.v0.models.FixedFeeCondition[];
6993
+ }
6994
+
6995
+ interface FixedFeeCondition {
6996
+ readonly countries: string[];
6997
+ readonly amount: io.flow.v0.models.Money;
6998
+ }
6999
+
6887
7000
  interface FlatRate {
6888
7001
  readonly discriminator: 'flat_rate';
6889
7002
  readonly price: io.flow.v0.models.Price;
@@ -8107,6 +8220,15 @@ declare namespace io.flow.v0.models {
8107
8220
  readonly iso_639_2: string;
8108
8221
  }
8109
8222
 
8223
+ interface LargePackageServiceFee {
8224
+ readonly discriminator: 'large_package_service_fee';
8225
+ readonly length_girth_threshold?: number;
8226
+ readonly dimensional_unit?: io.flow.v0.enums.UnitOfMeasurement;
8227
+ readonly weight_threshold?: number;
8228
+ readonly weight_unit?: io.flow.v0.enums.UnitOfMeasurement;
8229
+ readonly amount: io.flow.v0.models.Money;
8230
+ }
8231
+
8110
8232
  interface Line {
8111
8233
  readonly id?: string;
8112
8234
  readonly item_number: string;
@@ -8461,6 +8583,11 @@ declare namespace io.flow.v0.models {
8461
8583
  readonly reason: string;
8462
8584
  }
8463
8585
 
8586
+ interface MerchantDisabled {
8587
+ readonly discriminator: 'merchant_disabled';
8588
+ readonly reason: io.flow.v0.enums.MerchantDisabledReason;
8589
+ }
8590
+
8464
8591
  interface MerchantGiftCardBalance {
8465
8592
  readonly amount: number;
8466
8593
  readonly currency: string;
@@ -11585,6 +11712,12 @@ declare namespace io.flow.v0.models {
11585
11712
  readonly status: io.flow.v0.enums.AvailabilityStatus;
11586
11713
  }
11587
11714
 
11715
+ interface RemoteAreaByWeightServiceFee {
11716
+ readonly discriminator: 'remote_area_by_weight_service_fee';
11717
+ readonly amount: io.flow.v0.models.Money;
11718
+ readonly weight_unit: io.flow.v0.enums.UnitOfMeasurement;
11719
+ }
11720
+
11588
11721
  interface RemoteAreaRatecardFee {
11589
11722
  readonly discriminator: 'remote_area_ratecard_fee';
11590
11723
  readonly amount: io.flow.v0.models.Money;
@@ -11931,6 +12064,17 @@ declare namespace io.flow.v0.models {
11931
12064
  readonly minute_of_hour: string;
11932
12065
  }
11933
12066
 
12067
+ interface SecurityRatecardFee {
12068
+ readonly discriminator: 'security_ratecard_fee';
12069
+ readonly amount: io.flow.v0.models.Money;
12070
+ }
12071
+
12072
+ interface SecurityServiceFee {
12073
+ readonly discriminator: 'security_service_fee';
12074
+ readonly amount: io.flow.v0.models.Money;
12075
+ readonly countries: string[];
12076
+ }
12077
+
11934
12078
  interface SelectIssuerOptionActionDetails {
11935
12079
  readonly discriminator: 'select_issuer_option_action_details';
11936
12080
  readonly issuer_options: io.flow.v0.models.IssuerReference[];
@@ -14223,7 +14367,8 @@ declare namespace io.flow.v0.unions {
14223
14367
  | io.flow.v0.models.SetupBlocked
14224
14368
  | io.flow.v0.models.SetupCompleted
14225
14369
  | io.flow.v0.models.MerchantActivated
14226
- | io.flow.v0.models.MerchantDeactivated;
14370
+ | io.flow.v0.models.MerchantDeactivated
14371
+ | io.flow.v0.models.MerchantDisabled;
14227
14372
  type OnlineAuthorizationDetails =
14228
14373
  | io.flow.v0.models.CryptopayAuthorizationDetails
14229
14374
  | io.flow.v0.models.PaypalAuthorizationDetails
@@ -14349,7 +14494,11 @@ declare namespace io.flow.v0.unions {
14349
14494
  | io.flow.v0.models.RemoteAreaRatecardFee
14350
14495
  | io.flow.v0.models.EmergencySituationSurchargeRatecardFee
14351
14496
  | io.flow.v0.models.PeakSurchargeRatecardFee
14352
- | io.flow.v0.models.DutiesTaxesPaidSurchargeRatecardFee;
14497
+ | io.flow.v0.models.DutiesTaxesPaidSurchargeRatecardFee
14498
+ | io.flow.v0.models.SecurityRatecardFee
14499
+ | io.flow.v0.models.EeiFilingRatecardFee
14500
+ | io.flow.v0.models.FixedDdpRatecardFee
14501
+ | io.flow.v0.models.FixedCurrencyConversionRatecardFee;
14353
14502
  type RepeatSchedule =
14354
14503
  | io.flow.v0.models.RepeatHourly
14355
14504
  | io.flow.v0.models.RepeatDaily
@@ -14376,7 +14525,14 @@ declare namespace io.flow.v0.unions {
14376
14525
  | io.flow.v0.models.PeakSurchargeServiceFee
14377
14526
  | io.flow.v0.models.PeakSurchargeByWeightServiceFee
14378
14527
  | io.flow.v0.models.DutiesTaxesPaidSurchargeServiceFee
14379
- | io.flow.v0.models.OversizePieceSurchargeServiceFee;
14528
+ | io.flow.v0.models.OversizePieceSurchargeServiceFee
14529
+ | io.flow.v0.models.RemoteAreaByWeightServiceFee
14530
+ | io.flow.v0.models.AdditionalHandlingServiceFee
14531
+ | io.flow.v0.models.LargePackageServiceFee
14532
+ | io.flow.v0.models.SecurityServiceFee
14533
+ | io.flow.v0.models.FixedDdpServiceFee
14534
+ | io.flow.v0.models.FixedCurrencyConversionServiceFee
14535
+ | io.flow.v0.models.EeiFilingServiceFee;
14380
14536
  type Session = io.flow.v0.models.OrganizationSession;
14381
14537
  type SessionAuthorization =
14382
14538
  io.flow.v0.models.OrganizationSessionAuthorization;
@@ -14469,6 +14625,8 @@ export type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
14469
14625
  export type ActionUseSdkStripeV3 = io.flow.v0.models.ActionUseSdkStripeV3;
14470
14626
  export type ActionWait = io.flow.v0.models.ActionWait;
14471
14627
  export type ActivationPutForm = io.flow.v0.models.ActivationPutForm;
14628
+ export type AdditionalHandlingServiceFee =
14629
+ io.flow.v0.models.AdditionalHandlingServiceFee;
14472
14630
  export type AdditionalServicesRequested =
14473
14631
  io.flow.v0.models.AdditionalServicesRequested;
14474
14632
  export type Address = io.flow.v0.models.Address;
@@ -15023,6 +15181,8 @@ export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
15023
15181
  export type EcommercePlatformUpserted =
15024
15182
  io.flow.v0.models.EcommercePlatformUpserted;
15025
15183
  export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
15184
+ export type EeiFilingRatecardFee = io.flow.v0.models.EeiFilingRatecardFee;
15185
+ export type EeiFilingServiceFee = io.flow.v0.models.EeiFilingServiceFee;
15026
15186
  export type EmailAbandonedOrderPromotion =
15027
15187
  io.flow.v0.models.EmailAbandonedOrderPromotion;
15028
15188
  export type EmailAbandonedOrderUrls = io.flow.v0.models.EmailAbandonedOrderUrls;
@@ -15170,6 +15330,13 @@ export type FieldValidationRequired = io.flow.v0.models.FieldValidationRequired;
15170
15330
  export type FieldValidationRequiredIfPresent =
15171
15331
  io.flow.v0.models.FieldValidationRequiredIfPresent;
15172
15332
  export type FieldValidationRule = io.flow.v0.unions.FieldValidationRule;
15333
+ export type FixedCurrencyConversionRatecardFee =
15334
+ io.flow.v0.models.FixedCurrencyConversionRatecardFee;
15335
+ export type FixedCurrencyConversionServiceFee =
15336
+ io.flow.v0.models.FixedCurrencyConversionServiceFee;
15337
+ export type FixedDdpRatecardFee = io.flow.v0.models.FixedDdpRatecardFee;
15338
+ export type FixedDdpServiceFee = io.flow.v0.models.FixedDdpServiceFee;
15339
+ export type FixedFeeCondition = io.flow.v0.models.FixedFeeCondition;
15173
15340
  export type FlatRate = io.flow.v0.models.FlatRate;
15174
15341
  export type FlatRateForm = io.flow.v0.models.FlatRateForm;
15175
15342
  export type FlowBehavior = io.flow.v0.enums.FlowBehavior;
@@ -15425,6 +15592,7 @@ export type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
15425
15592
  export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
15426
15593
  export type LaneSummary = io.flow.v0.models.LaneSummary;
15427
15594
  export type Language = io.flow.v0.models.Language;
15595
+ export type LargePackageServiceFee = io.flow.v0.models.LargePackageServiceFee;
15428
15596
  export type LevyComponent = io.flow.v0.enums.LevyComponent;
15429
15597
  export type LevyInclusion = io.flow.v0.enums.LevyInclusion;
15430
15598
  export type LevyStrategy = io.flow.v0.enums.LevyStrategy;
@@ -15495,6 +15663,8 @@ export type MerchantApplicationUpserted =
15495
15663
  export type MerchantApplicationsSummary =
15496
15664
  io.flow.v0.unions.MerchantApplicationsSummary;
15497
15665
  export type MerchantDeactivated = io.flow.v0.models.MerchantDeactivated;
15666
+ export type MerchantDisabled = io.flow.v0.models.MerchantDisabled;
15667
+ export type MerchantDisabledReason = io.flow.v0.enums.MerchantDisabledReason;
15498
15668
  export type MerchantGiftCardBalance = io.flow.v0.models.MerchantGiftCardBalance;
15499
15669
  export type MerchantGiftCardBalanceForm =
15500
15670
  io.flow.v0.models.MerchantGiftCardBalanceForm;
@@ -16186,6 +16356,8 @@ export type RegionReference = io.flow.v0.models.RegionReference;
16186
16356
  export type RegionSetting = io.flow.v0.models.RegionSetting;
16187
16357
  export type RegionSettingForm = io.flow.v0.models.RegionSettingForm;
16188
16358
  export type RegionType = io.flow.v0.enums.RegionType;
16359
+ export type RemoteAreaByWeightServiceFee =
16360
+ io.flow.v0.models.RemoteAreaByWeightServiceFee;
16189
16361
  export type RemoteAreaRatecardFee = io.flow.v0.models.RemoteAreaRatecardFee;
16190
16362
  export type RemoteAreaServiceFee = io.flow.v0.models.RemoteAreaServiceFee;
16191
16363
  export type RepeatDaily = io.flow.v0.models.RepeatDaily;
@@ -16256,6 +16428,8 @@ export type ScheduledExportForm = io.flow.v0.models.ScheduledExportForm;
16256
16428
  export type ScheduledPickup = io.flow.v0.models.ScheduledPickup;
16257
16429
  export type SdkAdyenV3AuthenticationToken =
16258
16430
  io.flow.v0.unions.SdkAdyenV3AuthenticationToken;
16431
+ export type SecurityRatecardFee = io.flow.v0.models.SecurityRatecardFee;
16432
+ export type SecurityServiceFee = io.flow.v0.models.SecurityServiceFee;
16259
16433
  export type SelectIssuerOptionActionDetails =
16260
16434
  io.flow.v0.models.SelectIssuerOptionActionDetails;
16261
16435
  export type ServiceDescription = io.flow.v0.unions.ServiceDescription;