@flowio/api-types 0.0.208 → 0.0.209

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.
@@ -111,6 +111,7 @@ declare namespace io.flow.billing.internal.v0.models {
111
111
  readonly 'round_individual_transactions': boolean;
112
112
  readonly 'liabilities_method': io.flow.billing.internal.v0.enums.AccountSettingLiabilitiesMethod;
113
113
  readonly 'enable_fee_reversals': boolean;
114
+ readonly 'record_reason_for_transactions_pending_payout': boolean;
114
115
  }
115
116
 
116
117
  interface AccountSource {
@@ -278,6 +278,7 @@ declare namespace io.flow.billing.v0.models {
278
278
 
279
279
  interface TransactionMetadataManual {
280
280
  readonly 'discriminator': 'manual';
281
+ readonly 'description': string;
281
282
  readonly 'original'?: io.flow.billing.v0.models.TransactionMetadataOriginalTransaction;
282
283
  readonly 'url'?: string;
283
284
  }
@@ -6,7 +6,7 @@ declare namespace io.flow.internal.v0.enums {
6
6
  type AdyenIntegrationType = 'hosted_payment_page' | 'checkout_payments_api' | 'classic_authorise_api';
7
7
  type AnyDangerousGoods = 'yes' | 'no' | 'i_dont_know';
8
8
  type ApiCallReferenceId = 'duty_rates_data_event' | 'integration_test' | 'unit_test';
9
- type AutoRestrictRule = 'prr-3ce7d556f2464314ab0a3e8eee33e0ce' | 'prr-599c6246a1a24752aeb85e8f79030781' | 'prr-79e41878ea564f9c81cc432a0e84703f' | 'prr-f29c26dc09e04536bc77f9c32786ed70' | 'prr-0522d426a5b741c791ba05496c35297a';
9
+ type AutoRestrictRule = 'prr-3ce7d556f2464314ab0a3e8eee33e0ce' | 'prr-599c6246a1a24752aeb85e8f79030781' | 'prr-79e41878ea564f9c81cc432a0e84703f' | 'prr-f29c26dc09e04536bc77f9c32786ed70' | 'prr-b186129720f0446eb452a68518437c95';
10
10
  type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
11
11
  type BillingAllocationKey = 'freight_cost' | 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'fuel_surcharge' | 'remote_area_surcharge';
12
12
  type BillingMetricKey = 'adjustment_transactions_count' | 'adjustment_transactions_total' | 'capture_transactions_count' | 'capture_transactions_ignored_fraud_count' | 'capture_transactions_ignored_fully_refunded_count' | 'capture_transactions_ignored_other_count' | 'capture_transactions_ignored_previously_processed_count' | 'capture_transactions_total' | 'channel_transactions_processing_count' | 'channel_transactions_processing_total' | 'channel_transactions_adjustment_count' | 'channel_transactions_adjustment_total' | 'channel_transactions_reversal_count' | 'channel_transactions_reversal_total' | 'channel_billed_transactions_count' | 'channel_billed_transactions_total' | 'credit_payment_transactions_count' | 'credit_payment_transactions_total' | 'duty_transactions_count' | 'duty_transactions_total' | 'fully_subsidized_order_transactions_count' | 'fully_subsidized_order_transactions_total' | 'billable_label_transactions_count' | 'billable_label_transactions_count_for_unique_orders' | 'billable_label_transactions_total' | 'revenue_share_label_transactions_count' | 'revenue_share_label_transactions_count_for_unique_orders' | 'revenue_share_label_transactions_total' | 'manual_transactions_count' | 'manual_transactions_total' | 'order_transactions_count' | 'order_transactions_total' | 'refund_transactions_count' | 'refund_transactions_ignored_fraud_count' | 'refund_transactions_ignored_fully_refunded_count' | 'refund_transactions_ignored_other_count' | 'refund_transactions_ignored_previously_processed_count' | 'refund_transactions_total' | 'reversal_order_cancellations_transactions_count' | 'reversal_order_cancellations_transactions_total' | 'reversal_external_fulfillment_transactions_count' | 'reversal_external_fulfillment_transactions_total' | 'reversal_other_transactions_count' | 'reversal_other_transactions_total' | 'reversal_all_transactions_count' | 'reversal_all_transactions_total' | 'tax_transactions_count' | 'tax_transactions_total' | 'transfer_transactions_count' | 'transfer_transactions_total' | 'trueup_transactions_count' | 'trueup_transactions_total' | 'fulfillments_count' | 'fulfilled_via_replacement_order_count' | 'percentage_orders_with_fulfillment_proof_2_weeks' | 'percentage_orders_with_fulfillment_proof_4_weeks' | 'percentage_orders_with_fulfillment_proof_6_weeks' | 'percentage_orders_with_fulfillment_proof_all' | 'pending_payouts_max_age_in_millis' | 'shipping_notifications_count' | 'queued_capture_unprocessed_count' | 'queued_refund_unprocessed_count' | 'queued_label_invoice_request_unprocessed_count' | 'queued_other_unprocessed_count' | 'queued_record_snooze_count' | 'queued_record_snooze_ending_in_48_hours_count' | 'statements_no_payout_count' | 'statements_no_payout_total' | 'statements_pending_payout_count' | 'statements_pending_payout_total' | 'payouts_scheduled_count' | 'payouts_scheduled_total' | 'payouts_sent_count' | 'payouts_sent_total' | 'payouts_failed_count' | 'payouts_failed_total' | 'average_payout_amount' | 'capture_transaction_with_zero_fees_and_no_channel_transaction_count' | 'percentage_billable_label_transactions_with_carrier_charge_10_days' | 'percentage_billable_label_transactions_with_carrier_charge_20_days' | 'percentage_billable_label_transactions_with_carrier_charge_30_days' | 'percentage_billable_label_transactions_with_carrier_charge_60_days' | 'percentage_billable_label_transactions_with_carrier_charge_90_days';
@@ -429,6 +429,7 @@ declare namespace io.flow.internal.v0.models {
429
429
  readonly 'round_individual_transactions': boolean;
430
430
  readonly 'liabilities_method': io.flow.internal.v0.enums.AccountSettingLiabilitiesMethod;
431
431
  readonly 'enable_fee_reversals': boolean;
432
+ readonly 'record_reason_for_transactions_pending_payout': boolean;
432
433
  }
433
434
 
434
435
  interface AccountSettingsDeleted {
@@ -2027,7 +2028,6 @@ declare namespace io.flow.internal.v0.models {
2027
2028
 
2028
2029
  interface ChannelDebugTransaction {
2029
2030
  readonly 'debug'?: io.flow.internal.v0.models.DebugTransactionDetails;
2030
- readonly 'order'?: io.flow.internal.v0.models.DebugOrder;
2031
2031
  readonly 'queue'?: io.flow.internal.v0.models.DebugTransactionQueued;
2032
2032
  }
2033
2033
 
@@ -2037,6 +2037,17 @@ declare namespace io.flow.internal.v0.models {
2037
2037
  readonly 'organization_id_prefix'?: string;
2038
2038
  }
2039
2039
 
2040
+ interface ChannelFulfillment {
2041
+ readonly 'org_id': string;
2042
+ readonly 'flow_order_number': string;
2043
+ readonly 'shopify_order_number': string;
2044
+ readonly 'legal_name'?: string;
2045
+ readonly 'flow_tracking_status'?: io.flow.tracking.v0.enums.TrackingStatus;
2046
+ readonly 'order_items': io.flow.experience.v0.models.LocalizedLineItem[];
2047
+ readonly 'label_items': io.flow.experience.v0.models.LocalizedLineItem[];
2048
+ readonly 'tracking_numbers'?: string[];
2049
+ }
2050
+
2040
2051
  interface ChannelMembership {
2041
2052
  readonly 'id': string;
2042
2053
  readonly 'channel': io.flow.common.v0.models.ChannelReference;
@@ -4979,8 +4990,9 @@ declare namespace io.flow.internal.v0.models {
4979
4990
  }
4980
4991
 
4981
4992
  interface DebugTransactionDetails {
4982
- readonly 'id': string;
4993
+ readonly 'transaction': io.flow.billing.v0.models.Transaction;
4983
4994
  readonly 'status': io.flow.internal.v0.models.DebugTransactionDetailsStatus;
4995
+ readonly 'payout'?: io.flow.billing.v0.models.PendingPayoutTransactionReason;
4984
4996
  readonly 'fx'?: io.flow.internal.v0.models.DebugTransactionFx;
4985
4997
  }
4986
4998
 
@@ -6553,18 +6565,17 @@ declare namespace io.flow.internal.v0.models {
6553
6565
 
6554
6566
  interface Fulfillment {
6555
6567
  readonly 'id': string;
6556
- readonly 'fulfilled_at': string;
6557
- readonly 'owner': io.flow.internal.v0.enums.LogisticsResponsibility;
6558
- readonly 'currency': string;
6559
6568
  readonly 'order': io.flow.internal.v0.models.OrderSummary;
6560
- readonly 'origin'?: io.flow.internal.v0.models.FulfillmentOrigin;
6561
6569
  readonly 'shopper': io.flow.internal.v0.models.ShopperSummary;
6562
6570
  readonly 'merchant': io.flow.internal.v0.models.MerchantSummary;
6563
- readonly 'trigger': io.flow.internal.v0.unions.FulfillmentTrigger;
6564
- readonly 'completes_order': boolean;
6565
6571
  readonly 'sequence_number': number;
6566
6572
  readonly 'posting_cutoff': string;
6573
+ readonly 'trigger': io.flow.internal.v0.unions.FulfillmentTrigger;
6574
+ readonly 'fulfilled_at': string;
6575
+ readonly 'owner': io.flow.internal.v0.enums.LogisticsResponsibility;
6576
+ readonly 'origin'?: io.flow.internal.v0.models.FulfillmentOrigin;
6567
6577
  readonly 'business'?: io.flow.internal.v0.models.FulfillmentBusiness;
6578
+ readonly 'completes_order': boolean;
6568
6579
  }
6569
6580
 
6570
6581
  interface FulfillmentActionForm {
@@ -7730,7 +7741,6 @@ declare namespace io.flow.internal.v0.models {
7730
7741
 
7731
7742
  interface InternalDebugTransaction {
7732
7743
  readonly 'debug'?: io.flow.internal.v0.models.DebugTransactionDetails;
7733
- readonly 'order'?: io.flow.internal.v0.models.DebugOrder;
7734
7744
  readonly 'queue'?: io.flow.internal.v0.models.DebugTransactionQueued;
7735
7745
  }
7736
7746
 
@@ -9592,6 +9602,10 @@ declare namespace io.flow.internal.v0.models {
9592
9602
  readonly 'id': string;
9593
9603
  readonly 'organization': io.flow.common.v0.models.OrganizationReference;
9594
9604
  readonly 'number': string;
9605
+ readonly 'type': io.flow.experience.v0.enums.OrderType;
9606
+ readonly 'submitted_at': string;
9607
+ readonly 'delivered_duty': io.flow.common.v0.enums.DeliveredDuty;
9608
+ readonly 'currency': string;
9595
9609
  }
9596
9610
 
9597
9611
  interface OrderTransaction {
@@ -9799,7 +9813,6 @@ declare namespace io.flow.internal.v0.models {
9799
9813
 
9800
9814
  interface OrganizationDebugTransaction {
9801
9815
  readonly 'debug'?: io.flow.internal.v0.models.DebugTransactionDetails;
9802
- readonly 'order'?: io.flow.internal.v0.models.DebugOrder;
9803
9816
  readonly 'queue'?: io.flow.internal.v0.models.DebugTransactionQueued;
9804
9817
  }
9805
9818
 
@@ -11319,6 +11332,8 @@ declare namespace io.flow.internal.v0.models {
11319
11332
  interface RestrictionKeywords {
11320
11333
  readonly 'positive_keywords': string[];
11321
11334
  readonly 'negative_keywords': string[];
11335
+ readonly 'positive_search_matches': string[];
11336
+ readonly 'negative_search_matches': string[];
11322
11337
  }
11323
11338
 
11324
11339
  interface RestrictionOrganization {
@@ -11492,6 +11507,17 @@ declare namespace io.flow.internal.v0.models {
11492
11507
  readonly 'carrier_tracking_numbers': string[];
11493
11508
  }
11494
11509
 
11510
+ interface Return {
11511
+ readonly 'id': string;
11512
+ readonly 'order': io.flow.internal.v0.models.OrderSummary;
11513
+ readonly 'shopper': io.flow.internal.v0.models.ShopperSummary;
11514
+ readonly 'merchant': io.flow.internal.v0.models.MerchantSummary;
11515
+ readonly 'sequence_number': number;
11516
+ readonly 'posting_cutoff': string;
11517
+ readonly 'trigger': io.flow.internal.v0.unions.ReturnTrigger;
11518
+ readonly 'returned_at': string;
11519
+ }
11520
+
11495
11521
  interface ReturnPolicyDeleted {
11496
11522
  readonly 'discriminator': 'return_policy_deleted';
11497
11523
  readonly 'event_id': string;
@@ -11531,6 +11557,11 @@ declare namespace io.flow.internal.v0.models {
11531
11557
  readonly 'tracking_summary'?: io.flow.internal.v0.models.SearchTrackingSummary;
11532
11558
  }
11533
11559
 
11560
+ interface ReturnTriggerRefund {
11561
+ readonly 'discriminator': 'by_refund';
11562
+ readonly 'refund': io.flow.payment.v0.models.RefundReference;
11563
+ }
11564
+
11534
11565
  interface RoutingAccount {
11535
11566
  readonly 'discriminator': 'routing_account';
11536
11567
  readonly 'processor': io.flow.internal.v0.enums.Processor;
@@ -12323,7 +12354,7 @@ declare namespace io.flow.internal.v0.models {
12323
12354
  }
12324
12355
 
12325
12356
  interface ShopperSummary {
12326
- readonly 'fulfilled': io.flow.internal.v0.models.ShopperLines;
12357
+ readonly 'product': io.flow.internal.v0.models.ShopperLines;
12327
12358
  readonly 'fees': io.flow.internal.v0.models.ShopperFees;
12328
12359
  readonly 'freight': io.flow.internal.v0.models.ShopperFreight;
12329
12360
  readonly 'order_discount': number;
@@ -13599,6 +13630,7 @@ declare namespace io.flow.internal.v0.unions {
13599
13630
  type ProcessorMerchantModificationForm = (io.flow.internal.v0.models.StripeMerchantModificationForm | io.flow.internal.v0.models.AdyenMerchantModificationForm | io.flow.internal.v0.models.FiservMerchantModificationForm | io.flow.internal.v0.models.PaypalMerchantModificationForm);
13600
13631
  type ProcessorMerchantPutForm = (io.flow.internal.v0.models.StripeMerchantPutForm | io.flow.internal.v0.models.AdyenMerchantPutForm | io.flow.internal.v0.models.FiservMerchantPutForm | io.flow.internal.v0.models.PaypalMerchantPutForm);
13601
13632
  type ProofOfPosting = (io.flow.internal.v0.models.ProofOfPostingFulfilled | io.flow.internal.v0.models.ProofOfPostingExternallyFulfilled | io.flow.internal.v0.models.ProofOfPostingShippingNotification | io.flow.internal.v0.models.ProofOfPostingOrderCancellation | io.flow.internal.v0.models.ProofOfPostingOrderCombinedShipment);
13633
+ type ReturnTrigger = (io.flow.internal.v0.models.ReturnTriggerRefund);
13602
13634
  type RoutingEntity = (io.flow.internal.v0.models.RoutingProcessor | io.flow.internal.v0.models.RoutingAccount | io.flow.internal.v0.models.RoutingMerchant);
13603
13635
  type ShopifyMonitoringOrderMonitorType = (io.flow.internal.v0.models.ShopifyMonitoringFulfillmentExternal | io.flow.internal.v0.models.ShopifyMonitoringFulfillmentMissingDetails);
13604
13636
  type ShopifyPromotionOfferDiscount = (io.flow.internal.v0.models.ShopifyPromotionFixedAmount | io.flow.internal.v0.models.ShopifyPromotionPercent);
@@ -9,6 +9,11 @@ declare namespace io.flow.label.v0.enums {
9
9
  }
10
10
 
11
11
  declare namespace io.flow.label.v0.models {
12
+ interface AdditionalServicesRequested {
13
+ readonly 'name': string;
14
+ readonly 'description'?: string;
15
+ }
16
+
12
17
  interface BridgeManifest {
13
18
  readonly 'id': string;
14
19
  readonly 'service': io.flow.fulfillment.v0.models.ServiceSummary;
@@ -114,6 +119,7 @@ declare namespace io.flow.label.v0.models {
114
119
  readonly 'shipment_recipient': io.flow.label.v0.enums.ShipmentRecipient;
115
120
  readonly 'label_request_method'?: io.flow.label.v0.enums.LabelRequestMethod;
116
121
  readonly 'label_trigger_method'?: io.flow.label.v0.enums.LabelTriggerMethod;
122
+ readonly 'additional_services_requested'?: io.flow.label.v0.models.AdditionalServicesRequested[];
117
123
  readonly 'created_at'?: string;
118
124
  readonly 'updated_at'?: string;
119
125
  }
@@ -4,13 +4,13 @@ declare namespace io.flow.stripe.v0.enums {
4
4
  type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
5
5
  type CaptureMethod = 'automatic' | 'manual';
6
6
  type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
7
- type CardErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'incorrect_number' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'missing' | 'processing_error';
8
7
  type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
9
8
  type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
10
9
  type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
11
10
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
12
11
  type ConfirmationMethod = 'automatic' | 'manual';
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';
12
+ 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_month' | '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';
13
+ type ErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'country_code_invalid' | 'email_invalid' | 'postal_code_invalid' | 'invalid_characters' | 'url_invalid' | 'invalid_charge_amount' | 'incorrect_number' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'expired_card' | 'missing' | 'processing_error' | 'account_closed' | 'amount_too_small' | 'amount_too_large' | 'api_key_expired' | 'authentication_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'insufficient_funds' | 'intent_invalid_state' | 'livemode_mismatch' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_unexpected_state' | 'payment_intent_invalid_parameter' | 'payment_method_billing_details_address_missing' | 'payment_method_customer_decline' | 'payment_method_currency_mismatch' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'platform_api_key_expired' | 'refund_disputed_payment' | 'testmode_charges_only' | 'tls_version_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state';
14
14
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
15
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';
@@ -168,7 +168,7 @@ declare namespace io.flow.stripe.v0.models {
168
168
  readonly 'balance_transaction'?: string;
169
169
  readonly 'destination'?: string;
170
170
  readonly 'dispute'?: string;
171
- readonly 'failure_code'?: string;
171
+ readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
172
172
  readonly 'failure_message'?: string;
173
173
  readonly 'on_behalf_of'?: string;
174
174
  readonly 'review'?: string;
@@ -219,7 +219,7 @@ declare namespace io.flow.stripe.v0.models {
219
219
  readonly 'balance_transaction'?: string;
220
220
  readonly 'destination'?: string;
221
221
  readonly 'dispute'?: string;
222
- readonly 'failure_code'?: string;
222
+ readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
223
223
  readonly 'failure_message'?: string;
224
224
  readonly 'on_behalf_of'?: string;
225
225
  readonly 'review'?: string;
@@ -271,17 +271,6 @@ declare namespace io.flow.stripe.v0.models {
271
271
  readonly 'product_category'?: string;
272
272
  }
273
273
 
274
- interface LastPaymentError {
275
- readonly 'charge'?: string;
276
- readonly 'code'?: string;
277
- readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
278
- readonly 'doc_url'?: string;
279
- readonly 'message'?: string;
280
- readonly 'param'?: string;
281
- readonly 'payment_method': io.flow.stripe.v0.models.PaymentMethod;
282
- readonly 'type': io.flow.stripe.v0.enums.ErrorType;
283
- }
284
-
285
274
  interface LegalEntity {
286
275
  readonly 'additional_owners'?: io.flow.stripe.v0.models.Owner[];
287
276
  }
@@ -384,7 +373,7 @@ declare namespace io.flow.stripe.v0.models {
384
373
  readonly 'customer'?: string;
385
374
  readonly 'description'?: string;
386
375
  readonly 'invoice'?: string;
387
- readonly 'last_payment_error'?: io.flow.stripe.v0.models.LastPaymentError;
376
+ readonly 'last_payment_error'?: io.flow.stripe.v0.models.StripeError;
388
377
  readonly 'livemode': boolean;
389
378
  readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
390
379
  readonly 'next_action'?: io.flow.stripe.v0.models.NextAction;
@@ -585,9 +574,9 @@ declare namespace io.flow.stripe.v0.models {
585
574
  }
586
575
 
587
576
  interface PaymentOutcome {
588
- readonly 'network_status': io.flow.stripe.v0.enums.NetworkStatus;
589
- readonly 'risk_level': string;
590
- readonly 'seller_message': string;
577
+ readonly 'network_status'?: io.flow.stripe.v0.enums.NetworkStatus;
578
+ readonly 'risk_level'?: string;
579
+ readonly 'seller_message'?: string;
591
580
  readonly 'reason'?: string;
592
581
  readonly 'type'?: io.flow.stripe.v0.enums.PaymentOutcomeType;
593
582
  }
@@ -786,10 +775,11 @@ declare namespace io.flow.stripe.v0.models {
786
775
  readonly 'type': io.flow.stripe.v0.enums.ErrorType;
787
776
  readonly 'charge'?: string;
788
777
  readonly 'message'?: string;
789
- readonly 'code'?: io.flow.stripe.v0.enums.CardErrorCode;
790
- readonly 'decline_code'?: string;
778
+ readonly 'code'?: io.flow.stripe.v0.enums.ErrorCode;
779
+ readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
791
780
  readonly 'param'?: string;
792
781
  readonly 'payment_intent'?: io.flow.stripe.v0.models.PaymentIntent;
782
+ readonly 'payment_method'?: io.flow.stripe.v0.models.PaymentMethod;
793
783
  }
794
784
 
795
785
  interface StripeEvent {
@@ -822,9 +812,12 @@ declare namespace io.flow.stripe.v0.models {
822
812
  interface ThreeDSecureCharge {
823
813
  readonly 'authenticated'?: boolean;
824
814
  readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
815
+ readonly 'electronic_commerce_indicator'?: string;
816
+ readonly 'exemption_indicator'?: string;
825
817
  readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
826
818
  readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
827
819
  readonly 'succeeded'?: boolean;
820
+ readonly 'transaction_id'?: string;
828
821
  readonly 'version'?: string;
829
822
  }
830
823
 
@@ -10085,6 +10085,7 @@ declare namespace io.flow.v0.models {
10085
10085
 
10086
10086
  interface TransactionMetadataManual {
10087
10087
  readonly 'discriminator': 'manual';
10088
+ readonly 'description': string;
10088
10089
  readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
10089
10090
  readonly 'url'?: string;
10090
10091
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-types",
3
- "version": "0.0.208",
3
+ "version": "0.0.209",
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": "a3e99b9b2cacb4b20115f294b1baa6a6533c4e5c"
17
+ "gitHead": "4b5d69bf9ba5f404b7b1c8f07d256db3c25210d9"
18
18
  }