@flowio/api-types 0.0.201 → 0.0.203

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.
@@ -1,8 +1,8 @@
1
1
  declare namespace io.flow.apple.pay.v0.enums {
2
- type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName';
2
+ type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
3
3
  type ApplePayLineItemType = 'final' | 'pending';
4
4
  type ApplePayMerchantCapability = 'supports3DS' | 'supportsCredit' | 'supportsDebit' | 'supportsEMV';
5
- type ApplePayShippingType = 'shipping' | 'delivery' | 'storePickup' | 'servicePickup';
5
+ type ApplePayShippingType = 'shipping' | 'delivery' | 'store_pickup' | 'service_pickup';
6
6
  type ApplePaySupportedNetworks = 'amex' | 'chinaUnionPay' | 'discover' | 'jcb' | 'masterCard' | 'privateLabel' | 'visa';
7
7
  }
8
8
 
@@ -10,7 +10,7 @@ declare namespace io.flow.apple.pay.v0.models {
10
10
  interface ApplePayLineItem {
11
11
  readonly 'label': string;
12
12
  readonly 'type': io.flow.apple.pay.v0.enums.ApplePayLineItemType;
13
- readonly 'amount': string;
13
+ readonly 'amount': number;
14
14
  }
15
15
 
16
16
  interface ApplePayPaymentContact {
@@ -61,7 +61,7 @@ declare namespace io.flow.apple.pay.v0.models {
61
61
  interface ApplePayShippingMethod {
62
62
  readonly 'label': string;
63
63
  readonly 'detail': string;
64
- readonly 'amount': string;
64
+ readonly 'amount': number;
65
65
  readonly 'identifier': string;
66
66
  }
67
67
  }
@@ -206,6 +206,12 @@ declare namespace io.flow.billing.v0.models {
206
206
  readonly 'updated_at': string;
207
207
  }
208
208
 
209
+ interface PendingTransaction {
210
+ readonly 'id': string;
211
+ readonly 'reason': io.flow.billing.v0.enums.TransactionPayoutPendingReason;
212
+ readonly 'reason_set_at': string;
213
+ }
214
+
209
215
  interface SettlementNoPayout {
210
216
  readonly 'discriminator': 'no_payout';
211
217
  readonly 'placeholder'?: string;
@@ -246,6 +252,22 @@ declare namespace io.flow.billing.v0.models {
246
252
  readonly 'updated_at': string;
247
253
  }
248
254
 
255
+ interface TransactionMetadataChannel {
256
+ readonly 'discriminator': 'channel';
257
+ readonly 'method': string;
258
+ readonly 'card'?: io.flow.billing.v0.models.TransactionMetadataChannelCardMetadata;
259
+ }
260
+
261
+ interface TransactionMetadataChannelCardMetadata {
262
+ readonly 'type': io.flow.payment.v0.enums.CardType;
263
+ readonly 'issuer': io.flow.billing.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
264
+ }
265
+
266
+ interface TransactionMetadataChannelCardMetadataIssuerSummary {
267
+ readonly 'iin': string;
268
+ readonly 'country': string;
269
+ }
270
+
249
271
  interface TransactionMetadataShippingLabel {
250
272
  readonly 'discriminator': 'shipping_label';
251
273
  readonly 'request_method'?: io.flow.label.v0.enums.LabelRequestMethod;
@@ -297,5 +319,5 @@ declare namespace io.flow.billing.v0.unions {
297
319
  type BankAccountForm = (io.flow.billing.v0.models.BankAccountFormInfo | io.flow.billing.v0.models.BankAccountFormSimple);
298
320
  type PayoutStatus = (io.flow.billing.v0.models.PayoutStatusScheduled | io.flow.billing.v0.models.PayoutStatusSent | io.flow.billing.v0.models.PayoutStatusFailed);
299
321
  type Settlement = (io.flow.billing.v0.models.SettlementNoPayout | io.flow.billing.v0.models.SettlementPayout);
300
- type TransactionMetadata = (io.flow.billing.v0.models.TransactionMetadataShippingLabel | io.flow.billing.v0.models.TransactionMetadataTrueup);
322
+ type TransactionMetadata = (io.flow.billing.v0.models.TransactionMetadataShippingLabel | io.flow.billing.v0.models.TransactionMetadataChannel | io.flow.billing.v0.models.TransactionMetadataTrueup);
301
323
  }
@@ -219,7 +219,7 @@ declare namespace io.flow.internal.v0.enums {
219
219
  type PromptCheckoutDisplayPosition = 'email' | 'submission';
220
220
  type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
221
221
  type PromptTarget = 'browse' | 'checkout';
222
- type QueuedRecordType = 'capture' | 'capture_deletion' | 'channel_transaction' | 'consumer_invoice' | 'fulfillment_in_transit' | 'fulfillment_shipping_notification' | 'fulfillment_external' | 'label_tracking_summary' | 'label_invoice_request' | 'label_invoice_response' | 'label_invoice_response_file' | 'label_origin' | 'order' | 'order_identifier' | 'organization_onboarding_state' | 'refund' | 'refund_deletion' | 'refund_over_capture' | 'sales_record' | 'statement_batch' | 'statement_email' | 'statement_summary_email';
222
+ type QueuedRecordType = 'capture' | 'channel_transaction' | 'consumer_invoice' | 'fulfillment_in_transit' | 'fulfillment_shipping_notification' | 'fulfillment_external' | 'fulfillment_order_cancellation' | 'label_tracking_summary' | 'label_invoice_request' | 'carrier_charge' | 'carrier_charge_file' | 'label_origin' | 'order' | 'order_identifier' | 'organization_onboarding_state' | 'refund' | 'refund_over_capture' | 'sales_record' | 'statement_batch' | 'statement_email' | 'statement_summary_email';
223
223
  type QuoteRequestType = 'generate' | 'delete' | 'update_currency_rate' | 'update_country';
224
224
  type RateLevelKey = 'shopify_small_usa' | 'shopify_medium_usa' | 'shopify_enterprise_usa' | 'shopify_small_sdc_usa';
225
225
  type RateSource = 'calculated' | 'market';
@@ -1704,6 +1704,53 @@ declare namespace io.flow.internal.v0.models {
1704
1704
  readonly 'error_message'?: string;
1705
1705
  }
1706
1706
 
1707
+ interface CarrierChargeFile {
1708
+ readonly 'id': string;
1709
+ readonly 'url': string;
1710
+ readonly 'created_at': string;
1711
+ readonly 'result'?: io.flow.internal.v0.models.CarrierChargeFileResult;
1712
+ }
1713
+
1714
+ interface CarrierChargeFileForm {
1715
+ readonly 'url': string;
1716
+ }
1717
+
1718
+ interface CarrierChargeFileResult {
1719
+ readonly 'processed_at': string;
1720
+ readonly 'number_lines_successful': number;
1721
+ readonly 'number_lines_with_errors': number;
1722
+ readonly 'errors_url'?: string;
1723
+ }
1724
+
1725
+ interface CarrierChargeFormLabel {
1726
+ readonly 'discriminator': 'label';
1727
+ readonly 'id': string;
1728
+ readonly 'label_invoice_request_id': string;
1729
+ readonly 'units': io.flow.internal.v0.models.CarrierChargeUnits;
1730
+ readonly 'base': io.flow.internal.v0.models.LabelBase;
1731
+ readonly 'surcharges': io.flow.internal.v0.models.LabelSurchargeForm;
1732
+ readonly 'total': number;
1733
+ readonly 'attributes'?: Record<string, string>;
1734
+ }
1735
+
1736
+ interface CarrierChargeFormReturnToOrigin {
1737
+ readonly 'discriminator': 'return_to_origin';
1738
+ readonly 'id': string;
1739
+ readonly 'carrier_id': string;
1740
+ readonly 'carrier_tracking_number': string;
1741
+ readonly 'units': io.flow.internal.v0.models.CarrierChargeUnits;
1742
+ readonly 'base': io.flow.internal.v0.models.LabelBase;
1743
+ readonly 'surcharges': io.flow.internal.v0.models.LabelSurchargeForm;
1744
+ readonly 'total': number;
1745
+ readonly 'attributes'?: Record<string, string>;
1746
+ }
1747
+
1748
+ interface CarrierChargeUnits {
1749
+ readonly 'currency': string;
1750
+ readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
1751
+ readonly 'length'?: io.flow.units.v0.enums.UnitOfLength;
1752
+ }
1753
+
1707
1754
  interface CarrierInvoice {
1708
1755
  readonly 'number': string;
1709
1756
  readonly 'timestamp': string;
@@ -6422,16 +6469,28 @@ declare namespace io.flow.internal.v0.models {
6422
6469
  interface FulfillmentProofExternalFulfillmentProofReference {
6423
6470
  readonly 'discriminator': 'external_fulfillment';
6424
6471
  readonly 'id': string;
6472
+ readonly 'carrier_id'?: string;
6473
+ readonly 'carrier_service_id'?: string;
6474
+ readonly 'carrier_tracking_number'?: string;
6475
+ readonly 'label_id'?: string;
6425
6476
  }
6426
6477
 
6427
6478
  interface FulfillmentProofLabelTrackingReference {
6428
6479
  readonly 'discriminator': 'label_tracking';
6429
6480
  readonly 'id': string;
6481
+ readonly 'carrier_id'?: string;
6482
+ readonly 'carrier_service_id'?: string;
6483
+ readonly 'carrier_tracking_number'?: string;
6484
+ readonly 'label_id'?: string;
6430
6485
  }
6431
6486
 
6432
6487
  interface FulfillmentProofShippingNotificationReference {
6433
6488
  readonly 'discriminator': 'shipping_notification';
6434
6489
  readonly 'id': string;
6490
+ readonly 'carrier_id'?: string;
6491
+ readonly 'carrier_service_id'?: string;
6492
+ readonly 'carrier_tracking_number'?: string;
6493
+ readonly 'label_id'?: string;
6435
6494
  }
6436
6495
 
6437
6496
  interface FulfillmentReference {
@@ -8060,33 +8119,6 @@ declare namespace io.flow.internal.v0.models {
8060
8119
  readonly 'label_invoice_request': io.flow.internal.v0.models.LabelInvoiceRequest;
8061
8120
  }
8062
8121
 
8063
- interface LabelInvoiceResponseFile {
8064
- readonly 'id': string;
8065
- readonly 'url': string;
8066
- readonly 'created_at': string;
8067
- readonly 'result'?: io.flow.internal.v0.models.LabelInvoiceResponseFileResult;
8068
- }
8069
-
8070
- interface LabelInvoiceResponseFileForm {
8071
- readonly 'url': string;
8072
- }
8073
-
8074
- interface LabelInvoiceResponseFileResult {
8075
- readonly 'processed_at': string;
8076
- readonly 'number_lines_successful': number;
8077
- readonly 'number_lines_with_errors': number;
8078
- readonly 'errors_url'?: string;
8079
- }
8080
-
8081
- interface LabelInvoiceResponseForm {
8082
- readonly 'id': string;
8083
- readonly 'label_invoice_request_id': string;
8084
- readonly 'units': io.flow.internal.v0.models.LabelResponseUnits;
8085
- readonly 'base': io.flow.internal.v0.models.LabelBase;
8086
- readonly 'surcharges': io.flow.internal.v0.models.LabelSurchargeForm;
8087
- readonly 'total': number;
8088
- }
8089
-
8090
8122
  interface LabelMetadata {
8091
8123
  readonly 'ratecard': io.flow.internal.v0.models.MetadataRatecard;
8092
8124
  readonly 'weights': io.flow.internal.v0.models.MetadataWeights;
@@ -8122,12 +8154,6 @@ declare namespace io.flow.internal.v0.models {
8122
8154
  readonly 'label_request_error': io.flow.internal.v0.models.LabelRequestError;
8123
8155
  }
8124
8156
 
8125
- interface LabelResponseUnits {
8126
- readonly 'currency': string;
8127
- readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
8128
- readonly 'length'?: io.flow.units.v0.enums.UnitOfLength;
8129
- }
8130
-
8131
8157
  interface LabelSummary {
8132
8158
  readonly 'id': string;
8133
8159
  readonly 'commercial_invoice'?: string;
@@ -8930,6 +8956,10 @@ declare namespace io.flow.internal.v0.models {
8930
8956
  }
8931
8957
 
8932
8958
  interface MerchantCharges {
8959
+ readonly 'adjustment': number;
8960
+ readonly 'reversal': number;
8961
+ readonly 'tax': number;
8962
+ readonly 'duty': number;
8933
8963
  readonly 'labels': number;
8934
8964
  readonly 'total': number;
8935
8965
  }
@@ -9584,6 +9614,7 @@ declare namespace io.flow.internal.v0.models {
9584
9614
  readonly 'id': string;
9585
9615
  readonly 'deactivate_at': string;
9586
9616
  readonly 'created_at': string;
9617
+ readonly 'reason'?: string;
9587
9618
  }
9588
9619
 
9589
9620
  interface OrganizationDeactivationDeleted {
@@ -9596,6 +9627,7 @@ declare namespace io.flow.internal.v0.models {
9596
9627
 
9597
9628
  interface OrganizationDeactivationForm {
9598
9629
  readonly 'deactivate_at': string;
9630
+ readonly 'reason'?: string;
9599
9631
  }
9600
9632
 
9601
9633
  interface OrganizationDeactivationUpserted {
@@ -13170,6 +13202,7 @@ declare namespace io.flow.internal.v0.unions {
13170
13202
  type AuthorizedOrderCharge = (io.flow.internal.v0.models.AuthorizedShippingCharge);
13171
13203
  type BlazeConsumerMessage = (io.flow.internal.v0.models.BlazeAddOrderAttributesMessage | io.flow.internal.v0.models.BlazeAddToCartMessage | io.flow.internal.v0.models.BlazeCreateByCartToken | io.flow.internal.v0.models.BlazeInitializeByOrderQuoteMessage | io.flow.internal.v0.models.BlazeInitializeBySessionMessage | io.flow.internal.v0.models.BlazeInitializeMessage | io.flow.internal.v0.models.BlazeSetCartItemsMessage | io.flow.internal.v0.models.BlazeSetCheckoutIdMessage | io.flow.internal.v0.models.BlazeStartCheckoutMessage | io.flow.internal.v0.models.BlazeUpdateCartItemsMessage | io.flow.internal.v0.models.BlazeApplepayAvailabilityResponse | io.flow.internal.v0.models.BlazeSetPromotionCodeMessage);
13172
13204
  type BlazeProviderMessage = (io.flow.internal.v0.models.BlazeCheckoutCompleteMessage | io.flow.internal.v0.models.BlazeCheckoutProgressMessage | io.flow.internal.v0.models.BlazeCheckoutEventMessage | io.flow.internal.v0.models.BlazeStartCheckoutMessage | io.flow.internal.v0.models.BlazeExitCheckoutMessage | io.flow.internal.v0.models.BlazeExitCheckoutConfirmationMessage | io.flow.internal.v0.models.BlazeRedirectConfirmationMessage | io.flow.internal.v0.models.BlazeSynInitializeMessage | io.flow.internal.v0.models.BlazeApplepayAvailabilityRequest | io.flow.internal.v0.models.BlazePaymentAuthStartMessage | io.flow.internal.v0.models.BlazePaymentAuthCompleteMessage);
13205
+ type CarrierChargeForm = (io.flow.internal.v0.models.CarrierChargeFormLabel | io.flow.internal.v0.models.CarrierChargeFormReturnToOrigin);
13173
13206
  type CarrierCredentials = (io.flow.internal.v0.models.SfExpress | io.flow.internal.v0.models.DhlEcommerce | io.flow.internal.v0.models.Landmark | io.flow.internal.v0.models.Dhl | io.flow.internal.v0.models.FedexCrossborder | io.flow.internal.v0.models.Ups | io.flow.internal.v0.models.Fedex);
13174
13207
  type ChannelRateMetadata = (io.flow.internal.v0.models.ChannelRateMetadataIdentity | io.flow.internal.v0.models.ChannelRateMetadataRate);
13175
13208
  type CheckoutAddressBookEdit = (io.flow.internal.v0.models.CheckoutAddressBookContactRemoved);
@@ -20,6 +20,7 @@ declare namespace io.flow.shopify.markets.v0.enums {
20
20
  type ShopifyOrderFulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
21
21
  type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
22
22
  type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
23
+ type ShopifyOrderPaymentGatewayNames = 'flow_commerce' | 'gift_card' | 'manual' | 'shopify_payments';
23
24
  type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express';
24
25
  type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
25
26
  type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
@@ -12,7 +12,7 @@ declare namespace io.flow.stripe.v0.enums {
12
12
  type ConfirmationMethod = 'automatic' | 'manual';
13
13
  type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
14
14
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
15
- type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
15
+ type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'payment_intent.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'payment_intent.requires_action' | 'payment_intent.canceled' | 'payment_intent.processing' | 'source.canceled' | 'source.chargeable' | 'source.failed';
16
16
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
17
17
  type KlarnaProduct = 'payment';
18
18
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
@@ -34,6 +34,7 @@ declare namespace io.flow.stripe.v0.enums {
34
34
  type SourceStatus = 'canceled' | 'chargeable' | 'consumed' | 'failed' | 'pending';
35
35
  type SourceType = 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'bitcoin' | 'card' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure';
36
36
  type SourceUsageType = 'reusable' | 'single_use';
37
+ type StoredCredentialTransactionType = 'setup_on_session' | 'setup_off_session_recurring' | 'setup_off_session_unscheduled' | 'stored_on_session' | 'stored_on_session_recurring' | 'stored_on_session_unscheduled';
37
38
  type ThreeDSecureSupport = 'required' | 'recommended' | 'optional' | 'not_supported';
38
39
  type ThreeDsAuthenticationFlow = 'challenge' | 'frictionless';
39
40
  type ThreeDsResult = 'authenticated' | 'attempt_acknowledged' | 'exempted' | 'not_supported' | 'failed' | 'processing_error';
@@ -128,6 +129,11 @@ declare namespace io.flow.stripe.v0.models {
128
129
  readonly 'cvc_check'?: io.flow.stripe.v0.enums.CheckOutcome;
129
130
  }
130
131
 
132
+ interface CardNetworks {
133
+ readonly 'available'?: string[];
134
+ readonly 'preferred'?: string;
135
+ }
136
+
131
137
  interface CardRequest {
132
138
  readonly 'object': string;
133
139
  readonly 'exp_month': string;
@@ -297,6 +303,8 @@ declare namespace io.flow.stripe.v0.models {
297
303
  readonly 'order_number'?: string;
298
304
  readonly 'authorization_id'?: string;
299
305
  readonly 'organization_id'?: string;
306
+ readonly 'payment_request_id'?: string;
307
+ readonly 'payment_request_order_reference'?: string;
300
308
  }
301
309
 
302
310
  interface NetworkTokenUsed {
@@ -417,6 +425,7 @@ declare namespace io.flow.stripe.v0.models {
417
425
  interface PaymentIntentConfirmationForm {
418
426
  readonly 'off_session'?: boolean;
419
427
  readonly 'payment_method'?: string;
428
+ readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
420
429
  readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptions;
421
430
  readonly 'payment_method_types'?: string[];
422
431
  readonly 'receipt_email'?: string;
@@ -437,6 +446,7 @@ declare namespace io.flow.stripe.v0.models {
437
446
  readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
438
447
  readonly 'on_behalf_of'?: string;
439
448
  readonly 'payment_method'?: string;
449
+ readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
440
450
  readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptions;
441
451
  readonly 'payment_method_types'?: string[];
442
452
  readonly 'receipt_email'?: string;
@@ -469,7 +479,7 @@ declare namespace io.flow.stripe.v0.models {
469
479
  readonly 'id': string;
470
480
  readonly 'object': string;
471
481
  readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
472
- readonly 'card'?: io.flow.stripe.v0.models.SourceCard;
482
+ readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
473
483
  readonly 'card_present'?: any/*object*/;
474
484
  readonly 'created': number;
475
485
  readonly 'customer'?: string;
@@ -484,6 +494,33 @@ declare namespace io.flow.stripe.v0.models {
484
494
  readonly 'phone'?: string;
485
495
  }
486
496
 
497
+ interface PaymentMethodCardDetails {
498
+ readonly 'brand'?: io.flow.stripe.v0.enums.CardBrand;
499
+ readonly 'checks'?: io.flow.stripe.v0.models.CardChecks;
500
+ readonly 'country'?: string;
501
+ readonly 'exp_month'?: number;
502
+ readonly 'exp_year'?: number;
503
+ readonly 'fingerprint'?: string;
504
+ readonly 'funding'?: io.flow.stripe.v0.enums.CardFundingType;
505
+ readonly 'last4'?: string;
506
+ readonly 'networks'?: io.flow.stripe.v0.models.CardNetworks;
507
+ readonly 'three_d_secure_usage'?: io.flow.stripe.v0.models.ThreeDSecureUsage;
508
+ }
509
+
510
+ interface PaymentMethodCardForm {
511
+ readonly 'exp_month': string;
512
+ readonly 'exp_year': string;
513
+ readonly 'number': string;
514
+ readonly 'cvc'?: string;
515
+ }
516
+
517
+ interface PaymentMethodDataCard {
518
+ readonly 'type': 'card';
519
+ readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
520
+ readonly 'metadata'?: any/*object*/;
521
+ readonly 'card': io.flow.stripe.v0.models.PaymentMethodCardForm;
522
+ }
523
+
487
524
  interface PaymentMethodDetailsCard {
488
525
  readonly 'type': 'card';
489
526
  readonly 'card': io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -521,10 +558,11 @@ declare namespace io.flow.stripe.v0.models {
521
558
  readonly 'preferred_locale'?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
522
559
  }
523
560
 
524
- interface PaymentMethodForm {
525
- readonly 'type': io.flow.stripe.v0.enums.PaymentMethodType;
561
+ interface PaymentMethodFormCard {
562
+ readonly 'type': 'card';
526
563
  readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
527
- readonly 'card'?: io.flow.stripe.v0.models.SourceCardRequest;
564
+ readonly 'metadata'?: any/*object*/;
565
+ readonly 'card': io.flow.stripe.v0.models.PaymentMethodCardForm;
528
566
  }
529
567
 
530
568
  interface PaymentMethodOptions {
@@ -532,7 +570,9 @@ declare namespace io.flow.stripe.v0.models {
532
570
  }
533
571
 
534
572
  interface PaymentMethodOptionsCard {
573
+ readonly 'network'?: string;
535
574
  readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
575
+ readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
536
576
  }
537
577
 
538
578
  interface PaymentOutcome {
@@ -784,6 +824,10 @@ declare namespace io.flow.stripe.v0.models {
784
824
  readonly 'stripe_js': string;
785
825
  }
786
826
 
827
+ interface ThreeDSecureUsage {
828
+ readonly 'supported'?: boolean;
829
+ }
830
+
787
831
  interface Token {
788
832
  readonly 'id': string;
789
833
  readonly 'object': string;
@@ -822,5 +866,7 @@ declare namespace io.flow.stripe.v0.models {
822
866
 
823
867
  declare namespace io.flow.stripe.v0.unions {
824
868
  type CardWallet = (io.flow.stripe.v0.models.Masterpass | io.flow.stripe.v0.models.ApplePay | io.flow.stripe.v0.models.VisaCheckout);
869
+ type PaymentMethodData = (io.flow.stripe.v0.models.PaymentMethodDataCard);
825
870
  type PaymentMethodDetails = (io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna);
871
+ type PaymentMethodForm = (io.flow.stripe.v0.models.PaymentMethodFormCard);
826
872
  }
@@ -7120,6 +7120,12 @@ declare namespace io.flow.v0.models {
7120
7120
  readonly 'ends_at'?: string;
7121
7121
  }
7122
7122
 
7123
+ interface PendingTransaction {
7124
+ readonly 'id': string;
7125
+ readonly 'reason': io.flow.v0.enums.TransactionPayoutPendingReason;
7126
+ readonly 'reason_set_at': string;
7127
+ }
7128
+
7123
7129
  interface PercentMargin {
7124
7130
  readonly 'discriminator': 'percent_margin';
7125
7131
  readonly 'percentage': number;
@@ -9939,6 +9945,22 @@ declare namespace io.flow.v0.models {
9939
9945
  readonly 'network_details'?: io.flow.v0.models.TransactionNetworkDetailsCard;
9940
9946
  }
9941
9947
 
9948
+ interface TransactionMetadataChannel {
9949
+ readonly 'discriminator': 'channel';
9950
+ readonly 'method': string;
9951
+ readonly 'card'?: io.flow.v0.models.TransactionMetadataChannelCardMetadata;
9952
+ }
9953
+
9954
+ interface TransactionMetadataChannelCardMetadata {
9955
+ readonly 'type': io.flow.v0.enums.CardType;
9956
+ readonly 'issuer': io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
9957
+ }
9958
+
9959
+ interface TransactionMetadataChannelCardMetadataIssuerSummary {
9960
+ readonly 'iin': string;
9961
+ readonly 'country': string;
9962
+ }
9963
+
9942
9964
  interface TransactionMetadataShippingLabel {
9943
9965
  readonly 'discriminator': 'shipping_label';
9944
9966
  readonly 'request_method'?: io.flow.v0.enums.LabelRequestMethod;
@@ -10345,5 +10367,5 @@ declare namespace io.flow.v0.unions {
10345
10367
  type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
10346
10368
  type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
10347
10369
  type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
10348
- type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataTrueup);
10370
+ type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup);
10349
10371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-types",
3
- "version": "0.0.201",
3
+ "version": "0.0.203",
4
4
  "description": "Global TypeScript typings for Flow Commerce API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,5 +14,5 @@
14
14
  "scripts": {
15
15
  "generate": "apibuilder update && node scripts/generate-index.js"
16
16
  },
17
- "gitHead": "1c87d63f654d1b7f4aa3ef5237a2cf0558fda3d5"
17
+ "gitHead": "2eaa54ec47aea1e42dad859077feb3852172583c"
18
18
  }