@flowio/api-types 0.0.208 → 0.0.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +1 -0
- package/generated/io.flow.billing.v0.billing.d.ts +1 -0
- package/generated/io.flow.internal.v0.api-internal.d.ts +48 -12
- package/generated/io.flow.label.v0.label.d.ts +6 -0
- package/generated/io.flow.stripe.v0.stripe.d.ts +55 -23
- package/generated/io.flow.v0.api.d.ts +7 -0
- package/package.json +2 -2
|
@@ -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-
|
|
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';
|
|
@@ -204,6 +204,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
204
204
|
type OrganizationPaymentStatus = 'active' | 'archived';
|
|
205
205
|
type OrganizationRestrictionApprovalStatus = 'ready' | 'not-ready';
|
|
206
206
|
type OrganizationRestrictionNoteType = 'internal' | 'rejection_reason' | 'additional_rejection_info';
|
|
207
|
+
type OrganizationRestrictionReviewType = 'all_pending' | 'pending_verification';
|
|
207
208
|
type OrganizationRestrictionRiskLevel = '5' | '15';
|
|
208
209
|
type OrganizationRestrictionScreeningStatus = 'in_review' | 'fully_reviewed' | 'rejected' | 'unscreened';
|
|
209
210
|
type OutputStyle = 'flow' | 'shopify_p1';
|
|
@@ -429,6 +430,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
429
430
|
readonly 'round_individual_transactions': boolean;
|
|
430
431
|
readonly 'liabilities_method': io.flow.internal.v0.enums.AccountSettingLiabilitiesMethod;
|
|
431
432
|
readonly 'enable_fee_reversals': boolean;
|
|
433
|
+
readonly 'record_reason_for_transactions_pending_payout': boolean;
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
interface AccountSettingsDeleted {
|
|
@@ -2027,7 +2029,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
2027
2029
|
|
|
2028
2030
|
interface ChannelDebugTransaction {
|
|
2029
2031
|
readonly 'debug'?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
2030
|
-
readonly 'order'?: io.flow.internal.v0.models.DebugOrder;
|
|
2031
2032
|
readonly 'queue'?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
2032
2033
|
}
|
|
2033
2034
|
|
|
@@ -2037,6 +2038,18 @@ declare namespace io.flow.internal.v0.models {
|
|
|
2037
2038
|
readonly 'organization_id_prefix'?: string;
|
|
2038
2039
|
}
|
|
2039
2040
|
|
|
2041
|
+
interface ChannelFulfillment {
|
|
2042
|
+
readonly 'org_id': string;
|
|
2043
|
+
readonly 'flow_order_number': string;
|
|
2044
|
+
readonly 'shopify_order_number': string;
|
|
2045
|
+
readonly 'legal_name'?: string;
|
|
2046
|
+
readonly 'flow_tracking_status'?: io.flow.tracking.v0.enums.TrackingStatus;
|
|
2047
|
+
readonly 'order_items': io.flow.experience.v0.models.LocalizedLineItem[];
|
|
2048
|
+
readonly 'label_items': io.flow.experience.v0.models.LocalizedLineItem[];
|
|
2049
|
+
readonly 'carrier'?: io.flow.reference.v0.models.CarrierService;
|
|
2050
|
+
readonly 'tracking_numbers'?: string[];
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2040
2053
|
interface ChannelMembership {
|
|
2041
2054
|
readonly 'id': string;
|
|
2042
2055
|
readonly 'channel': io.flow.common.v0.models.ChannelReference;
|
|
@@ -4979,8 +4992,9 @@ declare namespace io.flow.internal.v0.models {
|
|
|
4979
4992
|
}
|
|
4980
4993
|
|
|
4981
4994
|
interface DebugTransactionDetails {
|
|
4982
|
-
readonly '
|
|
4995
|
+
readonly 'transaction': io.flow.billing.v0.models.Transaction;
|
|
4983
4996
|
readonly 'status': io.flow.internal.v0.models.DebugTransactionDetailsStatus;
|
|
4997
|
+
readonly 'payout'?: io.flow.billing.v0.models.PendingPayoutTransactionReason;
|
|
4984
4998
|
readonly 'fx'?: io.flow.internal.v0.models.DebugTransactionFx;
|
|
4985
4999
|
}
|
|
4986
5000
|
|
|
@@ -6553,18 +6567,17 @@ declare namespace io.flow.internal.v0.models {
|
|
|
6553
6567
|
|
|
6554
6568
|
interface Fulfillment {
|
|
6555
6569
|
readonly 'id': string;
|
|
6556
|
-
readonly 'fulfilled_at': string;
|
|
6557
|
-
readonly 'owner': io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
6558
|
-
readonly 'currency': string;
|
|
6559
6570
|
readonly 'order': io.flow.internal.v0.models.OrderSummary;
|
|
6560
|
-
readonly 'origin'?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
6561
6571
|
readonly 'shopper': io.flow.internal.v0.models.ShopperSummary;
|
|
6562
6572
|
readonly 'merchant': io.flow.internal.v0.models.MerchantSummary;
|
|
6563
|
-
readonly 'trigger': io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
6564
|
-
readonly 'completes_order': boolean;
|
|
6565
6573
|
readonly 'sequence_number': number;
|
|
6566
6574
|
readonly 'posting_cutoff': string;
|
|
6575
|
+
readonly 'trigger': io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
6576
|
+
readonly 'fulfilled_at': string;
|
|
6577
|
+
readonly 'owner': io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
6578
|
+
readonly 'origin'?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
6567
6579
|
readonly 'business'?: io.flow.internal.v0.models.FulfillmentBusiness;
|
|
6580
|
+
readonly 'completes_order': boolean;
|
|
6568
6581
|
}
|
|
6569
6582
|
|
|
6570
6583
|
interface FulfillmentActionForm {
|
|
@@ -7730,7 +7743,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
7730
7743
|
|
|
7731
7744
|
interface InternalDebugTransaction {
|
|
7732
7745
|
readonly 'debug'?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
7733
|
-
readonly 'order'?: io.flow.internal.v0.models.DebugOrder;
|
|
7734
7746
|
readonly 'queue'?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
7735
7747
|
}
|
|
7736
7748
|
|
|
@@ -9592,6 +9604,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
9592
9604
|
readonly 'id': string;
|
|
9593
9605
|
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
9594
9606
|
readonly 'number': string;
|
|
9607
|
+
readonly 'type': io.flow.experience.v0.enums.OrderType;
|
|
9608
|
+
readonly 'submitted_at': string;
|
|
9609
|
+
readonly 'delivered_duty': io.flow.common.v0.enums.DeliveredDuty;
|
|
9610
|
+
readonly 'currency': string;
|
|
9595
9611
|
}
|
|
9596
9612
|
|
|
9597
9613
|
interface OrderTransaction {
|
|
@@ -9799,7 +9815,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
9799
9815
|
|
|
9800
9816
|
interface OrganizationDebugTransaction {
|
|
9801
9817
|
readonly 'debug'?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
9802
|
-
readonly 'order'?: io.flow.internal.v0.models.DebugOrder;
|
|
9803
9818
|
readonly 'queue'?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
9804
9819
|
}
|
|
9805
9820
|
|
|
@@ -9880,6 +9895,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
9880
9895
|
readonly 'organization_id': string;
|
|
9881
9896
|
readonly 'approval_status': io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
9882
9897
|
readonly 'screening_status': io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
|
9898
|
+
readonly 'review_type'?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
9883
9899
|
readonly 'risk_level'?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
9884
9900
|
readonly 'hs_code'?: string;
|
|
9885
9901
|
readonly 'merchant_category_code'?: string;
|
|
@@ -11319,6 +11335,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11319
11335
|
interface RestrictionKeywords {
|
|
11320
11336
|
readonly 'positive_keywords': string[];
|
|
11321
11337
|
readonly 'negative_keywords': string[];
|
|
11338
|
+
readonly 'positive_search_matches': string[];
|
|
11339
|
+
readonly 'negative_search_matches': string[];
|
|
11322
11340
|
}
|
|
11323
11341
|
|
|
11324
11342
|
interface RestrictionOrganization {
|
|
@@ -11328,6 +11346,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11328
11346
|
readonly 'url'?: string;
|
|
11329
11347
|
readonly 'approval_status'?: io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
11330
11348
|
readonly 'screening_status'?: io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
|
11349
|
+
readonly 'review_type'?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
11331
11350
|
readonly 'risk_level'?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
11332
11351
|
readonly 'hs_code'?: string;
|
|
11333
11352
|
readonly 'merchant_category_code'?: string;
|
|
@@ -11492,6 +11511,17 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11492
11511
|
readonly 'carrier_tracking_numbers': string[];
|
|
11493
11512
|
}
|
|
11494
11513
|
|
|
11514
|
+
interface Return {
|
|
11515
|
+
readonly 'id': string;
|
|
11516
|
+
readonly 'order': io.flow.internal.v0.models.OrderSummary;
|
|
11517
|
+
readonly 'shopper': io.flow.internal.v0.models.ShopperSummary;
|
|
11518
|
+
readonly 'merchant': io.flow.internal.v0.models.MerchantSummary;
|
|
11519
|
+
readonly 'sequence_number': number;
|
|
11520
|
+
readonly 'posting_cutoff': string;
|
|
11521
|
+
readonly 'trigger': io.flow.internal.v0.unions.ReturnTrigger;
|
|
11522
|
+
readonly 'returned_at': string;
|
|
11523
|
+
}
|
|
11524
|
+
|
|
11495
11525
|
interface ReturnPolicyDeleted {
|
|
11496
11526
|
readonly 'discriminator': 'return_policy_deleted';
|
|
11497
11527
|
readonly 'event_id': string;
|
|
@@ -11531,6 +11561,11 @@ declare namespace io.flow.internal.v0.models {
|
|
|
11531
11561
|
readonly 'tracking_summary'?: io.flow.internal.v0.models.SearchTrackingSummary;
|
|
11532
11562
|
}
|
|
11533
11563
|
|
|
11564
|
+
interface ReturnTriggerRefund {
|
|
11565
|
+
readonly 'discriminator': 'by_refund';
|
|
11566
|
+
readonly 'refund': io.flow.payment.v0.models.RefundReference;
|
|
11567
|
+
}
|
|
11568
|
+
|
|
11534
11569
|
interface RoutingAccount {
|
|
11535
11570
|
readonly 'discriminator': 'routing_account';
|
|
11536
11571
|
readonly 'processor': io.flow.internal.v0.enums.Processor;
|
|
@@ -12323,7 +12358,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12323
12358
|
}
|
|
12324
12359
|
|
|
12325
12360
|
interface ShopperSummary {
|
|
12326
|
-
readonly '
|
|
12361
|
+
readonly 'product': io.flow.internal.v0.models.ShopperLines;
|
|
12327
12362
|
readonly 'fees': io.flow.internal.v0.models.ShopperFees;
|
|
12328
12363
|
readonly 'freight': io.flow.internal.v0.models.ShopperFreight;
|
|
12329
12364
|
readonly 'order_discount': number;
|
|
@@ -13599,6 +13634,7 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
13599
13634
|
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
13635
|
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
13636
|
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);
|
|
13637
|
+
type ReturnTrigger = (io.flow.internal.v0.models.ReturnTriggerRefund);
|
|
13602
13638
|
type RoutingEntity = (io.flow.internal.v0.models.RoutingProcessor | io.flow.internal.v0.models.RoutingAccount | io.flow.internal.v0.models.RoutingMerchant);
|
|
13603
13639
|
type ShopifyMonitoringOrderMonitorType = (io.flow.internal.v0.models.ShopifyMonitoringFulfillmentExternal | io.flow.internal.v0.models.ShopifyMonitoringFulfillmentMissingDetails);
|
|
13604
13640
|
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,15 +4,17 @@ 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' | 'previously_declined_do_not_retry' | 'highest_risk_level' | 'requested_block_on_incorrect_cvc';
|
|
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;
|
|
@@ -168,7 +171,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
168
171
|
readonly 'balance_transaction'?: string;
|
|
169
172
|
readonly 'destination'?: string;
|
|
170
173
|
readonly 'dispute'?: string;
|
|
171
|
-
readonly 'failure_code'?:
|
|
174
|
+
readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
172
175
|
readonly 'failure_message'?: string;
|
|
173
176
|
readonly 'on_behalf_of'?: string;
|
|
174
177
|
readonly 'review'?: string;
|
|
@@ -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;
|
|
@@ -219,7 +224,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
219
224
|
readonly 'balance_transaction'?: string;
|
|
220
225
|
readonly 'destination'?: string;
|
|
221
226
|
readonly 'dispute'?: string;
|
|
222
|
-
readonly 'failure_code'?:
|
|
227
|
+
readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
223
228
|
readonly 'failure_message'?: string;
|
|
224
229
|
readonly 'on_behalf_of'?: string;
|
|
225
230
|
readonly 'review'?: 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;
|
|
@@ -271,17 +285,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
271
285
|
readonly 'product_category'?: string;
|
|
272
286
|
}
|
|
273
287
|
|
|
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
288
|
interface LegalEntity {
|
|
286
289
|
readonly 'additional_owners'?: io.flow.stripe.v0.models.Owner[];
|
|
287
290
|
}
|
|
@@ -307,6 +310,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
307
310
|
readonly 'payment_request_order_reference'?: string;
|
|
308
311
|
}
|
|
309
312
|
|
|
313
|
+
interface Multicapture {
|
|
314
|
+
readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
315
|
+
}
|
|
316
|
+
|
|
310
317
|
interface NetworkTokenUsed {
|
|
311
318
|
readonly 'used'?: boolean;
|
|
312
319
|
}
|
|
@@ -354,6 +361,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
354
361
|
readonly 'shipping'?: io.flow.stripe.v0.models.Shipping;
|
|
355
362
|
}
|
|
356
363
|
|
|
364
|
+
interface Overcapture {
|
|
365
|
+
readonly 'maximum_amount_capturable'?: number;
|
|
366
|
+
readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
367
|
+
}
|
|
368
|
+
|
|
357
369
|
interface Owner {
|
|
358
370
|
readonly 'address'?: io.flow.stripe.v0.models.Address;
|
|
359
371
|
readonly 'email'?: string;
|
|
@@ -384,7 +396,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
384
396
|
readonly 'customer'?: string;
|
|
385
397
|
readonly 'description'?: string;
|
|
386
398
|
readonly 'invoice'?: string;
|
|
387
|
-
readonly 'last_payment_error'?: io.flow.stripe.v0.models.
|
|
399
|
+
readonly 'last_payment_error'?: io.flow.stripe.v0.models.StripeError;
|
|
388
400
|
readonly 'livemode': boolean;
|
|
389
401
|
readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
|
|
390
402
|
readonly 'next_action'?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -427,7 +439,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
427
439
|
readonly 'off_session'?: boolean;
|
|
428
440
|
readonly 'payment_method'?: string;
|
|
429
441
|
readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
430
|
-
readonly 'payment_method_options'?: io.flow.stripe.v0.models.
|
|
442
|
+
readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
431
443
|
readonly 'payment_method_types'?: string[];
|
|
432
444
|
readonly 'receipt_email'?: string;
|
|
433
445
|
readonly 'save_payment_method'?: boolean;
|
|
@@ -448,7 +460,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
448
460
|
readonly 'on_behalf_of'?: string;
|
|
449
461
|
readonly 'payment_method'?: string;
|
|
450
462
|
readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
451
|
-
readonly 'payment_method_options'?: io.flow.stripe.v0.models.
|
|
463
|
+
readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
452
464
|
readonly 'payment_method_types'?: string[];
|
|
453
465
|
readonly 'receipt_email'?: string;
|
|
454
466
|
readonly 'return_url'?: string;
|
|
@@ -554,6 +566,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
554
566
|
readonly 'issuer'?: string;
|
|
555
567
|
readonly 'wallet'?: io.flow.stripe.v0.unions.CardWallet;
|
|
556
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;
|
|
557
573
|
}
|
|
558
574
|
|
|
559
575
|
interface PaymentMethodDetailsKlarna {
|
|
@@ -582,12 +598,24 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
582
598
|
readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
583
599
|
readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
584
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;
|
|
585
613
|
}
|
|
586
614
|
|
|
587
615
|
interface PaymentOutcome {
|
|
588
|
-
readonly 'network_status'
|
|
589
|
-
readonly 'risk_level'
|
|
590
|
-
readonly 'seller_message'
|
|
616
|
+
readonly 'network_status'?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
617
|
+
readonly 'risk_level'?: string;
|
|
618
|
+
readonly 'seller_message'?: string;
|
|
591
619
|
readonly 'reason'?: string;
|
|
592
620
|
readonly 'type'?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
593
621
|
}
|
|
@@ -786,10 +814,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
786
814
|
readonly 'type': io.flow.stripe.v0.enums.ErrorType;
|
|
787
815
|
readonly 'charge'?: string;
|
|
788
816
|
readonly 'message'?: string;
|
|
789
|
-
readonly 'code'?: io.flow.stripe.v0.enums.
|
|
790
|
-
readonly 'decline_code'?:
|
|
817
|
+
readonly 'code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
818
|
+
readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
|
|
791
819
|
readonly 'param'?: string;
|
|
792
820
|
readonly 'payment_intent'?: io.flow.stripe.v0.models.PaymentIntent;
|
|
821
|
+
readonly 'payment_method'?: io.flow.stripe.v0.models.PaymentMethod;
|
|
793
822
|
}
|
|
794
823
|
|
|
795
824
|
interface StripeEvent {
|
|
@@ -822,9 +851,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
822
851
|
interface ThreeDSecureCharge {
|
|
823
852
|
readonly 'authenticated'?: boolean;
|
|
824
853
|
readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
854
|
+
readonly 'electronic_commerce_indicator'?: string;
|
|
855
|
+
readonly 'exemption_indicator'?: string;
|
|
825
856
|
readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
826
857
|
readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
827
858
|
readonly 'succeeded'?: boolean;
|
|
859
|
+
readonly 'transaction_id'?: string;
|
|
828
860
|
readonly 'version'?: string;
|
|
829
861
|
}
|
|
830
862
|
|
|
@@ -399,6 +399,11 @@ declare namespace io.flow.v0.models {
|
|
|
399
399
|
readonly 'placeholder'?: boolean;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
+
interface AdditionalServicesRequested {
|
|
403
|
+
readonly 'name': string;
|
|
404
|
+
readonly 'description'?: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
402
407
|
interface Address {
|
|
403
408
|
readonly 'text'?: string;
|
|
404
409
|
readonly 'streets'?: string[];
|
|
@@ -8810,6 +8815,7 @@ declare namespace io.flow.v0.models {
|
|
|
8810
8815
|
readonly 'shipment_recipient': io.flow.v0.enums.ShipmentRecipient;
|
|
8811
8816
|
readonly 'label_request_method'?: io.flow.v0.enums.LabelRequestMethod;
|
|
8812
8817
|
readonly 'label_trigger_method'?: io.flow.v0.enums.LabelTriggerMethod;
|
|
8818
|
+
readonly 'additional_services_requested'?: io.flow.v0.models.AdditionalServicesRequested[];
|
|
8813
8819
|
readonly 'created_at'?: string;
|
|
8814
8820
|
readonly 'updated_at'?: string;
|
|
8815
8821
|
}
|
|
@@ -10085,6 +10091,7 @@ declare namespace io.flow.v0.models {
|
|
|
10085
10091
|
|
|
10086
10092
|
interface TransactionMetadataManual {
|
|
10087
10093
|
readonly 'discriminator': 'manual';
|
|
10094
|
+
readonly 'description': string;
|
|
10088
10095
|
readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
10089
10096
|
readonly 'url'?: string;
|
|
10090
10097
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.210",
|
|
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": "
|
|
17
|
+
"gitHead": "fc644e9ba6f842b12316085c5adbfeaa86923d6b"
|
|
18
18
|
}
|