@flowio/api-internal-prop-types 1.2.10 → 1.2.12

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 (219) hide show
  1. package/.eslintcache +1 -1
  2. package/lib/index.d.ts +51 -17
  3. package/lib/io/flow/{internal/v0/models/fraudEmailRule.js → ftp/v0/models/ftpAccount.js} +8 -4
  4. package/lib/io/flow/ftp/v0/models/ftpOrganizationSettings.js +7 -1
  5. package/lib/io/flow/ftp/v0/models/ftpOrganizationSettingsForm.js +2 -1
  6. package/lib/io/flow/{internal/v0/models/ftpOrganizationSettingsForm.js → ftp/v0/models/ftpServer.js} +1 -1
  7. package/lib/io/flow/{internal/v0/models/ftpOrganizationSettings.js → ftp/v0/models/ftpUser.js} +2 -1
  8. package/lib/io/flow/harmonization/internal/v0/enums/itemClassificationStatus.js +13 -0
  9. package/lib/io/flow/harmonization/internal/v0/models/classificationItem.js +33 -0
  10. package/lib/io/flow/{internal/v0/models/ftpFile.js → harmonization/internal/v0/models/classificationItemSummary.js} +6 -6
  11. package/lib/io/flow/harmonization/internal/v0/models/classificationItemSummaryPage.js +20 -0
  12. package/lib/io/flow/harmonization/internal/v0/models/customsDescriptionSuggestion.js +17 -0
  13. package/lib/io/flow/internal/v0/enums/billingAllocationKey.js +1 -1
  14. package/lib/io/flow/internal/v0/enums/catalogImportType.js +1 -1
  15. package/lib/io/flow/internal/v0/enums/eventType.js +1 -1
  16. package/lib/io/flow/internal/v0/enums/itemClassificationStatus.js +13 -0
  17. package/lib/io/flow/internal/v0/enums/marketingGatewayAccountMarketLocalizationError.js +13 -0
  18. package/lib/io/flow/internal/v0/enums/{fraudEmailRuleDecision.js → marketingGatewayGoogleProductDestinationApprovalStatus.js} +1 -1
  19. package/lib/io/flow/internal/v0/enums/{ftpFileSource.js → marketingGatewayGoogleProductItemLevelIssueSeverity.js} +1 -1
  20. package/lib/io/flow/internal/v0/enums/marketingGatewayProductStatus.js +13 -0
  21. package/lib/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +1 -1
  22. package/lib/io/flow/internal/v0/enums/processor.js +1 -1
  23. package/lib/io/flow/internal/v0/models/adyenAuthorizationDeleted.js +21 -0
  24. package/lib/io/flow/internal/v0/models/adyenAuthorizationUpserted.js +21 -0
  25. package/lib/io/flow/internal/v0/models/{catalogItemFormOverlaysImport.js → adyenCancelDeleted.js} +5 -4
  26. package/lib/io/flow/internal/v0/models/adyenCancelUpserted.js +21 -0
  27. package/lib/io/flow/internal/v0/models/adyenCaptureDeleted.js +21 -0
  28. package/lib/io/flow/internal/v0/models/adyenCaptureUpserted.js +21 -0
  29. package/lib/io/flow/internal/v0/models/adyenInternalAuthorization.js +33 -0
  30. package/lib/io/flow/internal/v0/models/adyenInternalCancel.js +21 -0
  31. package/lib/io/flow/internal/v0/models/adyenInternalCapture.js +20 -0
  32. package/lib/io/flow/internal/v0/models/{ftpFolder.js → adyenInternalRefund.js} +5 -3
  33. package/lib/io/flow/internal/v0/models/adyenRefundDeleted.js +21 -0
  34. package/lib/io/flow/internal/v0/models/adyenRefundUpserted.js +21 -0
  35. package/lib/io/flow/internal/v0/models/billingOrganizationSettings.js +13 -1
  36. package/lib/io/flow/internal/v0/models/{catalogItemsImport.js → catalogImportRequest.js} +5 -0
  37. package/lib/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +6 -1
  38. package/lib/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +6 -1
  39. package/lib/io/flow/internal/v0/models/classificationItem.js +33 -0
  40. package/lib/io/flow/internal/v0/models/classificationItemSummary.js +24 -0
  41. package/lib/io/flow/internal/v0/models/classificationItemSummaryPage.js +20 -0
  42. package/lib/io/flow/internal/v0/models/customsDescriptionSuggestion.js +17 -0
  43. package/lib/io/flow/internal/v0/models/expectedOrderSummary.js +19 -0
  44. package/lib/io/flow/internal/v0/models/ftpFileToProcessUploaded.js +2 -1
  45. package/lib/io/flow/internal/v0/models/marketingGatewayAccount.js +1 -7
  46. package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +7 -1
  47. package/lib/io/flow/internal/v0/models/marketingGatewayAccountMarketLocalization.js +39 -0
  48. package/lib/io/flow/internal/v0/models/marketingGatewayAccountMarkets.js +29 -0
  49. package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +1 -0
  50. package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +2 -1
  51. package/lib/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +4 -3
  52. package/lib/io/flow/internal/v0/models/{fraudEmailRuleForm.js → marketingGatewayGoogleCustomLabels.js} +5 -5
  53. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleCustomProductShippingLocation.js +25 -0
  54. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProduct.js +81 -0
  55. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductAttributes.js +30 -0
  56. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductDataQualityIssue.js +27 -0
  57. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductDestination.js +16 -0
  58. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductDestinationStatus.js +22 -0
  59. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductInstallment.js +20 -0
  60. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductItemLevelIssue.js +22 -0
  61. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductPricingDetails.js +33 -0
  62. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductShippingDetails.js +29 -0
  63. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductShippingUnit.js +16 -0
  64. package/lib/io/flow/internal/v0/models/{ftpFolderForm.js → marketingGatewayGoogleProductSizeDetails.js} +3 -3
  65. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductStatusDetails.js +29 -0
  66. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductTax.js +20 -0
  67. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProductUnitPricingMeasure.js +16 -0
  68. package/lib/io/flow/internal/v0/models/{ftpFileForm.js → marketingGatewayImageLinks.js} +2 -3
  69. package/lib/io/flow/internal/v0/models/orderPlaced.js +28 -0
  70. package/lib/io/flow/internal/v0/models/rateDeletedV2.js +21 -0
  71. package/lib/io/flow/internal/v0/models/rateUpsertedV2.js +21 -0
  72. package/lib/io/flow/internal/v0/models/readyToFulfill.js +1 -1
  73. package/lib/io/flow/internal/v0/models/svbVirtualCardClearing.js +29 -0
  74. package/lib/io/flow/internal/v0/models/svbVirtualCardClearingDeleted.js +21 -0
  75. package/lib/io/flow/internal/v0/models/svbVirtualCardClearingUpserted.js +21 -0
  76. package/lib/io/flow/internal/v0/unions/event.js +59 -7
  77. package/lib/io/flow/internal/v0/unions/marketingGatewayProduct.js +17 -0
  78. package/lib/io/flow/{internal → order/management/event}/v0/models/fulfillmentItemAllocationDetails.js +1 -1
  79. package/lib/io/flow/order/management/event/v0/models/orderPlaced.js +28 -0
  80. package/lib/io/flow/order/management/event/v0/models/readyToFulfill.js +33 -0
  81. package/lib/io/flow/order/management/event/v0/unions/orderManagementEvent.js +21 -0
  82. package/lib/io/flow/payment/v0/models/card.js +5 -0
  83. package/lib/io/flow/payment/v0/models/cardAuthorization.js +0 -5
  84. package/lib/io/flow/payment/v0/models/cardReference.js +1 -1
  85. package/lib/io/flow/payment/v0/models/cardSummary.js +38 -0
  86. package/lib/io/flow/payment/v0/models/issuerSummary.js +17 -0
  87. package/lib/io/flow/payment/v0/models/virtualCardCapture.js +3 -3
  88. package/lib/io/flow/payment/v0/models/virtualCardRefund.js +3 -3
  89. package/lib/io/flow/payment/v0/unions/expandableCard.js +5 -1
  90. package/lib/io/flow/price/v0/models/priceBookForm.js +4 -5
  91. package/lib/io/flow/price/v0/models/priceBookItemForm.js +2 -6
  92. package/lib/io/flow/price/v0/models/priceBookItemQueryForm.js +23 -0
  93. package/lib/io/flow/price/v0/models/priceBookItemSchedule.js +1 -1
  94. package/lib/io/flow/shopify/external/v0/models/shopifyTransactionForm.js +1 -0
  95. package/lib/io/flow/shopify/v0/models/shopifyCartAddMultipleForm.js +2 -1
  96. package/lib/mocks.js +51 -17
  97. package/lib/validators.js +251 -81
  98. package/package.json +2 -3
  99. package/src/index.d.ts +51 -17
  100. package/src/io/flow/ftp/v0/models/ftpAccount.js +8 -0
  101. package/src/io/flow/ftp/v0/models/ftpOrganizationSettings.js +3 -0
  102. package/src/io/flow/ftp/v0/models/ftpOrganizationSettingsForm.js +1 -0
  103. package/src/io/flow/{internal/v0/models/ftpOrganizationSettingsForm.js → ftp/v0/models/ftpServer.js} +1 -1
  104. package/src/io/flow/ftp/v0/models/ftpUser.js +6 -0
  105. package/src/io/flow/harmonization/internal/v0/enums/itemClassificationStatus.js +3 -0
  106. package/src/io/flow/harmonization/internal/v0/models/classificationItem.js +19 -0
  107. package/src/io/flow/harmonization/internal/v0/models/classificationItemSummary.js +11 -0
  108. package/src/io/flow/harmonization/internal/v0/models/classificationItemSummaryPage.js +7 -0
  109. package/src/io/flow/harmonization/internal/v0/models/customsDescriptionSuggestion.js +7 -0
  110. package/src/io/flow/internal/v0/enums/billingAllocationKey.js +2 -0
  111. package/src/io/flow/internal/v0/enums/catalogImportType.js +6 -1
  112. package/src/io/flow/internal/v0/enums/eventType.js +15 -2
  113. package/src/io/flow/internal/v0/enums/itemClassificationStatus.js +3 -0
  114. package/src/io/flow/internal/v0/enums/marketingGatewayAccountMarketLocalizationError.js +8 -0
  115. package/src/io/flow/internal/v0/enums/marketingGatewayGoogleProductDestinationApprovalStatus.js +3 -0
  116. package/src/io/flow/internal/v0/enums/marketingGatewayGoogleProductItemLevelIssueSeverity.js +3 -0
  117. package/src/io/flow/internal/v0/enums/marketingGatewayProductStatus.js +9 -0
  118. package/src/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +1 -0
  119. package/src/io/flow/internal/v0/enums/processor.js +1 -0
  120. package/src/io/flow/internal/v0/models/adyenAuthorizationDeleted.js +8 -0
  121. package/src/io/flow/internal/v0/models/adyenAuthorizationUpserted.js +8 -0
  122. package/src/io/flow/internal/v0/models/adyenCancelDeleted.js +8 -0
  123. package/src/io/flow/internal/v0/models/adyenCancelUpserted.js +8 -0
  124. package/src/io/flow/internal/v0/models/adyenCaptureDeleted.js +8 -0
  125. package/src/io/flow/internal/v0/models/adyenCaptureUpserted.js +8 -0
  126. package/src/io/flow/internal/v0/models/adyenInternalAuthorization.js +23 -0
  127. package/src/io/flow/internal/v0/models/adyenInternalCancel.js +11 -0
  128. package/src/io/flow/internal/v0/models/adyenInternalCapture.js +10 -0
  129. package/src/io/flow/internal/v0/models/adyenInternalRefund.js +10 -0
  130. package/src/io/flow/internal/v0/models/adyenRefundDeleted.js +8 -0
  131. package/src/io/flow/internal/v0/models/adyenRefundUpserted.js +8 -0
  132. package/src/io/flow/internal/v0/models/billingOrganizationSettings.js +6 -0
  133. package/src/io/flow/internal/v0/models/{catalogItemFormOverlaysImport.js → catalogImportRequest.js} +2 -0
  134. package/src/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +2 -0
  135. package/src/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +2 -0
  136. package/src/io/flow/internal/v0/models/classificationItem.js +19 -0
  137. package/src/io/flow/internal/v0/models/classificationItemSummary.js +11 -0
  138. package/src/io/flow/internal/v0/models/classificationItemSummaryPage.js +7 -0
  139. package/src/io/flow/internal/v0/models/customsDescriptionSuggestion.js +7 -0
  140. package/src/io/flow/internal/v0/models/{ftpOrganizationSettings.js → expectedOrderSummary.js} +2 -1
  141. package/src/io/flow/internal/v0/models/ftpFileToProcessUploaded.js +1 -0
  142. package/src/io/flow/internal/v0/models/marketingGatewayAccount.js +0 -4
  143. package/src/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +3 -0
  144. package/src/io/flow/internal/v0/models/marketingGatewayAccountMarketLocalization.js +15 -0
  145. package/src/io/flow/internal/v0/models/marketingGatewayAccountMarkets.js +12 -0
  146. package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +1 -0
  147. package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +1 -0
  148. package/src/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +3 -3
  149. package/src/io/flow/internal/v0/models/marketingGatewayGoogleCustomLabels.js +9 -0
  150. package/src/io/flow/internal/v0/models/marketingGatewayGoogleCustomProductShippingLocation.js +12 -0
  151. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProduct.js +38 -0
  152. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductAttributes.js +20 -0
  153. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductDataQualityIssue.js +14 -0
  154. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductDestination.js +6 -0
  155. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductDestinationStatus.js +10 -0
  156. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductInstallment.js +7 -0
  157. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductItemLevelIssue.js +12 -0
  158. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductPricingDetails.js +14 -0
  159. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductShippingDetails.js +15 -0
  160. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductShippingUnit.js +6 -0
  161. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductSizeDetails.js +7 -0
  162. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductStatusDetails.js +16 -0
  163. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductTax.js +10 -0
  164. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProductUnitPricingMeasure.js +6 -0
  165. package/src/io/flow/internal/v0/models/marketingGatewayImageLinks.js +6 -0
  166. package/src/io/flow/internal/v0/models/orderPlaced.js +12 -0
  167. package/src/io/flow/internal/v0/models/rateDeletedV2.js +8 -0
  168. package/src/io/flow/internal/v0/models/rateUpsertedV2.js +8 -0
  169. package/src/io/flow/internal/v0/models/readyToFulfill.js +1 -1
  170. package/src/io/flow/internal/v0/models/svbVirtualCardClearing.js +19 -0
  171. package/src/io/flow/internal/v0/models/svbVirtualCardClearingDeleted.js +8 -0
  172. package/src/io/flow/internal/v0/models/svbVirtualCardClearingUpserted.js +8 -0
  173. package/src/io/flow/internal/v0/unions/event.js +30 -4
  174. package/src/io/flow/internal/v0/unions/marketingGatewayProduct.js +4 -0
  175. package/src/io/flow/{internal → order/management/event}/v0/models/fulfillmentItemAllocationDetails.js +1 -1
  176. package/src/io/flow/order/management/event/v0/models/orderPlaced.js +12 -0
  177. package/src/io/flow/order/management/event/v0/models/readyToFulfill.js +16 -0
  178. package/src/io/flow/order/management/event/v0/unions/orderManagementEvent.js +5 -0
  179. package/src/io/flow/payment/v0/models/card.js +2 -0
  180. package/src/io/flow/payment/v0/models/cardAuthorization.js +0 -2
  181. package/src/io/flow/payment/v0/models/cardReference.js +1 -1
  182. package/src/io/flow/payment/v0/models/cardSummary.js +16 -0
  183. package/src/io/flow/{internal/v0/models/ftpFileForm.js → payment/v0/models/issuerSummary.js} +2 -2
  184. package/src/io/flow/payment/v0/models/virtualCardCapture.js +2 -2
  185. package/src/io/flow/payment/v0/models/virtualCardRefund.js +2 -2
  186. package/src/io/flow/payment/v0/unions/expandableCard.js +2 -1
  187. package/src/io/flow/price/v0/models/priceBookForm.js +3 -4
  188. package/src/io/flow/price/v0/models/priceBookItemForm.js +2 -3
  189. package/src/io/flow/price/v0/models/priceBookItemQueryForm.js +10 -0
  190. package/src/io/flow/price/v0/models/priceBookItemSchedule.js +1 -1
  191. package/src/io/flow/shopify/external/v0/models/shopifyTransactionForm.js +1 -0
  192. package/src/io/flow/shopify/v0/models/shopifyCartAddMultipleForm.js +1 -0
  193. package/src/mocks.js +51 -17
  194. package/src/validators.js +102 -34
  195. package/LICENSE +0 -21
  196. package/lib/io/flow/internal/v0/models/marketingGatewayPlatformMarketLocalizations.js +0 -24
  197. package/lib/io/flow/internal/v0/models/marketingGatewayProduct.js +0 -35
  198. package/src/io/flow/internal/v0/enums/fraudEmailRuleDecision.js +0 -3
  199. package/src/io/flow/internal/v0/enums/ftpFileSource.js +0 -3
  200. package/src/io/flow/internal/v0/models/catalogItemsImport.js +0 -10
  201. package/src/io/flow/internal/v0/models/fraudEmailRule.js +0 -7
  202. package/src/io/flow/internal/v0/models/fraudEmailRuleForm.js +0 -6
  203. package/src/io/flow/internal/v0/models/ftpFile.js +0 -11
  204. package/src/io/flow/internal/v0/models/ftpFolder.js +0 -8
  205. package/src/io/flow/internal/v0/models/ftpFolderForm.js +0 -7
  206. package/src/io/flow/internal/v0/models/marketingGatewayPlatformMarketLocalizations.js +0 -8
  207. package/src/io/flow/internal/v0/models/marketingGatewayProduct.js +0 -16
  208. /package/lib/io/flow/fraud/{internal/v0 → v0}/enums/fraudEmailRuleDecision.js +0 -0
  209. /package/lib/io/flow/fraud/{internal/v0 → v0}/models/fraudEmailRule.js +0 -0
  210. /package/lib/io/flow/fraud/{internal/v0 → v0}/models/fraudEmailRuleForm.js +0 -0
  211. /package/lib/io/flow/internal/v0/models/{marketingGatewayProductPrice.js → marketingGatewayGooglePrice.js} +0 -0
  212. /package/lib/io/flow/internal/v0/models/{marketingGatewayProductWarning.js → marketingGatewayGoogleProductWarning.js} +0 -0
  213. /package/lib/io/flow/payment/v0/models/{issuer.js → issuerV1.js} +0 -0
  214. /package/src/io/flow/fraud/{internal/v0 → v0}/enums/fraudEmailRuleDecision.js +0 -0
  215. /package/src/io/flow/fraud/{internal/v0 → v0}/models/fraudEmailRule.js +0 -0
  216. /package/src/io/flow/fraud/{internal/v0 → v0}/models/fraudEmailRuleForm.js +0 -0
  217. /package/src/io/flow/internal/v0/models/{marketingGatewayProductPrice.js → marketingGatewayGooglePrice.js} +0 -0
  218. /package/src/io/flow/internal/v0/models/{marketingGatewayProductWarning.js → marketingGatewayGoogleProductWarning.js} +0 -0
  219. /package/src/io/flow/payment/v0/models/{issuer.js → issuerV1.js} +0 -0
