@flowio/types 8.0.1 → 8.0.2
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 +107 -17
- package/package.json +2 -2
- package/src/api-internal.ts +127 -19
package/dist/api-internal.d.ts
CHANGED
|
@@ -1822,15 +1822,6 @@ declare namespace io.flow.inventory.v0.unions {
|
|
|
1822
1822
|
type InventoryStrategy = io.flow.inventory.v0.models.InventoryBackorder | io.flow.inventory.v0.models.InventoryStock | io.flow.inventory.v0.models.InventoryUnlimited;
|
|
1823
1823
|
type ReservationError = io.flow.inventory.v0.models.NoInventoryReservationError | io.flow.inventory.v0.models.ExternalApiTimeoutReservationError | io.flow.inventory.v0.models.GenericReservationError;
|
|
1824
1824
|
}
|
|
1825
|
-
declare namespace io.flow.error.v0.enums {
|
|
1826
|
-
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
1827
|
-
}
|
|
1828
|
-
declare namespace io.flow.error.v0.models {
|
|
1829
|
-
interface GenericError {
|
|
1830
|
-
readonly code: io.flow.error.v0.enums.GenericErrorCode;
|
|
1831
|
-
readonly messages: string[];
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
1825
|
declare namespace io.flow.optin.internal.v0.enums {
|
|
1835
1826
|
type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
|
|
1836
1827
|
type PromptCheckoutDisplayPosition = 'email' | 'submission';
|
|
@@ -8133,6 +8124,10 @@ declare namespace io.flow.payment.v0.models {
|
|
|
8133
8124
|
readonly type: io.flow.common.v0.enums.ChangeType;
|
|
8134
8125
|
readonly card: io.flow.payment.v0.models.Card;
|
|
8135
8126
|
}
|
|
8127
|
+
interface CryptopayAuthorizationDetails {
|
|
8128
|
+
readonly discriminator: 'cryptopay_authorization_details';
|
|
8129
|
+
readonly payment_id: string;
|
|
8130
|
+
}
|
|
8136
8131
|
interface Cvv {
|
|
8137
8132
|
readonly code: io.flow.payment.v0.enums.CvvCode;
|
|
8138
8133
|
readonly description?: string;
|
|
@@ -8261,6 +8256,18 @@ declare namespace io.flow.payment.v0.models {
|
|
|
8261
8256
|
readonly expires_at?: string;
|
|
8262
8257
|
readonly base?: io.flow.common.v0.models.Money;
|
|
8263
8258
|
}
|
|
8259
|
+
interface OnlinePaymentAuthorizationForm {
|
|
8260
|
+
readonly discriminator: 'online_payment_authorization_form';
|
|
8261
|
+
readonly payment_id: string;
|
|
8262
|
+
}
|
|
8263
|
+
interface PaymentCryptopay {
|
|
8264
|
+
readonly discriminator: 'payment_cryptopay';
|
|
8265
|
+
readonly id: string;
|
|
8266
|
+
readonly order?: io.flow.payment.v0.models.AuthorizationOrderReference;
|
|
8267
|
+
readonly amount: number;
|
|
8268
|
+
readonly currency: string;
|
|
8269
|
+
readonly cryptopay: io.flow.payment.v0.unions.OnlineAuthorizationDetails;
|
|
8270
|
+
}
|
|
8264
8271
|
interface PaymentError {
|
|
8265
8272
|
readonly code: string;
|
|
8266
8273
|
readonly messages: string[];
|
|
@@ -8272,10 +8279,7 @@ declare namespace io.flow.payment.v0.models {
|
|
|
8272
8279
|
readonly order?: io.flow.payment.v0.models.AuthorizationOrderReference;
|
|
8273
8280
|
readonly amount: number;
|
|
8274
8281
|
readonly currency: string;
|
|
8275
|
-
readonly paypal: io.flow.payment.v0.
|
|
8276
|
-
}
|
|
8277
|
-
interface PaymentPaypalData {
|
|
8278
|
-
readonly payment_id: string;
|
|
8282
|
+
readonly paypal: io.flow.payment.v0.unions.OnlineAuthorizationDetails;
|
|
8279
8283
|
}
|
|
8280
8284
|
interface PaymentReference {
|
|
8281
8285
|
readonly id: string;
|
|
@@ -8530,7 +8534,7 @@ declare namespace io.flow.payment.v0.models {
|
|
|
8530
8534
|
declare namespace io.flow.payment.v0.unions {
|
|
8531
8535
|
type AdyenNativeData = io.flow.payment.v0.models.AdyenIdentifyShopperData | io.flow.payment.v0.models.AdyenChallengeShopperData;
|
|
8532
8536
|
type Authorization = io.flow.payment.v0.models.CardAuthorization | io.flow.payment.v0.models.OnlineAuthorization;
|
|
8533
|
-
type AuthorizationForm = io.flow.payment.v0.models.AuthorizationCopyForm | io.flow.payment.v0.models.DirectAuthorizationForm | io.flow.payment.v0.models.MerchantOfRecordAuthorizationForm | io.flow.payment.v0.models.PaypalAuthorizationForm | io.flow.payment.v0.models.RedirectAuthorizationForm | io.flow.payment.v0.models.InlineAuthorizationForm | io.flow.payment.v0.models.AchAuthorizationForm | io.flow.payment.v0.models.CardPaymentSourceAuthorizationForm;
|
|
8537
|
+
type AuthorizationForm = io.flow.payment.v0.models.AuthorizationCopyForm | io.flow.payment.v0.models.DirectAuthorizationForm | io.flow.payment.v0.models.MerchantOfRecordAuthorizationForm | io.flow.payment.v0.models.PaypalAuthorizationForm | io.flow.payment.v0.models.RedirectAuthorizationForm | io.flow.payment.v0.models.InlineAuthorizationForm | io.flow.payment.v0.models.AchAuthorizationForm | io.flow.payment.v0.models.CardPaymentSourceAuthorizationForm | io.flow.payment.v0.models.OnlinePaymentAuthorizationForm;
|
|
8534
8538
|
type AuthorizationPayloadParameters = io.flow.payment.v0.models.GooglePayAuthorizationPayload | io.flow.payment.v0.models.ApplePayMerchantValidationPayload;
|
|
8535
8539
|
type AuthorizationResultAction = io.flow.payment.v0.models.AuthorizationResultActionGet | io.flow.payment.v0.models.AuthorizationResultActionPost | io.flow.payment.v0.models.AuthorizationResultActionWait | io.flow.payment.v0.models.AuthorizationResultActionNative;
|
|
8536
8540
|
type AuthorizationResultActionDetails = io.flow.payment.v0.models.AdyenNativeActionDetails | io.flow.payment.v0.models.StripeAuthorizationResultActionDetails;
|
|
@@ -8538,8 +8542,8 @@ declare namespace io.flow.payment.v0.unions {
|
|
|
8538
8542
|
type ExpandableCard = io.flow.payment.v0.models.Card | io.flow.payment.v0.models.CardReference | io.flow.payment.v0.models.CardSummary;
|
|
8539
8543
|
type GatewayAuthenticationData = io.flow.payment.v0.models.StripeAuthenticationData;
|
|
8540
8544
|
type GatewayAuthenticationDataForm = io.flow.payment.v0.models.StripeAuthenticationDataForm;
|
|
8541
|
-
type OnlineAuthorizationDetails = io.flow.payment.v0.models.PaypalAuthorizationDetails | io.flow.payment.v0.models.RedirectAuthorizationDetails | io.flow.payment.v0.models.InlineAuthorizationDetails;
|
|
8542
|
-
type Payment = io.flow.payment.v0.models.PaymentPaypal;
|
|
8545
|
+
type OnlineAuthorizationDetails = io.flow.payment.v0.models.CryptopayAuthorizationDetails | io.flow.payment.v0.models.PaypalAuthorizationDetails | io.flow.payment.v0.models.RedirectAuthorizationDetails | io.flow.payment.v0.models.InlineAuthorizationDetails;
|
|
8546
|
+
type Payment = io.flow.payment.v0.models.PaymentPaypal | io.flow.payment.v0.models.PaymentCryptopay;
|
|
8543
8547
|
type PaymentForm = io.flow.payment.v0.models.MerchantOfRecordPaymentForm;
|
|
8544
8548
|
type PaymentSource = io.flow.payment.v0.models.CardPaymentSource;
|
|
8545
8549
|
type PaymentSourceForm = io.flow.payment.v0.models.CardPaymentSourceForm;
|
|
@@ -10083,6 +10087,90 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
10083
10087
|
declare namespace io.flow.billing.internal.v0.unions {
|
|
10084
10088
|
type Transaction = io.flow.billing.internal.v0.models.InvoiceTransaction | io.flow.billing.internal.v0.models.ManualTransaction | io.flow.billing.internal.v0.models.ProcessingTransaction | io.flow.billing.internal.v0.models.SubscriptionTransaction | io.flow.billing.internal.v0.models.TaxRemittanceTransaction | io.flow.billing.internal.v0.models.TransferTransaction | io.flow.billing.internal.v0.models.VirtualCardTransaction;
|
|
10085
10089
|
}
|
|
10090
|
+
declare namespace io.flow.error.v0.enums {
|
|
10091
|
+
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
10092
|
+
}
|
|
10093
|
+
declare namespace io.flow.error.v0.models {
|
|
10094
|
+
interface GenericError {
|
|
10095
|
+
readonly code: io.flow.error.v0.enums.GenericErrorCode;
|
|
10096
|
+
readonly messages: string[];
|
|
10097
|
+
}
|
|
10098
|
+
}
|
|
10099
|
+
declare namespace io.flow.crypto.v0.enums {
|
|
10100
|
+
type ErrorType = 'authentication_error' | 'invalid_request_error' | 'rate_limit_error';
|
|
10101
|
+
type PaymentStatus = 'pending' | 'succeeded' | 'cancelled';
|
|
10102
|
+
type ReasonType = 'duplicate' | 'fraudulent' | 'requested_by_customer';
|
|
10103
|
+
type RefundStatus = 'pending' | 'succeeded';
|
|
10104
|
+
type WebhookEventName = 'payment.created' | 'payment.captured';
|
|
10105
|
+
type WebhookObjectType = 'event';
|
|
10106
|
+
}
|
|
10107
|
+
declare namespace io.flow.crypto.v0.models {
|
|
10108
|
+
interface CryptoEvent {
|
|
10109
|
+
readonly id: string;
|
|
10110
|
+
readonly object_type: io.flow.crypto.v0.enums.WebhookObjectType;
|
|
10111
|
+
readonly type: io.flow.crypto.v0.enums.WebhookEventName;
|
|
10112
|
+
readonly created: number;
|
|
10113
|
+
readonly data: io.flow.crypto.v0.models.WebhookPayment;
|
|
10114
|
+
}
|
|
10115
|
+
interface ErrorResponse {
|
|
10116
|
+
readonly type: io.flow.crypto.v0.enums.ErrorType;
|
|
10117
|
+
readonly code: string;
|
|
10118
|
+
readonly param: string;
|
|
10119
|
+
}
|
|
10120
|
+
interface Payment {
|
|
10121
|
+
readonly id: string;
|
|
10122
|
+
readonly amount: number;
|
|
10123
|
+
readonly amount_refunded: number;
|
|
10124
|
+
readonly created: number;
|
|
10125
|
+
readonly crypto_currency: string;
|
|
10126
|
+
readonly crypto_amount: string;
|
|
10127
|
+
readonly currency: string;
|
|
10128
|
+
readonly customer_id?: string;
|
|
10129
|
+
readonly data_url: string;
|
|
10130
|
+
readonly description?: string;
|
|
10131
|
+
readonly live_mode: boolean;
|
|
10132
|
+
readonly metadata?: {
|
|
10133
|
+
[key: string]: string;
|
|
10134
|
+
};
|
|
10135
|
+
readonly order_id?: string;
|
|
10136
|
+
readonly recipient: string;
|
|
10137
|
+
readonly refunded: boolean;
|
|
10138
|
+
readonly status: io.flow.crypto.v0.enums.PaymentStatus;
|
|
10139
|
+
readonly time_window: number;
|
|
10140
|
+
}
|
|
10141
|
+
interface PaymentRequest {
|
|
10142
|
+
readonly amount: number;
|
|
10143
|
+
readonly currency: string;
|
|
10144
|
+
readonly customer_id?: string;
|
|
10145
|
+
readonly description?: string;
|
|
10146
|
+
readonly metadata?: {
|
|
10147
|
+
[key: string]: string;
|
|
10148
|
+
};
|
|
10149
|
+
readonly order_id?: string;
|
|
10150
|
+
}
|
|
10151
|
+
interface Refund {
|
|
10152
|
+
readonly id: string;
|
|
10153
|
+
readonly status: io.flow.crypto.v0.enums.RefundStatus;
|
|
10154
|
+
readonly payment_id: string;
|
|
10155
|
+
readonly currency: string;
|
|
10156
|
+
readonly amount: number;
|
|
10157
|
+
readonly debit_currency: string;
|
|
10158
|
+
readonly debit_amount: number;
|
|
10159
|
+
readonly reason?: io.flow.crypto.v0.enums.ReasonType;
|
|
10160
|
+
readonly description?: string;
|
|
10161
|
+
readonly created: number;
|
|
10162
|
+
}
|
|
10163
|
+
interface RefundRequest {
|
|
10164
|
+
readonly payment_id: string;
|
|
10165
|
+
readonly amount: number;
|
|
10166
|
+
readonly debit_currency: string;
|
|
10167
|
+
readonly reason?: io.flow.crypto.v0.enums.ReasonType;
|
|
10168
|
+
readonly description?: string;
|
|
10169
|
+
}
|
|
10170
|
+
interface WebhookPayment {
|
|
10171
|
+
readonly object: io.flow.crypto.v0.models.Payment;
|
|
10172
|
+
}
|
|
10173
|
+
}
|
|
10086
10174
|
declare namespace io.flow.order.management.v0.enums {
|
|
10087
10175
|
type CancelReason = 'out_of_stock' | 'consumer_requested' | 'flow_cancel';
|
|
10088
10176
|
type FulfillmentItemQuantityStatus = 'new' | 'shipped' | 'cancelled';
|
|
@@ -10286,7 +10374,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
10286
10374
|
type PaymentTerm = 'net7' | 'net15' | 'net30';
|
|
10287
10375
|
type PriceSelector = 'minimum' | 'maximum';
|
|
10288
10376
|
type ProcessingTransactionType = 'adjustment' | 'capture' | 'refund';
|
|
10289
|
-
type Processor = 'adyen' | 'afterpay' | 'bitpay' | 'stripe' | 'paypal' | 'flow_sandbox' | 'fiserv';
|
|
10377
|
+
type Processor = 'adyen' | 'afterpay' | 'bitpay' | 'stripe' | 'paypal' | 'flow_sandbox' | 'fiserv' | 'crypto';
|
|
10290
10378
|
type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
|
|
10291
10379
|
type PromptCheckoutDisplayPosition = 'email' | 'submission';
|
|
10292
10380
|
type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
|
|
@@ -12946,6 +13034,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12946
13034
|
readonly account_issues_count: number;
|
|
12947
13035
|
readonly product_issues_count: number;
|
|
12948
13036
|
readonly feeds_count: number;
|
|
13037
|
+
readonly domestic_feeds_count: number;
|
|
13038
|
+
readonly localized_feeds_count: number;
|
|
12949
13039
|
}
|
|
12950
13040
|
interface MarketingGatewayGoogleConnection {
|
|
12951
13041
|
readonly status: io.flow.internal.v0.enums.MarketingGatewayGoogleConnectionStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "TypeScript type definitions for custom types found in Flow API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"prettier": "^1.18.2",
|
|
28
28
|
"typescript": "^3.6.3"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "14916fc03a7d30e81d9a1ab601e03bae5d53dfc2"
|
|
31
31
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -2219,17 +2219,6 @@ declare namespace io.flow.inventory.v0.unions {
|
|
|
2219
2219
|
| io.flow.inventory.v0.models.GenericReservationError;
|
|
2220
2220
|
}
|
|
2221
2221
|
|
|
2222
|
-
declare namespace io.flow.error.v0.enums {
|
|
2223
|
-
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
declare namespace io.flow.error.v0.models {
|
|
2227
|
-
interface GenericError {
|
|
2228
|
-
readonly code: io.flow.error.v0.enums.GenericErrorCode;
|
|
2229
|
-
readonly messages: string[];
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
2222
|
declare namespace io.flow.optin.internal.v0.enums {
|
|
2234
2223
|
type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
|
|
2235
2224
|
type PromptCheckoutDisplayPosition = 'email' | 'submission';
|
|
@@ -10082,6 +10071,11 @@ declare namespace io.flow.payment.v0.models {
|
|
|
10082
10071
|
readonly card: io.flow.payment.v0.models.Card;
|
|
10083
10072
|
}
|
|
10084
10073
|
|
|
10074
|
+
interface CryptopayAuthorizationDetails {
|
|
10075
|
+
readonly discriminator: 'cryptopay_authorization_details';
|
|
10076
|
+
readonly payment_id: string;
|
|
10077
|
+
}
|
|
10078
|
+
|
|
10085
10079
|
interface Cvv {
|
|
10086
10080
|
readonly code: io.flow.payment.v0.enums.CvvCode;
|
|
10087
10081
|
readonly description?: string;
|
|
@@ -10224,6 +10218,20 @@ declare namespace io.flow.payment.v0.models {
|
|
|
10224
10218
|
readonly base?: io.flow.common.v0.models.Money;
|
|
10225
10219
|
}
|
|
10226
10220
|
|
|
10221
|
+
interface OnlinePaymentAuthorizationForm {
|
|
10222
|
+
readonly discriminator: 'online_payment_authorization_form';
|
|
10223
|
+
readonly payment_id: string;
|
|
10224
|
+
}
|
|
10225
|
+
|
|
10226
|
+
interface PaymentCryptopay {
|
|
10227
|
+
readonly discriminator: 'payment_cryptopay';
|
|
10228
|
+
readonly id: string;
|
|
10229
|
+
readonly order?: io.flow.payment.v0.models.AuthorizationOrderReference;
|
|
10230
|
+
readonly amount: number;
|
|
10231
|
+
readonly currency: string;
|
|
10232
|
+
readonly cryptopay: io.flow.payment.v0.unions.OnlineAuthorizationDetails;
|
|
10233
|
+
}
|
|
10234
|
+
|
|
10227
10235
|
interface PaymentError {
|
|
10228
10236
|
readonly code: string;
|
|
10229
10237
|
readonly messages: string[];
|
|
@@ -10236,11 +10244,7 @@ declare namespace io.flow.payment.v0.models {
|
|
|
10236
10244
|
readonly order?: io.flow.payment.v0.models.AuthorizationOrderReference;
|
|
10237
10245
|
readonly amount: number;
|
|
10238
10246
|
readonly currency: string;
|
|
10239
|
-
readonly paypal: io.flow.payment.v0.
|
|
10240
|
-
}
|
|
10241
|
-
|
|
10242
|
-
interface PaymentPaypalData {
|
|
10243
|
-
readonly payment_id: string;
|
|
10247
|
+
readonly paypal: io.flow.payment.v0.unions.OnlineAuthorizationDetails;
|
|
10244
10248
|
}
|
|
10245
10249
|
|
|
10246
10250
|
interface PaymentReference {
|
|
@@ -10544,7 +10548,8 @@ declare namespace io.flow.payment.v0.unions {
|
|
|
10544
10548
|
| io.flow.payment.v0.models.RedirectAuthorizationForm
|
|
10545
10549
|
| io.flow.payment.v0.models.InlineAuthorizationForm
|
|
10546
10550
|
| io.flow.payment.v0.models.AchAuthorizationForm
|
|
10547
|
-
| io.flow.payment.v0.models.CardPaymentSourceAuthorizationForm
|
|
10551
|
+
| io.flow.payment.v0.models.CardPaymentSourceAuthorizationForm
|
|
10552
|
+
| io.flow.payment.v0.models.OnlinePaymentAuthorizationForm;
|
|
10548
10553
|
type AuthorizationPayloadParameters =
|
|
10549
10554
|
| io.flow.payment.v0.models.GooglePayAuthorizationPayload
|
|
10550
10555
|
| io.flow.payment.v0.models.ApplePayMerchantValidationPayload;
|
|
@@ -10564,10 +10569,13 @@ declare namespace io.flow.payment.v0.unions {
|
|
|
10564
10569
|
type GatewayAuthenticationData = io.flow.payment.v0.models.StripeAuthenticationData;
|
|
10565
10570
|
type GatewayAuthenticationDataForm = io.flow.payment.v0.models.StripeAuthenticationDataForm;
|
|
10566
10571
|
type OnlineAuthorizationDetails =
|
|
10572
|
+
| io.flow.payment.v0.models.CryptopayAuthorizationDetails
|
|
10567
10573
|
| io.flow.payment.v0.models.PaypalAuthorizationDetails
|
|
10568
10574
|
| io.flow.payment.v0.models.RedirectAuthorizationDetails
|
|
10569
10575
|
| io.flow.payment.v0.models.InlineAuthorizationDetails;
|
|
10570
|
-
type Payment =
|
|
10576
|
+
type Payment =
|
|
10577
|
+
| io.flow.payment.v0.models.PaymentPaypal
|
|
10578
|
+
| io.flow.payment.v0.models.PaymentCryptopay;
|
|
10571
10579
|
type PaymentForm = io.flow.payment.v0.models.MerchantOfRecordPaymentForm;
|
|
10572
10580
|
type PaymentSource = io.flow.payment.v0.models.CardPaymentSource;
|
|
10573
10581
|
type PaymentSourceForm = io.flow.payment.v0.models.CardPaymentSourceForm;
|
|
@@ -12518,6 +12526,103 @@ declare namespace io.flow.billing.internal.v0.unions {
|
|
|
12518
12526
|
| io.flow.billing.internal.v0.models.VirtualCardTransaction;
|
|
12519
12527
|
}
|
|
12520
12528
|
|
|
12529
|
+
declare namespace io.flow.error.v0.enums {
|
|
12530
|
+
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
12531
|
+
}
|
|
12532
|
+
|
|
12533
|
+
declare namespace io.flow.error.v0.models {
|
|
12534
|
+
interface GenericError {
|
|
12535
|
+
readonly code: io.flow.error.v0.enums.GenericErrorCode;
|
|
12536
|
+
readonly messages: string[];
|
|
12537
|
+
}
|
|
12538
|
+
}
|
|
12539
|
+
|
|
12540
|
+
declare namespace io.flow.crypto.v0.enums {
|
|
12541
|
+
type ErrorType =
|
|
12542
|
+
| 'authentication_error'
|
|
12543
|
+
| 'invalid_request_error'
|
|
12544
|
+
| 'rate_limit_error';
|
|
12545
|
+
type PaymentStatus = 'pending' | 'succeeded' | 'cancelled';
|
|
12546
|
+
type ReasonType = 'duplicate' | 'fraudulent' | 'requested_by_customer';
|
|
12547
|
+
type RefundStatus = 'pending' | 'succeeded';
|
|
12548
|
+
type WebhookEventName = 'payment.created' | 'payment.captured';
|
|
12549
|
+
type WebhookObjectType = 'event';
|
|
12550
|
+
}
|
|
12551
|
+
|
|
12552
|
+
declare namespace io.flow.crypto.v0.models {
|
|
12553
|
+
interface CryptoEvent {
|
|
12554
|
+
readonly id: string;
|
|
12555
|
+
readonly object_type: io.flow.crypto.v0.enums.WebhookObjectType;
|
|
12556
|
+
readonly type: io.flow.crypto.v0.enums.WebhookEventName;
|
|
12557
|
+
readonly created: number;
|
|
12558
|
+
readonly data: io.flow.crypto.v0.models.WebhookPayment;
|
|
12559
|
+
}
|
|
12560
|
+
|
|
12561
|
+
interface ErrorResponse {
|
|
12562
|
+
readonly type: io.flow.crypto.v0.enums.ErrorType;
|
|
12563
|
+
readonly code: string;
|
|
12564
|
+
readonly param: string;
|
|
12565
|
+
}
|
|
12566
|
+
|
|
12567
|
+
interface Payment {
|
|
12568
|
+
readonly id: string;
|
|
12569
|
+
readonly amount: number;
|
|
12570
|
+
readonly amount_refunded: number;
|
|
12571
|
+
readonly created: number;
|
|
12572
|
+
readonly crypto_currency: string;
|
|
12573
|
+
readonly crypto_amount: string;
|
|
12574
|
+
readonly currency: string;
|
|
12575
|
+
readonly customer_id?: string;
|
|
12576
|
+
readonly data_url: string;
|
|
12577
|
+
readonly description?: string;
|
|
12578
|
+
readonly live_mode: boolean;
|
|
12579
|
+
readonly metadata?: {
|
|
12580
|
+
[key: string]: string;
|
|
12581
|
+
};
|
|
12582
|
+
readonly order_id?: string;
|
|
12583
|
+
readonly recipient: string;
|
|
12584
|
+
readonly refunded: boolean;
|
|
12585
|
+
readonly status: io.flow.crypto.v0.enums.PaymentStatus;
|
|
12586
|
+
readonly time_window: number;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
interface PaymentRequest {
|
|
12590
|
+
readonly amount: number;
|
|
12591
|
+
readonly currency: string;
|
|
12592
|
+
readonly customer_id?: string;
|
|
12593
|
+
readonly description?: string;
|
|
12594
|
+
readonly metadata?: {
|
|
12595
|
+
[key: string]: string;
|
|
12596
|
+
};
|
|
12597
|
+
readonly order_id?: string;
|
|
12598
|
+
}
|
|
12599
|
+
|
|
12600
|
+
interface Refund {
|
|
12601
|
+
readonly id: string;
|
|
12602
|
+
readonly status: io.flow.crypto.v0.enums.RefundStatus;
|
|
12603
|
+
readonly payment_id: string;
|
|
12604
|
+
readonly currency: string;
|
|
12605
|
+
readonly amount: number;
|
|
12606
|
+
readonly debit_currency: string;
|
|
12607
|
+
readonly debit_amount: number;
|
|
12608
|
+
readonly reason?: io.flow.crypto.v0.enums.ReasonType;
|
|
12609
|
+
readonly description?: string;
|
|
12610
|
+
readonly created: number;
|
|
12611
|
+
}
|
|
12612
|
+
|
|
12613
|
+
interface RefundRequest {
|
|
12614
|
+
readonly payment_id: string;
|
|
12615
|
+
readonly amount: number;
|
|
12616
|
+
readonly debit_currency: string;
|
|
12617
|
+
readonly reason?: io.flow.crypto.v0.enums.ReasonType;
|
|
12618
|
+
readonly description?: string;
|
|
12619
|
+
}
|
|
12620
|
+
|
|
12621
|
+
interface WebhookPayment {
|
|
12622
|
+
readonly object: io.flow.crypto.v0.models.Payment;
|
|
12623
|
+
}
|
|
12624
|
+
}
|
|
12625
|
+
|
|
12521
12626
|
declare namespace io.flow.order.management.v0.enums {
|
|
12522
12627
|
type CancelReason = 'out_of_stock' | 'consumer_requested' | 'flow_cancel';
|
|
12523
12628
|
type FulfillmentItemQuantityStatus = 'new' | 'shipped' | 'cancelled';
|
|
@@ -13057,7 +13162,8 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
13057
13162
|
| 'stripe'
|
|
13058
13163
|
| 'paypal'
|
|
13059
13164
|
| 'flow_sandbox'
|
|
13060
|
-
| 'fiserv'
|
|
13165
|
+
| 'fiserv'
|
|
13166
|
+
| 'crypto';
|
|
13061
13167
|
type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
|
|
13062
13168
|
type PromptCheckoutDisplayPosition = 'email' | 'submission';
|
|
13063
13169
|
type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
|
|
@@ -16143,6 +16249,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16143
16249
|
readonly account_issues_count: number;
|
|
16144
16250
|
readonly product_issues_count: number;
|
|
16145
16251
|
readonly feeds_count: number;
|
|
16252
|
+
readonly domestic_feeds_count: number;
|
|
16253
|
+
readonly localized_feeds_count: number;
|
|
16146
16254
|
}
|
|
16147
16255
|
|
|
16148
16256
|
interface MarketingGatewayGoogleConnection {
|