@flowio/types 11.24.100 → 11.24.102

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
@@ -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'
@@ -350,8 +533,12 @@ declare namespace io.flow.stripe.v0.enums {
350
533
  | 'it-CH'
351
534
  | 'en-CH';
352
535
  type RefundFailureReason =
353
- | 'lost_or_stolen_card'
536
+ | 'charge_for_pending_refund_disputed'
537
+ | 'declined'
354
538
  | 'expired_or_canceled_card'
539
+ | 'insufficient_funds'
540
+ | 'lost_or_stolen_card'
541
+ | 'merchant_request'
355
542
  | 'unknown';
356
543
  type RefundReason = 'duplicate' | 'fraudulent' | 'requested_by_customer';
357
544
  type RefundStatus = 'succeeded' | 'failed' | 'pending' | 'canceled';
@@ -534,6 +721,7 @@ declare namespace io.flow.stripe.v0.models {
534
721
  readonly currency: string;
535
722
  readonly customer?: string;
536
723
  readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
724
+ readonly disputed?: boolean;
537
725
  readonly paid: boolean;
538
726
  readonly refunded: boolean;
539
727
  readonly refunds?: io.flow.stripe.v0.models.Refunds;
@@ -542,7 +730,7 @@ declare namespace io.flow.stripe.v0.models {
542
730
  readonly balance_transaction?: string;
543
731
  readonly destination?: string;
544
732
  readonly dispute?: string;
545
- readonly failure_code?: string;
733
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
546
734
  readonly failure_message?: string;
547
735
  readonly on_behalf_of?: string;
548
736
  readonly review?: string;
@@ -553,6 +741,7 @@ declare namespace io.flow.stripe.v0.models {
553
741
  readonly calculated_statement_descriptor?: string;
554
742
  readonly statement_descriptor?: string;
555
743
  readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
744
+ readonly payment_method?: string;
556
745
  }
557
746
 
558
747
  interface ChargeDestination {
@@ -581,6 +770,7 @@ declare namespace io.flow.stripe.v0.models {
581
770
  readonly amount_refunded: number;
582
771
  readonly authorization_code?: string;
583
772
  readonly captured: boolean;
773
+ readonly disputed?: boolean;
584
774
  readonly created: number;
585
775
  readonly currency: string;
586
776
  readonly customer?: string;
@@ -593,7 +783,7 @@ declare namespace io.flow.stripe.v0.models {
593
783
  readonly balance_transaction?: string;
594
784
  readonly destination?: string;
595
785
  readonly dispute?: string;
596
- readonly failure_code?: string;
786
+ readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
597
787
  readonly failure_message?: string;
598
788
  readonly on_behalf_of?: string;
599
789
  readonly review?: string;
@@ -604,6 +794,7 @@ declare namespace io.flow.stripe.v0.models {
604
794
  readonly calculated_statement_descriptor?: string;
605
795
  readonly statement_descriptor?: string;
606
796
  readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
797
+ readonly payment_method?: string;
607
798
  }
608
799
 
609
800
  interface CodeVerification {
@@ -627,10 +818,123 @@ declare namespace io.flow.stripe.v0.models {
627
818
  readonly description?: string;
628
819
  }
629
820
 
821
+ interface Dispute {
822
+ readonly id: string;
823
+ readonly amount: number;
824
+ readonly charge: string;
825
+ readonly currency: string;
826
+ readonly evidence: io.flow.stripe.v0.models.DisputeEvidence;
827
+ readonly metadata: Record<string, string>;
828
+ readonly payment_intent?: string;
829
+ readonly reason: io.flow.stripe.v0.enums.DisputeReason;
830
+ readonly status: io.flow.stripe.v0.enums.DisputeStatus;
831
+ readonly object: string;
832
+ readonly balance_transactions: io.flow.stripe.v0.models.DisputeBalanceTransaction[];
833
+ readonly created: number;
834
+ readonly evidence_details: io.flow.stripe.v0.models.DisputeEvidenceDetails;
835
+ readonly is_charge_refundable: boolean;
836
+ readonly livemode: boolean;
837
+ readonly payment_method_details?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
838
+ }
839
+
840
+ interface DisputeBalanceTransaction {
841
+ readonly payment_intent?: string;
842
+ readonly id: string;
843
+ readonly object: string;
844
+ readonly amount: number;
845
+ readonly available_on: number;
846
+ readonly created: number;
847
+ readonly currency: string;
848
+ readonly description?: string;
849
+ readonly exchange_rate?: number;
850
+ readonly fee?: number;
851
+ readonly fee_details: io.flow.stripe.v0.models.DisputeBalanceTransactionFeeDetails[];
852
+ readonly net: number;
853
+ readonly reporting_category: string;
854
+ readonly source?: string;
855
+ readonly status: string;
856
+ readonly type: io.flow.stripe.v0.enums.BalanceTransactionType;
857
+ }
858
+
859
+ interface DisputeBalanceTransactionFeeDetails {
860
+ readonly amount: number;
861
+ readonly application?: string;
862
+ readonly currency: string;
863
+ readonly description?: string;
864
+ readonly type: string;
865
+ }
866
+
867
+ interface DisputeEvidence {
868
+ readonly access_activity_log?: string;
869
+ readonly billing_address?: string;
870
+ readonly cancellation_policy?: string;
871
+ readonly cancellation_policy_disclosure?: string;
872
+ readonly cancellation_rebuttal?: string;
873
+ readonly customer_communication?: string;
874
+ readonly customer_email_address?: string;
875
+ readonly customer_name?: string;
876
+ readonly 'evidence.customer_purchase_ip'?: string;
877
+ readonly customer_signature?: string;
878
+ readonly duplicate_charge_documentation?: string;
879
+ readonly duplicate_charge_explanation?: string;
880
+ readonly duplicate_charge_id?: string;
881
+ readonly product_description?: string;
882
+ readonly receipt?: string;
883
+ readonly refund_policy?: string;
884
+ readonly refund_policy_disclosure?: string;
885
+ readonly refund_refusal_explanation?: string;
886
+ readonly service_date?: string;
887
+ readonly service_documentation?: string;
888
+ readonly shipping_address?: string;
889
+ readonly shipping_carrier?: string;
890
+ readonly shipping_date?: string;
891
+ readonly shipping_documentation?: string;
892
+ readonly shipping_tracking_number?: string;
893
+ readonly uncategorized_file?: string;
894
+ readonly uncategorized_text?: string;
895
+ }
896
+
897
+ interface DisputeEvidenceDetails {
898
+ readonly due_by?: number;
899
+ readonly has_evidence: boolean;
900
+ readonly past_due: boolean;
901
+ readonly submission_count: number;
902
+ }
903
+
904
+ interface DisputePaymentMethodDetails {
905
+ readonly card?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
906
+ readonly klarna?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
907
+ readonly paypal?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
908
+ readonly type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
909
+ }
910
+
911
+ interface DisputePaymentMethodDetailsCard {
912
+ readonly brand: string;
913
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
914
+ readonly network_reason_code?: string;
915
+ }
916
+
917
+ interface DisputePaymentMethodDetailsKlarna {
918
+ readonly reason_code?: string;
919
+ }
920
+
921
+ interface DisputePaymentMethodDetailsPaypal {
922
+ readonly case_id?: string;
923
+ readonly reason_code?: string;
924
+ }
925
+
630
926
  interface Error {
631
927
  readonly error: io.flow.stripe.v0.models.StripeError;
632
928
  }
633
929
 
930
+ interface ExtendedAuthorization {
931
+ readonly status?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
932
+ }
933
+
934
+ interface IncrementalAuthorization {
935
+ readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
936
+ }
937
+
634
938
  interface Keys {
635
939
  readonly secret?: string;
636
940
  readonly publishable?: string;
@@ -640,26 +944,27 @@ declare namespace io.flow.stripe.v0.models {
640
944
  readonly marketplace_seller_info?: io.flow.stripe.v0.models.KlarnaMarketplaceSellerInfo[];
641
945
  }
642
946
 
947
+ interface KlarnaDobForm {
948
+ readonly day: number;
949
+ readonly month: number;
950
+ readonly year: number;
951
+ }
952
+
643
953
  interface KlarnaMarketplaceSellerInfo {
644
954
  readonly sub_merchant_id?: string;
645
955
  readonly product_category?: string;
646
956
  }
647
957
 
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
958
  interface LegalEntity {
660
959
  readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
661
960
  }
662
961
 
962
+ interface MarketplaceSellerInfo {
963
+ readonly name: string;
964
+ readonly id?: string;
965
+ readonly product_category?: string;
966
+ }
967
+
663
968
  interface Masterpass {
664
969
  readonly type: 'masterpass';
665
970
  readonly masterpass: io.flow.stripe.v0.models.MasterpassInformation;
@@ -681,6 +986,10 @@ declare namespace io.flow.stripe.v0.models {
681
986
  readonly payment_request_order_reference?: string;
682
987
  }
683
988
 
989
+ interface Multicapture {
990
+ readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
991
+ }
992
+
684
993
  interface NetworkTokenUsed {
685
994
  readonly used?: boolean;
686
995
  }
@@ -728,6 +1037,11 @@ declare namespace io.flow.stripe.v0.models {
728
1037
  readonly shipping?: io.flow.stripe.v0.models.Shipping;
729
1038
  }
730
1039
 
1040
+ interface Overcapture {
1041
+ readonly maximum_amount_capturable?: number;
1042
+ readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
1043
+ }
1044
+
731
1045
  interface Owner {
732
1046
  readonly address?: io.flow.stripe.v0.models.Address;
733
1047
  readonly email?: string;
@@ -739,6 +1053,10 @@ declare namespace io.flow.stripe.v0.models {
739
1053
  readonly verified_phone?: string;
740
1054
  }
741
1055
 
1056
+ interface PaymentDetails {
1057
+ readonly marketplace_seller_info?: io.flow.stripe.v0.models.MarketplaceSellerInfo;
1058
+ }
1059
+
742
1060
  interface PaymentIntent {
743
1061
  readonly id: string;
744
1062
  readonly object: string;
@@ -758,7 +1076,7 @@ declare namespace io.flow.stripe.v0.models {
758
1076
  readonly customer?: string;
759
1077
  readonly description?: string;
760
1078
  readonly invoice?: string;
761
- readonly last_payment_error?: io.flow.stripe.v0.models.LastPaymentError;
1079
+ readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
762
1080
  readonly livemode: boolean;
763
1081
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
764
1082
  readonly next_action?: io.flow.stripe.v0.models.NextAction;
@@ -801,7 +1119,7 @@ declare namespace io.flow.stripe.v0.models {
801
1119
  readonly off_session?: boolean;
802
1120
  readonly payment_method?: string;
803
1121
  readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
804
- readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
1122
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
805
1123
  readonly payment_method_types?: string[];
806
1124
  readonly receipt_email?: string;
807
1125
  readonly save_payment_method?: boolean;
@@ -822,7 +1140,7 @@ declare namespace io.flow.stripe.v0.models {
822
1140
  readonly on_behalf_of?: string;
823
1141
  readonly payment_method?: string;
824
1142
  readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
825
- readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
1143
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
826
1144
  readonly payment_method_types?: string[];
827
1145
  readonly receipt_email?: string;
828
1146
  readonly return_url?: string;
@@ -861,8 +1179,11 @@ declare namespace io.flow.stripe.v0.models {
861
1179
  readonly id: string;
862
1180
  readonly object: string;
863
1181
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1182
+ readonly bancontact?: any /*object*/;
864
1183
  readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
865
1184
  readonly card_present?: any /*object*/;
1185
+ readonly ideal?: any /*object*/;
1186
+ readonly klarna?: any /*object*/;
866
1187
  readonly created: number;
867
1188
  readonly customer?: string;
868
1189
  readonly livemode: boolean;
@@ -896,6 +1217,12 @@ declare namespace io.flow.stripe.v0.models {
896
1217
  readonly cvc?: string;
897
1218
  }
898
1219
 
1220
+ interface PaymentMethodDataBancontact {
1221
+ readonly type: 'bancontact';
1222
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1223
+ readonly metadata?: any /*object*/;
1224
+ }
1225
+
899
1226
  interface PaymentMethodDataCard {
900
1227
  readonly type: 'card';
901
1228
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
@@ -903,6 +1230,36 @@ declare namespace io.flow.stripe.v0.models {
903
1230
  readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
904
1231
  }
905
1232
 
1233
+ interface PaymentMethodDataIdeal {
1234
+ readonly type: 'ideal';
1235
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1236
+ readonly metadata?: any /*object*/;
1237
+ readonly ideal: io.flow.stripe.v0.models.PaymentMethodIdealForm;
1238
+ }
1239
+
1240
+ interface PaymentMethodDataKlarna {
1241
+ readonly type: 'klarna';
1242
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1243
+ readonly metadata?: any /*object*/;
1244
+ readonly klarna: io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
1245
+ }
1246
+
1247
+ interface PaymentMethodDetailsBancontact {
1248
+ readonly type: 'bancontact';
1249
+ readonly bancontact: io.flow.stripe.v0.models.PaymentMethodDetailsBancontactInformation;
1250
+ }
1251
+
1252
+ interface PaymentMethodDetailsBancontactInformation {
1253
+ readonly bank_code?: string;
1254
+ readonly bank_name?: string;
1255
+ readonly bic?: string;
1256
+ readonly generated_sepa_debit?: string;
1257
+ readonly generated_sepa_debit_mandate?: string;
1258
+ readonly iban_last4?: string;
1259
+ readonly preferred_language?: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
1260
+ readonly verified_name?: string;
1261
+ }
1262
+
906
1263
  interface PaymentMethodDetailsCard {
907
1264
  readonly type: 'card';
908
1265
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -928,6 +1285,24 @@ declare namespace io.flow.stripe.v0.models {
928
1285
  readonly issuer?: string;
929
1286
  readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
930
1287
  readonly network_transaction_id?: string;
1288
+ readonly extended_authorization?: io.flow.stripe.v0.models.ExtendedAuthorization;
1289
+ readonly incremental_authorization?: io.flow.stripe.v0.models.IncrementalAuthorization;
1290
+ readonly multicapture?: io.flow.stripe.v0.models.Multicapture;
1291
+ readonly overcapture?: io.flow.stripe.v0.models.Overcapture;
1292
+ }
1293
+
1294
+ interface PaymentMethodDetailsIdeal {
1295
+ readonly type: 'ideal';
1296
+ readonly ideal: io.flow.stripe.v0.models.PaymentMethodDetailsIdealInformation;
1297
+ }
1298
+
1299
+ interface PaymentMethodDetailsIdealInformation {
1300
+ readonly bank?: io.flow.stripe.v0.enums.BankIdeal;
1301
+ readonly bic?: io.flow.stripe.v0.enums.BicIdeal;
1302
+ readonly generated_sepa_debit?: string;
1303
+ readonly generated_sepa_debit_mandate?: string;
1304
+ readonly iban_last4?: string;
1305
+ readonly verified_name?: string;
931
1306
  }
932
1307
 
933
1308
  interface PaymentMethodDetailsKlarna {
@@ -940,6 +1315,13 @@ declare namespace io.flow.stripe.v0.models {
940
1315
  readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
941
1316
  }
942
1317
 
1318
+ interface PaymentMethodFormBancontact {
1319
+ readonly type: 'bancontact';
1320
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1321
+ readonly metadata?: any /*object*/;
1322
+ readonly bancontact: any /*object*/;
1323
+ }
1324
+
943
1325
  interface PaymentMethodFormCard {
944
1326
  readonly type: 'card';
945
1327
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
@@ -947,8 +1329,41 @@ declare namespace io.flow.stripe.v0.models {
947
1329
  readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
948
1330
  }
949
1331
 
1332
+ interface PaymentMethodFormIdeal {
1333
+ readonly type: 'ideal';
1334
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1335
+ readonly metadata?: any /*object*/;
1336
+ readonly ideal: io.flow.stripe.v0.models.PaymentMethodIdealForm;
1337
+ }
1338
+
1339
+ interface PaymentMethodFormKlarna {
1340
+ readonly type: 'klarna';
1341
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
1342
+ readonly metadata?: any /*object*/;
1343
+ readonly klarna: io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
1344
+ }
1345
+
1346
+ interface PaymentMethodIdealForm {
1347
+ readonly bank?: string;
1348
+ }
1349
+
1350
+ interface PaymentMethodKlarnaForm {
1351
+ readonly dob?: io.flow.stripe.v0.models.KlarnaDobForm;
1352
+ }
1353
+
950
1354
  interface PaymentMethodOptions {
951
1355
  readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
1356
+ readonly ideal?: io.flow.stripe.v0.models.PaymentMethodOptionsIdeal;
1357
+ readonly klarna?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarna;
1358
+ readonly bancontact?: io.flow.stripe.v0.models.PaymentMethodOptionsBancontact;
1359
+ }
1360
+
1361
+ interface PaymentMethodOptionsBancontact {
1362
+ readonly preferred_language: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
1363
+ }
1364
+
1365
+ interface PaymentMethodOptionsBancontactForm {
1366
+ readonly preferred_language: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
952
1367
  }
953
1368
 
954
1369
  interface PaymentMethodOptionsCard {
@@ -956,12 +1371,49 @@ declare namespace io.flow.stripe.v0.models {
956
1371
  readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
957
1372
  readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
958
1373
  readonly mcc?: string;
1374
+ readonly capture_before?: number;
1375
+ }
1376
+
1377
+ interface PaymentMethodOptionsCardForm {
1378
+ readonly network?: string;
1379
+ readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
1380
+ readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
1381
+ readonly mcc?: string;
1382
+ }
1383
+
1384
+ interface PaymentMethodOptionsForm {
1385
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
1386
+ readonly ideal?: io.flow.stripe.v0.models.PaymentMethodOptionsIdealForm;
1387
+ readonly klarna?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarnaForm;
1388
+ readonly bancontact?: io.flow.stripe.v0.models.PaymentMethodOptionsBancontactForm;
1389
+ }
1390
+
1391
+ interface PaymentMethodOptionsIdeal {
1392
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1393
+ }
1394
+
1395
+ interface PaymentMethodOptionsIdealForm {
1396
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1397
+ }
1398
+
1399
+ interface PaymentMethodOptionsKlarna {
1400
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
1401
+ readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
1402
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1403
+ readonly payment_details?: io.flow.stripe.v0.models.PaymentDetails;
1404
+ }
1405
+
1406
+ interface PaymentMethodOptionsKlarnaForm {
1407
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
1408
+ readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
1409
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
1410
+ readonly payment_details?: io.flow.stripe.v0.models.PaymentDetails;
959
1411
  }
960
1412
 
961
1413
  interface PaymentOutcome {
962
- readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
963
- readonly risk_level: string;
964
- readonly seller_message: string;
1414
+ readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
1415
+ readonly risk_level?: string;
1416
+ readonly seller_message?: string;
965
1417
  readonly reason?: string;
966
1418
  readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
967
1419
  }
@@ -1156,14 +1608,33 @@ declare namespace io.flow.stripe.v0.models {
1156
1608
  readonly directory_server_encryption?: any /*object*/;
1157
1609
  }
1158
1610
 
1611
+ interface StripeDisputeEvent {
1612
+ readonly id: string;
1613
+ readonly api_version?: string;
1614
+ readonly data: io.flow.stripe.v0.models.StripeDisputeEventData;
1615
+ readonly request?: any /*object*/;
1616
+ readonly type: io.flow.stripe.v0.enums.DisputeEventType;
1617
+ readonly object: string;
1618
+ readonly account?: string;
1619
+ readonly created: number;
1620
+ readonly livemode: boolean;
1621
+ readonly pending_webhooks: number;
1622
+ }
1623
+
1624
+ interface StripeDisputeEventData {
1625
+ readonly object: io.flow.stripe.v0.models.Dispute;
1626
+ readonly previous_attributes?: any /*object*/;
1627
+ }
1628
+
1159
1629
  interface StripeError {
1160
1630
  readonly type: io.flow.stripe.v0.enums.ErrorType;
1161
1631
  readonly charge?: string;
1162
1632
  readonly message?: string;
1163
- readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
1164
- readonly decline_code?: string;
1633
+ readonly code?: io.flow.stripe.v0.enums.ErrorCode;
1634
+ readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
1165
1635
  readonly param?: string;
1166
1636
  readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
1637
+ readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
1167
1638
  }
1168
1639
 
1169
1640
  interface StripeEvent {
@@ -1196,9 +1667,12 @@ declare namespace io.flow.stripe.v0.models {
1196
1667
  interface ThreeDSecureCharge {
1197
1668
  readonly authenticated?: boolean;
1198
1669
  readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
1670
+ readonly electronic_commerce_indicator?: string;
1671
+ readonly exemption_indicator?: string;
1199
1672
  readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
1200
1673
  readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
1201
1674
  readonly succeeded?: boolean;
1675
+ readonly transaction_id?: string;
1202
1676
  readonly version?: string;
1203
1677
  }
1204
1678
 
@@ -1252,11 +1726,21 @@ declare namespace io.flow.stripe.v0.unions {
1252
1726
  | io.flow.stripe.v0.models.Masterpass
1253
1727
  | io.flow.stripe.v0.models.ApplePay
1254
1728
  | io.flow.stripe.v0.models.VisaCheckout;
1255
- type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
1729
+ type PaymentMethodData =
1730
+ | io.flow.stripe.v0.models.PaymentMethodDataCard
1731
+ | io.flow.stripe.v0.models.PaymentMethodDataIdeal
1732
+ | io.flow.stripe.v0.models.PaymentMethodDataKlarna
1733
+ | io.flow.stripe.v0.models.PaymentMethodDataBancontact;
1256
1734
  type PaymentMethodDetails =
1257
1735
  | io.flow.stripe.v0.models.PaymentMethodDetailsCard
1258
- | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
1259
- type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
1736
+ | io.flow.stripe.v0.models.PaymentMethodDetailsIdeal
1737
+ | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna
1738
+ | io.flow.stripe.v0.models.PaymentMethodDetailsBancontact;
1739
+ type PaymentMethodForm =
1740
+ | io.flow.stripe.v0.models.PaymentMethodFormCard
1741
+ | io.flow.stripe.v0.models.PaymentMethodFormIdeal
1742
+ | io.flow.stripe.v0.models.PaymentMethodFormKlarna
1743
+ | io.flow.stripe.v0.models.PaymentMethodFormBancontact;
1260
1744
  }
1261
1745
 
1262
1746
  declare namespace io.flow.shopify.external.v0.enums {
@@ -1288,6 +1772,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1288
1772
  type Format = 'json' | 'xml';
1289
1773
  type FulfillmentService = 'manual' | 'gift_card';
1290
1774
  type FulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1775
+ type GraphqlWeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
1291
1776
  type InventoryBehaviour =
1292
1777
  | 'bypass'
1293
1778
  | 'decrement_ignoring_policy'
@@ -1311,6 +1796,27 @@ declare namespace io.flow.shopify.external.v0.enums {
1311
1796
  type ShopifyCustomerState = 'disabled' | 'invited' | 'enabled';
1312
1797
  type ShopifyDiscountPaginationDirection = 'next' | 'prev';
1313
1798
  type ShopifyGiftCardStatus = 'any' | 'enabled' | 'disabled';
1799
+ type ShopifyPlanName =
1800
+ | 'basic'
1801
+ | 'business'
1802
+ | 'cancelled'
1803
+ | 'dormant'
1804
+ | 'enterprise'
1805
+ | 'fraudulent'
1806
+ | 'frozen'
1807
+ | 'npo_full'
1808
+ | 'npo_lite'
1809
+ | 'open_learning'
1810
+ | 'paid_trial'
1811
+ | 'professional'
1812
+ | 'retail'
1813
+ | 'shopify_alumni'
1814
+ | 'shopify_plus'
1815
+ | 'staff'
1816
+ | 'staff_business'
1817
+ | 'starter'
1818
+ | 'starter_2022'
1819
+ | 'unlimited';
1314
1820
  type ShopifyProcessingMethodType =
1315
1821
  | 'checkout'
1316
1822
  | 'direct'
@@ -1372,6 +1878,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1372
1878
  | 'orders/paid'
1373
1879
  | 'orders/partially_fulfilled'
1374
1880
  | 'orders/updated'
1881
+ | 'orders/edited'
1375
1882
  | 'products/create'
1376
1883
  | 'products/delete'
1377
1884
  | 'products/update'
@@ -1409,6 +1916,74 @@ declare namespace io.flow.shopify.external.v0.models {
1409
1916
  readonly count: number;
1410
1917
  }
1411
1918
 
1919
+ interface GraphqlInventoryItem {
1920
+ readonly id: string;
1921
+ readonly tracked: boolean;
1922
+ readonly requiresShipping?: boolean;
1923
+ readonly measurement: io.flow.shopify.external.v0.models.GraphqlMeasurement;
1924
+ }
1925
+
1926
+ interface GraphqlMeasurement {
1927
+ readonly weight?: io.flow.shopify.external.v0.models.GraphqlWeight;
1928
+ }
1929
+
1930
+ interface GraphqlOption {
1931
+ readonly id: string;
1932
+ readonly values: string[];
1933
+ readonly name: string;
1934
+ readonly position: number;
1935
+ }
1936
+
1937
+ interface GraphqlProduct {
1938
+ readonly id: string;
1939
+ readonly legacyResourceId: string;
1940
+ readonly handle: string;
1941
+ readonly variants?: io.flow.shopify.external.v0.models.GraphqlProductVariant[];
1942
+ readonly images: io.flow.shopify.external.v0.models.GraphqlProductImage[];
1943
+ readonly title: string;
1944
+ readonly vendor?: string;
1945
+ readonly descriptionHtml?: string;
1946
+ readonly productType?: string;
1947
+ readonly status?: string;
1948
+ readonly options: io.flow.shopify.external.v0.models.GraphqlOption[];
1949
+ readonly tags?: string[];
1950
+ readonly templateSuffix?: string;
1951
+ readonly publishedAt?: string;
1952
+ readonly createdAt: string;
1953
+ readonly updatedAt: string;
1954
+ readonly hasVariantsThatRequiresComponents?: boolean;
1955
+ }
1956
+
1957
+ interface GraphqlProductImage {
1958
+ readonly id: string;
1959
+ readonly url: string;
1960
+ readonly altText?: string;
1961
+ }
1962
+
1963
+ interface GraphqlProductVariant {
1964
+ readonly id: string;
1965
+ readonly legacyResourceId: string;
1966
+ readonly sku?: string;
1967
+ readonly price: string;
1968
+ readonly title: string;
1969
+ readonly taxable: boolean;
1970
+ readonly compareAtPrice?: string;
1971
+ readonly barcode?: string;
1972
+ readonly inventoryPolicy: io.flow.shopify.external.v0.enums.InventoryPolicy;
1973
+ readonly inventoryQuantity?: number;
1974
+ readonly image?: io.flow.shopify.external.v0.models.GraphqlVariantImage;
1975
+ readonly inventoryItem: io.flow.shopify.external.v0.models.GraphqlInventoryItem;
1976
+ }
1977
+
1978
+ interface GraphqlVariantImage {
1979
+ readonly id: string;
1980
+ }
1981
+
1982
+ interface GraphqlWeight {
1983
+ readonly unit: io.flow.shopify.external.v0.enums.GraphqlWeightUnit;
1984
+ readonly value: number;
1985
+ }
1986
+
1412
1987
  interface Metafield {
1413
1988
  readonly id: number;
1414
1989
  readonly key: string;
@@ -1512,10 +2087,11 @@ declare namespace io.flow.shopify.external.v0.models {
1512
2087
  readonly options: io.flow.shopify.external.v0.models.Option[];
1513
2088
  readonly tags?: string;
1514
2089
  readonly template_suffix?: string;
1515
- readonly published_scope: io.flow.shopify.external.v0.enums.PublishedScope;
2090
+ readonly published_scope?: io.flow.shopify.external.v0.enums.PublishedScope;
1516
2091
  readonly published_at?: string;
1517
2092
  readonly created_at: string;
1518
2093
  readonly updated_at: string;
2094
+ readonly has_variants_that_requires_components?: boolean;
1519
2095
  }
1520
2096
 
1521
2097
  interface ProductDelete {
@@ -1526,10 +2102,10 @@ declare namespace io.flow.shopify.external.v0.models {
1526
2102
  readonly id: number;
1527
2103
  readonly product_id: number;
1528
2104
  readonly variant_ids: number[];
1529
- readonly src: string;
1530
- readonly position: number;
1531
- readonly created_at: string;
1532
- readonly updated_at: string;
2105
+ readonly src?: string;
2106
+ readonly position?: number;
2107
+ readonly created_at?: string;
2108
+ readonly updated_at?: string;
1533
2109
  readonly alt?: string;
1534
2110
  }
1535
2111
 
@@ -1555,7 +2131,7 @@ declare namespace io.flow.shopify.external.v0.models {
1555
2131
  readonly option1?: string;
1556
2132
  readonly option2?: string;
1557
2133
  readonly option3?: string;
1558
- readonly requires_shipping: boolean;
2134
+ readonly requires_shipping?: boolean;
1559
2135
  readonly metafields?: io.flow.shopify.external.v0.models.Metafield[];
1560
2136
  }
1561
2137
 
@@ -1696,6 +2272,11 @@ declare namespace io.flow.shopify.external.v0.models {
1696
2272
  readonly user_agent?: string;
1697
2273
  }
1698
2274
 
2275
+ interface ShopifyCountryHarmonizedSystemCode {
2276
+ readonly country_code: string;
2277
+ readonly harmonized_system_code: string;
2278
+ }
2279
+
1699
2280
  interface ShopifyCustomer {
1700
2281
  readonly id: number;
1701
2282
  readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
@@ -1916,6 +2497,14 @@ declare namespace io.flow.shopify.external.v0.models {
1916
2497
  readonly id: number;
1917
2498
  }
1918
2499
 
2500
+ interface ShopifyInventoryItemSummary {
2501
+ readonly country_code_of_origin?: string;
2502
+ readonly country_harmonized_system_codes?: io.flow.shopify.external.v0.models.ShopifyCountryHarmonizedSystemCode[];
2503
+ readonly harmonized_system_code?: string;
2504
+ readonly updated_at: string;
2505
+ readonly requires_shipping: boolean;
2506
+ }
2507
+
1919
2508
  interface ShopifyInventoryLevel {
1920
2509
  readonly inventory_item_id: number;
1921
2510
  readonly location_id: number;
@@ -2138,6 +2727,12 @@ declare namespace io.flow.shopify.external.v0.models {
2138
2727
  readonly carrier_identifier?: string;
2139
2728
  }
2140
2729
 
2730
+ interface ShopifyShopUpdate {
2731
+ readonly id: number;
2732
+ readonly plan_display_name: string;
2733
+ readonly plan_name: io.flow.shopify.external.v0.enums.ShopifyPlanName;
2734
+ }
2735
+
2141
2736
  interface ShopifyTaxLine {
2142
2737
  readonly price: string;
2143
2738
  readonly rate: number;
@@ -2638,6 +3233,9 @@ declare namespace io.flow.v0.enums {
2638
3233
  | 'subcatalog_item_deleted'
2639
3234
  | 'catalog_statistics_upserted'
2640
3235
  | 'catalog_statistics_deleted'
3236
+ | 'item_inserted'
3237
+ | 'item_updated'
3238
+ | 'item_deleted'
2641
3239
  | 'channel_upserted'
2642
3240
  | 'channel_deleted'
2643
3241
  | 'channel_currency_upserted'
@@ -3146,7 +3744,10 @@ declare namespace io.flow.v0.enums {
3146
3744
  | 'bancontact'
3147
3745
  | 'twint'
3148
3746
  | 'przelewy24'
3149
- | 'mobilepay';
3747
+ | 'mobilepay'
3748
+ | 'grabpay'
3749
+ | 'vipps'
3750
+ | 'kcp_creditcard';
3150
3751
  type PayoutAttachmentType = 'transactions';
3151
3752
  type PayoutStatusFailureCode =
3152
3753
  | 'invalid_account_number'
@@ -3260,6 +3861,19 @@ declare namespace io.flow.v0.enums {
3260
3861
  | 'shipping_unavailable';
3261
3862
  type RatecardOwner = 'flow' | 'organization';
3262
3863
  type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
3864
+ type RefundFailureCategory =
3865
+ | 'amount_too_high'
3866
+ | 'amount_too_low'
3867
+ | 'not_enough_balance'
3868
+ | 'insufficient_funds'
3869
+ | 'refund_period_expired'
3870
+ | 'dispute'
3871
+ | 'not_captured'
3872
+ | 'unsupported_payment_method'
3873
+ | 'unsupported_partial_refund'
3874
+ | 'invalid_currency'
3875
+ | 'card_no_longer_valid'
3876
+ | 'general';
3263
3877
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
3264
3878
  type RegionType = 'state' | 'province' | 'jurisdiction';
3265
3879
  type RestrictedReviewStatus = 'in_review' | 'reviewed';
@@ -3404,7 +4018,8 @@ declare namespace io.flow.v0.enums {
3404
4018
  | 'order_service'
3405
4019
  | 'virtual_card_capture'
3406
4020
  | 'virtual_card_refund'
3407
- | 'failed_payout';
4021
+ | 'failed_payout'
4022
+ | 'tax_refund';
3408
4023
  type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
3409
4024
  type TrueupSurchargeType =
3410
4025
  | 'fuel'
@@ -7670,6 +8285,14 @@ declare namespace io.flow.v0.models {
7670
8285
  readonly attributes: Record<string, string>;
7671
8286
  }
7672
8287
 
8288
+ interface ItemDeleted {
8289
+ readonly discriminator: 'item_deleted';
8290
+ readonly event_id: string;
8291
+ readonly timestamp: string;
8292
+ readonly organization: string;
8293
+ readonly item: io.flow.v0.models.Item;
8294
+ }
8295
+
7673
8296
  interface ItemForm {
7674
8297
  readonly number: string;
7675
8298
  readonly locale: string;
@@ -7708,6 +8331,14 @@ declare namespace io.flow.v0.models {
7708
8331
  readonly images?: io.flow.v0.models.ImageForm[];
7709
8332
  }
7710
8333
 
8334
+ interface ItemInserted {
8335
+ readonly discriminator: 'item_inserted';
8336
+ readonly event_id: string;
8337
+ readonly timestamp: string;
8338
+ readonly organization: string;
8339
+ readonly item: io.flow.v0.models.Item;
8340
+ }
8341
+
7711
8342
  interface ItemMargin {
7712
8343
  readonly id: string;
7713
8344
  readonly key: string;
@@ -7832,6 +8463,14 @@ declare namespace io.flow.v0.models {
7832
8463
  readonly categories: number;
7833
8464
  }
7834
8465
 
8466
+ interface ItemUpdated {
8467
+ readonly discriminator: 'item_updated';
8468
+ readonly event_id: string;
8469
+ readonly timestamp: string;
8470
+ readonly organization: string;
8471
+ readonly item: io.flow.v0.models.Item;
8472
+ }
8473
+
7835
8474
  interface ItemVersion {
7836
8475
  readonly id: string;
7837
8476
  readonly timestamp: string;
@@ -10014,12 +10653,22 @@ declare namespace io.flow.v0.models {
10014
10653
  readonly reference?: string;
10015
10654
  }
10016
10655
 
10656
+ interface PaymentMethodDataInitGrabpay {
10657
+ readonly type: 'init_grabpay';
10658
+ readonly reference?: string;
10659
+ }
10660
+
10017
10661
  interface PaymentMethodDataInitIdeal {
10018
10662
  readonly type: 'init_ideal';
10019
10663
  readonly issuer?: string;
10020
10664
  readonly reference?: string;
10021
10665
  }
10022
10666
 
10667
+ interface PaymentMethodDataInitKcpCreditcard {
10668
+ readonly type: 'init_kcp_creditcard';
10669
+ readonly reference?: string;
10670
+ }
10671
+
10023
10672
  interface PaymentMethodDataInitKlarna {
10024
10673
  readonly type: 'init_klarna';
10025
10674
  readonly reference?: string;
@@ -10050,6 +10699,11 @@ declare namespace io.flow.v0.models {
10050
10699
  readonly reference?: string;
10051
10700
  }
10052
10701
 
10702
+ interface PaymentMethodDataInitVipps {
10703
+ readonly type: 'init_vipps';
10704
+ readonly reference?: string;
10705
+ }
10706
+
10053
10707
  interface PaymentMethodDataOptionLogoSvg {
10054
10708
  readonly type: 'svg';
10055
10709
  readonly url: string;
@@ -10145,12 +10799,22 @@ declare namespace io.flow.v0.models {
10145
10799
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10146
10800
  }
10147
10801
 
10802
+ interface PaymentMethodSummaryGrabpay {
10803
+ readonly type: 'grabpay';
10804
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10805
+ }
10806
+
10148
10807
  interface PaymentMethodSummaryIdeal {
10149
10808
  readonly type: 'ideal';
10150
10809
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10151
10810
  readonly issuer?: string;
10152
10811
  }
10153
10812
 
10813
+ interface PaymentMethodSummaryKcpCreditcard {
10814
+ readonly type: 'kcp_creditcard';
10815
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10816
+ }
10817
+
10154
10818
  interface PaymentMethodSummaryKlarna {
10155
10819
  readonly type: 'klarna';
10156
10820
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
@@ -10181,6 +10845,11 @@ declare namespace io.flow.v0.models {
10181
10845
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10182
10846
  }
10183
10847
 
10848
+ interface PaymentMethodSummaryVipps {
10849
+ readonly type: 'vipps';
10850
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10851
+ }
10852
+
10184
10853
  interface PaymentOrderDetailsLineItem {
10185
10854
  readonly id?: string;
10186
10855
  readonly description: string;
@@ -10856,6 +11525,8 @@ declare namespace io.flow.v0.models {
10856
11525
  readonly review_status?: io.flow.v0.enums.ReviewStatus;
10857
11526
  readonly rules?: io.flow.v0.enums.ProductRestrictionRule[];
10858
11527
  readonly updated_by?: string;
11528
+ readonly product_restriction_id?: string;
11529
+ readonly hs_code?: string;
10859
11530
  }
10860
11531
 
10861
11532
  interface ProductRestrictionResultDeleted {
@@ -11356,6 +12027,8 @@ declare namespace io.flow.v0.models {
11356
12027
  readonly attributes?: Record<string, string>;
11357
12028
  readonly status?: io.flow.v0.enums.RefundStatus;
11358
12029
  readonly base?: io.flow.v0.models.Money;
12030
+ readonly failure_category?: io.flow.v0.enums.RefundFailureCategory;
12031
+ readonly failure_psp_reason?: string;
11359
12032
  }
11360
12033
 
11361
12034
  interface RefundCapture {
@@ -13954,6 +14627,9 @@ declare namespace io.flow.v0.unions {
13954
14627
  | io.flow.v0.models.SubcatalogItemDeleted
13955
14628
  | io.flow.v0.models.CatalogStatisticsUpserted
13956
14629
  | io.flow.v0.models.CatalogStatisticsDeleted
14630
+ | io.flow.v0.models.ItemInserted
14631
+ | io.flow.v0.models.ItemUpdated
14632
+ | io.flow.v0.models.ItemDeleted
13957
14633
  | io.flow.v0.models.ChannelUpserted
13958
14634
  | io.flow.v0.models.ChannelDeleted
13959
14635
  | io.flow.v0.models.ChannelCurrencyUpserted
@@ -14262,7 +14938,10 @@ declare namespace io.flow.v0.unions {
14262
14938
  | io.flow.v0.models.PaymentMethodDataInitTwint
14263
14939
  | io.flow.v0.models.PaymentMethodDataInitPrzelewy24
14264
14940
  | io.flow.v0.models.PaymentMethodDataInitMobilepay
14941
+ | io.flow.v0.models.PaymentMethodDataInitKcpCreditcard
14265
14942
  | io.flow.v0.models.PaymentMethodDataInitBancontact
14943
+ | io.flow.v0.models.PaymentMethodDataInitGrabpay
14944
+ | io.flow.v0.models.PaymentMethodDataInitVipps
14266
14945
  | io.flow.v0.models.PaymentMethodDataValidateApplepay
14267
14946
  | io.flow.v0.models.PaymentMethodDataAuthorizeCard
14268
14947
  | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay
@@ -14291,10 +14970,13 @@ declare namespace io.flow.v0.unions {
14291
14970
  | io.flow.v0.models.PaymentMethodSummaryPaypal
14292
14971
  | io.flow.v0.models.PaymentMethodSummaryIdeal
14293
14972
  | io.flow.v0.models.PaymentMethodSummaryTwint
14973
+ | io.flow.v0.models.PaymentMethodSummaryVipps
14294
14974
  | io.flow.v0.models.PaymentMethodSummaryPrzelewy24
14295
14975
  | io.flow.v0.models.PaymentMethodSummaryMobilepay
14976
+ | io.flow.v0.models.PaymentMethodSummaryKcpCreditcard
14296
14977
  | io.flow.v0.models.PaymentMethodSummarySofort
14297
- | io.flow.v0.models.PaymentMethodSummaryBancontact;
14978
+ | io.flow.v0.models.PaymentMethodSummaryBancontact
14979
+ | io.flow.v0.models.PaymentMethodSummaryGrabpay;
14298
14980
 
14299
14981
  type PaymentMethodTag =
14300
14982
  | {
@@ -15384,10 +16066,12 @@ export type IssuerV1 = io.flow.v0.models.IssuerV1;
15384
16066
  export type Item = io.flow.v0.models.Item;
15385
16067
  export type ItemAttributesPatchForm = io.flow.v0.models.ItemAttributesPatchForm;
15386
16068
  export type ItemAvailabilityStatus = io.flow.v0.enums.ItemAvailabilityStatus;
16069
+ export type ItemDeleted = io.flow.v0.models.ItemDeleted;
15387
16070
  export type ItemForm = io.flow.v0.models.ItemForm;
15388
16071
  export type ItemFormOverlay = io.flow.v0.models.ItemFormOverlay;
15389
16072
  export type ItemFormOverlayForm = io.flow.v0.models.ItemFormOverlayForm;
15390
16073
  export type ItemIdentifier = io.flow.v0.enums.ItemIdentifier;
16074
+ export type ItemInserted = io.flow.v0.models.ItemInserted;
15391
16075
  export type ItemMargin = io.flow.v0.models.ItemMargin;
15392
16076
  export type ItemMarginDeletedV2 = io.flow.v0.models.ItemMarginDeletedV2;
15393
16077
  export type ItemMarginPostForm = io.flow.v0.models.ItemMarginPostForm;
@@ -15404,6 +16088,7 @@ export type ItemSalesMarginDeleted = io.flow.v0.models.ItemSalesMarginDeleted;
15404
16088
  export type ItemSalesMarginUpserted = io.flow.v0.models.ItemSalesMarginUpserted;
15405
16089
  export type ItemShippingPricing = io.flow.v0.models.ItemShippingPricing;
15406
16090
  export type ItemStatistics = io.flow.v0.models.ItemStatistics;
16091
+ export type ItemUpdated = io.flow.v0.models.ItemUpdated;
15407
16092
  export type ItemVersion = io.flow.v0.models.ItemVersion;
15408
16093
  export type JsonpResponse = io.flow.v0.models.JsonpResponse;
15409
16094
  export type KlarnaPaymentCategory = io.flow.v0.models.KlarnaPaymentCategory;
@@ -15886,8 +16571,12 @@ export type PaymentMethodDataInitBancontact =
15886
16571
  io.flow.v0.models.PaymentMethodDataInitBancontact;
15887
16572
  export type PaymentMethodDataInitGooglepay =
15888
16573
  io.flow.v0.models.PaymentMethodDataInitGooglepay;
16574
+ export type PaymentMethodDataInitGrabpay =
16575
+ io.flow.v0.models.PaymentMethodDataInitGrabpay;
15889
16576
  export type PaymentMethodDataInitIdeal =
15890
16577
  io.flow.v0.models.PaymentMethodDataInitIdeal;
16578
+ export type PaymentMethodDataInitKcpCreditcard =
16579
+ io.flow.v0.models.PaymentMethodDataInitKcpCreditcard;
15891
16580
  export type PaymentMethodDataInitKlarna =
15892
16581
  io.flow.v0.models.PaymentMethodDataInitKlarna;
15893
16582
  export type PaymentMethodDataInitMobilepay =
@@ -15900,6 +16589,8 @@ export type PaymentMethodDataInitSofort =
15900
16589
  io.flow.v0.models.PaymentMethodDataInitSofort;
15901
16590
  export type PaymentMethodDataInitTwint =
15902
16591
  io.flow.v0.models.PaymentMethodDataInitTwint;
16592
+ export type PaymentMethodDataInitVipps =
16593
+ io.flow.v0.models.PaymentMethodDataInitVipps;
15903
16594
  export type PaymentMethodDataOptionLogo =
15904
16595
  io.flow.v0.unions.PaymentMethodDataOptionLogo;
15905
16596
  export type PaymentMethodDataOptionLogoSvg =
@@ -15937,8 +16628,12 @@ export type PaymentMethodSummaryCard =
15937
16628
  io.flow.v0.models.PaymentMethodSummaryCard;
15938
16629
  export type PaymentMethodSummaryGooglepay =
15939
16630
  io.flow.v0.models.PaymentMethodSummaryGooglepay;
16631
+ export type PaymentMethodSummaryGrabpay =
16632
+ io.flow.v0.models.PaymentMethodSummaryGrabpay;
15940
16633
  export type PaymentMethodSummaryIdeal =
15941
16634
  io.flow.v0.models.PaymentMethodSummaryIdeal;
16635
+ export type PaymentMethodSummaryKcpCreditcard =
16636
+ io.flow.v0.models.PaymentMethodSummaryKcpCreditcard;
15942
16637
  export type PaymentMethodSummaryKlarna =
15943
16638
  io.flow.v0.models.PaymentMethodSummaryKlarna;
15944
16639
  export type PaymentMethodSummaryMobilepay =
@@ -15951,6 +16646,8 @@ export type PaymentMethodSummarySofort =
15951
16646
  io.flow.v0.models.PaymentMethodSummarySofort;
15952
16647
  export type PaymentMethodSummaryTwint =
15953
16648
  io.flow.v0.models.PaymentMethodSummaryTwint;
16649
+ export type PaymentMethodSummaryVipps =
16650
+ io.flow.v0.models.PaymentMethodSummaryVipps;
15954
16651
  export type PaymentMethodTag = io.flow.v0.unions.PaymentMethodTag;
15955
16652
  export type PaymentMethodType = io.flow.v0.enums.PaymentMethodType;
15956
16653
  export type PaymentOrderDetailsLineItem =
@@ -16189,6 +16886,7 @@ export type RefundCaptureUpsertedV2 = io.flow.v0.models.RefundCaptureUpsertedV2;
16189
16886
  export type RefundDeclineCode = io.flow.v0.enums.RefundDeclineCode;
16190
16887
  export type RefundDeletedV2 = io.flow.v0.models.RefundDeletedV2;
16191
16888
  export type RefundError = io.flow.v0.models.RefundError;
16889
+ export type RefundFailureCategory = io.flow.v0.enums.RefundFailureCategory;
16192
16890
  export type RefundForm = io.flow.v0.models.RefundForm;
16193
16891
  export type RefundIdentifier = io.flow.v0.models.RefundIdentifier;
16194
16892
  export type RefundIdentifierDeleted = io.flow.v0.models.RefundIdentifierDeleted;