@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.
Files changed (122) hide show
  1. package/.eslintcache +1 -0
  2. package/lib/index.d.ts +23 -10
  3. package/lib/io/flow/adyen/v0/models/authorizeRequest.js +7 -1
  4. package/lib/io/flow/adyen/v0/models/threeDSecureData.js +20 -0
  5. package/lib/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +1 -1
  6. package/lib/io/flow/common/v0/models/merchantOfRecordEntity.js +5 -0
  7. package/lib/io/flow/common/v0/models/organization.js +6 -1
  8. package/lib/io/flow/common/v0/models/organizationDefaults.js +19 -0
  9. package/lib/io/flow/fraud/internal/v0/enums/riskEvaluation.js +13 -0
  10. package/lib/io/flow/fraud/internal/v0/models/decision.js +3 -1
  11. package/lib/io/flow/fraud/internal/v0/models/fraudReview.js +5 -0
  12. package/lib/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +1 -1
  13. package/lib/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +13 -0
  14. package/lib/io/flow/internal/v0/enums/riskEvaluation.js +13 -0
  15. package/lib/io/flow/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +13 -0
  16. package/lib/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +24 -0
  17. package/lib/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +20 -0
  18. package/lib/io/flow/internal/v0/models/decision.js +3 -1
  19. package/lib/io/flow/internal/v0/models/fraudReview.js +5 -0
  20. package/lib/io/flow/internal/v0/models/marketingGatewayAccount.js +38 -0
  21. package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +19 -0
  22. package/lib/io/flow/internal/v0/models/{marketingAccountSummary.js → marketingGatewayAccountConnectionForm.js} +2 -3
  23. package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +36 -0
  24. package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +25 -0
  25. package/lib/io/flow/internal/v0/models/marketingGatewayCountryLanguage.js +16 -0
  26. package/lib/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +21 -0
  27. package/lib/io/flow/{billing/v0/models/billingInvoiceSummary.js → internal/v0/models/marketingGatewayLocalizationFlowCountry.js} +1 -2
  28. package/lib/io/flow/{billing/v0/models/billingOrderSummary.js → internal/v0/models/marketingGatewayLocalizationFlowExperience.js} +5 -3
  29. package/lib/io/flow/internal/v0/models/marketingGatewayProduct.js +35 -0
  30. package/lib/io/flow/internal/v0/models/searchProviderExport.js +15 -0
  31. package/lib/io/flow/internal/v0/models/shopifyPromotionOrderEntitlement.js +24 -0
  32. package/lib/io/flow/internal/v0/unions/checkoutSubmitOrderBundles.js +17 -0
  33. package/lib/io/flow/internal/v0/unions/checkoutSubmitOrderForms.js +17 -0
  34. package/lib/io/flow/internal/v0/unions/marketingGatewayLocalization.js +21 -0
  35. package/lib/io/flow/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
  36. package/lib/io/flow/payment/v0/models/applePayMerchantValidationPayload.js +16 -0
  37. package/lib/io/flow/payment/v0/models/authorizationResult.js +6 -1
  38. package/lib/io/flow/payment/v0/models/authorizationResultDescription.js +15 -0
  39. package/lib/io/flow/payment/v0/unions/authorizationPayloadParameters.js +5 -1
  40. package/lib/io/flow/price/v0/models/priceBookItem.js +2 -1
  41. package/lib/io/flow/price/v0/models/priceBookItemForm.js +2 -1
  42. package/lib/io/flow/shopify/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +13 -0
  43. package/lib/io/flow/shopify/internal/v0/models/shopifyPromotionOrderEntitlement.js +24 -0
  44. package/lib/io/flow/shopify/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
  45. package/lib/io/flow/shopify/{internal/v0 → v0}/models/shopifyLine.js +1 -1
  46. package/lib/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +2 -1
  47. package/lib/io/flow/{internal → shopify}/v0/models/shopifyLocalizedOrder.js +1 -1
  48. package/lib/io/flow/shopify/v0/models/shopifyOrderPriceAttributesMetafield.js +20 -0
  49. package/lib/mocks.js +23 -10
  50. package/lib/validators.js +101 -36
  51. package/package.json +1 -1
  52. package/src/index.d.ts +23 -10
  53. package/src/io/flow/adyen/v0/models/authorizeRequest.js +3 -0
  54. package/src/io/flow/adyen/v0/models/threeDSecureData.js +10 -0
  55. package/src/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +7 -1
  56. package/src/io/flow/common/v0/models/merchantOfRecordEntity.js +2 -0
  57. package/src/io/flow/common/v0/models/organization.js +2 -0
  58. package/src/io/flow/common/v0/models/organizationDefaults.js +9 -0
  59. package/src/io/flow/fraud/internal/v0/enums/riskEvaluation.js +9 -0
  60. package/src/io/flow/fraud/internal/v0/models/decision.js +3 -1
  61. package/src/io/flow/fraud/internal/v0/models/fraudReview.js +2 -0
  62. package/src/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +7 -1
  63. package/src/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +9 -0
  64. package/src/io/flow/internal/v0/enums/riskEvaluation.js +9 -0
  65. package/src/io/flow/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +3 -0
  66. package/src/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +8 -0
  67. package/src/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +7 -0
  68. package/src/io/flow/internal/v0/models/decision.js +3 -1
  69. package/src/io/flow/internal/v0/models/fraudReview.js +2 -0
  70. package/src/io/flow/internal/v0/models/marketingGatewayAccount.js +17 -0
  71. package/src/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +6 -0
  72. package/src/io/flow/internal/v0/models/marketingGatewayAccountConnectionForm.js +6 -0
  73. package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +14 -0
  74. package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +9 -0
  75. package/src/io/flow/internal/v0/models/marketingGatewayCountryLanguage.js +6 -0
  76. package/src/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +8 -0
  77. package/src/io/flow/internal/v0/models/marketingGatewayLocalizationFlowCountry.js +5 -0
  78. package/src/io/flow/internal/v0/models/marketingGatewayLocalizationFlowExperience.js +6 -0
  79. package/src/io/flow/internal/v0/models/marketingGatewayProduct.js +16 -0
  80. package/src/io/flow/internal/v0/models/{marketingAccountSummary.js → searchProviderExport.js} +0 -2
  81. package/src/io/flow/internal/v0/models/shopifyPromotionOrderEntitlement.js +9 -0
  82. package/src/io/flow/internal/v0/unions/checkoutSubmitOrderBundles.js +4 -0
  83. package/src/io/flow/internal/v0/unions/checkoutSubmitOrderForms.js +4 -0
  84. package/src/io/flow/internal/v0/unions/marketingGatewayLocalization.js +8 -0
  85. package/src/io/flow/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
  86. package/src/io/flow/payment/v0/models/applePayMerchantValidationPayload.js +6 -0
  87. package/src/io/flow/payment/v0/models/authorizationResult.js +2 -0
  88. package/src/io/flow/payment/v0/models/authorizationResultDescription.js +5 -0
  89. package/src/io/flow/payment/v0/unions/authorizationPayloadParameters.js +5 -1
  90. package/src/io/flow/price/v0/models/priceBookItem.js +1 -0
  91. package/src/io/flow/price/v0/models/priceBookItemForm.js +1 -0
  92. package/src/io/flow/shopify/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +3 -0
  93. package/src/io/flow/shopify/internal/v0/models/shopifyPromotionOrderEntitlement.js +9 -0
  94. package/src/io/flow/shopify/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
  95. package/src/io/flow/shopify/{internal/v0 → v0}/models/shopifyLine.js +1 -1
  96. package/src/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +1 -0
  97. package/src/io/flow/{internal → shopify}/v0/models/shopifyLocalizedOrder.js +1 -1
  98. package/src/io/flow/shopify/v0/models/shopifyOrderPriceAttributesMetafield.js +7 -0
  99. package/src/mocks.js +23 -10
  100. package/src/validators.js +46 -20
  101. package/lib/io/flow/internal/v0/models/marketingAccount.js +0 -27
  102. package/lib/io/flow/internal/v0/models/marketingConnection.js +0 -25
  103. package/lib/io/flow/internal/v0/models/marketingConnectionForm.js +0 -24
  104. package/lib/io/flow/internal/v0/models/marketingProduct.js +0 -32
  105. package/lib/io/flow/internal/v0/models/shopifyLine.js +0 -22
  106. package/lib/io/flow/shopify/internal/v0/models/shopifyLocalizedOrder.js +0 -52
  107. package/lib/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +0 -50
  108. package/src/io/flow/billing/v0/models/billingInvoiceSummary.js +0 -6
  109. package/src/io/flow/billing/v0/models/billingOrderSummary.js +0 -7
  110. package/src/io/flow/internal/v0/models/marketingAccount.js +0 -11
  111. package/src/io/flow/internal/v0/models/marketingConnection.js +0 -9
  112. package/src/io/flow/internal/v0/models/marketingConnectionForm.js +0 -11
  113. package/src/io/flow/internal/v0/models/marketingProduct.js +0 -16
  114. package/src/io/flow/internal/v0/models/shopifyLine.js +0 -9
  115. package/src/io/flow/shopify/internal/v0/models/shopifyLocalizedOrder.js +0 -21
  116. package/src/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +0 -19
  117. /package/lib/io/flow/internal/v0/enums/{platform.js → marketingGatewayPlatform.js} +0 -0
  118. /package/lib/io/flow/internal/v0/models/{marketingProductPrice.js → marketingGatewayProductPrice.js} +0 -0
  119. /package/lib/io/flow/internal/v0/models/{marketingProductWarning.js → marketingGatewayProductWarning.js} +0 -0
  120. /package/src/io/flow/internal/v0/enums/{platform.js → marketingGatewayPlatform.js} +0 -0
  121. /package/src/io/flow/internal/v0/models/{marketingProductPrice.js → marketingGatewayProductPrice.js} +0 -0
  122. /package/src/io/flow/internal/v0/models/{marketingProductWarning.js → marketingGatewayProductWarning.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
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
- marketingAccount: Requireable<any> & Validator<any>;
359
- marketingAccountSummary: Requireable<any> & Validator<any>;
360
- marketingConnection: Requireable<any> & Validator<any>;
361
- marketingConnectionForm: Requireable<any> & Validator<any>;
362
- marketingProduct: Requireable<any> & Validator<any>;
363
- marketingProductPrice: Requireable<any> & Validator<any>;
364
- marketingProductWarning: Requireable<any> & Validator<any>;
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,3 +1,9 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
- export default PropTypes.oneOf(['statement', 'transactions', 'orders', 'all']);
3
+ export default PropTypes.oneOf([
4
+ 'invoice',
5
+ 'statement',
6
+ 'transactions',
7
+ 'orders',
8
+ 'all',
9
+ ]);
@@ -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
+ });
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf([
4
+ 'pending',
5
+ 'high',
6
+ 'low',
7
+ 'restricted',
8
+ 'none',
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),
@@ -1,3 +1,9 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
- export default PropTypes.oneOf(['statement', 'transactions', 'orders', 'all']);
3
+ export default PropTypes.oneOf([
4
+ 'invoice',
5
+ 'statement',
6
+ 'transactions',
7
+ 'orders',
8
+ 'all',
9
+ ]);
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf([
4
+ 'disabled',
5
+ 'pending',
6
+ 'ongoing',
7
+ 'succeed',
8
+ 'failed',
9
+ ]);
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf([
4
+ 'pending',
5
+ 'high',
6
+ 'low',
7
+ 'restricted',
8
+ 'none',
9
+ ]);
@@ -0,0 +1,3 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf(['subtotal', 'shipping', 'vat', 'duty']);
@@ -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
+ });
@@ -0,0 +1,7 @@
1
+ import PropTypes from 'prop-types';
2
+ import authorizationForm from '../../../payment/v0/unions/authorizationForm';
3
+
4
+ export default PropTypes.shape({
5
+ authorization_form: authorizationForm.isRequired,
6
+ installment_plan_id: PropTypes.string,
7
+ });
@@ -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,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import marketingGatewayAccount from './marketingGatewayAccount';
3
+
4
+ export default PropTypes.shape({
5
+ accounts: PropTypes.arrayOf(marketingGatewayAccount).isRequired,
6
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ access_token: PropTypes.string.isRequired,
5
+ refresh_token: PropTypes.string.isRequired,
6
+ });
@@ -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,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ country: PropTypes.string.isRequired,
5
+ language: PropTypes.string.isRequired,
6
+ });
@@ -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,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ country: PropTypes.string.isRequired,
5
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import experienceSummary from '../../../common/v0/models/experienceSummary';
3
+
4
+ export default PropTypes.shape({
5
+ experience: experienceSummary.isRequired,
6
+ });
@@ -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
+ });
@@ -1,7 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
3
  export default PropTypes.shape({
4
- id: PropTypes.string.isRequired,
5
4
  name: PropTypes.string.isRequired,
6
- aggregator_id: PropTypes.string,
7
5
  });