@@ -0,0 +1,16 @@
1
+ import PropTypes from 'prop-types';
2
+ import cardType from '../enums/cardType';
3
+ import expiration from './expiration';
4
+ import issuerSummary from './issuerSummary';
5
+ import billingAddress from '../../../common/v0/models/billingAddress';
6
+
7
+ export default PropTypes.shape({
8
+ id: PropTypes.string.isRequired,
9
+ type: cardType.isRequired,
10
+ expiration: expiration.isRequired,
11
+ iin: PropTypes.string.isRequired,
12
+ issuer: issuerSummary,
13
+ last4: PropTypes.string.isRequired,
14
+ name: PropTypes.string.isRequired,
15
+ address: billingAddress,
16
+ });
@@ -1,7 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
3
  export default PropTypes.shape({
4
- url: PropTypes.string.isRequired,
5
- directory: PropTypes.string.isRequired,
4
+ iin: PropTypes.string.isRequired,
6
5
  name: PropTypes.string,
6
+ country: PropTypes.string,
7
7
  });
@@ -1,11 +1,11 @@
1
1
  import PropTypes from 'prop-types';
2
- import issuer from './issuer';
2
+ import issuerV1 from './issuerV1';
3
3
  import virtualCardReference from './virtualCardReference';
4
4
  import authorizationReference from './authorizationReference';
