@flowio/types 11.24.76 → 11.24.78
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/dist/api-internal.d.ts +140 -34
- package/dist/api.d.ts +15 -20
- package/package.json +2 -2
- package/src/api-internal.ts +225 -44
- package/src/api.ts +86 -32
package/src/api.ts
CHANGED
|
@@ -169,19 +169,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
169
169
|
| 'JCB'
|
|
170
170
|
| 'Diners Club'
|
|
171
171
|
| 'Unknown';
|
|
172
|
-
type CardErrorCode =
|
|
173
|
-
| 'invalid_number'
|
|
174
|
-
| 'invalid_expiry_month'
|
|
175
|
-
| 'invalid_expiry_year'
|
|
176
|
-
| 'invalid_cvc'
|
|
177
|
-
| 'invalid_swipe_data'
|
|
178
|
-
| 'incorrect_number'
|
|
179
|
-
| 'expired_card'
|
|
180
|
-
| 'incorrect_cvc'
|
|
181
|
-
| 'incorrect_zip'
|
|
182
|
-
| 'card_declined'
|
|
183
|
-
| 'missing'
|
|
184
|
-
| 'processing_error';
|
|
185
172
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
186
173
|
type CardNetwork =
|
|
187
174
|
| 'amex'
|
|
@@ -218,6 +205,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
218
205
|
| 'invalid_account'
|
|
219
206
|
| 'invalid_amount'
|
|
220
207
|
| 'invalid_cvc'
|
|
208
|
+
| 'invalid_expiry_month'
|
|
221
209
|
| 'invalid_expiry_year'
|
|
222
210
|
| 'invalid_number'
|
|
223
211
|
| 'invalid_pin'
|
|
@@ -241,6 +229,78 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
241
229
|
| 'transaction_not_allowed'
|
|
242
230
|
| 'try_again_later'
|
|
243
231
|
| 'withdrawal_count_limit_exceeded';
|
|
232
|
+
type ErrorCode =
|
|
233
|
+
| 'invalid_number'
|
|
234
|
+
| 'invalid_expiry_month'
|
|
235
|
+
| 'invalid_expiry_year'
|
|
236
|
+
| 'invalid_cvc'
|
|
237
|
+
| 'invalid_swipe_data'
|
|
238
|
+
| 'country_code_invalid'
|
|
239
|
+
| 'email_invalid'
|
|
240
|
+
| 'postal_code_invalid'
|
|
241
|
+
| 'invalid_characters'
|
|
242
|
+
| 'url_invalid'
|
|
243
|
+
| 'invalid_charge_amount'
|
|
244
|
+
| 'incorrect_number'
|
|
245
|
+
| 'incorrect_address'
|
|
246
|
+
| 'incorrect_cvc'
|
|
247
|
+
| 'incorrect_zip'
|
|
248
|
+
| 'card_declined'
|
|
249
|
+
| 'expired_card'
|
|
250
|
+
| 'missing'
|
|
251
|
+
| 'processing_error'
|
|
252
|
+
| 'account_closed'
|
|
253
|
+
| 'amount_too_small'
|
|
254
|
+
| 'amount_too_large'
|
|
255
|
+
| 'api_key_expired'
|
|
256
|
+
| 'authentication_required'
|
|
257
|
+
| 'capture_charge_authorization_expired'
|
|
258
|
+
| 'capture_unauthorized_payment'
|
|
259
|
+
| 'card_decline_rate_limit_exceeded'
|
|
260
|
+
| 'charge_already_captured'
|
|
261
|
+
| 'charge_already_refunded'
|
|
262
|
+
| 'charge_disputed'
|
|
263
|
+
| 'charge_exceeds_source_limit'
|
|
264
|
+
| 'charge_expired_for_capture'
|
|
265
|
+
| 'charge_invalid_parameter'
|
|
266
|
+
| 'charge_not_refundable'
|
|
267
|
+
| 'insufficient_funds'
|
|
268
|
+
| 'intent_invalid_state'
|
|
269
|
+
| 'livemode_mismatch'
|
|
270
|
+
| 'parameter_invalid_empty'
|
|
271
|
+
| 'parameter_invalid_integer'
|
|
272
|
+
| 'parameter_invalid_string_blank'
|
|
273
|
+
| 'parameter_invalid_string_empty'
|
|
274
|
+
| 'parameter_missing'
|
|
275
|
+
| 'parameter_unknown'
|
|
276
|
+
| 'parameters_exclusive'
|
|
277
|
+
| 'payment_intent_action_required'
|
|
278
|
+
| 'payment_intent_authentication_failure'
|
|
279
|
+
| 'payment_intent_incompatible_payment_method'
|
|
280
|
+
| 'payment_intent_payment_attempt_expired'
|
|
281
|
+
| 'payment_intent_payment_attempt_failed'
|
|
282
|
+
| 'payment_intent_unexpected_state'
|
|
283
|
+
| 'payment_intent_invalid_parameter'
|
|
284
|
+
| 'payment_method_billing_details_address_missing'
|
|
285
|
+
| 'payment_method_customer_decline'
|
|
286
|
+
| 'payment_method_currency_mismatch'
|
|
287
|
+
| 'payment_method_invalid_parameter'
|
|
288
|
+
| 'payment_method_invalid_parameter_testmode'
|
|
289
|
+
| 'payment_method_not_available'
|
|
290
|
+
| 'payment_method_provider_decline'
|
|
291
|
+
| 'payment_method_provider_timeout'
|
|
292
|
+
| 'payment_method_unactivated'
|
|
293
|
+
| 'payment_method_unexpected_state'
|
|
294
|
+
| 'payment_method_unsupported_type'
|
|
295
|
+
| 'platform_api_key_expired'
|
|
296
|
+
| 'refund_disputed_payment'
|
|
297
|
+
| 'testmode_charges_only'
|
|
298
|
+
| 'tls_version_unsupported'
|
|
299
|
+
| 'setup_attempt_failed'
|
|
300
|
+
| 'setup_intent_authentication_failure'
|
|
301
|
+
| 'setup_intent_invalid_parameter'
|
|
302
|
+
| 'setup_intent_setup_attempt_expired'
|
|
303
|
+
| 'setup_intent_unexpected_state';
|
|
244
304
|
type ErrorType =
|
|
245
305
|
| 'api_connection_error'
|
|
246
306
|
| 'api_error'
|
|
@@ -542,7 +602,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
542
602
|
readonly balance_transaction?: string;
|
|
543
603
|
readonly destination?: string;
|
|
544
604
|
readonly dispute?: string;
|
|
545
|
-
readonly failure_code?:
|
|
605
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
546
606
|
readonly failure_message?: string;
|
|
547
607
|
readonly on_behalf_of?: string;
|
|
548
608
|
readonly review?: string;
|
|
@@ -593,7 +653,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
593
653
|
readonly balance_transaction?: string;
|
|
594
654
|
readonly destination?: string;
|
|
595
655
|
readonly dispute?: string;
|
|
596
|
-
readonly failure_code?:
|
|
656
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
597
657
|
readonly failure_message?: string;
|
|
598
658
|
readonly on_behalf_of?: string;
|
|
599
659
|
readonly review?: string;
|
|
@@ -645,17 +705,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
645
705
|
readonly product_category?: string;
|
|
646
706
|
}
|
|
647
707
|
|
|
648
|
-
interface LastPaymentError {
|
|
649
|
-
readonly charge?: string;
|
|
650
|
-
readonly code?: string;
|
|
651
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
652
|
-
readonly doc_url?: string;
|
|
653
|
-
readonly message?: string;
|
|
654
|
-
readonly param?: string;
|
|
655
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
656
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
708
|
interface LegalEntity {
|
|
660
709
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
661
710
|
}
|
|
@@ -758,7 +807,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
758
807
|
readonly customer?: string;
|
|
759
808
|
readonly description?: string;
|
|
760
809
|
readonly invoice?: string;
|
|
761
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
810
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
762
811
|
readonly livemode: boolean;
|
|
763
812
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
764
813
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -959,9 +1008,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
959
1008
|
}
|
|
960
1009
|
|
|
961
1010
|
interface PaymentOutcome {
|
|
962
|
-
readonly network_status
|
|
963
|
-
readonly risk_level
|
|
964
|
-
readonly seller_message
|
|
1011
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
1012
|
+
readonly risk_level?: string;
|
|
1013
|
+
readonly seller_message?: string;
|
|
965
1014
|
readonly reason?: string;
|
|
966
1015
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
967
1016
|
}
|
|
@@ -1160,10 +1209,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1160
1209
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
1161
1210
|
readonly charge?: string;
|
|
1162
1211
|
readonly message?: string;
|
|
1163
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
1164
|
-
readonly decline_code?:
|
|
1212
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
1213
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
1165
1214
|
readonly param?: string;
|
|
1166
1215
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
1216
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
1167
1217
|
}
|
|
1168
1218
|
|
|
1169
1219
|
interface StripeEvent {
|
|
@@ -1196,9 +1246,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1196
1246
|
interface ThreeDSecureCharge {
|
|
1197
1247
|
readonly authenticated?: boolean;
|
|
1198
1248
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
1249
|
+
readonly electronic_commerce_indicator?: string;
|
|
1250
|
+
readonly exemption_indicator?: string;
|
|
1199
1251
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
1200
1252
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
1201
1253
|
readonly succeeded?: boolean;
|
|
1254
|
+
readonly transaction_id?: string;
|
|
1202
1255
|
readonly version?: string;
|
|
1203
1256
|
}
|
|
1204
1257
|
|
|
@@ -13295,6 +13348,7 @@ declare namespace io.flow.v0.models {
|
|
|
13295
13348
|
|
|
13296
13349
|
interface TransactionMetadataManual {
|
|
13297
13350
|
readonly discriminator: 'manual';
|
|
13351
|
+
readonly description: string;
|
|
13298
13352
|
readonly original?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
13299
13353
|
readonly url?: string;
|
|
13300
13354
|
}
|