@@ -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,4 @@
1
+ import PropTypes from 'prop-types';
2
+ import checkoutSubmitOrderBundle from '../models/checkoutSubmitOrderBundle';
3
+
4
+ export default PropTypes.oneOfType([checkoutSubmitOrderBundle]);
@@ -0,0 +1,4 @@
1
+ import PropTypes from 'prop-types';
2
+ import checkoutSubmitOrderForm from '../models/checkoutSubmitOrderForm';
3
+
4
+ export default PropTypes.oneOfType([checkoutSubmitOrderForm]);
@@ -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([shopifyPromotionItemEntitlement]);
5
+ export default PropTypes.oneOfType([
6
+ shopifyPromotionItemEntitlement,
7
+ shopifyPromotionOrderEntitlement,
8
+ ]);
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ validation_url: PropTypes.string.isRequired,
5
+ display_name: PropTypes.string,
6
+ });
@@ -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
  });
@@ -0,0 +1,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ display: PropTypes.string.isRequired,
5
+ });
@@ -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([googlePayAuthorizationPayload]);
5
+ export default PropTypes.oneOfType([
6
+ googlePayAuthorizationPayload,
7
+ applePayMerchantValidationPayload,
8
+ ]);
@@ -10,4 +10,5 @@ export default PropTypes.shape({
10
10
  price: price.isRequired,
11
11
  item_number: PropTypes.string.isRequired,
12
12
  schedule: priceBookItemSchedule.isRequired,
13
+ item_attributes: PropTypes.objectOf(PropTypes.string),
13
14
  });
