@flowio/types 8.0.1 → 8.0.3
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 +114 -17
- package/package.json +2 -2
- package/src/api-internal.ts +139 -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';
|
|
@@ -10255,6 +10343,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
10255
10343
|
type FlowApp = 'console';
|
|
10256
10344
|
type FlowFieldName = 'item-number' | 'sku-attribute' | 'product_id-attribute';
|
|
10257
10345
|
type Format = 'text' | 'phone' | 'email';
|
|
10346
|
+
type FraudProvider = 'flow' | 'riskified' | 'rps' | 'other' | 'none';
|
|
10258
10347
|
type FraudReviewResponsibleParty = 'flow' | 'organization';
|
|
10259
10348
|
type FtpIntent = 'orders_from_flow' | 'pricebooks_from_flow' | 'pricebooks_to_flow' | 'catalog_to_flow' | 'inventory_to_flow';
|
|
10260
10349
|
type FtpProtocol = 'sftp' | 'ftp';
|
|
@@ -10268,6 +10357,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
10268
10357
|
type LabelBillingStrategy = 'quote' | 'carrier';
|
|
10269
10358
|
type MarketingGatewayAccountMarketLocalizationError = 'no_localization' | 'no_existing_market' | 'already_configured_external' | 'already_configured_flow';
|
|
10270
10359
|
type MarketingGatewayFeedDownloadFormat = 'tsv';
|
|
10360
|
+
type MarketingGatewayFeedState = 'initialized' | 'generated' | 'in_review' | 'rejected' | 'active';
|
|
10271
10361
|
type MarketingGatewayGoogleConnectionStatus = 'not_connected' | 'connected';
|
|
10272
10362
|
type MarketingGatewayGoogleFeedProcessingStatus = 'success' | 'in_progress' | 'failure' | 'none';
|
|
10273
10363
|
type MarketingGatewayGoogleProductDestinationApprovalStatus = 'approved' | 'disapproved' | 'pending';
|
|
@@ -10286,7 +10376,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
10286
10376
|
type PaymentTerm = 'net7' | 'net15' | 'net30';
|
|
10287
10377
|
type PriceSelector = 'minimum' | 'maximum';
|
|
10288
10378
|
type ProcessingTransactionType = 'adjustment' | 'capture' | 'refund';
|
|
10289
|
-
type Processor = 'adyen' | 'afterpay' | 'bitpay' | 'stripe' | 'paypal' | 'flow_sandbox' | 'fiserv';
|
|
10379
|
+
type Processor = 'adyen' | 'afterpay' | 'bitpay' | 'stripe' | 'paypal' | 'flow_sandbox' | 'fiserv' | 'crypto';
|
|
10290
10380
|
type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
|
|
10291
10381
|
type PromptCheckoutDisplayPosition = 'email' | 'submission';
|
|
10292
10382
|
type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
|
|
@@ -12025,6 +12115,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12025
12115
|
readonly attributes?: {
|
|
12026
12116
|
[key: string]: string;
|
|
12027
12117
|
};
|
|
12118
|
+
readonly provider?: io.flow.internal.v0.enums.FraudProvider;
|
|
12028
12119
|
}
|
|
12029
12120
|
interface FraudReviewDecision {
|
|
12030
12121
|
readonly id: string;
|
|
@@ -12946,6 +13037,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12946
13037
|
readonly account_issues_count: number;
|
|
12947
13038
|
readonly product_issues_count: number;
|
|
12948
13039
|
readonly feeds_count: number;
|
|
13040
|
+
readonly domestic_feeds_count: number;
|
|
13041
|
+
readonly localized_feeds_count: number;
|
|
12949
13042
|
}
|
|
12950
13043
|
interface MarketingGatewayGoogleConnection {
|
|
12951
13044
|
readonly status: io.flow.internal.v0.enums.MarketingGatewayGoogleConnectionStatus;
|
|
@@ -12979,6 +13072,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12979
13072
|
readonly language: string;
|
|
12980
13073
|
readonly experience?: io.flow.common.v0.models.ExperienceSummary;
|
|
12981
13074
|
readonly parent: io.flow.internal.v0.models.MarketingGatewayGoogleFeedParent;
|
|
13075
|
+
readonly feed_state: io.flow.internal.v0.enums.MarketingGatewayFeedState;
|
|
12982
13076
|
readonly processing_status?: io.flow.internal.v0.enums.MarketingGatewayGoogleFeedProcessingStatus;
|
|
12983
13077
|
readonly last_uploaded?: string;
|
|
12984
13078
|
readonly statistics?: io.flow.internal.v0.models.MarketingGatewayGoogleFeedStatistics;
|
|
@@ -12995,6 +13089,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
12995
13089
|
readonly country: string;
|
|
12996
13090
|
readonly currency: string;
|
|
12997
13091
|
readonly language: string;
|
|
13092
|
+
readonly feed_state: io.flow.internal.v0.enums.MarketingGatewayFeedState;
|
|
12998
13093
|
readonly processing_status?: io.flow.internal.v0.enums.MarketingGatewayGoogleFeedProcessingStatus;
|
|
12999
13094
|
readonly last_uploaded?: string;
|
|
13000
13095
|
readonly statistics?: io.flow.internal.v0.models.MarketingGatewayGoogleFeedStatistics;
|
|
@@ -15211,6 +15306,7 @@ export declare type Format = io.flow.internal.v0.enums.Format;
|
|
|
15211
15306
|
export declare type FraudPendingReview = io.flow.internal.v0.models.FraudPendingReview;
|
|
15212
15307
|
export declare type FraudPendingReviewDeleted = io.flow.internal.v0.models.FraudPendingReviewDeleted;
|
|
15213
15308
|
export declare type FraudPendingReviewUpserted = io.flow.internal.v0.models.FraudPendingReviewUpserted;
|
|
15309
|
+
export declare type FraudProvider = io.flow.internal.v0.enums.FraudProvider;
|
|
15214
15310
|
export declare type FraudReview = io.flow.internal.v0.models.FraudReview;
|
|
15215
15311
|
export declare type FraudReviewDecision = io.flow.internal.v0.models.FraudReviewDecision;
|
|
15216
15312
|
export declare type FraudReviewDecisionDeleted = io.flow.internal.v0.models.FraudReviewDecisionDeleted;
|
|
@@ -15368,6 +15464,7 @@ export declare type MarketingGatewayFeedForm = io.flow.internal.v0.models.Market
|
|
|
15368
15464
|
export declare type MarketingGatewayFeedSource = io.flow.internal.v0.unions.MarketingGatewayFeedSource;
|
|
15369
15465
|
export declare type MarketingGatewayFeedSourceFlow = io.flow.internal.v0.models.MarketingGatewayFeedSourceFlow;
|
|
15370
15466
|
export declare type MarketingGatewayFeedSourceGoogle = io.flow.internal.v0.models.MarketingGatewayFeedSourceGoogle;
|
|
15467
|
+
export declare type MarketingGatewayFeedState = io.flow.internal.v0.enums.MarketingGatewayFeedState;
|
|
15371
15468
|
export declare type MarketingGatewayFilterSummary = io.flow.internal.v0.models.MarketingGatewayFilterSummary;
|
|
15372
15469
|
export declare type MarketingGatewayFlowSourceSummary = io.flow.internal.v0.models.MarketingGatewayFlowSourceSummary;
|
|
15373
15470
|
export declare type MarketingGatewayGoogleAccount = io.flow.internal.v0.models.MarketingGatewayGoogleAccount;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
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": "6027ff71f4e88f7cf21a1f28b1a80070dbf866a8"
|
|
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';
|
|
@@ -12958,6 +13063,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
12958
13063
|
type FlowApp = 'console';
|
|
12959
13064
|
type FlowFieldName = 'item-number' | 'sku-attribute' | 'product_id-attribute';
|
|
12960
13065
|
type Format = 'text' | 'phone' | 'email';
|
|
13066
|
+
type FraudProvider = 'flow' | 'riskified' | 'rps' | 'other' | 'none';
|
|
12961
13067
|
type FraudReviewResponsibleParty = 'flow' | 'organization';
|
|
12962
13068
|
type FtpIntent =
|
|
12963
13069
|
| 'orders_from_flow'
|
|
@@ -12983,6 +13089,12 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
12983
13089
|
| 'already_configured_external'
|
|
12984
13090
|
| 'already_configured_flow';
|
|
12985
13091
|
type MarketingGatewayFeedDownloadFormat = 'tsv';
|
|
13092
|
+
type MarketingGatewayFeedState =
|
|
13093
|
+
| 'initialized'
|
|
13094
|
+
| 'generated'
|
|
13095
|
+
| 'in_review'
|
|
13096
|
+
| 'rejected'
|
|
13097
|
+
| 'active';
|
|
12986
13098
|
type MarketingGatewayGoogleConnectionStatus = 'not_connected' | 'connected';
|
|
12987
13099
|
type MarketingGatewayGoogleFeedProcessingStatus =
|
|
12988
13100
|
| 'success'
|
|
@@ -13057,7 +13169,8 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
13057
13169
|
| 'stripe'
|
|
13058
13170
|
| 'paypal'
|
|
13059
13171
|
| 'flow_sandbox'
|
|
13060
|
-
| 'fiserv'
|
|
13172
|
+
| 'fiserv'
|
|
13173
|
+
| 'crypto';
|
|
13061
13174
|
type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
|
|
13062
13175
|
type PromptCheckoutDisplayPosition = 'email' | 'submission';
|
|
13063
13176
|
type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
|
|
@@ -15078,6 +15191,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
15078
15191
|
readonly attributes?: {
|
|
15079
15192
|
[key: string]: string;
|
|
15080
15193
|
};
|
|
15194
|
+
readonly provider?: io.flow.internal.v0.enums.FraudProvider;
|
|
15081
15195
|
}
|
|
15082
15196
|
|
|
15083
15197
|
interface FraudReviewDecision {
|
|
@@ -16143,6 +16257,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16143
16257
|
readonly account_issues_count: number;
|
|
16144
16258
|
readonly product_issues_count: number;
|
|
16145
16259
|
readonly feeds_count: number;
|
|
16260
|
+
readonly domestic_feeds_count: number;
|
|
16261
|
+
readonly localized_feeds_count: number;
|
|
16146
16262
|
}
|
|
16147
16263
|
|
|
16148
16264
|
interface MarketingGatewayGoogleConnection {
|
|
@@ -16181,6 +16297,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16181
16297
|
readonly language: string;
|
|
16182
16298
|
readonly experience?: io.flow.common.v0.models.ExperienceSummary;
|
|
16183
16299
|
readonly parent: io.flow.internal.v0.models.MarketingGatewayGoogleFeedParent;
|
|
16300
|
+
readonly feed_state: io.flow.internal.v0.enums.MarketingGatewayFeedState;
|
|
16184
16301
|
readonly processing_status?: io.flow.internal.v0.enums.MarketingGatewayGoogleFeedProcessingStatus;
|
|
16185
16302
|
readonly last_uploaded?: string;
|
|
16186
16303
|
readonly statistics?: io.flow.internal.v0.models.MarketingGatewayGoogleFeedStatistics;
|
|
@@ -16199,6 +16316,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16199
16316
|
readonly country: string;
|
|
16200
16317
|
readonly currency: string;
|
|
16201
16318
|
readonly language: string;
|
|
16319
|
+
readonly feed_state: io.flow.internal.v0.enums.MarketingGatewayFeedState;
|
|
16202
16320
|
readonly processing_status?: io.flow.internal.v0.enums.MarketingGatewayGoogleFeedProcessingStatus;
|
|
16203
16321
|
readonly last_uploaded?: string;
|
|
16204
16322
|
readonly statistics?: io.flow.internal.v0.models.MarketingGatewayGoogleFeedStatistics;
|
|
@@ -18948,6 +19066,7 @@ export type Format = io.flow.internal.v0.enums.Format;
|
|
|
18948
19066
|
export type FraudPendingReview = io.flow.internal.v0.models.FraudPendingReview;
|
|
18949
19067
|
export type FraudPendingReviewDeleted = io.flow.internal.v0.models.FraudPendingReviewDeleted;
|
|
18950
19068
|
export type FraudPendingReviewUpserted = io.flow.internal.v0.models.FraudPendingReviewUpserted;
|
|
19069
|
+
export type FraudProvider = io.flow.internal.v0.enums.FraudProvider;
|
|
18951
19070
|
export type FraudReview = io.flow.internal.v0.models.FraudReview;
|
|
18952
19071
|
export type FraudReviewDecision = io.flow.internal.v0.models.FraudReviewDecision;
|
|
18953
19072
|
export type FraudReviewDecisionDeleted = io.flow.internal.v0.models.FraudReviewDecisionDeleted;
|
|
@@ -19105,6 +19224,7 @@ export type MarketingGatewayFeedForm = io.flow.internal.v0.models.MarketingGatew
|
|
|
19105
19224
|
export type MarketingGatewayFeedSource = io.flow.internal.v0.unions.MarketingGatewayFeedSource;
|
|
19106
19225
|
export type MarketingGatewayFeedSourceFlow = io.flow.internal.v0.models.MarketingGatewayFeedSourceFlow;
|
|
19107
19226
|
export type MarketingGatewayFeedSourceGoogle = io.flow.internal.v0.models.MarketingGatewayFeedSourceGoogle;
|
|
19227
|
+
export type MarketingGatewayFeedState = io.flow.internal.v0.enums.MarketingGatewayFeedState;
|
|
19108
19228
|
export type MarketingGatewayFilterSummary = io.flow.internal.v0.models.MarketingGatewayFilterSummary;
|
|
19109
19229
|
export type MarketingGatewayFlowSourceSummary = io.flow.internal.v0.models.MarketingGatewayFlowSourceSummary;
|
|
19110
19230
|
export type MarketingGatewayGoogleAccount = io.flow.internal.v0.models.MarketingGatewayGoogleAccount;
|