@flowio/types 11.22.0 → 11.22.2

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
@@ -251,6 +251,13 @@ 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';
254
261
  type NetworkStatus =
255
262
  | 'approved_by_network'
256
263
  | 'declined_by_network'
@@ -554,7 +561,7 @@ declare namespace io.flow.stripe.v0.models {
554
561
  }
555
562
 
556
563
  interface OrderItem {
557
- readonly object: string;
564
+ readonly object?: string;
558
565
  readonly amount: number;
559
566
  readonly currency: string;
560
567
  readonly description?: string;
@@ -796,7 +803,7 @@ declare namespace io.flow.stripe.v0.models {
796
803
 
797
804
  interface Shipping {
798
805
  readonly address: io.flow.stripe.v0.models.Address;
799
- readonly name: string;
806
+ readonly name?: string;
800
807
  readonly phone?: string;
801
808
  }
802
809
 
@@ -819,6 +826,7 @@ declare namespace io.flow.stripe.v0.models {
819
826
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
820
827
  readonly type: io.flow.stripe.v0.enums.SourceType;
821
828
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
829
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
822
830
  }
823
831
 
824
832
  interface SourceCard {
@@ -849,12 +857,50 @@ declare namespace io.flow.stripe.v0.models {
849
857
  readonly first_name?: string;
850
858
  readonly last_name?: string;
851
859
  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;
852
880
  }
853
881
 
854
882
  interface SourceKlarnaRequest {
855
883
  readonly first_name: string;
856
884
  readonly last_name: string;
885
+ readonly purchase_country?: string;
886
+ readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
857
887
  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;
858
904
  }
859
905
 
860
906
  interface SourceRequest {
@@ -872,6 +918,7 @@ declare namespace io.flow.stripe.v0.models {
872
918
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
873
919
  readonly token?: string;
874
920
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
921
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
875
922
  }
876
923
 
877
924
  interface Stripe3Ds2Fingerprint {
@@ -3801,7 +3848,7 @@ declare namespace io.flow.v0.models {
3801
3848
  readonly type: 'use_sdk_klarna_v1';
3802
3849
  readonly expires_at?: string;
3803
3850
  readonly client_token: string;
3804
- readonly payment_method_categories: string[];
3851
+ readonly payment_method_categories: io.flow.v0.models.KlarnaPaymentCategory[];
3805
3852
  }
3806
3853
 
3807
3854
  interface ActionUseSdkPaypal {
@@ -7497,6 +7544,26 @@ declare namespace io.flow.v0.models {
7497
7544
  readonly body: any /*object*/;
7498
7545
  }
7499
7546
 
7547
+ interface KlarnaPaymentCategory {
7548
+ readonly id: string;
7549
+ readonly name: string;
7550
+ readonly standard_asset_url?: string;
7551
+ readonly descriptive_asset_url?: string;
7552
+ }
7553
+
7554
+ interface KlarnaPaymentMethodCategory {
7555
+ readonly id: string;
7556
+ readonly name?: string;
7557
+ readonly standard_asset_url?: string;
7558
+ readonly descriptive_asset_url?: string;
7559
+ }
7560
+
7561
+ interface KlarnaSdkAuthorizationResultActionDetails {
7562
+ readonly discriminator: 'klarna_sdk_authorization_result_action_details';
7563
+ readonly client_token: string;
7564
+ readonly payment_method_categories: io.flow.v0.models.KlarnaPaymentMethodCategory[];
7565
+ }
7566
+
7500
7567
  interface KlaviyoLineItem {
7501
7568
  readonly content: io.flow.v0.models.CheckoutItemContent;
7502
7569
  readonly quantity: number;
@@ -9364,6 +9431,21 @@ declare namespace io.flow.v0.models {
9364
9431
  readonly payment_data: any /*object*/;
9365
9432
  }
9366
9433
 
9434
+ interface PaymentMethodDataAuthorizeKlarna {
9435
+ readonly type: 'authorize_klarna';
9436
+ readonly result: io.flow.v0.unions.PaymentMethodDataAuthorizeKlarnaResult;
9437
+ }
9438
+
9439
+ interface PaymentMethodDataAuthorizeKlarnaResultFailure {
9440
+ readonly type: 'failure';
9441
+ readonly placeholder?: string;
9442
+ }
9443
+
9444
+ interface PaymentMethodDataAuthorizeKlarnaResultSuccess {
9445
+ readonly type: 'success';
9446
+ readonly authorization_token: string;
9447
+ }
9448
+
9367
9449
  interface PaymentMethodDataAuthorizePaypal {
9368
9450
  readonly type: 'authorize_paypal';
9369
9451
  readonly payment_id: string;
@@ -11902,6 +11984,7 @@ declare namespace io.flow.v0.models {
11902
11984
  interface TaxDutyQuoteFeeValue {
11903
11985
  readonly amount: number;
11904
11986
  readonly description: string;
11987
+ readonly amount_refundable_on_return: number;
11905
11988
  }
11906
11989
 
11907
11990
  interface TaxDutyQuoteForm {
@@ -11931,7 +12014,7 @@ declare namespace io.flow.v0.models {
11931
12014
  readonly quantity: number;
11932
12015
  readonly unit_price: number;
11933
12016
  readonly unit_weight?: io.flow.v0.models.Measurement;
11934
- readonly country_of_origin: string;
12017
+ readonly country_of_origin?: string;
11935
12018
  readonly hs_code: string;
11936
12019
  readonly includes: io.flow.v0.enums.LevyInclusion[];
11937
12020
  }
@@ -11942,6 +12025,7 @@ declare namespace io.flow.v0.models {
11942
12025
  readonly rate: number;
11943
12026
  readonly description: string;
11944
12027
  readonly zero_levy_reason?: io.flow.v0.enums.ZeroLevyReasonCode[];
12028
+ readonly amount_refundable_on_return: number;
11945
12029
  }
11946
12030
 
11947
12031
  interface TaxDutyQuoteSimpleShipping {
@@ -12562,7 +12646,8 @@ declare namespace io.flow.v0.unions {
12562
12646
  | io.flow.v0.models.AdyenNativeActionDetails
12563
12647
  | io.flow.v0.models.StripeAuthorizationResultActionDetails
12564
12648
  | io.flow.v0.models.ThreedsIdentifyActionDetails
12565
- | io.flow.v0.models.ThreedsChallengeActionDetails;
12649
+ | io.flow.v0.models.ThreedsChallengeActionDetails
12650
+ | io.flow.v0.models.KlarnaSdkAuthorizationResultActionDetails;
12566
12651
  type AvailableFilter =
12567
12652
  | io.flow.v0.models.AvailableFilterStructured
12568
12653
  | io.flow.v0.models.AvailableFilterUnstructured;
@@ -12895,7 +12980,11 @@ declare namespace io.flow.v0.unions {
12895
12980
  | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay
12896
12981
  | io.flow.v0.models.PaymentMethodDataAuthorizeApplepay
12897
12982
  | io.flow.v0.models.PaymentMethodDataAuthorizePaypal
12983
+ | io.flow.v0.models.PaymentMethodDataAuthorizeKlarna
12898
12984
  | io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard;
12985
+ type PaymentMethodDataAuthorizeKlarnaResult =
12986
+ | io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultSuccess
12987
+ | io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultFailure;
12899
12988
  type PaymentMethodSummary =
12900
12989
  | io.flow.v0.models.PaymentMethodSummaryCard
12901
12990
  | io.flow.v0.models.PaymentMethodSummaryKlarna
@@ -13678,6 +13767,9 @@ export type ItemShippingPricing = io.flow.v0.models.ItemShippingPricing;
13678
13767
  export type ItemStatistics = io.flow.v0.models.ItemStatistics;
13679
13768
  export type ItemVersion = io.flow.v0.models.ItemVersion;
13680
13769
  export type JsonpResponse = io.flow.v0.models.JsonpResponse;
13770
+ export type KlarnaPaymentCategory = io.flow.v0.models.KlarnaPaymentCategory;
13771
+ export type KlarnaPaymentMethodCategory = io.flow.v0.models.KlarnaPaymentMethodCategory;
13772
+ export type KlarnaSdkAuthorizationResultActionDetails = io.flow.v0.models.KlarnaSdkAuthorizationResultActionDetails;
13681
13773
  export type KlaviyoLineItem = io.flow.v0.models.KlaviyoLineItem;
13682
13774
  export type KlaviyoOrderContent = io.flow.v0.models.KlaviyoOrderContent;
13683
13775
  export type KlaviyoOrderPrices = io.flow.v0.models.KlaviyoOrderPrices;
@@ -13981,6 +14073,10 @@ export type PaymentMethodData = io.flow.v0.unions.PaymentMethodData;
13981
14073
  export type PaymentMethodDataAuthorizeApplepay = io.flow.v0.models.PaymentMethodDataAuthorizeApplepay;
13982
14074
  export type PaymentMethodDataAuthorizeCard = io.flow.v0.models.PaymentMethodDataAuthorizeCard;
13983
14075
  export type PaymentMethodDataAuthorizeGooglepay = io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay;
14076
+ export type PaymentMethodDataAuthorizeKlarna = io.flow.v0.models.PaymentMethodDataAuthorizeKlarna;
14077
+ export type PaymentMethodDataAuthorizeKlarnaResult = io.flow.v0.unions.PaymentMethodDataAuthorizeKlarnaResult;
14078
+ export type PaymentMethodDataAuthorizeKlarnaResultFailure = io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultFailure;
14079
+ export type PaymentMethodDataAuthorizeKlarnaResultSuccess = io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultSuccess;
13984
14080
  export type PaymentMethodDataAuthorizePaypal = io.flow.v0.models.PaymentMethodDataAuthorizePaypal;
13985
14081
  export type PaymentMethodDataCompleteAuthorizationCard = io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard;
13986
14082
  export type PaymentMethodDataInitAfterpay = io.flow.v0.models.PaymentMethodDataInitAfterpay;