5
5
 
6
6
  export default PropTypes.shape({
7
7
  id: PropTypes.string.isRequired,
8
- issuer: issuer.isRequired,
8
+ issuer: issuerV1.isRequired,
9
9
  virtual_card: virtualCardReference.isRequired,
10
10
  authorization: authorizationReference.isRequired,
11
11
  amount: PropTypes.number.isRequired,
@@ -1,11 +1,11 @@
1
1
  import PropTypes from 'prop-types';
2
- import issuer from './issuer';
2
+ import issuerV1 from './issuerV1';
3
3
  import virtualCardReference from './virtualCardReference';
4
4
  import authorizationReference from './authorizationReference';
5
5
 
6
6
  export default PropTypes.shape({
7
7
  id: PropTypes.string.isRequired,
8
- issuer: issuer.isRequired,
8
+ issuer: issuerV1.isRequired,
9
9
  virtual_card: virtualCardReference.isRequired,
10
10
  authorization: authorizationReference.isRequired,
11
11
  amount: PropTypes.number.isRequired,
@@ -1,5 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import card from '../models/card';
3
3
  import cardReference from '../models/cardReference';
4
+ import cardSummary from '../models/cardSummary';
4
5
 
5
- export default PropTypes.oneOfType([card, cardReference]);
6
+ export default PropTypes.oneOfType([card, cardReference, cardSummary]);
@@ -1,11 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
- import includedLevies from '../../../common/v0/models/includedLevies';
2
+ import includedLevyKey from '../../../common/v0/enums/includedLevyKey';
3
3
  import priceBookStatus from '../../../common/v0/enums/priceBookStatus';
4
4
 
5
5
  export default PropTypes.shape({
6
6
  currency: PropTypes.string.isRequired,
7
7
  name: PropTypes.string.isRequired,
8
- key: PropTypes.string,
9
- includes: includedLevies.isRequired,
10
- status: priceBookStatus.isRequired,
8
+ includes: includedLevyKey.isRequired,
9
+ status: priceBookStatus,
11
10
  });
@@ -1,11 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
- import money from '../../../common/v0/models/money';
3
2
  import priceBookItemSchedule from './priceBookItemSchedule';
4
3
 
5
4
  export default PropTypes.shape({
6
5
  price_book_key: PropTypes.string.isRequired,
7
- price: money.isRequired,
8
6
  item_number: PropTypes.string.isRequired,
9
- schedule: priceBookItemSchedule.isRequired,
7
+ amount: PropTypes.number.isRequired,
8
+ schedule: priceBookItemSchedule,
10
9
  item_attributes: PropTypes.objectOf(PropTypes.string),
11
10
  });
@@ -0,0 +1,10 @@
1
+ import PropTypes from 'prop-types';
2
+ import priceBookItemSchedule from './priceBookItemSchedule';
3
+
4
+ export default PropTypes.shape({
5
+ price_book_key: PropTypes.string.isRequired,
6
+ item_query: PropTypes.string.isRequired,
7
+ amount: PropTypes.number.isRequired,
8
+ schedule: priceBookItemSchedule,
9
+ item_attributes: PropTypes.objectOf(PropTypes.string),
10
+ });
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
3
  export default PropTypes.shape({
4
- starts_at: PropTypes.string,
4
+ starts_at: PropTypes.string.isRequired,
5
5
  ends_at: PropTypes.string,
6
6
  });
@@ -3,6 +3,7 @@ import kindType from '../enums/kindType';
3
3
 
4
4
  export default PropTypes.shape({
5
5
  amount: PropTypes.number.isRequired,
6
+ currency: PropTypes.string.isRequired,
6
7
  gateway: PropTypes.string.isRequired,
7
8
  kind: kindType.isRequired,
8
9
  source: PropTypes.string.isRequired,
@@ -3,4 +3,5 @@ import shopifyCartAddSingleForm from './shopifyCartAddSingleForm';
3
3
 
4
4
  export default PropTypes.shape({
5
5
  items: PropTypes.arrayOf(shopifyCartAddSingleForm).isRequired,
6
+ attributes: PropTypes.objectOf(PropTypes.string),
6
7
  });
package/src/mocks.js CHANGED
@@ -34,18 +34,21 @@ export default {
34
34
  featureType: noopThunk,
35
35
  flowApp: noopThunk,
36
36
  format: noopThunk,
37
- fraudEmailRuleDecision: noopThunk,
38
- ftpFileSource: noopThunk,
39
37
  ftpIntent: noopThunk,
40
38
  ftpProtocol: noopThunk,
41
39
  httpMethod: noopThunk,
42
40
  installmentPaymentType: noopThunk,
43
41
  installmentProgramStatus: noopThunk,
44
42
  installmentStatus: noopThunk,
43
+ itemClassificationStatus: noopThunk,
45
44
  itemQuantityAction: noopThunk,
46
45
  labelBillingStrategy: noopThunk,
47
46
  labelInvoiceDetailKey: noopThunk,
47
+ marketingGatewayAccountMarketLocalizationError: noopThunk,
48
+ marketingGatewayGoogleProductDestinationApprovalStatus: noopThunk,
49
+ marketingGatewayGoogleProductItemLevelIssueSeverity: noopThunk,
48
50
  marketingGatewayPlatform: noopThunk,
51
+ marketingGatewayProductStatus: noopThunk,
49
52
  marketingGatewaySyncStatus: noopThunk,
50
53
  orderAction: noopThunk,
51
54
  orderAttributeIntent: noopThunk,
@@ -86,7 +89,19 @@ export default {
86
89
  accountStatistics: noopThunk,
87
90
  accountTransactionsExportRequest: noopThunk,
88
91
  actionQuantity: noopThunk,
92
+ adyenAuthorizationDeleted: noopThunk,
93
+ adyenAuthorizationUpserted: noopThunk,
94
+ adyenCancelDeleted: noopThunk,
95
+ adyenCancelUpserted: noopThunk,
96
+ adyenCaptureDeleted: noopThunk,
97
+ adyenCaptureUpserted: noopThunk,
98
+ adyenInternalAuthorization: noopThunk,
99
+ adyenInternalCancel: noopThunk,
100
+ adyenInternalCapture: noopThunk,
101
+ adyenInternalRefund: noopThunk,
102
+ adyenRefundDeleted: noopThunk,
89
103
  adyenRefundForm: noopThunk,
104
+ adyenRefundUpserted: noopThunk,
90
105
  allocationItemReference: noopThunk,
91
106
  apmContent: noopThunk,
92
107
  applePaymentToken: noopThunk,
@@ -132,13 +147,12 @@ export default {
132
147
  carrierAccount: noopThunk,
133
148
  carrierAccountUpserted: noopThunk,
134
149
  carrierInvoice: noopThunk,
150
+ catalogImportRequest: noopThunk,
135
151
  catalogItemDeleteIndexTask: noopThunk,
136
- catalogItemFormOverlaysImport: noopThunk,
137
152
  catalogItemIndexTask: noopThunk,
138
153
  catalogItemRegionAvailabilities: noopThunk,
139
154
  catalogItemRegionAvailabilitiesData: noopThunk,
140
155
  catalogItemRegionAvailabilitiesPublished: noopThunk,
141
- catalogItemsImport: noopThunk,
142
156
  centerQueryBuilder: noopThunk,
143
157
  changeSettingsIndexTask: noopThunk,
144
158
  checkbox: noopThunk,
@@ -155,6 +169,9 @@ export default {
155
169
  cipherReference: noopThunk,
156
170
  classificationFeatureSetDefault: noopThunk,
157
171
  classificationFeaturesCategoryApparel: noopThunk,
172
+ classificationItem: noopThunk,
173
+ classificationItemSummary: noopThunk,
174
+ classificationItemSummaryPage: noopThunk,
158
175
  completePriceRule: noopThunk,
159
176
  consumerOptinActivity: noopThunk,
160
177
  contentSchema: noopThunk,
@@ -165,6 +182,7 @@ export default {
165
182
  customsDescriptionImport: noopThunk,
166
183
  customsDescriptionSugestion: noopThunk,
167
184
  customsDescriptionSugestionCreated: noopThunk,
185
+ customsDescriptionSuggestion: noopThunk,
168
186
  customsDescriptionTariffCodeDuty: noopThunk,
169
187
  customsDescriptionTariffCodeDutyForm: noopThunk,
170
188
  customsDescriptionTariffsImport: noopThunk,
@@ -208,6 +226,7 @@ export default {
208
226
  exclusionRuleForm: noopThunk,
209
227
  exclusionRuleStatistic: noopThunk,
210
228
  exclusionRuleVersion: noopThunk,
229
+ expectedOrderSummary: noopThunk,
211
230
  experienceOrderActionRule: noopThunk,
212
231
  experienceVariant: noopThunk,
213
232
  experiment: noopThunk,
@@ -244,8 +263,6 @@ export default {
244
263
  flowLabelSettingForm: noopThunk,
245
264
  fractionInstallmentStep: noopThunk,
246
265
  fractionInstallmentStepForm: noopThunk,
247
- fraudEmailRule: noopThunk,
248
- fraudEmailRuleForm: noopThunk,
249
266
  fraudPendingReview: noopThunk,
250
267
  fraudPendingReviewDeleted: noopThunk,
251
268
  fraudPendingReviewUpserted: noopThunk,
@@ -258,15 +275,9 @@ export default {
258
275
  fraudReviewUpserted: noopThunk,
259
276
  fraudReviewVersion: noopThunk,
260
277
  fraudSummary: noopThunk,
261
- ftpFile: noopThunk,
262
278
  ftpFileDeleted: noopThunk,
263
- ftpFileForm: noopThunk,
264
279
  ftpFileToProcessUploaded: noopThunk,
265
280
  ftpFileUpserted: noopThunk,
266
- ftpFolder: noopThunk,
267
- ftpFolderForm: noopThunk,
268
- ftpOrganizationSettings: noopThunk,
269
- ftpOrganizationSettingsForm: noopThunk,
270
281
  ftpSetting: noopThunk,
271
282
  ftpSettingForm: noopThunk,
272
283
  ftpSettingVersion: noopThunk,
@@ -275,7 +286,6 @@ export default {
275
286
  fuelSurchargeServiceFee: noopThunk,
276
287
  fulfillmentActionForm: noopThunk,
277
288
  fulfillmentCancel: noopThunk,
278
- fulfillmentItemAllocationDetails: noopThunk,
279
289
  fulfillmentShipmentTracking: noopThunk,
280
290
  giftCard: noopThunk,
281
291
  giftCardAuthorizationError: noopThunk,
@@ -394,16 +404,33 @@ export default {
394
404
  marketingGatewayAccount: noopThunk,
395
405
  marketingGatewayAccountConnection: noopThunk,
396
406
  marketingGatewayAccountConnectionForm: noopThunk,
407
+ marketingGatewayAccountMarketLocalization: noopThunk,
408
+ marketingGatewayAccountMarkets: noopThunk,
397
409
  marketingGatewayConfiguredMarket: noopThunk,
398
410
  marketingGatewayConfiguredMarketForm: noopThunk,
399
411
  marketingGatewayExistingMarket: noopThunk,
412
+ marketingGatewayGoogleCustomLabels: noopThunk,
413
+ marketingGatewayGoogleCustomProductShippingLocation: noopThunk,
400
414
  marketingGatewayGoogleMarket: noopThunk,
415
+ marketingGatewayGooglePrice: noopThunk,
416
+ marketingGatewayGoogleProduct: noopThunk,
417
+ marketingGatewayGoogleProductAttributes: noopThunk,
418
+ marketingGatewayGoogleProductDataQualityIssue: noopThunk,
419
+ marketingGatewayGoogleProductDestination: noopThunk,
420
+ marketingGatewayGoogleProductDestinationStatus: noopThunk,
421
+ marketingGatewayGoogleProductInstallment: noopThunk,
422
+ marketingGatewayGoogleProductItemLevelIssue: noopThunk,
423
+ marketingGatewayGoogleProductPricingDetails: noopThunk,
424
+ marketingGatewayGoogleProductShippingDetails: noopThunk,
425
+ marketingGatewayGoogleProductShippingUnit: noopThunk,
426
+ marketingGatewayGoogleProductSizeDetails: noopThunk,
427
+ marketingGatewayGoogleProductStatusDetails: noopThunk,
428
+ marketingGatewayGoogleProductTax: noopThunk,
429
+ marketingGatewayGoogleProductUnitPricingMeasure: noopThunk,
430
+ marketingGatewayGoogleProductWarning: noopThunk,
431
+ marketingGatewayImageLinks: noopThunk,
401
432
  marketingGatewayLocalizationFlowCountry: noopThunk,
402
433
  marketingGatewayLocalizationFlowExperience: noopThunk,
403
- marketingGatewayPlatformMarketLocalizations: noopThunk,
404
- marketingGatewayProduct: noopThunk,
405
- marketingGatewayProductPrice: noopThunk,
406
- marketingGatewayProductWarning: noopThunk,
407
434
  nextBillingStatement: noopThunk,
408
435
  nextInstallment: noopThunk,
409
436
  nextInstallmentDeleted: noopThunk,
@@ -428,6 +455,7 @@ export default {
428
455
  orderFulfillmentDeleted: noopThunk,
429
456
  orderFulfillmentUpserted: noopThunk,
430
457
  orderPaymentAuthorization: noopThunk,
458
+ orderPlaced: noopThunk,
431
459
  orderRatesDataV3: noopThunk,
432
460
  orderRatesPublishedV3: noopThunk,
433
461
  orderRevenueRegionChart: noopThunk,
@@ -475,7 +503,9 @@ export default {
475
503
  rateData: noopThunk,
476
504
  rateDataV3: noopThunk,
477
505
  rateDeleted: noopThunk,
506
+ rateDeletedV2: noopThunk,
478
507
  rateUpserted: noopThunk,
508
+ rateUpsertedV2: noopThunk,
479
509
  ratecard: noopThunk,
480
510
  ratecardCarrierSummary: noopThunk,
481
511
  ratecardEstimateFormV1: noopThunk,
@@ -574,6 +604,9 @@ export default {
574
604
  submittedOrderUpserted: noopThunk,
575
605
  subscription: noopThunk,
576
606
  subscriptionTransaction: noopThunk,
607
+ svbVirtualCardClearing: noopThunk,
608
+ svbVirtualCardClearingDeleted: noopThunk,
609
+ svbVirtualCardClearingUpserted: noopThunk,
577
610
  tariffCodeDuty: noopThunk,
578
611
  taskCount: noopThunk,
579
612
  taskImport: noopThunk,
@@ -626,6 +659,7 @@ export default {
626
659
  localizableContent: noopThunk,
627
660
  marketingGatewayLocalization: noopThunk,
628
661
  marketingGatewayPlatformMarket: noopThunk,
662
+ marketingGatewayProduct: noopThunk,
629
663
  orderActionForm: noopThunk,
630
664
  paymentRedirect: noopThunk,
631
665
  paymentSummaryDetails: noopThunk,