@flowio/api-types 0.0.209 → 0.0.211

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.
@@ -357,6 +357,7 @@ declare namespace io.flow.billing.csv.v0.models {
357
357
  interface BillingCsvTransactionMetadata {
358
358
  readonly 'channel'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataChannel;
359
359
  readonly 'shipping_label'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabel;
360
+ readonly 'shipping_label_revenue_share'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabelRevenueShare;
360
361
  readonly 'trueup'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataTrueup;
361
362
  readonly 'manual'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataManual;
362
363
  }
@@ -375,6 +376,12 @@ declare namespace io.flow.billing.csv.v0.models {
375
376
  readonly 'request_method'?: io.flow.label.v0.enums.LabelRequestMethod;
376
377
  }
377
378
 
379
+ interface BillingCsvTransactionMetadataShippingLabelRevenueShare {
380
+ readonly 'label_id': string;
381
+ readonly 'base_amount'?: number;
382
+ readonly 'percentage'?: number;
383
+ }
384
+
378
385
  interface BillingCsvTransactionMetadataTrueup {
379
386
  readonly 'original': io.flow.billing.v0.models.TransactionMetadataOriginalTransaction;
380
387
  }
@@ -19,65 +19,25 @@ declare namespace io.flow.billing.reporting.csv.v0.models {
19
19
  readonly 'shipping': boolean;
20
20
  }
21
21
 
22
+ interface RecordReference {
23
+ readonly 'id': string;
24
+ }
25
+
22
26
  interface RefundRecord {
23
- readonly 'billing_entity': string;
24
- readonly 'order_id': string;
25
- readonly 'order_refund_id': string;
26
- readonly 'refund_created_at_date': string;
27
- readonly 'reconciliation_date': string;
28
- readonly 'reconciliation_month': number;
29
- readonly 'reconciliation_year': number;
30
- readonly 'order_created_at_date': string;
31
- readonly 'order_status': string;
32
- readonly 'b2b_sale': boolean;
33
- readonly 'a_zero_vat_product_exists': boolean;
34
- readonly 'payment_merchant_reference'?: string;
35
- readonly 'merchant_reference'?: string;
36
- readonly 'merchant_id': string;
37
- readonly 'merchant_name': string;
38
- readonly 'destination_country': string;
39
- readonly 'shopper_country_is_eu': boolean;
40
- readonly 'order_refund_reason_name': string;
41
- readonly 'order_refund_status_name': string;
42
- readonly 'original_ccy': string;
43
- readonly 'transaction_ccy': string;
44
- readonly 'total_refund_amount_exc_vat_in_transaction_ccy'?: number;
45
- readonly 'refund_vat_in_transaction_ccy'?: number;
46
- readonly 'total_refund_amount_inc_vat_in_transaction_ccy'?: number;
47
- readonly 'merchant_total_products_refund_amount_exc_vat_in_original_ccy': number;
48
- readonly 'merchant_shipping_refund_amount_exc_vat_in_transaction_ccy'?: number;
49
- readonly 'merchant_shipping_refund_amount_exc_vat_in_original_ccy': number;
50
- readonly 'total_refund_amount_exc_tax_collected_in_shopper_ccy'?: number;
51
- readonly 'tax_collected_amount_in_shopper_ccy': number;
52
- readonly 'total_refund_amount_inc_tax_collected_in_shopper_ccy'?: number;
53
- readonly 'payment_gateway': string;
54
- readonly 'min_product_customer_vat_rate'?: number;
55
- readonly 'is_virtual_order': boolean;
56
- readonly 'is_mixed_virtual_order': boolean;
57
- readonly 'total_refund_amount_exc_tax_collected_in_usd': number;
58
- readonly 'tax_collected_amount_in_usd': number;
59
- readonly 'total_refund_amount_inc_tax_collected_in_usd': number;
60
- readonly 'total_refund_amount_exc_tax_collected_in_eur': number;
61
- readonly 'tax_collected_amount_in_eur': number;
62
- readonly 'total_refund_amount_inc_tax_collected_in_eur': number;
63
- readonly 'is_wyol_order': boolean;
64
- readonly 'is_duties_guaranteed': boolean;
65
- readonly 'invoice_id'?: string;
66
- readonly 'total_refund_amount_exc_vat_in_entity_ccy': number;
67
- readonly 'refund_vat_in_entity_ccy': number;
68
- readonly 'total_refund_amount_inc_vat_in_entity_ccy': number;
69
- readonly 'merchant_total_products_refund_amount_exc_vat_in_entity_ccy': number;
70
- readonly 'merchant_shipping_refund_amount_exc_vat_in_entity_ccy': number;
71
- readonly 'merchant_duties_and_taxes_refund_amount_in_entity_ccy': number;
72
- readonly 'merchant_service_gesture_amount_exc_vat_in_entity_ccy': number;
73
- readonly 'customer_prepaid_refund_amount_exc_vat_in_entity_ccy': number;
74
- readonly 'total_refund_amount_exc_tax_collected_in_entity_ccy': number;
75
- readonly 'tax_collected_amount_in_entity_ccy': number;
76
- readonly 'total_refund_amount_inc_tax_collected_in_entity_ccy': number;
77
- readonly 'conversion_rate_transaction_to_entity_ccy': number;
78
- readonly 'merchant_order_id': string;
79
- readonly 'transaction_date': string;
80
- readonly 'debug_console_order_link': string;
27
+ readonly 'id': string;
28
+ readonly 'parent'?: io.flow.billing.reporting.csv.v0.models.RecordReference;
29
+ readonly 'merchant': io.flow.billing.reporting.csv.v0.models.ReportingOrganizationSummary;
30
+ readonly 'order': io.flow.billing.reporting.csv.v0.models.ReportingOrderSummary;
31
+ readonly 'entity': io.flow.billing.reporting.csv.v0.models.ReportingEntity;
32
+ readonly 'vendor': io.flow.billing.reporting.csv.v0.models.ReportingVendor;
33
+ readonly 'currencies': io.flow.billing.reporting.csv.v0.models.ReportingCurrencies;
34
+ readonly 'conversion_rate': io.flow.billing.reporting.csv.v0.models.ReportingConversionRates;
35
+ readonly 'reconciliation': io.flow.billing.reporting.csv.v0.models.ReportingReconciliation;
36
+ readonly 'merchant_subsidies': io.flow.billing.reporting.csv.v0.models.ReportingMerchantSubsidies;
37
+ readonly 'merchant_fees': io.flow.billing.reporting.csv.v0.models.ReportingMerchantFees;
38
+ readonly 'merchant_transactions': io.flow.billing.reporting.csv.v0.models.ReportingMerchantTransactions;
39
+ readonly 'debug': io.flow.billing.reporting.csv.v0.models.ReportingDebug;
40
+ readonly 'return'?: io.flow.billing.reporting.csv.v0.models.ReportingReturn;
81
41
  }
82
42
 
83
43
  interface ReportingAuthorizationReference {
@@ -211,6 +171,7 @@ declare namespace io.flow.billing.reporting.csv.v0.models {
211
171
  readonly 'tax': io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
212
172
  readonly 'duty': io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
213
173
  readonly 'freight': io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
174
+ readonly 'refund': io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
214
175
  }
215
176
 
216
177
  interface ReportingMonetaryValue {
@@ -243,6 +204,10 @@ declare namespace io.flow.billing.reporting.csv.v0.models {
243
204
  readonly 'year': number;
244
205
  }
245
206
 
207
+ interface ReportingReturn {
208
+ readonly 'placeholder': string;
209
+ }
210
+
246
211
  interface ReportingShopperFees {
247
212
  readonly 'fuel': io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
248
213
  readonly 'remote_area': io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
@@ -271,24 +236,24 @@ declare namespace io.flow.billing.reporting.csv.v0.models {
271
236
 
272
237
  interface SalesRecord {
273
238
  readonly 'id': string;
274
- readonly 'parent'?: io.flow.billing.reporting.csv.v0.models.SalesRecordReference;
239
+ readonly 'parent'?: io.flow.billing.reporting.csv.v0.models.RecordReference;
275
240
  readonly 'merchant': io.flow.billing.reporting.csv.v0.models.ReportingOrganizationSummary;
276
241
  readonly 'order': io.flow.billing.reporting.csv.v0.models.ReportingOrderSummary;
277
242
  readonly 'entity': io.flow.billing.reporting.csv.v0.models.ReportingEntity;
278
243
  readonly 'vendor': io.flow.billing.reporting.csv.v0.models.ReportingVendor;
279
244
  readonly 'currencies': io.flow.billing.reporting.csv.v0.models.ReportingCurrencies;
280
245
  readonly 'conversion_rate': io.flow.billing.reporting.csv.v0.models.ReportingConversionRates;
281
- readonly 'fulfillment': io.flow.billing.reporting.csv.v0.models.ReportingFulfillment;
282
246
  readonly 'reconciliation': io.flow.billing.reporting.csv.v0.models.ReportingReconciliation;
283
- readonly 'marked_as_final': io.flow.billing.reporting.csv.v0.models.MarkedAsFinal;
284
247
  readonly 'merchant_subsidies': io.flow.billing.reporting.csv.v0.models.ReportingMerchantSubsidies;
285
248
  readonly 'merchant_fees': io.flow.billing.reporting.csv.v0.models.ReportingMerchantFees;
286
249
  readonly 'merchant_transactions': io.flow.billing.reporting.csv.v0.models.ReportingMerchantTransactions;
287
- readonly 'vat_remittance': io.flow.billing.reporting.csv.v0.models.ReportingVatRemittance;
288
250
  readonly 'debug': io.flow.billing.reporting.csv.v0.models.ReportingDebug;
251
+ readonly 'fulfillment': io.flow.billing.reporting.csv.v0.models.ReportingFulfillment;
252
+ readonly 'vat_remittance': io.flow.billing.reporting.csv.v0.models.ReportingVatRemittance;
253
+ readonly 'marked_as_final': io.flow.billing.reporting.csv.v0.models.MarkedAsFinal;
289
254
  }
290
255
 
291
- interface SalesRecordReference {
256
+ interface TransactionReference {
292
257
  readonly 'id': string;
293
258
  }
294
259
  }
@@ -49,6 +49,11 @@ declare namespace io.flow.channel.internal.v0.models {
49
49
  readonly 'order_updated_at'?: string;
50
50
  }
51
51
 
52
+ interface ChannelOrderAcceptanceDetails {
53
+ readonly 'order_acceptance': io.flow.channel.internal.v0.models.ChannelOrderAcceptance;
54
+ readonly 'external_order': any/*object*/;
55
+ }
56
+
52
57
  interface ChannelOrderAcceptanceForm {
53
58
  readonly 'status': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
54
59
  }
@@ -29,6 +29,8 @@ declare namespace io.flow.internal.v0.enums {
29
29
  type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review';
30
30
  type ChannelOrderFulfillmentStatusCode = 'unfulfilled' | 'fulfilled' | 'partial' | 'cancelled';
31
31
  type ChannelTransactionType = 'adjustment' | 'reversal' | 'processing';
32
+ type ChargeEstimateSource = 'global-e' | 'shopify';
33
+ type ChargeInputType = 'fuelsc' | 'incoterm_ddp' | 'delivery_confirmation' | 'base_charge' | 'package_pickup' | 'insurance' | 'usps_first_mile' | 'oversize_piece' | 'incoterm_dap' | 'remote_area_delivery';
32
34
  type ChargebackPaymentStatus = 'captured' | 'refunded';
33
35
  type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
34
36
  type CheckoutAddAuthorizationErrorCode = 'checkout_not_found' | 'authorization_not_found';
@@ -204,6 +206,7 @@ declare namespace io.flow.internal.v0.enums {
204
206
  type OrganizationPaymentStatus = 'active' | 'archived';
205
207
  type OrganizationRestrictionApprovalStatus = 'ready' | 'not-ready';
206
208
  type OrganizationRestrictionNoteType = 'internal' | 'rejection_reason' | 'additional_rejection_info';
209
+ type OrganizationRestrictionReviewType = 'all_pending' | 'pending_verification';
207
210
  type OrganizationRestrictionRiskLevel = '5' | '15';
208
211
  type OrganizationRestrictionScreeningStatus = 'in_review' | 'fully_reviewed' | 'rejected' | 'unscreened';
209
212
  type OutputStyle = 'flow' | 'shopify_p1';
@@ -223,7 +226,7 @@ declare namespace io.flow.internal.v0.enums {
223
226
  type PromptCheckoutDisplayPosition = 'email' | 'submission';
224
227
  type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
225
228
  type PromptTarget = 'browse' | 'checkout';
226
- type QueuedRecordType = 'capture' | 'channel_transaction' | 'consumer_invoice' | 'fulfillment_in_transit' | 'fulfillment_shipping_notification' | 'fulfillment_external' | 'fulfillment_order_combined_shipment' | 'fulfillment_order_time' | 'label_tracking_summary' | 'label_invoice_request' | 'carrier_charge' | 'carrier_charge_file' | 'order' | 'order_identifier' | 'organization_onboarding_state' | 'posting_proof' | 'refund' | 'refund_over_capture' | 'sales_record' | 'statement_batch' | 'statement_email' | 'statement_summary_email' | 'pending_payout_transaction_event' | 'credit_and_subsidy' | 'negative_balance_guarantee';
229
+ type QueuedRecordType = 'capture' | 'channel_transaction' | 'consumer_invoice' | 'fulfillment_in_transit' | 'fulfillment_shipping_notification' | 'fulfillment_external' | 'fulfillment_order_combined_shipment' | 'fulfillment_order_time' | 'return_refund' | 'label_tracking_summary' | 'label_invoice_request' | 'carrier_charge' | 'carrier_charge_file' | 'order' | 'order_identifier' | 'organization_onboarding_state' | 'posting_proof' | 'refund' | 'refund_over_capture' | 'sales_record' | 'statement_batch' | 'statement_email' | 'statement_summary_email' | 'pending_payout_transaction_event' | 'credit_and_subsidy' | 'negative_balance_guarantee';
227
230
  type QuoteRequestType = 'generate' | 'delete' | 'update_currency_rate' | 'update_country';
228
231
  type RateLevelKey = 'shopify_small_usa' | 'shopify_medium_usa' | 'shopify_enterprise_usa' | 'shopify_small_sdc_usa';
229
232
  type RateSource = 'calculated' | 'market';
@@ -2045,6 +2048,7 @@ declare namespace io.flow.internal.v0.models {
2045
2048
  readonly 'flow_tracking_status'?: io.flow.tracking.v0.enums.TrackingStatus;
2046
2049
  readonly 'order_items': io.flow.experience.v0.models.LocalizedLineItem[];
2047
2050
  readonly 'label_items': io.flow.experience.v0.models.LocalizedLineItem[];
2051
+ readonly 'carrier'?: io.flow.reference.v0.models.CarrierService;
2048
2052
  readonly 'tracking_numbers'?: string[];
2049
2053
  }
2050
2054
 
@@ -2101,6 +2105,11 @@ declare namespace io.flow.internal.v0.models {
2101
2105
  readonly 'channel_order_acceptance': io.flow.internal.v0.models.ChannelOrderAcceptance;
2102
2106
  }
2103
2107
 
2108
+ interface ChannelOrderAcceptanceDetails {
2109
+ readonly 'order_acceptance': io.flow.internal.v0.models.ChannelOrderAcceptance;
2110
+ readonly 'external_order': any/*object*/;
2111
+ }
2112
+
2104
2113
  interface ChannelOrderAcceptanceForm {
2105
2114
  readonly 'status': io.flow.internal.v0.enums.ChannelOrderAcceptanceStatus;
2106
2115
  }
@@ -2216,6 +2225,12 @@ declare namespace io.flow.internal.v0.models {
2216
2225
  readonly 'channel_transaction': io.flow.internal.v0.models.ChannelTransaction;
2217
2226
  }
2218
2227
 
2228
+ interface ChargeInput {
2229
+ readonly 'charge_input_code': io.flow.internal.v0.enums.ChargeInputType;
2230
+ readonly 'price': io.flow.common.v0.models.Money;
2231
+ readonly 'charge_input_source': io.flow.internal.v0.enums.ChargeEstimateSource;
2232
+ }
2233
+
2219
2234
  interface Chargeback {
2220
2235
  readonly 'id': string;
2221
2236
  readonly 'key': string;
@@ -8210,6 +8225,7 @@ declare namespace io.flow.internal.v0.models {
8210
8225
  readonly 'organization': string;
8211
8226
  readonly 'shipping_label_form': io.flow.label.v0.unions.ShippingLabelForm;
8212
8227
  readonly 'shipment_cost'?: io.flow.common.v0.models.Money;
8228
+ readonly 'charges'?: io.flow.internal.v0.models.ChargeInput[];
8213
8229
  readonly 'reference_id'?: string;
8214
8230
  }
8215
8231
 
@@ -9893,6 +9909,7 @@ declare namespace io.flow.internal.v0.models {
9893
9909
  readonly 'organization_id': string;
9894
9910
  readonly 'approval_status': io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
9895
9911
  readonly 'screening_status': io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
9912
+ readonly 'review_type'?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
9896
9913
  readonly 'risk_level'?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
9897
9914
  readonly 'hs_code'?: string;
9898
9915
  readonly 'merchant_category_code'?: string;
@@ -11343,6 +11360,7 @@ declare namespace io.flow.internal.v0.models {
11343
11360
  readonly 'url'?: string;
11344
11361
  readonly 'approval_status'?: io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
11345
11362
  readonly 'screening_status'?: io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
11363
+ readonly 'review_type'?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
11346
11364
  readonly 'risk_level'?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
11347
11365
  readonly 'hs_code'?: string;
11348
11366
  readonly 'merchant_category_code'?: string;
@@ -9,10 +9,12 @@ declare namespace io.flow.stripe.v0.enums {
9
9
  type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
10
10
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
11
11
  type ConfirmationMethod = 'automatic' | 'manual';
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';
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' | 'previously_declined_do_not_retry' | 'highest_risk_level' | 'requested_block_on_incorrect_cvc';
13
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
+ type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
17
+ type FeatureAvailability = 'available' | 'unavailable';
16
18
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
17
19
  type KlarnaProduct = 'payment';
18
20
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
@@ -160,6 +162,7 @@ declare namespace io.flow.stripe.v0.models {
160
162
  readonly 'currency': string;
161
163
  readonly 'customer'?: string;
162
164
  readonly 'outcome'?: io.flow.stripe.v0.models.PaymentOutcome;
165
+ readonly 'disputed'?: boolean;
163
166
  readonly 'paid': boolean;
164
167
  readonly 'refunded': boolean;
165
168
  readonly 'refunds'?: io.flow.stripe.v0.models.Refunds;
@@ -179,6 +182,7 @@ declare namespace io.flow.stripe.v0.models {
179
182
  readonly 'calculated_statement_descriptor'?: string;
180
183
  readonly 'statement_descriptor'?: string;
181
184
  readonly 'payment_method_details'?: io.flow.stripe.v0.unions.PaymentMethodDetails;
185
+ readonly 'payment_method'?: string;
182
186
  }
183
187
 
184
188
  interface ChargeDestination {
@@ -207,6 +211,7 @@ declare namespace io.flow.stripe.v0.models {
207
211
  readonly 'amount_refunded': number;
208
212
  readonly 'authorization_code'?: string;
209
213
  readonly 'captured': boolean;
214
+ readonly 'disputed'?: boolean;
210
215
  readonly 'created': number;
211
216
  readonly 'currency': string;
212
217
  readonly 'customer'?: string;
@@ -230,6 +235,7 @@ declare namespace io.flow.stripe.v0.models {
230
235
  readonly 'calculated_statement_descriptor'?: string;
231
236
  readonly 'statement_descriptor'?: string;
232
237
  readonly 'payment_method_details'?: io.flow.stripe.v0.unions.PaymentMethodDetails;
238
+ readonly 'payment_method'?: string;
233
239
  }
234
240
 
235
241
  interface CodeVerification {
@@ -257,6 +263,14 @@ declare namespace io.flow.stripe.v0.models {
257
263
  readonly 'error': io.flow.stripe.v0.models.StripeError;
258
264
  }
259
265
 
266
+ interface ExtendedAuthorization {
267
+ readonly 'status'?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
268
+ }
269
+
270
+ interface IncrementalAuthorization {
271
+ readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
272
+ }
273
+
260
274
  interface Keys {
261
275
  readonly 'secret'?: string;
262
276
  readonly 'publishable'?: string;
@@ -296,6 +310,10 @@ declare namespace io.flow.stripe.v0.models {
296
310
  readonly 'payment_request_order_reference'?: string;
297
311
  }
298
312
 
313
+ interface Multicapture {
314
+ readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
315
+ }
316
+
299
317
  interface NetworkTokenUsed {
300
318
  readonly 'used'?: boolean;
301
319
  }
@@ -343,6 +361,11 @@ declare namespace io.flow.stripe.v0.models {
343
361
  readonly 'shipping'?: io.flow.stripe.v0.models.Shipping;
344
362
  }
345
363
 
364
+ interface Overcapture {
365
+ readonly 'maximum_amount_capturable'?: number;
366
+ readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
367
+ }
368
+
346
369
  interface Owner {
347
370
  readonly 'address'?: io.flow.stripe.v0.models.Address;
348
371
  readonly 'email'?: string;
@@ -416,7 +439,7 @@ declare namespace io.flow.stripe.v0.models {
416
439
  readonly 'off_session'?: boolean;
417
440
  readonly 'payment_method'?: string;
418
441
  readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
419
- readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptions;
442
+ readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
420
443
  readonly 'payment_method_types'?: string[];
421
444
  readonly 'receipt_email'?: string;
422
445
  readonly 'save_payment_method'?: boolean;
@@ -437,7 +460,7 @@ declare namespace io.flow.stripe.v0.models {
437
460
  readonly 'on_behalf_of'?: string;
438
461
  readonly 'payment_method'?: string;
439
462
  readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
440
- readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptions;
463
+ readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
441
464
  readonly 'payment_method_types'?: string[];
442
465
  readonly 'receipt_email'?: string;
443
466
  readonly 'return_url'?: string;
@@ -543,6 +566,10 @@ declare namespace io.flow.stripe.v0.models {
543
566
  readonly 'issuer'?: string;
544
567
  readonly 'wallet'?: io.flow.stripe.v0.unions.CardWallet;
545
568
  readonly 'network_transaction_id'?: string;
569
+ readonly 'extended_authorization'?: io.flow.stripe.v0.models.ExtendedAuthorization;
570
+ readonly 'incremental_authorization'?: io.flow.stripe.v0.models.IncrementalAuthorization;
571
+ readonly 'multicapture'?: io.flow.stripe.v0.models.Multicapture;
572
+ readonly 'overcapture'?: io.flow.stripe.v0.models.Overcapture;
546
573
  }
547
574
 
548
575
  interface PaymentMethodDetailsKlarna {
@@ -571,6 +598,18 @@ declare namespace io.flow.stripe.v0.models {
571
598
  readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
572
599
  readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
573
600
  readonly 'mcc'?: string;
601
+ readonly 'capture_before'?: number;
602
+ }
603
+
604
+ interface PaymentMethodOptionsCardForm {
605
+ readonly 'network'?: string;
606
+ readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
607
+ readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
608
+ readonly 'mcc'?: string;
609
+ }
610
+
611
+ interface PaymentMethodOptionsForm {
612
+ readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
574
613
  }
575
614
 
576
615
  interface PaymentOutcome {
@@ -151,6 +151,7 @@ declare namespace io.flow.v0.enums {
151
151
  type PriceDetailKey = 'item_price' | 'margins' | 'vat' | 'duty' | 'rounding' | 'adjustment';
152
152
  type PriceFacetBoundary = 'min' | 'max';
153
153
  type PricingLevySetting = 'included' | 'displayed' | 'ignored';
154
+ type ProductRestrictionRule = 'Adult Products' | 'Alcohol' | 'Anti Money Laundering' | 'Collagen' | 'Consumer Safety' | 'Cosmetics' | 'DG - Batteries' | 'DG - Hazmat' | 'Drugs' | 'Dual Use' | 'Fine Art' | 'Fish & Wildlife - CITES' | 'Fish & Wildlife - Plant' | 'Fish & Wildlife - USFWS' | 'Food' | 'Gambling' | 'Health' | 'Human hair' | 'Insufficient Details' | 'Intangible' | 'Jewelry' | 'Jewelry & Watches Over 5000' | 'Knives' | 'Liquids' | 'Oversized' | 'Supplements' | 'Weapon' | 'Wood' | 'unknown';
154
155
  type PromotionTriggerType = 'automatic' | 'order_subtotal';
155
156
  type ProvinceType = 'area' | 'city' | 'county' | 'department' | 'dependency' | 'district' | 'do_si' | 'emirate' | 'entity' | 'island' | 'municipality' | 'oblast' | 'outlying_area' | 'parish' | 'prefecture' | 'province' | 'state' | 'territory' | 'other';
156
157
  type QuoteErrorCode = 'generic_error' | 'items_not_available' | 'shipping_unavailable';
@@ -164,6 +165,7 @@ declare namespace io.flow.v0.enums {
164
165
  type ReturnTrackingStatus = 'awaiting_customs_clearance' | 'cancel_requested' | 'canceled' | 'collection_attempt_failed' | 'customs_clearance_completed' | 'delivered_to_retailer' | 'in_transit_to_local_hub' | 'in_transit_to_retailer' | 'parcel_added_to_pallet' | 'parcel_delayed' | 'parcel_extracted_from_pallet' | 'parcel_lost' | 'parcel_processed_by_retailer' | 'parcel_under_investigation' | 'processed_by_local_hub' | 'received_at_local_hub' | 'received_by_the_carrier' | 'return_registered_online';
165
166
  type ReversalErrorCode = 'amount_exceeds_balance' | 'authorization_declined' | 'authorization_expired' | 'invalid_authorization' | 'invalid_key' | 'invalid_amount' | 'invalid_currency' | 'no_remaining_balance' | 'partial_reversal_not_supported' | 'unknown';
166
167
  type ReversalStatus = 'pending' | 'processed' | 'failed';
168
+ type ReviewStatus = 'high_risk_in_review' | 'low_risk_in_review' | 'reviewed';
167
169
  type Role = 'admin' | 'member';
168
170
  type RoundingMethod = 'up' | 'down' | 'nearest';
169
171
  type RoundingType = 'pattern' | 'multiple';
@@ -399,6 +401,11 @@ declare namespace io.flow.v0.models {
399
401
  readonly 'placeholder'?: boolean;
400
402
  }
401
403
 
404
+ interface AdditionalServicesRequested {
405
+ readonly 'name': string;
406
+ readonly 'description'?: string;
407
+ }
408
+
402
409
  interface Address {
403
410
  readonly 'text'?: string;
404
411
  readonly 'streets'?: string[];
@@ -7556,6 +7563,9 @@ declare namespace io.flow.v0.models {
7556
7563
  readonly 'product_id': string;
7557
7564
  readonly 'item_numbers': string[];
7558
7565
  readonly 'prohibited_regions': string[];
7566
+ readonly 'review_status': io.flow.v0.enums.ReviewStatus;
7567
+ readonly 'rules': io.flow.v0.enums.ProductRestrictionRule[];
7568
+ readonly 'updated_by_user_id': string;
7559
7569
  }
7560
7570
 
7561
7571
  interface ProductRestrictionResultDeleted {
@@ -8810,6 +8820,7 @@ declare namespace io.flow.v0.models {
8810
8820
  readonly 'shipment_recipient': io.flow.v0.enums.ShipmentRecipient;
8811
8821
  readonly 'label_request_method'?: io.flow.v0.enums.LabelRequestMethod;
8812
8822
  readonly 'label_trigger_method'?: io.flow.v0.enums.LabelTriggerMethod;
8823
+ readonly 'additional_services_requested'?: io.flow.v0.models.AdditionalServicesRequested[];
8813
8824
  readonly 'created_at'?: string;
8814
8825
  readonly 'updated_at'?: string;
8815
8826
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-types",
3
- "version": "0.0.209",
3
+ "version": "0.0.211",
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": "4b5d69bf9ba5f404b7b1c8f07d256db3c25210d9"
17
+ "gitHead": "1855db886db2701e6ba2ae9ede907ce6abbcaa38"
18
18
  }