@flowio/api-internal-prop-types 1.2.1 → 1.2.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/.eslintcache +1 -0
- package/lib/index.d.ts +23 -10
- package/lib/io/flow/adyen/v0/models/authorizeRequest.js +7 -1
- package/lib/io/flow/adyen/v0/models/threeDSecureData.js +20 -0
- package/lib/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +1 -1
- package/lib/io/flow/common/v0/models/merchantOfRecordEntity.js +5 -0
- package/lib/io/flow/common/v0/models/organization.js +6 -1
- package/lib/io/flow/common/v0/models/organizationDefaults.js +19 -0
- package/lib/io/flow/fraud/internal/v0/enums/riskEvaluation.js +13 -0
- package/lib/io/flow/fraud/internal/v0/models/decision.js +3 -1
- package/lib/io/flow/fraud/internal/v0/models/fraudReview.js +5 -0
- package/lib/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +1 -1
- package/lib/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +13 -0
- package/lib/io/flow/internal/v0/enums/riskEvaluation.js +13 -0
- package/lib/io/flow/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +13 -0
- package/lib/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +24 -0
- package/lib/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +20 -0
- package/lib/io/flow/internal/v0/models/decision.js +3 -1
- package/lib/io/flow/internal/v0/models/fraudReview.js +5 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayAccount.js +38 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +19 -0
- package/lib/io/flow/internal/v0/models/{marketingAccountSummary.js → marketingGatewayAccountConnectionForm.js} +2 -3
- package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +36 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +25 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayCountryLanguage.js +16 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +21 -0
- package/lib/io/flow/{billing/v0/models/billingInvoiceSummary.js → internal/v0/models/marketingGatewayLocalizationFlowCountry.js} +1 -2
- package/lib/io/flow/{billing/v0/models/billingOrderSummary.js → internal/v0/models/marketingGatewayLocalizationFlowExperience.js} +5 -3
- package/lib/io/flow/internal/v0/models/marketingGatewayProduct.js +35 -0
- package/lib/io/flow/internal/v0/models/searchProviderExport.js +15 -0
- package/lib/io/flow/internal/v0/models/shopifyPromotionOrderEntitlement.js +24 -0
- package/lib/io/flow/internal/v0/unions/checkoutSubmitOrderBundles.js +17 -0
- package/lib/io/flow/internal/v0/unions/checkoutSubmitOrderForms.js +17 -0
- package/lib/io/flow/internal/v0/unions/marketingGatewayLocalization.js +21 -0
- package/lib/io/flow/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/lib/io/flow/payment/v0/models/applePayMerchantValidationPayload.js +16 -0
- package/lib/io/flow/payment/v0/models/authorizationResult.js +6 -1
- package/lib/io/flow/payment/v0/models/authorizationResultDescription.js +15 -0
- package/lib/io/flow/payment/v0/unions/authorizationPayloadParameters.js +5 -1
- package/lib/io/flow/price/v0/models/priceBookItem.js +2 -1
- package/lib/io/flow/price/v0/models/priceBookItemForm.js +2 -1
- package/lib/io/flow/shopify/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +13 -0
- package/lib/io/flow/shopify/internal/v0/models/shopifyPromotionOrderEntitlement.js +24 -0
- package/lib/io/flow/shopify/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/lib/io/flow/shopify/{internal/v0 → v0}/models/shopifyLine.js +1 -1
- package/lib/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +2 -1
- package/lib/io/flow/{internal → shopify}/v0/models/shopifyLocalizedOrder.js +1 -1
- package/lib/io/flow/shopify/v0/models/shopifyOrderPriceAttributesMetafield.js +20 -0
- package/lib/mocks.js +23 -10
- package/lib/validators.js +101 -36
- package/package.json +1 -1
- package/src/index.d.ts +23 -10
- package/src/io/flow/adyen/v0/models/authorizeRequest.js +3 -0
- package/src/io/flow/adyen/v0/models/threeDSecureData.js +10 -0
- package/src/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +7 -1
- package/src/io/flow/common/v0/models/merchantOfRecordEntity.js +2 -0
- package/src/io/flow/common/v0/models/organization.js +2 -0
- package/src/io/flow/common/v0/models/organizationDefaults.js +9 -0
- package/src/io/flow/fraud/internal/v0/enums/riskEvaluation.js +9 -0
- package/src/io/flow/fraud/internal/v0/models/decision.js +3 -1
- package/src/io/flow/fraud/internal/v0/models/fraudReview.js +2 -0
- package/src/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +7 -1
- package/src/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +9 -0
- package/src/io/flow/internal/v0/enums/riskEvaluation.js +9 -0
- package/src/io/flow/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +3 -0
- package/src/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +8 -0
- package/src/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +7 -0
- package/src/io/flow/internal/v0/models/decision.js +3 -1
- package/src/io/flow/internal/v0/models/fraudReview.js +2 -0
- package/src/io/flow/internal/v0/models/marketingGatewayAccount.js +17 -0
- package/src/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayAccountConnectionForm.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +14 -0
- package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +9 -0
- package/src/io/flow/internal/v0/models/marketingGatewayCountryLanguage.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +8 -0
- package/src/io/flow/internal/v0/models/marketingGatewayLocalizationFlowCountry.js +5 -0
- package/src/io/flow/internal/v0/models/marketingGatewayLocalizationFlowExperience.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayProduct.js +16 -0
- package/src/io/flow/internal/v0/models/{marketingAccountSummary.js → searchProviderExport.js} +0 -2
- package/src/io/flow/internal/v0/models/shopifyPromotionOrderEntitlement.js +9 -0
- package/src/io/flow/internal/v0/unions/checkoutSubmitOrderBundles.js +4 -0
- package/src/io/flow/internal/v0/unions/checkoutSubmitOrderForms.js +4 -0
- package/src/io/flow/internal/v0/unions/marketingGatewayLocalization.js +8 -0
- package/src/io/flow/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/src/io/flow/payment/v0/models/applePayMerchantValidationPayload.js +6 -0
- package/src/io/flow/payment/v0/models/authorizationResult.js +2 -0
- package/src/io/flow/payment/v0/models/authorizationResultDescription.js +5 -0
- package/src/io/flow/payment/v0/unions/authorizationPayloadParameters.js +5 -1
- package/src/io/flow/price/v0/models/priceBookItem.js +1 -0
- package/src/io/flow/price/v0/models/priceBookItemForm.js +1 -0
- package/src/io/flow/shopify/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +3 -0
- package/src/io/flow/shopify/internal/v0/models/shopifyPromotionOrderEntitlement.js +9 -0
- package/src/io/flow/shopify/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/src/io/flow/shopify/{internal/v0 → v0}/models/shopifyLine.js +1 -1
- package/src/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +1 -0
- package/src/io/flow/{internal → shopify}/v0/models/shopifyLocalizedOrder.js +1 -1
- package/src/io/flow/shopify/v0/models/shopifyOrderPriceAttributesMetafield.js +7 -0
- package/src/mocks.js +23 -10
- package/src/validators.js +46 -20
- package/lib/io/flow/internal/v0/models/marketingAccount.js +0 -27
- package/lib/io/flow/internal/v0/models/marketingConnection.js +0 -25
- package/lib/io/flow/internal/v0/models/marketingConnectionForm.js +0 -24
- package/lib/io/flow/internal/v0/models/marketingProduct.js +0 -32
- package/lib/io/flow/internal/v0/models/shopifyLine.js +0 -22
- package/lib/io/flow/shopify/internal/v0/models/shopifyLocalizedOrder.js +0 -52
- package/lib/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +0 -50
- package/src/io/flow/billing/v0/models/billingInvoiceSummary.js +0 -6
- package/src/io/flow/billing/v0/models/billingOrderSummary.js +0 -7
- package/src/io/flow/internal/v0/models/marketingAccount.js +0 -11
- package/src/io/flow/internal/v0/models/marketingConnection.js +0 -9
- package/src/io/flow/internal/v0/models/marketingConnectionForm.js +0 -11
- package/src/io/flow/internal/v0/models/marketingProduct.js +0 -16
- package/src/io/flow/internal/v0/models/shopifyLine.js +0 -9
- package/src/io/flow/shopify/internal/v0/models/shopifyLocalizedOrder.js +0 -21
- package/src/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +0 -19
- /package/lib/io/flow/internal/v0/enums/{platform.js → marketingGatewayPlatform.js} +0 -0
- /package/lib/io/flow/internal/v0/models/{marketingProductPrice.js → marketingGatewayProductPrice.js} +0 -0
- /package/lib/io/flow/internal/v0/models/{marketingProductWarning.js → marketingGatewayProductWarning.js} +0 -0
- /package/src/io/flow/internal/v0/enums/{platform.js → marketingGatewayPlatform.js} +0 -0
- /package/src/io/flow/internal/v0/models/{marketingProductPrice.js → marketingGatewayProductPrice.js} +0 -0
- /package/src/io/flow/internal/v0/models/{marketingProductWarning.js → marketingGatewayProductWarning.js} +0 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -85,6 +85,10 @@ declare const defaultExport: {
|
|
|
85
85
|
checkoutMarketingContent: Requireable<any> & Validator<any>;
|
|
86
86
|
checkoutMetadata: Requireable<any> & Validator<any>;
|
|
87
87
|
checkoutPaymentContent: Requireable<any> & Validator<any>;
|
|
88
|
+
checkoutSubmitOrderBundle: Requireable<any> & Validator<any>;
|
|
89
|
+
checkoutSubmitOrderBundles: Requireable<any> & Validator<any>;
|
|
90
|
+
checkoutSubmitOrderForm: Requireable<any> & Validator<any>;
|
|
91
|
+
checkoutSubmitOrderForms: Requireable<any> & Validator<any>;
|
|
88
92
|
cipher: Requireable<any> & Validator<any>;
|
|
89
93
|
cipherForm: Requireable<any> & Validator<any>;
|
|
90
94
|
cipherReference: Requireable<any> & Validator<any>;
|
|
@@ -355,13 +359,21 @@ declare const defaultExport: {
|
|
|
355
359
|
loyaltyProgramReward: Requireable<any> & Validator<any>;
|
|
356
360
|
loyaltyProgramRewards: Requireable<any> & Validator<any>;
|
|
357
361
|
magentoInstallForm: Requireable<any> & Validator<any>;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
marketingGatewayAccount: Requireable<any> & Validator<any>;
|
|
363
|
+
marketingGatewayAccountConnection: Requireable<any> & Validator<any>;
|
|
364
|
+
marketingGatewayAccountConnectionForm: Requireable<any> & Validator<any>;
|
|
365
|
+
marketingGatewayConfiguredMarket: Requireable<any> & Validator<any>;
|
|
366
|
+
marketingGatewayConfiguredMarketForm: Requireable<any> & Validator<any>;
|
|
367
|
+
marketingGatewayCountryLanguage: Requireable<any> & Validator<any>;
|
|
368
|
+
marketingGatewayExistingMarket: Requireable<any> & Validator<any>;
|
|
369
|
+
marketingGatewayLocalization: Requireable<any> & Validator<any>;
|
|
370
|
+
marketingGatewayLocalizationFlowCountry: Requireable<any> & Validator<any>;
|
|
371
|
+
marketingGatewayLocalizationFlowExperience: Requireable<any> & Validator<any>;
|
|
372
|
+
marketingGatewayPlatform: Requireable<any> & Validator<any>;
|
|
373
|
+
marketingGatewayProduct: Requireable<any> & Validator<any>;
|
|
374
|
+
marketingGatewayProductPrice: Requireable<any> & Validator<any>;
|
|
375
|
+
marketingGatewayProductWarning: Requireable<any> & Validator<any>;
|
|
376
|
+
marketingGatewaySyncStatus: Requireable<any> & Validator<any>;
|
|
365
377
|
nextBillingStatement: Requireable<any> & Validator<any>;
|
|
366
378
|
nextInstallment: Requireable<any> & Validator<any>;
|
|
367
379
|
nextInstallmentDeleted: Requireable<any> & Validator<any>;
|
|
@@ -434,7 +446,6 @@ declare const defaultExport: {
|
|
|
434
446
|
phraseClassified: Requireable<any> & Validator<any>;
|
|
435
447
|
phrasePropagated: Requireable<any> & Validator<any>;
|
|
436
448
|
phraseReference: Requireable<any> & Validator<any>;
|
|
437
|
-
platform: Requireable<any> & Validator<any>;
|
|
438
449
|
priceSelector: Requireable<any> & Validator<any>;
|
|
439
450
|
processingTransaction: Requireable<any> & Validator<any>;
|
|
440
451
|
processingTransactionType: Requireable<any> & Validator<any>;
|
|
@@ -492,10 +503,12 @@ declare const defaultExport: {
|
|
|
492
503
|
returnPackageRatecardFee: Requireable<any> & Validator<any>;
|
|
493
504
|
returnSummary: Requireable<any> & Validator<any>;
|
|
494
505
|
riskCheck: Requireable<any> & Validator<any>;
|
|
506
|
+
riskEvaluation: Requireable<any> & Validator<any>;
|
|
495
507
|
screen: Requireable<any> & Validator<any>;
|
|
496
508
|
screenForm: Requireable<any> & Validator<any>;
|
|
497
509
|
searchItemHs10Code: Requireable<any> & Validator<any>;
|
|
498
510
|
searchItemHs6Code: Requireable<any> & Validator<any>;
|
|
511
|
+
searchProviderExport: Requireable<any> & Validator<any>;
|
|
499
512
|
secret: Requireable<any> & Validator<any>;
|
|
500
513
|
secretConfig: Requireable<any> & Validator<any>;
|
|
501
514
|
serialReservation: Requireable<any> & Validator<any>;
|
|
@@ -518,8 +531,6 @@ declare const defaultExport: {
|
|
|
518
531
|
shopifyGiftCardPaymentForm: Requireable<any> & Validator<any>;
|
|
519
532
|
shopifyGrantStatus: Requireable<any> & Validator<any>;
|
|
520
533
|
shopifyGrantsCheck: Requireable<any> & Validator<any>;
|
|
521
|
-
shopifyLine: Requireable<any> & Validator<any>;
|
|
522
|
-
shopifyLocalizedOrder: Requireable<any> & Validator<any>;
|
|
523
534
|
shopifyOrderAuthorization: Requireable<any> & Validator<any>;
|
|
524
535
|
shopifyOrderContent: Requireable<any> & Validator<any>;
|
|
525
536
|
shopifyOrderDetail: Requireable<any> & Validator<any>;
|
|
@@ -542,6 +553,8 @@ declare const defaultExport: {
|
|
|
542
553
|
shopifyPromotionOfferDiscount: Requireable<any> & Validator<any>;
|
|
543
554
|
shopifyPromotionOfferEntitlement: Requireable<any> & Validator<any>;
|
|
544
555
|
shopifyPromotionOfferMax: Requireable<any> & Validator<any>;
|
|
556
|
+
shopifyPromotionOrderEntitlement: Requireable<any> & Validator<any>;
|
|
557
|
+
shopifyPromotionOrderEntitlementComponent: Requireable<any> & Validator<any>;
|
|
545
558
|
shopifyPromotionOrderPrerequisite: Requireable<any> & Validator<any>;
|
|
546
559
|
shopifyPromotionPercent: Requireable<any> & Validator<any>;
|
|
547
560
|
shopifyPromotionPrerequisite: Requireable<any> & Validator<any>;
|
|
@@ -5,6 +5,7 @@ import recurring from './recurring';
|
|
|
5
5
|
import address from './address';
|
|
6
6
|
import shopperInteraction from '../enums/shopperInteraction';
|
|
7
7
|
import bankAccount from './bankAccount';
|
|
8
|
+
import threeDSecureData from './threeDSecureData';
|
|
8
9
|
|
|
9
10
|
export default PropTypes.shape({
|
|
10
11
|
reference: PropTypes.string.isRequired,
|
|
@@ -23,4 +24,6 @@ export default PropTypes.shape({
|
|
|
23
24
|
shopperInteraction: shopperInteraction.isRequired,
|
|
24
25
|
bankAccount: bankAccount,
|
|
25
26
|
additionalData: PropTypes.object,
|
|
27
|
+
mpiData: threeDSecureData,
|
|
28
|
+
selectedBrand: PropTypes.string,
|
|
26
29
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export default PropTypes.shape({
|
|
4
|
+
authenticationResponse: PropTypes.string,
|
|
5
|
+
cavv: PropTypes.string,
|
|
6
|
+
cavvAlgorithm: PropTypes.string,
|
|
7
|
+
directoryResponse: PropTypes.string,
|
|
8
|
+
eci: PropTypes.string,
|
|
9
|
+
xid: PropTypes.string,
|
|
10
|
+
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import organizationReference from './organizationReference';
|
|
2
3
|
import merchantOfRecordEntityRegistration from './merchantOfRecordEntityRegistration';
|
|
3
4
|
|
|
4
5
|
export default PropTypes.shape({
|
|
6
|
+
organization: organizationReference.isRequired,
|
|
5
7
|
name: PropTypes.string.isRequired,
|
|
6
8
|
vat: merchantOfRecordEntityRegistration.isRequired,
|
|
7
9
|
streets: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import environment from '../enums/environment';
|
|
3
3
|
import organizationReference from './organizationReference';
|
|
4
|
+
import organizationDefaults from './organizationDefaults';
|
|
4
5
|
|
|
5
6
|
export default PropTypes.shape({
|
|
6
7
|
id: PropTypes.string.isRequired,
|
|
7
8
|
name: PropTypes.string.isRequired,
|
|
8
9
|
environment: environment.isRequired,
|
|
9
10
|
parent: organizationReference,
|
|
11
|
+
defaults: organizationDefaults,
|
|
10
12
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export default PropTypes.shape({
|
|
4
|
+
country: PropTypes.string.isRequired,
|
|
5
|
+
base_currency: PropTypes.string.isRequired,
|
|
6
|
+
language: PropTypes.string.isRequired,
|
|
7
|
+
locale: PropTypes.string.isRequired,
|
|
8
|
+
timezone: PropTypes.string.isRequired,
|
|
9
|
+
});
|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
export default PropTypes.shape({
|
|
4
4
|
id: PropTypes.string.isRequired,
|
|
5
5
|
status: PropTypes.string.isRequired,
|
|
6
|
-
description: PropTypes.string.isRequired,
|
|
7
6
|
old_status: PropTypes.string.isRequired,
|
|
7
|
+
description: PropTypes.string.isRequired,
|
|
8
|
+
category: PropTypes.string,
|
|
9
|
+
shop_url: PropTypes.string,
|
|
8
10
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import orderReference from '../../../../experience/v0/models/orderReference';
|
|
3
3
|
import fraudStatus from '../../../v0/enums/fraudStatus';
|
|
4
|
+
import riskEvaluation from '../enums/riskEvaluation';
|
|
4
5
|
import fraudLiability from '../../../v0/enums/fraudLiability';
|
|
5
6
|
|
|
6
7
|
export default PropTypes.shape({
|
|
@@ -9,6 +10,7 @@ export default PropTypes.shape({
|
|
|
9
10
|
order: orderReference.isRequired,
|
|
10
11
|
status: fraudStatus.isRequired,
|
|
11
12
|
description: PropTypes.string,
|
|
13
|
+
risk_evaluation: riskEvaluation,
|
|
12
14
|
liability: fraudLiability,
|
|
13
15
|
status_updated_at: PropTypes.string,
|
|
14
16
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import order from '../../../experience/v0/models/order';
|
|
3
|
+
import authorizationResultAction from '../../../payment/v0/models/authorizationResultAction';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
order: order,
|
|
7
|
+
redirect: authorizationResultAction,
|
|
8
|
+
});
|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
export default PropTypes.shape({
|
|
4
4
|
id: PropTypes.string.isRequired,
|
|
5
5
|
status: PropTypes.string.isRequired,
|
|
6
|
-
description: PropTypes.string.isRequired,
|
|
7
6
|
old_status: PropTypes.string.isRequired,
|
|
7
|
+
description: PropTypes.string.isRequired,
|
|
8
|
+
category: PropTypes.string,
|
|
9
|
+
shop_url: PropTypes.string,
|
|
8
10
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import orderReference from '../../../experience/v0/models/orderReference';
|
|
3
3
|
import fraudStatus from '../../../fraud/v0/enums/fraudStatus';
|
|
4
|
+
import riskEvaluation from '../enums/riskEvaluation';
|
|
4
5
|
import fraudLiability from '../../../fraud/v0/enums/fraudLiability';
|
|
5
6
|
|
|
6
7
|
export default PropTypes.shape({
|
|
@@ -9,6 +10,7 @@ export default PropTypes.shape({
|
|
|
9
10
|
order: orderReference.isRequired,
|
|
10
11
|
status: fraudStatus.isRequired,
|
|
11
12
|
description: PropTypes.string,
|
|
13
|
+
risk_evaluation: riskEvaluation,
|
|
12
14
|
liability: fraudLiability,
|
|
13
15
|
status_updated_at: PropTypes.string,
|
|
14
16
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayPlatform from '../enums/marketingGatewayPlatform';
|
|
3
|
+
import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
|
|
4
|
+
import marketingGatewayExistingMarket from './marketingGatewayExistingMarket';
|
|
5
|
+
import marketingGatewayConfiguredMarket from './marketingGatewayConfiguredMarket';
|
|
6
|
+
|
|
7
|
+
export default PropTypes.shape({
|
|
8
|
+
id: PropTypes.string.isRequired,
|
|
9
|
+
platform: marketingGatewayPlatform.isRequired,
|
|
10
|
+
name: PropTypes.string.isRequired,
|
|
11
|
+
aggregator_id: PropTypes.string,
|
|
12
|
+
sync_status: marketingGatewaySyncStatus.isRequired,
|
|
13
|
+
synced_at: PropTypes.string,
|
|
14
|
+
existing_market: PropTypes.arrayOf(marketingGatewayExistingMarket).isRequired,
|
|
15
|
+
configured_market: PropTypes.arrayOf(marketingGatewayConfiguredMarket)
|
|
16
|
+
.isRequired,
|
|
17
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayExistingMarket from './marketingGatewayExistingMarket';
|
|
3
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
4
|
+
import marketingGatewayLocalization from '../unions/marketingGatewayLocalization';
|
|
5
|
+
import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
|
|
6
|
+
|
|
7
|
+
export default PropTypes.shape({
|
|
8
|
+
id: PropTypes.string.isRequired,
|
|
9
|
+
source: marketingGatewayExistingMarket.isRequired,
|
|
10
|
+
target: marketingGatewayCountryLanguage.isRequired,
|
|
11
|
+
localization: marketingGatewayLocalization.isRequired,
|
|
12
|
+
sync_status: marketingGatewaySyncStatus.isRequired,
|
|
13
|
+
synced_at: PropTypes.string,
|
|
14
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
3
|
+
import marketingGatewayLocalization from '../unions/marketingGatewayLocalization';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
source_id: PropTypes.string.isRequired,
|
|
7
|
+
target: marketingGatewayCountryLanguage.isRequired,
|
|
8
|
+
localization: marketingGatewayLocalization.isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
id: PropTypes.string.isRequired,
|
|
6
|
+
country_language: marketingGatewayCountryLanguage.isRequired,
|
|
7
|
+
product_count: PropTypes.number.isRequired,
|
|
8
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
3
|
+
import marketingGatewayProductPrice from './marketingGatewayProductPrice';
|
|
4
|
+
import marketingGatewayProductWarning from './marketingGatewayProductWarning';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
id: PropTypes.string.isRequired,
|
|
8
|
+
title: PropTypes.string.isRequired,
|
|
9
|
+
description: PropTypes.string,
|
|
10
|
+
link: PropTypes.string.isRequired,
|
|
11
|
+
country_language: marketingGatewayCountryLanguage.isRequired,
|
|
12
|
+
brand: PropTypes.string.isRequired,
|
|
13
|
+
color: PropTypes.string.isRequired,
|
|
14
|
+
price: marketingGatewayProductPrice.isRequired,
|
|
15
|
+
warnings: PropTypes.arrayOf(marketingGatewayProductWarning).isRequired,
|
|
16
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyPromotionOrderEntitlementComponent from '../enums/shopifyPromotionOrderEntitlementComponent';
|
|
3
|
+
import shopifyPromotionOfferAllocationMethod from '../enums/shopifyPromotionOfferAllocationMethod';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
components: PropTypes.arrayOf(shopifyPromotionOrderEntitlementComponent)
|
|
7
|
+
.isRequired,
|
|
8
|
+
allocation_method: shopifyPromotionOfferAllocationMethod.isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayLocalizationFlowCountry from '../models/marketingGatewayLocalizationFlowCountry';
|
|
3
|
+
import marketingGatewayLocalizationFlowExperience from '../models/marketingGatewayLocalizationFlowExperience';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
marketingGatewayLocalizationFlowCountry,
|
|
7
|
+
marketingGatewayLocalizationFlowExperience,
|
|
8
|
+
]);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import shopifyPromotionItemEntitlement from '../models/shopifyPromotionItemEntitlement';
|
|
3
|
+
import shopifyPromotionOrderEntitlement from '../models/shopifyPromotionOrderEntitlement';
|
|
3
4
|
|
|
4
|
-
export default PropTypes.oneOfType([
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
shopifyPromotionItemEntitlement,
|
|
7
|
+
shopifyPromotionOrderEntitlement,
|
|
8
|
+
]);
|
|
@@ -5,6 +5,7 @@ import authorizationDeclineCode from '../enums/authorizationDeclineCode';
|
|
|
5
5
|
import avs from './avs';
|
|
6
6
|
import cvv from './cvv';
|
|
7
7
|
import threeDSecure from './threeDSecure';
|
|
8
|
+
import authorizationResultDescription from './authorizationResultDescription';
|
|
8
9
|
|
|
9
10
|
export default PropTypes.shape({
|
|
10
11
|
status: authorizationStatus.isRequired,
|
|
@@ -13,4 +14,5 @@ export default PropTypes.shape({
|
|
|
13
14
|
avs: avs,
|
|
14
15
|
cvv: cvv,
|
|
15
16
|
three_d_secure: threeDSecure,
|
|
17
|
+
description: authorizationResultDescription,
|
|
16
18
|
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import googlePayAuthorizationPayload from '../models/googlePayAuthorizationPayload';
|
|
3
|
+
import applePayMerchantValidationPayload from '../models/applePayMerchantValidationPayload';
|
|
3
4
|
|
|
4
|
-
export default PropTypes.oneOfType([
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
googlePayAuthorizationPayload,
|
|
7
|
+
applePayMerchantValidationPayload,
|
|
8
|
+
]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyPromotionOrderEntitlementComponent from '../enums/shopifyPromotionOrderEntitlementComponent';
|
|
3
|
+
import shopifyPromotionOfferAllocationMethod from '../enums/shopifyPromotionOfferAllocationMethod';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
components: PropTypes.arrayOf(shopifyPromotionOrderEntitlementComponent)
|
|
7
|
+
.isRequired,
|
|
8
|
+
allocation_method: shopifyPromotionOfferAllocationMethod.isRequired,
|
|
9
|
+
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import shopifyPromotionItemEntitlement from '../models/shopifyPromotionItemEntitlement';
|
|
3
|
+
import shopifyPromotionOrderEntitlement from '../models/shopifyPromotionOrderEntitlement';
|
|
3
4
|
|
|
4
|
-
export default PropTypes.oneOfType([
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
shopifyPromotionItemEntitlement,
|
|
7
|
+
shopifyPromotionOrderEntitlement,
|
|
8
|
+
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import shopifyLine from './shopifyLine';
|
|
3
|
-
import shopifyPrice from '
|
|
3
|
+
import shopifyPrice from './shopifyPrice';
|
|
4
4
|
import allocationDetail from '../../../experience/v0/unions/allocationDetail';
|
|
5
5
|
import orderMerchantOfRecord from '../../../common/v0/enums/orderMerchantOfRecord';
|
|
6
6
|
import merchantOfRecordEntity from '../../../common/v0/models/merchantOfRecordEntity';
|