@flowio/api-internal-prop-types 1.2.34 → 1.2.36
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/.apibuilder/.tracked_files +28 -44
- package/.apibuilder/config +6 -0
- package/.eslintcache +1 -1
- package/lib/index.d.ts +11 -13
- package/lib/io/flow/{harmonization/v0/models/harmonizationSettings.js → experience/v0/models/addressConfiguration.js} +3 -3
- package/lib/io/flow/experience/v0/models/addressFieldValidation.js +28 -0
- package/lib/io/flow/{customer/v0/models/customerAuthorization.js → field/validation/v0/models/fieldValidationMax.js} +1 -1
- package/lib/io/flow/{harmonization/internal/v0/models/productReference.js → field/validation/v0/models/fieldValidationMin.js} +1 -1
- package/lib/io/flow/{harmonization/internal/v0/models/phraseReference.js → field/validation/v0/models/fieldValidationPattern.js} +1 -1
- package/lib/io/flow/{customer/v0/models/customerReference.js → field/validation/v0/models/fieldValidationRequired.js} +1 -1
- package/lib/io/flow/field/validation/v0/unions/fieldValidationRule.js +25 -0
- package/lib/io/flow/internal/v0/enums/eventType.js +1 -1
- package/lib/io/flow/internal/v0/enums/{dutyType.js → taxCalculationErrorCode.js} +1 -1
- package/lib/io/flow/internal/v0/models/{classificationFeatureSetDefault.js → adyenMerchantAccount.js} +3 -3
- package/lib/io/flow/{harmonization/v0/models/hs6Version.js → internal/v0/models/adyenMerchantAccountDeleted.js} +3 -6
- package/lib/io/flow/{harmonization/internal/v0/models/classificationFeatureSetDefault.js → internal/v0/models/adyenMerchantAccountUpserted.js} +4 -3
- package/lib/io/flow/internal/v0/models/afterpayAuthorizationDeleted.js +1 -1
- package/lib/io/flow/internal/v0/models/afterpayAuthorizationUpserted.js +1 -1
- package/lib/io/flow/internal/v0/models/afterpayCaptureDeleted.js +1 -1
- package/lib/io/flow/internal/v0/models/afterpayCaptureUpserted.js +1 -1
- package/lib/io/flow/internal/v0/models/afterpayRefundDeleted.js +1 -1
- package/lib/io/flow/internal/v0/models/afterpayRefundUpserted.js +1 -1
- package/lib/io/flow/internal/v0/models/checkoutBundle.js +4 -1
- package/lib/io/flow/internal/v0/models/checkoutSourceOrderForm.js +20 -0
- package/lib/io/flow/internal/v0/models/internalAuthorization.js +1 -3
- package/lib/io/flow/internal/v0/models/marketingGatewayFeed.js +31 -0
- package/lib/io/flow/internal/v0/models/marketingGatewaySchemaSummary.js +20 -0
- package/lib/io/flow/{customer/v0/models/customerAuthorizationForm.js → internal/v0/models/productClassification.js} +1 -1
- package/lib/io/flow/internal/v0/models/{productPhraseForm.js → productClassificationDeleted.js} +6 -1
- package/lib/io/flow/{harmonization/internal/v0/models/productPhraseForm.js → internal/v0/models/productClassificationUpserted.js} +6 -1
- package/lib/io/flow/{harmonization/v0/models/hintResult.js → internal/v0/models/taxCalculationError.js} +3 -3
- package/lib/io/flow/internal/v0/unions/event.js +9 -1
- package/lib/io/flow/session/v0/unions/sessionAuthorization.js +1 -3
- package/lib/io/flow/shopify/external/v0/models/shopifyCart.js +35 -0
- package/lib/io/flow/shopify/external/v0/models/shopifyCartItem.js +53 -0
- package/lib/io/flow/shopify/external/v0/models/shopifyCartItemDiscount.js +20 -0
- package/lib/io/flow/shopify/external/v0/models/shopifyDiscountApplication.js +29 -0
- package/lib/io/flow/{harmonization/v0/models/harmonizationSettingsForm.js → shopify/external/v0/models/shopifyLineLevelDiscountAllocation.js} +3 -3
- package/lib/io/flow/shopify/v0/models/shopifyCartFlowRepresentation.js +21 -0
- package/lib/io/flow/{harmonization/internal/v0/models/productPhrase.js → shopify/v0/models/shopifyCartRepresentation.js} +4 -5
- package/lib/io/flow/shopify/v0/models/shopifyCartShopifyRepresentation.js +21 -0
- package/lib/mocks.js +11 -13
- package/lib/validators.js +32 -38
- package/package.json +2 -2
- package/src/index.d.ts +11 -13
- package/src/io/flow/experience/v0/models/addressConfiguration.js +7 -0
- package/src/io/flow/experience/v0/models/addressFieldValidation.js +13 -0
- package/src/io/flow/{customer/v0/models/customerAuthorization.js → field/validation/v0/models/fieldValidationMax.js} +1 -1
- package/src/io/flow/{customer/v0/models/customerReference.js → field/validation/v0/models/fieldValidationMin.js} +1 -1
- package/src/io/flow/field/validation/v0/models/fieldValidationPattern.js +5 -0
- package/src/io/flow/{harmonization/internal/v0/models/phraseReference.js → field/validation/v0/models/fieldValidationRequired.js} +1 -1
- package/src/io/flow/field/validation/v0/unions/fieldValidationRule.js +12 -0
- package/src/io/flow/internal/v0/enums/eventType.js +4 -0
- package/src/io/flow/internal/v0/enums/taxCalculationErrorCode.js +3 -0
- package/src/io/flow/internal/v0/models/adyenMerchantAccount.js +8 -0
- package/src/io/flow/internal/v0/models/adyenMerchantAccountDeleted.js +8 -0
- package/src/io/flow/internal/v0/models/adyenMerchantAccountUpserted.js +8 -0
- package/src/io/flow/internal/v0/models/afterpayAuthorizationDeleted.js +1 -1
- package/src/io/flow/internal/v0/models/afterpayAuthorizationUpserted.js +1 -1
- package/src/io/flow/internal/v0/models/afterpayCaptureDeleted.js +1 -1
- package/src/io/flow/internal/v0/models/afterpayCaptureUpserted.js +1 -1
- package/src/io/flow/internal/v0/models/afterpayRefundDeleted.js +1 -1
- package/src/io/flow/internal/v0/models/afterpayRefundUpserted.js +1 -1
- package/src/io/flow/internal/v0/models/checkoutBundle.js +2 -0
- package/src/io/flow/internal/v0/models/checkoutSourceOrderForm.js +6 -0
- package/src/io/flow/internal/v0/models/internalAuthorization.js +1 -2
- package/src/io/flow/internal/v0/models/marketingGatewayFeed.js +14 -0
- package/src/io/flow/{harmonization/internal/v0/models/productReference.js → internal/v0/models/marketingGatewaySchemaSummary.js} +1 -0
- package/src/io/flow/{customer/v0/models/customerAuthorizationForm.js → internal/v0/models/productClassification.js} +1 -1
- package/src/io/flow/internal/v0/models/productClassificationDeleted.js +10 -0
- package/src/io/flow/internal/v0/models/productClassificationUpserted.js +10 -0
- package/src/io/flow/internal/v0/models/taxCalculationError.js +7 -0
- package/src/io/flow/internal/v0/unions/event.js +8 -0
- package/src/io/flow/session/v0/unions/sessionAuthorization.js +1 -5
- package/src/io/flow/shopify/external/v0/models/shopifyCart.js +21 -0
- package/src/io/flow/shopify/external/v0/models/shopifyCartItem.js +39 -0
- package/src/io/flow/shopify/external/v0/models/shopifyCartItemDiscount.js +6 -0
- package/src/io/flow/shopify/external/v0/models/shopifyDiscountApplication.js +15 -0
- package/src/io/flow/shopify/external/v0/models/shopifyLineLevelDiscountAllocation.js +7 -0
- package/src/io/flow/shopify/v0/models/shopifyCartFlowRepresentation.js +6 -0
- package/src/io/flow/shopify/v0/models/shopifyCartRepresentation.js +8 -0
- package/src/io/flow/shopify/v0/models/shopifyCartShopifyRepresentation.js +6 -0
- package/src/mocks.js +11 -13
- package/src/validators.js +22 -26
- package/lib/io/flow/harmonization/internal/v0/enums/dutyType.js +0 -17
- package/lib/io/flow/harmonization/internal/v0/models/classificationFeaturesCategoryApparel.js +0 -22
- package/lib/io/flow/harmonization/internal/v0/models/hs10PhraseHintForm.js +0 -21
- package/lib/io/flow/harmonization/internal/v0/models/productDetailHintForm.js +0 -24
- package/lib/io/flow/harmonization/internal/v0/models/searchItemHs10Code.js +0 -24
- package/lib/io/flow/harmonization/internal/v0/unions/classificationFeatureSet.js +0 -19
- package/lib/io/flow/harmonization/v0/models/harmonizedItemDuty.js +0 -25
- package/lib/io/flow/harmonization/v0/models/harmonizedItemDutyForm.js +0 -22
- package/lib/io/flow/harmonization/v0/models/harmonizedItemDutyVersion.js +0 -26
- package/lib/io/flow/harmonization/v0/models/harmonizedItemForm.js +0 -23
- package/lib/io/flow/harmonization/v0/models/harmonizedItemPutForm.js +0 -22
- package/lib/io/flow/harmonization/v0/models/harmonizedItemVersion.js +0 -26
- package/lib/io/flow/harmonization/v0/models/hsCode.js +0 -21
- package/lib/io/flow/harmonization/v0/models/phraseHint.js +0 -22
- package/lib/io/flow/harmonization/v0/models/phraseHintForm.js +0 -20
- package/lib/io/flow/harmonization/v0/models/tariffCode.js +0 -21
- package/lib/io/flow/harmonization/v0/unions/hintForm.js +0 -19
- package/lib/io/flow/internal/v0/models/classificationFeaturesCategoryApparel.js +0 -22
- package/lib/io/flow/internal/v0/models/hs10PhraseHintForm.js +0 -21
- package/lib/io/flow/internal/v0/models/internalAuthorizationReference.js +0 -19
- package/lib/io/flow/internal/v0/models/phraseReference.js +0 -19
- package/lib/io/flow/internal/v0/models/productDetailHintForm.js +0 -24
- package/lib/io/flow/internal/v0/models/productPhrase.js +0 -25
- package/lib/io/flow/internal/v0/models/productReference.js +0 -19
- package/lib/io/flow/internal/v0/models/searchItemHs10Code.js +0 -24
- package/lib/io/flow/internal/v0/unions/classificationFeatureSet.js +0 -19
- package/lib/io/flow/internal/v0/unions/shopifyCheckoutBundle.js +0 -19
- package/lib/io/flow/payment/v0/unions/paymentSourceForm.js +0 -19
- package/lib/io/flow/session/v0/models/sessionCustomerAuthorization.js +0 -27
- package/src/io/flow/harmonization/internal/v0/enums/dutyType.js +0 -3
- package/src/io/flow/harmonization/internal/v0/models/classificationFeatureSetDefault.js +0 -7
- package/src/io/flow/harmonization/internal/v0/models/classificationFeaturesCategoryApparel.js +0 -8
- package/src/io/flow/harmonization/internal/v0/models/hs10PhraseHintForm.js +0 -7
- package/src/io/flow/harmonization/internal/v0/models/productDetailHintForm.js +0 -10
- package/src/io/flow/harmonization/internal/v0/models/productPhrase.js +0 -9
- package/src/io/flow/harmonization/internal/v0/models/productPhraseForm.js +0 -6
- package/src/io/flow/harmonization/internal/v0/models/searchItemHs10Code.js +0 -9
- package/src/io/flow/harmonization/internal/v0/unions/classificationFeatureSet.js +0 -4
- package/src/io/flow/harmonization/v0/models/harmonizationSettings.js +0 -7
- package/src/io/flow/harmonization/v0/models/harmonizationSettingsForm.js +0 -7
- package/src/io/flow/harmonization/v0/models/harmonizedItemDuty.js +0 -10
- package/src/io/flow/harmonization/v0/models/harmonizedItemDutyForm.js +0 -8
- package/src/io/flow/harmonization/v0/models/harmonizedItemDutyVersion.js +0 -10
- package/src/io/flow/harmonization/v0/models/harmonizedItemForm.js +0 -9
- package/src/io/flow/harmonization/v0/models/harmonizedItemPutForm.js +0 -8
- package/src/io/flow/harmonization/v0/models/harmonizedItemVersion.js +0 -10
- package/src/io/flow/harmonization/v0/models/hintResult.js +0 -7
- package/src/io/flow/harmonization/v0/models/hs6Version.js +0 -10
- package/src/io/flow/harmonization/v0/models/hsCode.js +0 -7
- package/src/io/flow/harmonization/v0/models/phraseHint.js +0 -7
- package/src/io/flow/harmonization/v0/models/phraseHintForm.js +0 -6
- package/src/io/flow/harmonization/v0/models/tariffCode.js +0 -7
- package/src/io/flow/harmonization/v0/unions/hintForm.js +0 -4
- package/src/io/flow/internal/v0/enums/dutyType.js +0 -3
- package/src/io/flow/internal/v0/models/classificationFeatureSetDefault.js +0 -7
- package/src/io/flow/internal/v0/models/classificationFeaturesCategoryApparel.js +0 -8
- package/src/io/flow/internal/v0/models/hs10PhraseHintForm.js +0 -7
- package/src/io/flow/internal/v0/models/internalAuthorizationReference.js +0 -5
- package/src/io/flow/internal/v0/models/phraseReference.js +0 -5
- package/src/io/flow/internal/v0/models/productDetailHintForm.js +0 -10
- package/src/io/flow/internal/v0/models/productPhrase.js +0 -9
- package/src/io/flow/internal/v0/models/productPhraseForm.js +0 -6
- package/src/io/flow/internal/v0/models/productReference.js +0 -5
- package/src/io/flow/internal/v0/models/searchItemHs10Code.js +0 -9
- package/src/io/flow/internal/v0/unions/classificationFeatureSet.js +0 -4
- package/src/io/flow/internal/v0/unions/shopifyCheckoutBundle.js +0 -4
- package/src/io/flow/payment/v0/unions/paymentSourceForm.js +0 -4
- package/src/io/flow/session/v0/models/sessionCustomerAuthorization.js +0 -10
package/src/index.d.ts
CHANGED
|
@@ -30,6 +30,9 @@ declare const defaultExport: {
|
|
|
30
30
|
adyenInternalCancel: Requireable<any> & Validator<any>;
|
|
31
31
|
adyenInternalCapture: Requireable<any> & Validator<any>;
|
|
32
32
|
adyenInternalRefund: Requireable<any> & Validator<any>;
|
|
33
|
+
adyenMerchantAccount: Requireable<any> & Validator<any>;
|
|
34
|
+
adyenMerchantAccountDeleted: Requireable<any> & Validator<any>;
|
|
35
|
+
adyenMerchantAccountUpserted: Requireable<any> & Validator<any>;
|
|
33
36
|
adyenRefundDeleted: Requireable<any> & Validator<any>;
|
|
34
37
|
adyenRefundForm: Requireable<any> & Validator<any>;
|
|
35
38
|
adyenRefundUpserted: Requireable<any> & Validator<any>;
|
|
@@ -134,6 +137,7 @@ declare const defaultExport: {
|
|
|
134
137
|
checkoutPromptBehavior: Requireable<any> & Validator<any>;
|
|
135
138
|
checkoutSettings: Requireable<any> & Validator<any>;
|
|
136
139
|
checkoutShippingMethodPromptBehavior: Requireable<any> & Validator<any>;
|
|
140
|
+
checkoutSourceOrderForm: Requireable<any> & Validator<any>;
|
|
137
141
|
checkoutSubmitOrderBundle: Requireable<any> & Validator<any>;
|
|
138
142
|
checkoutSubmitOrderBundles: Requireable<any> & Validator<any>;
|
|
139
143
|
checkoutSubmitOrderForm: Requireable<any> & Validator<any>;
|
|
@@ -143,9 +147,6 @@ declare const defaultExport: {
|
|
|
143
147
|
cipherReference: Requireable<any> & Validator<any>;
|
|
144
148
|
classicPaymentRedirectForm: Requireable<any> & Validator<any>;
|
|
145
149
|
classificationAction: Requireable<any> & Validator<any>;
|
|
146
|
-
classificationFeatureSet: Requireable<any> & Validator<any>;
|
|
147
|
-
classificationFeatureSetDefault: Requireable<any> & Validator<any>;
|
|
148
|
-
classificationFeaturesCategoryApparel: Requireable<any> & Validator<any>;
|
|
149
150
|
classificationItem: Requireable<any> & Validator<any>;
|
|
150
151
|
classificationProduct: Requireable<any> & Validator<any>;
|
|
151
152
|
classificationProductId: Requireable<any> & Validator<any>;
|
|
@@ -219,7 +220,6 @@ declare const defaultExport: {
|
|
|
219
220
|
dutyRawUpserted: Requireable<any> & Validator<any>;
|
|
220
221
|
dutySimpleExpression: Requireable<any> & Validator<any>;
|
|
221
222
|
dutySimpleExpressionType: Requireable<any> & Validator<any>;
|
|
222
|
-
dutyType: Requireable<any> & Validator<any>;
|
|
223
223
|
emailForm: Requireable<any> & Validator<any>;
|
|
224
224
|
emailModificationForm: Requireable<any> & Validator<any>;
|
|
225
225
|
encryption: Requireable<any> & Validator<any>;
|
|
@@ -323,7 +323,6 @@ declare const defaultExport: {
|
|
|
323
323
|
harmonizeFullyWithRate: Requireable<any> & Validator<any>;
|
|
324
324
|
harmonizedItemsHs6Export: Requireable<any> & Validator<any>;
|
|
325
325
|
href: Requireable<any> & Validator<any>;
|
|
326
|
-
hs10PhraseHintForm: Requireable<any> & Validator<any>;
|
|
327
326
|
httpMethod: Requireable<any> & Validator<any>;
|
|
328
327
|
importCompleted: Requireable<any> & Validator<any>;
|
|
329
328
|
importFailed: Requireable<any> & Validator<any>;
|
|
@@ -362,7 +361,6 @@ declare const defaultExport: {
|
|
|
362
361
|
internalAuthorization: Requireable<any> & Validator<any>;
|
|
363
362
|
internalAuthorizationDeleted: Requireable<any> & Validator<any>;
|
|
364
363
|
internalAuthorizationDetails: Requireable<any> & Validator<any>;
|
|
365
|
-
internalAuthorizationReference: Requireable<any> & Validator<any>;
|
|
366
364
|
internalAuthorizationUpserted: Requireable<any> & Validator<any>;
|
|
367
365
|
internalBitpayAuthorizationDetails: Requireable<any> & Validator<any>;
|
|
368
366
|
internalCardAuthorizationDetails: Requireable<any> & Validator<any>;
|
|
@@ -454,6 +452,7 @@ declare const defaultExport: {
|
|
|
454
452
|
marketingGatewayConfiguredMarketForm: Requireable<any> & Validator<any>;
|
|
455
453
|
marketingGatewayExistingMarket: Requireable<any> & Validator<any>;
|
|
456
454
|
marketingGatewayExperience: Requireable<any> & Validator<any>;
|
|
455
|
+
marketingGatewayFeed: Requireable<any> & Validator<any>;
|
|
457
456
|
marketingGatewayGoogleCustomLabels: Requireable<any> & Validator<any>;
|
|
458
457
|
marketingGatewayGoogleCustomProductShippingLocation: Requireable<any> & Validator<any>;
|
|
459
458
|
marketingGatewayGoogleMarket: Requireable<any> & Validator<any>;
|
|
@@ -484,6 +483,7 @@ declare const defaultExport: {
|
|
|
484
483
|
marketingGatewayProductStatus: Requireable<any> & Validator<any>;
|
|
485
484
|
marketingGatewayProductsResult: Requireable<any> & Validator<any>;
|
|
486
485
|
marketingGatewayProductsStatusCount: Requireable<any> & Validator<any>;
|
|
486
|
+
marketingGatewaySchemaSummary: Requireable<any> & Validator<any>;
|
|
487
487
|
marketingGatewaySyncStatus: Requireable<any> & Validator<any>;
|
|
488
488
|
nextBillingStatement: Requireable<any> & Validator<any>;
|
|
489
489
|
nextInstallment: Requireable<any> & Validator<any>;
|
|
@@ -571,17 +571,15 @@ declare const defaultExport: {
|
|
|
571
571
|
percentageInstallmentStepForm: Requireable<any> & Validator<any>;
|
|
572
572
|
phraseClassified: Requireable<any> & Validator<any>;
|
|
573
573
|
phrasePropagated: Requireable<any> & Validator<any>;
|
|
574
|
-
phraseReference: Requireable<any> & Validator<any>;
|
|
575
574
|
priceSelector: Requireable<any> & Validator<any>;
|
|
576
575
|
processingTransaction: Requireable<any> & Validator<any>;
|
|
577
576
|
processingTransactionType: Requireable<any> & Validator<any>;
|
|
578
577
|
processor: Requireable<any> & Validator<any>;
|
|
578
|
+
productClassification: Requireable<any> & Validator<any>;
|
|
579
|
+
productClassificationDeleted: Requireable<any> & Validator<any>;
|
|
579
580
|
productClassificationForm: Requireable<any> & Validator<any>;
|
|
580
581
|
productClassificationResult: Requireable<any> & Validator<any>;
|
|
581
|
-
|
|
582
|
-
productPhrase: Requireable<any> & Validator<any>;
|
|
583
|
-
productPhraseForm: Requireable<any> & Validator<any>;
|
|
584
|
-
productReference: Requireable<any> & Validator<any>;
|
|
582
|
+
productClassificationUpserted: Requireable<any> & Validator<any>;
|
|
585
583
|
promptAction: Requireable<any> & Validator<any>;
|
|
586
584
|
promptCheckoutDisplayPosition: Requireable<any> & Validator<any>;
|
|
587
585
|
promptOptions: Requireable<any> & Validator<any>;
|
|
@@ -610,7 +608,6 @@ declare const defaultExport: {
|
|
|
610
608
|
riskEvaluation: Requireable<any> & Validator<any>;
|
|
611
609
|
screen: Requireable<any> & Validator<any>;
|
|
612
610
|
screenForm: Requireable<any> & Validator<any>;
|
|
613
|
-
searchItemHs10Code: Requireable<any> & Validator<any>;
|
|
614
611
|
searchItemHs6Code: Requireable<any> & Validator<any>;
|
|
615
612
|
searchProviderExport: Requireable<any> & Validator<any>;
|
|
616
613
|
secret: Requireable<any> & Validator<any>;
|
|
@@ -625,7 +622,6 @@ declare const defaultExport: {
|
|
|
625
622
|
shop: Requireable<any> & Validator<any>;
|
|
626
623
|
shopForm: Requireable<any> & Validator<any>;
|
|
627
624
|
shopVersion: Requireable<any> & Validator<any>;
|
|
628
|
-
shopifyCheckoutBundle: Requireable<any> & Validator<any>;
|
|
629
625
|
shopifyCodeForm: Requireable<any> & Validator<any>;
|
|
630
626
|
shopifyExperienceShortId: Requireable<any> & Validator<any>;
|
|
631
627
|
shopifyExperienceShortIdDeleted: Requireable<any> & Validator<any>;
|
|
@@ -711,6 +707,8 @@ declare const defaultExport: {
|
|
|
711
707
|
taskSummarizeCode: Requireable<any> & Validator<any>;
|
|
712
708
|
taxAmount: Requireable<any> & Validator<any>;
|
|
713
709
|
taxCalculation: Requireable<any> & Validator<any>;
|
|
710
|
+
taxCalculationError: Requireable<any> & Validator<any>;
|
|
711
|
+
taxCalculationErrorCode: Requireable<any> & Validator<any>;
|
|
714
712
|
taxCalculationForm: Requireable<any> & Validator<any>;
|
|
715
713
|
taxCalculationLineItem: Requireable<any> & Validator<any>;
|
|
716
714
|
taxCalculationLineItemForm: Requireable<any> & Validator<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import fieldValidationRule from '../../../field/validation/v0/unions/fieldValidationRule';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
first_name: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
6
|
+
last_name: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
7
|
+
street_1: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
8
|
+
street_2: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
9
|
+
city: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
10
|
+
province: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
11
|
+
postal: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
12
|
+
phone: PropTypes.arrayOf(fieldValidationRule).isRequired,
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import fieldValidationRequired from '../models/fieldValidationRequired';
|
|
3
|
+
import fieldValidationMin from '../models/fieldValidationMin';
|
|
4
|
+
import fieldValidationMax from '../models/fieldValidationMax';
|
|
5
|
+
import fieldValidationPattern from '../models/fieldValidationPattern';
|
|
6
|
+
|
|
7
|
+
export default PropTypes.oneOfType([
|
|
8
|
+
fieldValidationRequired,
|
|
9
|
+
fieldValidationMin,
|
|
10
|
+
fieldValidationMax,
|
|
11
|
+
fieldValidationPattern,
|
|
12
|
+
]);
|
|
@@ -18,6 +18,8 @@ export default PropTypes.oneOf([
|
|
|
18
18
|
'catalog_item_region_availabilities_published',
|
|
19
19
|
'checkout_configuration_upserted',
|
|
20
20
|
'checkout_configuration_deleted',
|
|
21
|
+
'product_classification_upserted',
|
|
22
|
+
'product_classification_deleted',
|
|
21
23
|
'localized_content_upserted',
|
|
22
24
|
'localization_upserted',
|
|
23
25
|
'rate_deleted',
|
|
@@ -109,6 +111,8 @@ export default PropTypes.oneOf([
|
|
|
109
111
|
'afterpay_capture_deleted',
|
|
110
112
|
'afterpay_refund_upserted',
|
|
111
113
|
'afterpay_refund_deleted',
|
|
114
|
+
'adyen_merchant_account_upserted',
|
|
115
|
+
'adyen_merchant_account_deleted',
|
|
112
116
|
'paypal_payment_deleted',
|
|
113
117
|
'paypal_payment_upserted',
|
|
114
118
|
'paypal_execution_deleted',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import adyenMerchantAccount from './adyenMerchantAccount';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
event_id: PropTypes.string.isRequired,
|
|
6
|
+
timestamp: PropTypes.string.isRequired,
|
|
7
|
+
adyen_merchant_account: adyenMerchantAccount.isRequired,
|
|
8
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import adyenMerchantAccount from './adyenMerchantAccount';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
event_id: PropTypes.string.isRequired,
|
|
6
|
+
timestamp: PropTypes.string.isRequired,
|
|
7
|
+
adyen_merchant_account: adyenMerchantAccount.isRequired,
|
|
8
|
+
});
|
|
@@ -4,5 +4,5 @@ import afterpayAuthorization from './afterpayAuthorization';
|
|
|
4
4
|
export default PropTypes.shape({
|
|
5
5
|
event_id: PropTypes.string.isRequired,
|
|
6
6
|
timestamp: PropTypes.string.isRequired,
|
|
7
|
-
|
|
7
|
+
afterpay_authorization: afterpayAuthorization.isRequired,
|
|
8
8
|
});
|
|
@@ -4,5 +4,5 @@ import afterpayAuthorization from './afterpayAuthorization';
|
|
|
4
4
|
export default PropTypes.shape({
|
|
5
5
|
event_id: PropTypes.string.isRequired,
|
|
6
6
|
timestamp: PropTypes.string.isRequired,
|
|
7
|
-
|
|
7
|
+
afterpay_authorization: afterpayAuthorization.isRequired,
|
|
8
8
|
});
|
|
@@ -10,6 +10,7 @@ import province from '../../../reference/v0/models/province';
|
|
|
10
10
|
import checkoutItemContent from '../../../experience/v0/models/checkoutItemContent';
|
|
11
11
|
import checkoutMetadata from '../../../checkout/internal/v0/models/checkoutMetadata';
|
|
12
12
|
import checkoutConfiguration from '../../../checkout/configuration/v0/models/checkoutConfiguration';
|
|
13
|
+
import addressConfiguration from '../../../experience/v0/models/addressConfiguration';
|
|
13
14
|
|
|
14
15
|
export default PropTypes.shape({
|
|
15
16
|
cart: shopifyCart,
|
|
@@ -23,4 +24,5 @@ export default PropTypes.shape({
|
|
|
23
24
|
checkout_items: PropTypes.arrayOf(checkoutItemContent).isRequired,
|
|
24
25
|
metadata: checkoutMetadata,
|
|
25
26
|
configuration: checkoutConfiguration,
|
|
27
|
+
address_configurations: PropTypes.arrayOf(addressConfiguration),
|
|
26
28
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import internalAuthorizationReference from './internalAuthorizationReference';
|
|
3
2
|
import processor from '../../../payment/internal/v0/enums/processor';
|
|
4
3
|
|
|
5
4
|
export default PropTypes.shape({
|
|
6
|
-
|
|
5
|
+
id: PropTypes.string.isRequired,
|
|
7
6
|
processor: processor.isRequired,
|
|
8
7
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import organizationSummary from '../../../common/v0/models/organizationSummary';
|
|
3
|
+
import experienceSummary from '../../../common/v0/models/experienceSummary';
|
|
4
|
+
import marketingGatewaySchemaSummary from './marketingGatewaySchemaSummary';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
id: PropTypes.string.isRequired,
|
|
8
|
+
organization: organizationSummary.isRequired,
|
|
9
|
+
experience: experienceSummary.isRequired,
|
|
10
|
+
schema: marketingGatewaySchemaSummary.isRequired,
|
|
11
|
+
country: PropTypes.string.isRequired,
|
|
12
|
+
currency: PropTypes.string.isRequired,
|
|
13
|
+
language: PropTypes.string.isRequired,
|
|
14
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import productClassification from './productClassification';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
event_id: PropTypes.string.isRequired,
|
|
6
|
+
timestamp: PropTypes.string.isRequired,
|
|
7
|
+
organization: PropTypes.string.isRequired,
|
|
8
|
+
product_id: PropTypes.string.isRequired,
|
|
9
|
+
classification: productClassification.isRequired,
|
|
10
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import productClassification from './productClassification';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
event_id: PropTypes.string.isRequired,
|
|
6
|
+
timestamp: PropTypes.string.isRequired,
|
|
7
|
+
organization: PropTypes.string.isRequired,
|
|
8
|
+
product_id: PropTypes.string.isRequired,
|
|
9
|
+
classification: productClassification.isRequired,
|
|
10
|
+
});
|
|
@@ -16,6 +16,8 @@ import catalogImportRequest from '../models/catalogImportRequest';
|
|
|
16
16
|
import catalogItemRegionAvailabilitiesPublished from '../models/catalogItemRegionAvailabilitiesPublished';
|
|
17
17
|
import checkoutConfigurationUpserted from '../models/checkoutConfigurationUpserted';
|
|
18
18
|
import checkoutConfigurationDeleted from '../models/checkoutConfigurationDeleted';
|
|
19
|
+
import productClassificationUpserted from '../models/productClassificationUpserted';
|
|
20
|
+
import productClassificationDeleted from '../models/productClassificationDeleted';
|
|
19
21
|
import localizedContentUpserted from '../models/localizedContentUpserted';
|
|
20
22
|
import localizationUpserted from '../models/localizationUpserted';
|
|
21
23
|
import rateDeleted from '../models/rateDeleted';
|
|
@@ -107,6 +109,8 @@ import afterpayCaptureUpserted from '../models/afterpayCaptureUpserted';
|
|
|
107
109
|
import afterpayCaptureDeleted from '../models/afterpayCaptureDeleted';
|
|
108
110
|
import afterpayRefundUpserted from '../models/afterpayRefundUpserted';
|
|
109
111
|
import afterpayRefundDeleted from '../models/afterpayRefundDeleted';
|
|
112
|
+
import adyenMerchantAccountUpserted from '../models/adyenMerchantAccountUpserted';
|
|
113
|
+
import adyenMerchantAccountDeleted from '../models/adyenMerchantAccountDeleted';
|
|
110
114
|
import paypalPaymentDeleted from '../models/paypalPaymentDeleted';
|
|
111
115
|
import paypalPaymentUpserted from '../models/paypalPaymentUpserted';
|
|
112
116
|
import paypalExecutionDeleted from '../models/paypalExecutionDeleted';
|
|
@@ -151,6 +155,8 @@ export default PropTypes.oneOfType([
|
|
|
151
155
|
catalogItemRegionAvailabilitiesPublished,
|
|
152
156
|
checkoutConfigurationUpserted,
|
|
153
157
|
checkoutConfigurationDeleted,
|
|
158
|
+
productClassificationUpserted,
|
|
159
|
+
productClassificationDeleted,
|
|
154
160
|
localizedContentUpserted,
|
|
155
161
|
localizationUpserted,
|
|
156
162
|
rateDeleted,
|
|
@@ -242,6 +248,8 @@ export default PropTypes.oneOfType([
|
|
|
242
248
|
afterpayCaptureDeleted,
|
|
243
249
|
afterpayRefundUpserted,
|
|
244
250
|
afterpayRefundDeleted,
|
|
251
|
+
adyenMerchantAccountUpserted,
|
|
252
|
+
adyenMerchantAccountDeleted,
|
|
245
253
|
paypalPaymentDeleted,
|
|
246
254
|
paypalPaymentUpserted,
|
|
247
255
|
paypalExecutionDeleted,
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import organizationSessionAuthorization from '../models/organizationSessionAuthorization';
|
|
3
|
-
import sessionCustomerAuthorization from '../models/sessionCustomerAuthorization';
|
|
4
3
|
|
|
5
|
-
export default PropTypes.oneOfType([
|
|
6
|
-
organizationSessionAuthorization,
|
|
7
|
-
sessionCustomerAuthorization,
|
|
8
|
-
]);
|
|
4
|
+
export default PropTypes.oneOfType([organizationSessionAuthorization]);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyCartItem from './shopifyCartItem';
|
|
3
|
+
import shopifyDiscountApplication from './shopifyDiscountApplication';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
token: PropTypes.string.isRequired,
|
|
7
|
+
note: PropTypes.string,
|
|
8
|
+
attributes: PropTypes.object,
|
|
9
|
+
items_subtotal_price: PropTypes.number,
|
|
10
|
+
total_price: PropTypes.number.isRequired,
|
|
11
|
+
total_weight: PropTypes.number.isRequired,
|
|
12
|
+
total_discount: PropTypes.number.isRequired,
|
|
13
|
+
original_total_price: PropTypes.number.isRequired,
|
|
14
|
+
item_count: PropTypes.number.isRequired,
|
|
15
|
+
requires_shipping: PropTypes.bool.isRequired,
|
|
16
|
+
currency: PropTypes.string,
|
|
17
|
+
items: PropTypes.arrayOf(shopifyCartItem).isRequired,
|
|
18
|
+
cart_level_discount_applications: PropTypes.arrayOf(
|
|
19
|
+
shopifyDiscountApplication
|
|
20
|
+
),
|
|
21
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyCartItemDiscount from './shopifyCartItemDiscount';
|
|
3
|
+
import shopifyLineLevelDiscountAllocation from './shopifyLineLevelDiscountAllocation';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
id: PropTypes.number.isRequired,
|
|
7
|
+
title: PropTypes.string.isRequired,
|
|
8
|
+
key: PropTypes.string,
|
|
9
|
+
price: PropTypes.number.isRequired,
|
|
10
|
+
line_price: PropTypes.number.isRequired,
|
|
11
|
+
final_price: PropTypes.number.isRequired,
|
|
12
|
+
final_line_price: PropTypes.number.isRequired,
|
|
13
|
+
original_price: PropTypes.number.isRequired,
|
|
14
|
+
original_line_price: PropTypes.number.isRequired,
|
|
15
|
+
total_discount: PropTypes.number.isRequired,
|
|
16
|
+
discounted_price: PropTypes.number.isRequired,
|
|
17
|
+
discounts: PropTypes.arrayOf(shopifyCartItemDiscount),
|
|
18
|
+
taxable: PropTypes.bool.isRequired,
|
|
19
|
+
quantity: PropTypes.number.isRequired,
|
|
20
|
+
sku: PropTypes.string,
|
|
21
|
+
grams: PropTypes.number,
|
|
22
|
+
vendor: PropTypes.string,
|
|
23
|
+
properties: PropTypes.object,
|
|
24
|
+
variant_id: PropTypes.number,
|
|
25
|
+
gift_card: PropTypes.bool.isRequired,
|
|
26
|
+
url: PropTypes.string.isRequired,
|
|
27
|
+
image: PropTypes.string,
|
|
28
|
+
handle: PropTypes.string.isRequired,
|
|
29
|
+
requires_shipping: PropTypes.bool.isRequired,
|
|
30
|
+
product_id: PropTypes.number.isRequired,
|
|
31
|
+
product_title: PropTypes.string.isRequired,
|
|
32
|
+
product_description: PropTypes.string,
|
|
33
|
+
product_type: PropTypes.string.isRequired,
|
|
34
|
+
variant_title: PropTypes.string.isRequired,
|
|
35
|
+
variant_options: PropTypes.arrayOf(PropTypes.string),
|
|
36
|
+
line_level_discount_allocations: PropTypes.arrayOf(
|
|
37
|
+
shopifyLineLevelDiscountAllocation
|
|
38
|
+
),
|
|
39
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export default PropTypes.shape({
|
|
4
|
+
type: PropTypes.string.isRequired,
|
|
5
|
+
key: PropTypes.string.isRequired,
|
|
6
|
+
title: PropTypes.string.isRequired,
|
|
7
|
+
description: PropTypes.string,
|
|
8
|
+
value: PropTypes.string.isRequired,
|
|
9
|
+
created_at: PropTypes.string.isRequired,
|
|
10
|
+
value_type: PropTypes.string.isRequired,
|
|
11
|
+
allocation_method: PropTypes.string.isRequired,
|
|
12
|
+
target_selection: PropTypes.string.isRequired,
|
|
13
|
+
target_type: PropTypes.string.isRequired,
|
|
14
|
+
total_allocated_amount: PropTypes.number.isRequired,
|
|
15
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyCartFlowRepresentation from './shopifyCartFlowRepresentation';
|
|
3
|
+
import shopifyCartShopifyRepresentation from './shopifyCartShopifyRepresentation';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
flow: shopifyCartFlowRepresentation.isRequired,
|
|
7
|
+
shopify: shopifyCartShopifyRepresentation.isRequired,
|
|
8
|
+
});
|