@flowio/types 11.24.100 → 11.24.101

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +374 -34
  2. package/package.json +2 -2
  3. package/src/api.ts +636 -45
package/src/api.ts CHANGED
@@ -153,6 +153,82 @@ declare namespace io.flow.google.pay.v0.unions {
153
153
  declare namespace io.flow.stripe.v0.enums {
154
154
  type AccountType = 'platform' | 'custom' | 'standard' | 'express';
155
155
  type ApplePayType = 'apple_pay' | 'apple_pay_later';
156
+ type BalanceTransactionType =
157
+ | 'adjustment'
158
+ | 'advance'
159
+ | 'advance_funding'
160
+ | 'anticipation_repayment'
161
+ | 'application_fee'
162
+ | 'application_fee_refund'
163
+ | 'charge'
164
+ | 'climate_order_purchase'
165
+ | 'climate_order_refund'
166
+ | 'connect_collection_transfer'
167
+ | 'contribution'
168
+ | 'issuing_authorization_hold'
169
+ | 'issuing_authorization_release'
170
+ | 'issuing_dispute'
171
+ | 'issuing_transaction'
172
+ | 'obligation_outbound'
173
+ | 'obligation_reversal_inbound'
174
+ | 'payment'
175
+ | 'payment_failure_refund'
176
+ | 'payment_network_reserve_hold'
177
+ | 'payment_network_reserve_release'
178
+ | 'payment_refund'
179
+ | 'payment_reversal'
180
+ | 'payment_unreconciled'
181
+ | 'payout'
182
+ | 'payout_cancel'
183
+ | 'payout_failure'
184
+ | 'refund'
185
+ | 'refund_failure'
186
+ | 'reserve_transaction'
187
+ | 'reserved_funds'
188
+ | 'stripe_fee'
189
+ | 'stripe_fx_fee'
190
+ | 'tax_fee'
191
+ | 'topup'
192
+ | 'topup_reversal'
193
+ | 'transfer'
194
+ | 'transfer_cancel'
195
+ | 'transfer_failure'
196
+ | 'transfer_refund';
197
+ type BankIdeal =
198
+ | 'abn_amro'
199
+ | 'asn_bank'
200
+ | 'bunq'
201
+ | 'handelsbanken'
202
+ | 'ing'
203
+ | 'knab'
204
+ | 'moneyou'
205
+ | 'n26'
206
+ | 'nn'
207
+ | 'rabobank'
208
+ | 'regiobank'
209
+ | 'revolut'
210
+ | 'sns_bank'
211
+ | 'triodos_bank'
212
+ | 'van_lanschot'
213
+ | 'yoursafe';
214
+ type BicIdeal =
215
+ | 'ABNANL2A'
216
+ | 'ASNBNL21'
217
+ | 'BITSNL2A'
218
+ | 'BUNQNL2A'
219
+ | 'FVLBNL22'
220
+ | 'HANDNL2A'
221
+ | 'INGBNL2A'
222
+ | 'KNABNL2H'
223
+ | 'MOYONL21'
224
+ | 'NNBANL2G'
225
+ | 'NTSBDEB1'
226
+ | 'RABONL2U'
227
+ | 'RBRBNL21'
228
+ | 'REVOIE23'
229
+ | 'REVOLT21'
230
+ | 'SNSBNL2A'
231
+ | 'TRIONL2U';
156
232
  type CancellationReason =
157
233
  | 'abandoned'
158
234
  | 'automatic'
@@ -169,19 +245,6 @@ declare namespace io.flow.stripe.v0.enums {
169
245
  | 'JCB'
170
246
  | 'Diners Club'
171
247
  | 'Unknown';
172
- type CardErrorCode =
173
- | 'invalid_number'
174
- | 'invalid_expiry_month'
175
- | 'invalid_expiry_year'
176
- | 'invalid_cvc'
177
- | 'invalid_swipe_data'
178
- | 'incorrect_number'
179
- | 'expired_card'
180
- | 'incorrect_cvc'
181
- | 'incorrect_zip'
182
- | 'card_declined'
183
- | 'missing'
184
- | 'processing_error';
185
248
  type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
186
249
  type CardNetwork =
187
250
  | 'amex'
@@ -218,6 +281,7 @@ declare namespace io.flow.stripe.v0.enums {
218
281
  | 'invalid_account'
219
282
  | 'invalid_amount'
220
283
  | 'invalid_cvc'
284
+ | 'invalid_expiry_month'
221
285
  | 'invalid_expiry_year'
222
286
  | 'invalid_number'
223
287
  | 'invalid_pin'
@@ -240,7 +304,113 @@ declare namespace io.flow.stripe.v0.enums {
240
304
  | 'testmode_decline'
241
305
  | 'transaction_not_allowed'
242
306
  | 'try_again_later'
243
- | 'withdrawal_count_limit_exceeded';
307
+ | 'withdrawal_count_limit_exceeded'
308
+ | 'previously_declined_do_not_retry'
309
+ | 'highest_risk_level'
310
+ | 'requested_block_on_incorrect_cvc';
311
+ type DisputeEventType =
312
+ | 'charge.dispute.closed'
313
+ | 'charge.dispute.created'
314
+ | 'charge.dispute.funds_reinstated'
315
+ | 'charge.dispute.funds_withdrawn'
316
+ | 'charge.dispute.updated';
317
+ type DisputePaymentMethodDetailsCardCaseType = 'chargeback' | 'inquiry';
318
+ type DisputePaymentMethodDetailsType = 'card' | 'klarna' | 'paypal';
319
+ type DisputeReason =
320
+ | 'bank_cannot_process'
321
+ | 'check_returned'
322
+ | 'credit_not_processed'
323
+ | 'customer_initiated'
324
+ | 'debit_not_authorized'
325
+ | 'duplicate'
326
+ | 'fraudulent'
327
+ | 'general'
328
+ | 'incorrect_account_details'
329
+ | 'insufficient_funds'
330
+ | 'product_not_received'
331
+ | 'product_unacceptable'
332
+ | 'subscription_canceled'
333
+ | 'unrecognized';
334
+ type DisputeStatus =
335
+ | 'warning_needs_response'
336
+ | 'warning_under_review'
337
+ | 'warning_closed'
338
+ | 'needs_response'
339
+ | 'under_review'
340
+ | 'won'
341
+ | 'lost';
342
+ type ErrorCode =
343
+ | 'invalid_number'
344
+ | 'invalid_expiry_month'
345
+ | 'invalid_expiry_year'
346
+ | 'invalid_cvc'
347
+ | 'invalid_swipe_data'
348
+ | 'country_code_invalid'
349
+ | 'email_invalid'
350
+ | 'postal_code_invalid'
351
+ | 'invalid_characters'
352
+ | 'url_invalid'
353
+ | 'invalid_charge_amount'
354
+ | 'incorrect_number'
355
+ | 'incorrect_address'
356
+ | 'incorrect_cvc'
357
+ | 'incorrect_zip'
358
+ | 'card_declined'
359
+ | 'expired_card'
360
+ | 'missing'
361
+ | 'processing_error'
362
+ | 'account_closed'
363
+ | 'amount_too_small'
364
+ | 'amount_too_large'
365
+ | 'api_key_expired'
366
+ | 'authentication_required'
367
+ | 'capture_charge_authorization_expired'
368
+ | 'capture_unauthorized_payment'
369
+ | 'card_decline_rate_limit_exceeded'
370
+ | 'charge_already_captured'
371
+ | 'charge_already_refunded'
372
+ | 'charge_disputed'
373
+ | 'charge_exceeds_source_limit'
374
+ | 'charge_expired_for_capture'
375
+ | 'charge_invalid_parameter'
376
+ | 'charge_not_refundable'
377
+ | 'insufficient_funds'
378
+ | 'intent_invalid_state'
379
+ | 'livemode_mismatch'
380
+ | 'parameter_invalid_empty'
381
+ | 'parameter_invalid_integer'
382
+ | 'parameter_invalid_string_blank'
383
+ | 'parameter_invalid_string_empty'
384
+ | 'parameter_missing'
385
+ | 'parameter_unknown'
386
+ | 'parameters_exclusive'
387
+ | 'payment_intent_action_required'
388
+ | 'payment_intent_authentication_failure'
389
+ | 'payment_intent_incompatible_payment_method'
390
+ | 'payment_intent_payment_attempt_expired'
391
+ | 'payment_intent_payment_attempt_failed'
392
+ | 'payment_intent_unexpected_state'
393
+ | 'payment_intent_invalid_parameter'
394
+ | 'payment_method_billing_details_address_missing'
395
+ | 'payment_method_customer_decline'
396
+ | 'payment_method_currency_mismatch'
397
+ | 'payment_method_invalid_parameter'
398
+ | 'payment_method_invalid_parameter_testmode'
399
+ | 'payment_method_not_available'
400
+ | 'payment_method_provider_decline'
401
+ | 'payment_method_provider_timeout'
402
+ | 'payment_method_unactivated'
403
+ | 'payment_method_unexpected_state'
404
+ | 'payment_method_unsupported_type'
405
+ | 'platform_api_key_expired'
406
+ | 'refund_disputed_payment'
407
+ | 'testmode_charges_only'
408
+ | 'tls_version_unsupported'
409
+ | 'setup_attempt_failed'
410
+ | 'setup_intent_authentication_failure'
411
+ | 'setup_intent_invalid_parameter'
412
+ | 'setup_intent_setup_attempt_expired'
413
+ | 'setup_intent_unexpected_state';
244
414
  type ErrorType =
245
415
  | 'api_connection_error'
246
416
  | 'api_error'
@@ -259,6 +429,11 @@ declare namespace io.flow.stripe.v0.enums {
259
429
  | 'charge.succeeded'
260
430
  | 'charge.updated'
261
431
  | 'charge.refund.updated'
432
+ | 'charge.dispute.closed'
433
+ | 'charge.dispute.created'
434
+ | 'charge.dispute.funds_reinstated'
435
+ | 'charge.dispute.funds_withdrawn'
436
+ | 'charge.dispute.updated'
262
437
  | 'payment_intent.created'
263
438
  | 'payment_intent.amount_capturable_updated'
264
439
  | 'payment_intent.payment_failed'
@@ -269,6 +444,8 @@ declare namespace io.flow.stripe.v0.enums {
269
444
  | 'source.canceled'
270
445
  | 'source.chargeable'
271
446
  | 'source.failed';
447
+ type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
448
+ type FeatureAvailability = 'available' | 'unavailable';
272
449
  type KlarnaPaymentMethodCategoryType =
273
450
  | 'direct_bank_transfer'
274
451
  | 'direct_debit'
@@ -296,7 +473,12 @@ declare namespace io.flow.stripe.v0.enums {
296
473
  | 'pay_now'
297
474
  | 'pay_with_financing'
298
475
  | 'pay_in_installments';
299
- type PaymentMethodType = 'card' | 'card_present';
476
+ type PaymentMethodType =
477
+ | 'card'
478
+ | 'card_present'
479
+ | 'ideal'
480
+ | 'klarna'
481
+ | 'bancontact';
300
482
  type PaymentOutcomeType =
301
483
  | 'authorized'
302
484
  | 'manual_review'
@@ -304,6 +486,7 @@ declare namespace io.flow.stripe.v0.enums {
304
486
  | 'blocked'
305
487
  | 'invalid';
306
488
  type PaymentStatus = 'succeeded' | 'pending' | 'failed';
489
+ type PreferredLanguageBancontact = 'de' | 'en' | 'fr' | 'nl';
307
490
  type PreferredLocaleKlarna =
308
491
  | 'de-AT'
309
492
  | 'en-AT'
@@ -534,6 +717,7 @@ declare namespace io.flow.stripe.v0.models {
534
717
  readonly currency: string;
535
718
  readonly customer?: string;
536
719
  readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
720
+ readonly disputed?: boolean;
537
721
  readonly paid: boolean;
538
722
  readonly refunded: boolean;
539
723
  readonly refunds?: io.flow.stripe.v0.models.Refunds;
@@ -542,7 +726,7 @@ declare namespace io.flow.stripe.v0.models {
542
726
  readonly balance_transaction?: string;
543
727
  readonly destination?: string;
544
728
  readonly dispute?: string;
545
- readonly failure_code?: string;
729
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
546
730
  readonly failure_message?: string;
547
731
  readonly on_behalf_of?: string;
548
732
  readonly review?: string;
@@ -553,6 +737,7 @@ declare namespace io.flow.stripe.v0.models {
553
737
  readonly calculated_statement_descriptor?: string;
554
738
  readonly statement_descriptor?: string;
555
739
  readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
740
+ readonly payment_method?: string;
556
741
  }
557
742
 
558
743
  interface ChargeDestination {
@@ -581,6 +766,7 @@ declare namespace io.flow.stripe.v0.models {
581
766
  readonly amount_refunded: number;
582
767
  readonly authorization_code?: string;
583
768
  readonly captured: boolean;
769
+ readonly disputed?: boolean;
584
770
  readonly created: number;
585
771
  readonly currency: string;
586
772
  readonly customer?: string;
@@ -593,7 +779,7 @@ declare namespace io.flow.stripe.v0.models {
593
779
  readonly balance_transaction?: string;
594
780
  readonly destination?: string;
595
781
  readonly dispute?: string;
596
- readonly failure_code?: string;
782
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
597
783
  readonly failure_message?: string;
598
784
  readonly on_behalf_of?: string;
599
785
  readonly review?: string;
@@ -604,6 +790,7 @@ declare namespace io.flow.stripe.v0.models {
604
790
  readonly calculated_statement_descriptor?: string;
605
791
  readonly statement_descriptor?: string;
606
792
  readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
793
+ readonly payment_method?: string;
607
794
  }
608
795
 
609
796
  interface CodeVerification {
@@ -627,10 +814,123 @@ declare namespace io.flow.stripe.v0.models {
627
814
  readonly description?: string;
628
815
  }
629
816
 
817
+ interface Dispute {
818
+ readonly id: string;
819
+ readonly amount: number;
820
+ readonly charge: string;
821
+ readonly currency: string;
822
+ readonly evidence: io.flow.stripe.v0.models.DisputeEvidence;
823
+ readonly metadata: Record<string, string>;
824
+ readonly payment_intent?: string;
825
+ readonly reason: io.flow.stripe.v0.enums.DisputeReason;
826
+ readonly status: io.flow.stripe.v0.enums.DisputeStatus;
827
+ readonly object: string;
828
+ readonly balance_transactions: io.flow.stripe.v0.models.DisputeBalanceTransaction[];
829
+ readonly created: number;
830
+ readonly evidence_details: io.flow.stripe.v0.models.DisputeEvidenceDetails;
831
+ readonly is_charge_refundable: boolean;
832
+ readonly livemode: boolean;
833
+ readonly payment_method_details?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
834
+ }
835
+
836
+ interface DisputeBalanceTransaction {
837
+ readonly payment_intent?: string;
838
+ readonly id: string;
839
+ readonly object: string;
840
+ readonly amount: number;
841
+ readonly available_on: number;
842
+ readonly created: number;
843
+ readonly currency: string;
844
+ readonly description?: string;
845
+ readonly exchange_rate?: number;
846
+ readonly fee?: number;
847
+ readonly fee_details: io.flow.stripe.v0.models.DisputeBalanceTransactionFeeDetails[];
848
+ readonly net: number;
849
+ readonly reporting_category: string;
850
+ readonly source?: string;
851
+ readonly status: string;
852
+ readonly type: io.flow.stripe.v0.enums.BalanceTransactionType;
853
+ }
854
+
855
+ interface DisputeBalanceTransactionFeeDetails {
856
+ readonly amount: number;
857
+ readonly application?: string;
858
+ readonly currency: string;
859
+ readonly description?: string;
860
+ readonly type: string;
861
+ }
862
+
863
+ interface DisputeEvidence {
864
+ readonly access_activity_log?: string;
865
+ readonly billing_address?: string;
866
+ readonly cancellation_policy?: string;
867
+ readonly cancellation_policy_disclosure?: string;
868
+ readonly cancellation_rebuttal?: string;
869
+ readonly customer_communication?: string;
870
+ readonly customer_email_address?: string;
871
+ readonly customer_name?: string;
872
+ readonly 'evidence.customer_purchase_ip'?: string;
873
+ readonly customer_signature?: string;
874
+ readonly duplicate_charge_documentation?: string;
875
+ readonly duplicate_charge_explanation?: string;
876
+ readonly duplicate_charge_id?: string;
877
+ readonly product_description?: string;
878
+ readonly receipt?: string;
879
+ readonly refund_policy?: string;
880
+ readonly refund_policy_disclosure?: string;
881
+ readonly refund_refusal_explanation?: string;
882
+ readonly service_date?: string;
883
+ readonly service_documentation?: string;
884
+ readonly shipping_address?: string;
885
+ readonly shipping_carrier?: string;
886
+ readonly shipping_date?: string;
887
+ readonly shipping_documentation?: string;
888
+ readonly shipping_tracking_number?: string;
889
+ readonly uncategorized_file?: string;
890
+ readonly uncategorized_text?: string;
891
+ }
892
+
893
+ interface DisputeEvidenceDetails {
894
+ readonly due_by?: number;
895
+ readonly has_evidence: boolean;
896
+ readonly past_due: boolean;
897
+ readonly submission_count: number;
898
+ }
899
+
900
+ interface DisputePaymentMethodDetails {
901
+ readonly card?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
902
+ readonly klarna?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
903
+ readonly paypal?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
904
+ readonly type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
905
+ }
906
+
907
+ interface DisputePaymentMethodDetailsCard {
908
+ readonly brand: string;
909
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
910
+ readonly network_reason_code?: string;
911
+ }
912
+
913
+ interface DisputePaymentMethodDetailsKlarna {
914
+ readonly reason_code?: string;
915
+ }
916
+
917
+ interface DisputePaymentMethodDetailsPaypal {
918
+ readonly case_id?: string;
919
+ readonly reason_code?: string;
920
+ }
921
+
630
922
  interface Error {
631
923
  readonly error: io.flow.stripe.v0.models.StripeError;
632
924
  }
633
925
 
926
+ interface ExtendedAuthorization {
927
+ readonly status?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
928
+ }
929
+
930
+ interface IncrementalAuthorization {
931
+ readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
932
+ }
933
+
634
934
  interface Keys {
635
935
  readonly secret?: string;
636
936
  readonly publishable?: string;
@@ -640,26 +940,27 @@ declare namespace io.flow.stripe.v0.models {
640
940
  readonly marketplace_seller_info?: io.flow.stripe.v0.models.KlarnaMarketplaceSellerInfo[];
641
941
  }
642
942
 
943
+ interface KlarnaDobForm {
944
+ readonly day: number;
945
+ readonly month: number;
946
+ readonly year: number;
947
+ }
948
+
643
949
  interface KlarnaMarketplaceSellerInfo {
644
950
  readonly sub_merchant_id?: string;
645
951
  readonly product_category?: string;
646
952
  }
647
953
 
648
- interface LastPaymentError {
649
- readonly charge?: string;
650
- readonly code?: string;
651
- readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
652
- readonly doc_url?: string;
653
- readonly message?: string;
654
- readonly param?: string;
655
- readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
656
- readonly type: io.flow.stripe.v0.enums.ErrorType;
657
- }
658
-
659
954
  interface LegalEntity {
660
955
  readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
661
956
  }
662
957
 
958
+ interface MarketplaceSellerInfo {
959
+ readonly name: string;
960
+ readonly id?: string;
961
+ readonly product_category?: string;
962
+ }
963
+
663
964
  interface Masterpass {
664
965
  readonly type: 'masterpass';
665
966
  readonly masterpass: io.flow.stripe.v0.models.MasterpassInformation;
@@ -681,6 +982,10 @@ declare namespace io.flow.stripe.v0.models {
681
982
  readonly payment_request_order_reference?: string;
682
983
  }
683
984
 
985
+ interface Multicapture {
986
+ readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
987
+ }
988
+
684
989
  interface NetworkTokenUsed {
685
990
  readonly used?: boolean;
686
991
  }
@@ -728,6 +1033,11 @@ declare namespace io.flow.stripe.v0.models {
728
1033
  readonly shipping?: io.flow.stripe.v0.models.Shipping;
729
1034
  }
730
1035
 
1036
+ interface Overcapture {
1037
+ readonly maximum_amount_capturable?: number;
1038
+ readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
1039
+ }
1040
+
731
1041
  interface Owner {
732
1042
  readonly address?: io.flow.stripe.v0.models.Address;
733
1043
  readonly email?: string;
@@ -739,6 +1049,10 @@ declare namespace io.flow.stripe.v0.models {
739
1049
  readonly verified_phone?: string;
740
1050
  }
741
1051
 
1052
+ interface PaymentDetails {
1053
+ readonly marketplace_seller_info?: io.flow.stripe.v0.models.MarketplaceSellerInfo;
1054
+ }
1055
+
742
1056
  interface PaymentIntent {
743
1057
  readonly id: string;
744
1058
  readonly object: string;
@@ -758,7 +1072,7 @@ declare namespace io.flow.stripe.v0.models {
758
1072
  readonly customer?: string;
759
1073
  readonly description?: string;
760
1074
  readonly invoice?: string;
761
- readonly last_payment_error?: io.flow.stripe.v0.models.LastPaymentError;
1075
+ readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
762
1076
  readonly livemode: boolean;
763
1077
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
764
1078
  readonly next_action?: io.flow.stripe.v0.models.NextAction;
@@ -801,7 +1115,7 @@ declare namespace io.flow.stripe.v0.models {
801
1115
  readonly off_session?: boolean;
802
1116
  readonly payment_method?: string;
803
1117
  readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
804
- readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
1118
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
805
1119
  readonly payment_method_types?: string[];
806
1120
  readonly receipt_email?: string;
807
1121
  readonly save_payment_method?: boolean;
@@ -822,7 +1136,7 @@ declare namespace io.flow.stripe.v0.models {
822
1136
  readonly on_behalf_of?: string;
823
1137
  readonly payment_method?: string;
824
1138
  readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
825
- readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
1139
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
826
1140
  readonly payment_method_types?: string[];
827
1141
  readonly receipt_email?: string;
828
1142
  readonly return_url?: string;
@@ -861,8 +1175,11 @@ declare namespace io.flow.stripe.v0.models {
861
1175
  readonly id: string;
862
1176
  readonly object: string;
863
1177
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1178
+ readonly bancontact?: any /*object*/;
864
1179
  readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
865
1180
  readonly card_present?: any /*object*/;
1181
+ readonly ideal?: any /*object*/;
1182
+ readonly klarna?: any /*object*/;
866
1183
  readonly created: number;
867
1184
  readonly customer?: string;
868
1185
  readonly livemode: boolean;
@@ -896,6 +1213,12 @@ declare namespace io.flow.stripe.v0.models {
896
1213
  readonly cvc?: string;
897
1214
  }
898
1215
 
1216
+ interface PaymentMethodDataBancontact {
1217
+ readonly type: 'bancontact';
1218
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1219
+ readonly metadata?: any /*object*/;
1220
+ }
1221
+
899
1222
  interface PaymentMethodDataCard {
900
1223
  readonly type: 'card';
901
1224
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
@@ -903,6 +1226,36 @@ declare namespace io.flow.stripe.v0.models {
903
1226
  readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
904
1227
  }
905
1228
 
1229
+ interface PaymentMethodDataIdeal {
1230
+ readonly type: 'ideal';
1231
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1232
+ readonly metadata?: any /*object*/;
1233
+ readonly ideal: io.flow.stripe.v0.models.PaymentMethodIdealForm;
1234
+ }
1235
+
1236
+ interface PaymentMethodDataKlarna {
1237
+ readonly type: 'klarna';
1238
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1239
+ readonly metadata?: any /*object*/;
1240
+ readonly klarna: io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
1241
+ }
1242
+
1243
+ interface PaymentMethodDetailsBancontact {
1244
+ readonly type: 'bancontact';
1245
+ readonly bancontact: io.flow.stripe.v0.models.PaymentMethodDetailsBancontactInformation;
1246
+ }
1247
+
1248
+ interface PaymentMethodDetailsBancontactInformation {
1249
+ readonly bank_code?: string;
1250
+ readonly bank_name?: string;
1251
+ readonly bic?: string;
1252
+ readonly generated_sepa_debit?: string;
1253
+ readonly generated_sepa_debit_mandate?: string;
1254
+ readonly iban_last4?: string;
1255
+ readonly preferred_language?: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
1256
+ readonly verified_name?: string;
1257
+ }
1258
+
906
1259
  interface PaymentMethodDetailsCard {
907
1260
  readonly type: 'card';
908
1261
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -928,6 +1281,24 @@ declare namespace io.flow.stripe.v0.models {
928
1281
  readonly issuer?: string;
929
1282
  readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
930
1283
  readonly network_transaction_id?: string;
1284
+ readonly extended_authorization?: io.flow.stripe.v0.models.ExtendedAuthorization;
1285
+ readonly incremental_authorization?: io.flow.stripe.v0.models.IncrementalAuthorization;
1286
+ readonly multicapture?: io.flow.stripe.v0.models.Multicapture;
1287
+ readonly overcapture?: io.flow.stripe.v0.models.Overcapture;
1288
+ }
1289
+
1290
+ interface PaymentMethodDetailsIdeal {
1291
+ readonly type: 'ideal';
1292
+ readonly ideal: io.flow.stripe.v0.models.PaymentMethodDetailsIdealInformation;
1293
+ }
1294
+
1295
+ interface PaymentMethodDetailsIdealInformation {
1296
+ readonly bank?: io.flow.stripe.v0.enums.BankIdeal;
1297
+ readonly bic?: io.flow.stripe.v0.enums.BicIdeal;
1298
+ readonly generated_sepa_debit?: string;
1299
+ readonly generated_sepa_debit_mandate?: string;
1300
+ readonly iban_last4?: string;
1301
+ readonly verified_name?: string;
931
1302
  }
932
1303
 
933
1304
  interface PaymentMethodDetailsKlarna {
@@ -940,6 +1311,13 @@ declare namespace io.flow.stripe.v0.models {
940
1311
  readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
941
1312
  }
942
1313
 
1314
+ interface PaymentMethodFormBancontact {
1315
+ readonly type: 'bancontact';
1316
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1317
+ readonly metadata?: any /*object*/;
1318
+ readonly bancontact: any /*object*/;
1319
+ }
1320
+
943
1321
  interface PaymentMethodFormCard {
944
1322
  readonly type: 'card';
945
1323
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
@@ -947,8 +1325,41 @@ declare namespace io.flow.stripe.v0.models {
947
1325
  readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
948
1326
  }
949
1327
 
1328
+ interface PaymentMethodFormIdeal {
1329
+ readonly type: 'ideal';
1330
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1331
+ readonly metadata?: any /*object*/;
1332
+ readonly ideal: io.flow.stripe.v0.models.PaymentMethodIdealForm;
1333
+ }
1334
+
1335
+ interface PaymentMethodFormKlarna {
1336
+ readonly type: 'klarna';
1337
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1338
+ readonly metadata?: any /*object*/;
1339
+ readonly klarna: io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
1340
+ }
1341
+
1342
+ interface PaymentMethodIdealForm {
1343
+ readonly bank?: string;
1344
+ }
1345
+
1346
+ interface PaymentMethodKlarnaForm {
1347
+ readonly dob?: io.flow.stripe.v0.models.KlarnaDobForm;
1348
+ }
1349
+
950
1350
  interface PaymentMethodOptions {
951
1351
  readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
1352
+ readonly ideal?: io.flow.stripe.v0.models.PaymentMethodOptionsIdeal;
1353
+ readonly klarna?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarna;
1354
+ readonly bancontact?: io.flow.stripe.v0.models.PaymentMethodOptionsBancontact;
1355
+ }
1356
+
1357
+ interface PaymentMethodOptionsBancontact {
1358
+ readonly preferred_language: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
1359
+ }
1360
+
1361
+ interface PaymentMethodOptionsBancontactForm {
1362
+ readonly preferred_language: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
952
1363
  }
953
1364
 
954
1365
  interface PaymentMethodOptionsCard {
@@ -956,12 +1367,49 @@ declare namespace io.flow.stripe.v0.models {
956
1367
  readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
957
1368
  readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
958
1369
  readonly mcc?: string;
1370
+ readonly capture_before?: number;
1371
+ }
1372
+
1373
+ interface PaymentMethodOptionsCardForm {
1374
+ readonly network?: string;
1375
+ readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
1376
+ readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
1377
+ readonly mcc?: string;
1378
+ }
1379
+
1380
+ interface PaymentMethodOptionsForm {
1381
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
1382
+ readonly ideal?: io.flow.stripe.v0.models.PaymentMethodOptionsIdealForm;
1383
+ readonly klarna?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarnaForm;
1384
+ readonly bancontact?: io.flow.stripe.v0.models.PaymentMethodOptionsBancontactForm;
1385
+ }
1386
+
1387
+ interface PaymentMethodOptionsIdeal {
1388
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1389
+ }
1390
+
1391
+ interface PaymentMethodOptionsIdealForm {
1392
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1393
+ }
1394
+
1395
+ interface PaymentMethodOptionsKlarna {
1396
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
1397
+ readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
1398
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1399
+ readonly payment_details?: io.flow.stripe.v0.models.PaymentDetails;
1400
+ }
1401
+
1402
+ interface PaymentMethodOptionsKlarnaForm {
1403
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
1404
+ readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
1405
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1406
+ readonly payment_details?: io.flow.stripe.v0.models.PaymentDetails;
959
1407
  }
960
1408
 
961
1409
  interface PaymentOutcome {
962
- readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
963
- readonly risk_level: string;
964
- readonly seller_message: string;
1410
+ readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
1411
+ readonly risk_level?: string;
1412
+ readonly seller_message?: string;
965
1413
  readonly reason?: string;
966
1414
  readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
967
1415
  }
@@ -1156,14 +1604,33 @@ declare namespace io.flow.stripe.v0.models {
1156
1604
  readonly directory_server_encryption?: any /*object*/;
1157
1605
  }
1158
1606
 
1607
+ interface StripeDisputeEvent {
1608
+ readonly id: string;
1609
+ readonly api_version?: string;
1610
+ readonly data: io.flow.stripe.v0.models.StripeDisputeEventData;
1611
+ readonly request?: any /*object*/;
1612
+ readonly type: io.flow.stripe.v0.enums.DisputeEventType;
1613
+ readonly object: string;
1614
+ readonly account?: string;
1615
+ readonly created: number;
1616
+ readonly livemode: boolean;
1617
+ readonly pending_webhooks: number;
1618
+ }
1619
+
1620
+ interface StripeDisputeEventData {
1621
+ readonly object: io.flow.stripe.v0.models.Dispute;
1622
+ readonly previous_attributes?: any /*object*/;
1623
+ }
1624
+
1159
1625
  interface StripeError {
1160
1626
  readonly type: io.flow.stripe.v0.enums.ErrorType;
1161
1627
  readonly charge?: string;
1162
1628
  readonly message?: string;
1163
- readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
1164
- readonly decline_code?: string;
1629
+ readonly code?: io.flow.stripe.v0.enums.ErrorCode;
1630
+ readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
1165
1631
  readonly param?: string;
1166
1632
  readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
1633
+ readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
1167
1634
  }
1168
1635
 
1169
1636
  interface StripeEvent {
@@ -1196,9 +1663,12 @@ declare namespace io.flow.stripe.v0.models {
1196
1663
  interface ThreeDSecureCharge {
1197
1664
  readonly authenticated?: boolean;
1198
1665
  readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
1666
+ readonly electronic_commerce_indicator?: string;
1667
+ readonly exemption_indicator?: string;
1199
1668
  readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
1200
1669
  readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
1201
1670
  readonly succeeded?: boolean;
1671
+ readonly transaction_id?: string;
1202
1672
  readonly version?: string;
1203
1673
  }
1204
1674
 
@@ -1252,11 +1722,21 @@ declare namespace io.flow.stripe.v0.unions {
1252
1722
  | io.flow.stripe.v0.models.Masterpass
1253
1723
  | io.flow.stripe.v0.models.ApplePay
1254
1724
  | io.flow.stripe.v0.models.VisaCheckout;
1255
- type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
1725
+ type PaymentMethodData =
1726
+ | io.flow.stripe.v0.models.PaymentMethodDataCard
1727
+ | io.flow.stripe.v0.models.PaymentMethodDataIdeal
1728
+ | io.flow.stripe.v0.models.PaymentMethodDataKlarna
1729
+ | io.flow.stripe.v0.models.PaymentMethodDataBancontact;
1256
1730
  type PaymentMethodDetails =
1257
1731
  | io.flow.stripe.v0.models.PaymentMethodDetailsCard
1258
- | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
1259
- type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
1732
+ | io.flow.stripe.v0.models.PaymentMethodDetailsIdeal
1733
+ | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna
1734
+ | io.flow.stripe.v0.models.PaymentMethodDetailsBancontact;
1735
+ type PaymentMethodForm =
1736
+ | io.flow.stripe.v0.models.PaymentMethodFormCard
1737
+ | io.flow.stripe.v0.models.PaymentMethodFormIdeal
1738
+ | io.flow.stripe.v0.models.PaymentMethodFormKlarna
1739
+ | io.flow.stripe.v0.models.PaymentMethodFormBancontact;
1260
1740
  }
1261
1741
 
1262
1742
  declare namespace io.flow.shopify.external.v0.enums {
@@ -1288,6 +1768,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1288
1768
  type Format = 'json' | 'xml';
1289
1769
  type FulfillmentService = 'manual' | 'gift_card';
1290
1770
  type FulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1771
+ type GraphqlWeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
1291
1772
  type InventoryBehaviour =
1292
1773
  | 'bypass'
1293
1774
  | 'decrement_ignoring_policy'
@@ -1311,6 +1792,27 @@ declare namespace io.flow.shopify.external.v0.enums {
1311
1792
  type ShopifyCustomerState = 'disabled' | 'invited' | 'enabled';
1312
1793
  type ShopifyDiscountPaginationDirection = 'next' | 'prev';
1313
1794
  type ShopifyGiftCardStatus = 'any' | 'enabled' | 'disabled';
1795
+ type ShopifyPlanName =
1796
+ | 'basic'
1797
+ | 'business'
1798
+ | 'cancelled'
1799
+ | 'dormant'
1800
+ | 'enterprise'
1801
+ | 'fraudulent'
1802
+ | 'frozen'
1803
+ | 'npo_full'
1804
+ | 'npo_lite'
1805
+ | 'open_learning'
1806
+ | 'paid_trial'
1807
+ | 'professional'
1808
+ | 'retail'
1809
+ | 'shopify_alumni'
1810
+ | 'shopify_plus'
1811
+ | 'staff'
1812
+ | 'staff_business'
1813
+ | 'starter'
1814
+ | 'starter_2022'
1815
+ | 'unlimited';
1314
1816
  type ShopifyProcessingMethodType =
1315
1817
  | 'checkout'
1316
1818
  | 'direct'
@@ -1372,6 +1874,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1372
1874
  | 'orders/paid'
1373
1875
  | 'orders/partially_fulfilled'
1374
1876
  | 'orders/updated'
1877
+ | 'orders/edited'
1375
1878
  | 'products/create'
1376
1879
  | 'products/delete'
1377
1880
  | 'products/update'
@@ -1409,6 +1912,74 @@ declare namespace io.flow.shopify.external.v0.models {
1409
1912
  readonly count: number;
1410
1913
  }
1411
1914
 
1915
+ interface GraphqlInventoryItem {
1916
+ readonly id: string;
1917
+ readonly tracked: boolean;
1918
+ readonly requiresShipping?: boolean;
1919
+ readonly measurement: io.flow.shopify.external.v0.models.GraphqlMeasurement;
1920
+ }
1921
+
1922
+ interface GraphqlMeasurement {
1923
+ readonly weight: io.flow.shopify.external.v0.models.GraphqlWeight;
1924
+ }
1925
+
1926
+ interface GraphqlOption {
1927
+ readonly id: string;
1928
+ readonly values: string[];
1929
+ readonly name: string;
1930
+ readonly position: number;
1931
+ }
1932
+
1933
+ interface GraphqlProduct {
1934
+ readonly id: string;
1935
+ readonly legacyResourceId: string;
1936
+ readonly handle: string;
1937
+ readonly variants?: io.flow.shopify.external.v0.models.GraphqlProductVariant[];
1938
+ readonly images: io.flow.shopify.external.v0.models.GraphqlProductImage[];
1939
+ readonly title: string;
1940
+ readonly vendor?: string;
1941
+ readonly descriptionHtml?: string;
1942
+ readonly productType?: string;
1943
+ readonly status?: string;
1944
+ readonly options: io.flow.shopify.external.v0.models.GraphqlOption[];
1945
+ readonly tags?: string[];
1946
+ readonly templateSuffix?: string;
1947
+ readonly publishedAt?: string;
1948
+ readonly createdAt: string;
1949
+ readonly updatedAt: string;
1950
+ readonly hasVariantsThatRequiresComponents?: boolean;
1951
+ }
1952
+
1953
+ interface GraphqlProductImage {
1954
+ readonly id: string;
1955
+ readonly url: string;
1956
+ readonly altText?: string;
1957
+ }
1958
+
1959
+ interface GraphqlProductVariant {
1960
+ readonly id: string;
1961
+ readonly legacyResourceId: string;
1962
+ readonly sku?: string;
1963
+ readonly price: string;
1964
+ readonly title: string;
1965
+ readonly taxable: boolean;
1966
+ readonly compareAtPrice?: string;
1967
+ readonly barcode?: string;
1968
+ readonly inventoryPolicy: io.flow.shopify.external.v0.enums.InventoryPolicy;
1969
+ readonly inventoryQuantity?: number;
1970
+ readonly image?: io.flow.shopify.external.v0.models.GraphqlVariantImage;
1971
+ readonly inventoryItem: io.flow.shopify.external.v0.models.GraphqlInventoryItem;
1972
+ }
1973
+
1974
+ interface GraphqlVariantImage {
1975
+ readonly id: string;
1976
+ }
1977
+
1978
+ interface GraphqlWeight {
1979
+ readonly unit: io.flow.shopify.external.v0.enums.GraphqlWeightUnit;
1980
+ readonly value: number;
1981
+ }
1982
+
1412
1983
  interface Metafield {
1413
1984
  readonly id: number;
1414
1985
  readonly key: string;
@@ -1512,10 +2083,11 @@ declare namespace io.flow.shopify.external.v0.models {
1512
2083
  readonly options: io.flow.shopify.external.v0.models.Option[];
1513
2084
  readonly tags?: string;
1514
2085
  readonly template_suffix?: string;
1515
- readonly published_scope: io.flow.shopify.external.v0.enums.PublishedScope;
2086
+ readonly published_scope?: io.flow.shopify.external.v0.enums.PublishedScope;
1516
2087
  readonly published_at?: string;
1517
2088
  readonly created_at: string;
1518
2089
  readonly updated_at: string;
2090
+ readonly has_variants_that_requires_components?: boolean;
1519
2091
  }
1520
2092
 
1521
2093
  interface ProductDelete {
@@ -1526,10 +2098,10 @@ declare namespace io.flow.shopify.external.v0.models {
1526
2098
  readonly id: number;
1527
2099
  readonly product_id: number;
1528
2100
  readonly variant_ids: number[];
1529
- readonly src: string;
1530
- readonly position: number;
1531
- readonly created_at: string;
1532
- readonly updated_at: string;
2101
+ readonly src?: string;
2102
+ readonly position?: number;
2103
+ readonly created_at?: string;
2104
+ readonly updated_at?: string;
1533
2105
  readonly alt?: string;
1534
2106
  }
1535
2107
 
@@ -1555,7 +2127,7 @@ declare namespace io.flow.shopify.external.v0.models {
1555
2127
  readonly option1?: string;
1556
2128
  readonly option2?: string;
1557
2129
  readonly option3?: string;
1558
- readonly requires_shipping: boolean;
2130
+ readonly requires_shipping?: boolean;
1559
2131
  readonly metafields?: io.flow.shopify.external.v0.models.Metafield[];
1560
2132
  }
1561
2133
 
@@ -1696,6 +2268,11 @@ declare namespace io.flow.shopify.external.v0.models {
1696
2268
  readonly user_agent?: string;
1697
2269
  }
1698
2270
 
2271
+ interface ShopifyCountryHarmonizedSystemCode {
2272
+ readonly country_code: string;
2273
+ readonly harmonized_system_code: string;
2274
+ }
2275
+
1699
2276
  interface ShopifyCustomer {
1700
2277
  readonly id: number;
1701
2278
  readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
@@ -1916,6 +2493,14 @@ declare namespace io.flow.shopify.external.v0.models {
1916
2493
  readonly id: number;
1917
2494
  }
1918
2495
 
2496
+ interface ShopifyInventoryItemSummary {
2497
+ readonly country_code_of_origin?: string;
2498
+ readonly country_harmonized_system_codes?: io.flow.shopify.external.v0.models.ShopifyCountryHarmonizedSystemCode[];
2499
+ readonly harmonized_system_code?: string;
2500
+ readonly updated_at: string;
2501
+ readonly requires_shipping: boolean;
2502
+ }
2503
+
1919
2504
  interface ShopifyInventoryLevel {
1920
2505
  readonly inventory_item_id: number;
1921
2506
  readonly location_id: number;
@@ -2138,6 +2723,12 @@ declare namespace io.flow.shopify.external.v0.models {
2138
2723
  readonly carrier_identifier?: string;
2139
2724
  }
2140
2725
 
2726
+ interface ShopifyShopUpdate {
2727
+ readonly id: number;
2728
+ readonly plan_display_name: string;
2729
+ readonly plan_name: io.flow.shopify.external.v0.enums.ShopifyPlanName;
2730
+ }
2731
+
2141
2732
  interface ShopifyTaxLine {
2142
2733
  readonly price: string;
2143
2734
  readonly rate: number;