@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/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 {
|
|
@@ -3639,7 +3592,8 @@ declare namespace io.flow.v0.enums {
|
|
|
3639
3592
|
| 'shipping_unit_price_negative'
|
|
3640
3593
|
| 'shipping_discount_amount_precision_invalid'
|
|
3641
3594
|
| 'shipping_discount_amount_invalid'
|
|
3642
|
-
| 'merchant_of_record_invalid'
|
|
3595
|
+
| 'merchant_of_record_invalid'
|
|
3596
|
+
| 'wrong_unit_specified';
|
|
3643
3597
|
type TaxReportType = 'consumer' | 'b2b';
|
|
3644
3598
|
type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
|
|
3645
3599
|
type TaxabilityType = 'tax_rule';
|
|
@@ -9715,6 +9669,7 @@ declare namespace io.flow.v0.models {
|
|
|
9715
9669
|
readonly payment_state?: string;
|
|
9716
9670
|
readonly payer_email?: string;
|
|
9717
9671
|
readonly payer_status?: string;
|
|
9672
|
+
readonly approval_url?: string;
|
|
9718
9673
|
}
|
|
9719
9674
|
|
|
9720
9675
|
interface PaypalAuthorizationForm {
|
|
@@ -11975,6 +11930,7 @@ declare namespace io.flow.v0.models {
|
|
|
11975
11930
|
readonly ship_from: io.flow.v0.models.StreetAddress;
|
|
11976
11931
|
readonly quantity: number;
|
|
11977
11932
|
readonly unit_price: number;
|
|
11933
|
+
readonly unit_weight?: io.flow.v0.models.Measurement;
|
|
11978
11934
|
readonly country_of_origin: string;
|
|
11979
11935
|
readonly hs_code: string;
|
|
11980
11936
|
readonly includes: io.flow.v0.enums.LevyInclusion[];
|