@@ -7,4 +7,5 @@ export default PropTypes.shape({
7
7
  price: money.isRequired,
8
8
  item_number: PropTypes.string.isRequired,
9
9
  schedule: priceBookItemSchedule.isRequired,
10
+ item_attributes: PropTypes.objectOf(PropTypes.string),
10
11
  });
@@ -0,0 +1,3 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf(['subtotal', 'shipping', 'vat', 'duty']);
@@ -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([shopifyPromotionItemEntitlement]);
5
+ export default PropTypes.oneOfType([
6
+ shopifyPromotionItemEntitlement,
7
+ shopifyPromotionOrderEntitlement,
8
+ ]);
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- import shopifyPrice from '../../../v0/models/shopifyPrice';
2
+ import shopifyPrice from './shopifyPrice';
3
3
 
4
4
  export default PropTypes.shape({
5
5
  variant_id: PropTypes.number.isRequired,
@@ -10,4 +10,5 @@ export default PropTypes.shape({
10
10
  subtotal: priceWithBase.isRequired,
11
11
  vat: priceWithBase,
12
12
  duty: priceWithBase,
13
+ discount: priceWithBase,
13
14
  });
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import shopifyLine from './shopifyLine';
3
- import shopifyPrice from '../../../shopify/v0/models/shopifyPrice';
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';
@@ -0,0 +1,7 @@
1
+ import PropTypes from 'prop-types';
2
+ import priceWithBase from '../../../common/v0/models/priceWithBase';
3
+
4
+ export default PropTypes.shape({
5
+ item_number: PropTypes.string.isRequired,
6
+ price_attributes: PropTypes.objectOf(priceWithBase).isRequired,
7
+ });