@flowio/api-types 0.0.201 → 0.0.202

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
  }
@@ -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.202",
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": "cc45ff4a674f1a129166e04d6910cb7a1a2f0da1"
18
18
  }