@flowio/api-internal-prop-types 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/lib/index.d.ts +33 -10
- package/lib/io/flow/adyen/v0/models/authorizeRequest.js +8 -1
- package/lib/io/flow/adyen/v0/models/threeDSecureData.js +20 -0
- package/lib/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +1 -1
- package/lib/io/flow/billing/v0/enums/billingTransactionType.js +1 -1
- package/lib/io/flow/common/v0/models/merchantOfRecordEntity.js +5 -0
- package/lib/io/flow/common/v0/models/organization.js +6 -1
- package/lib/io/flow/common/v0/models/organizationDefaults.js +19 -0
- package/lib/io/flow/fraud/internal/v0/enums/fraudEmailRuleDecision.js +13 -0
- package/lib/io/flow/fraud/internal/v0/enums/riskEvaluation.js +13 -0
- package/lib/io/flow/fraud/internal/v0/models/decision.js +3 -1
- package/lib/io/flow/fraud/internal/v0/models/fraudEmailRule.js +20 -0
- package/lib/io/flow/fraud/internal/v0/models/fraudEmailRuleForm.js +19 -0
- package/lib/io/flow/fraud/internal/v0/models/fraudReview.js +5 -0
- package/lib/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +1 -1
- package/lib/io/flow/internal/v0/enums/billingTransactionType.js +1 -1
- package/lib/io/flow/internal/v0/enums/fraudEmailRuleDecision.js +13 -0
- package/lib/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +13 -0
- package/lib/io/flow/internal/v0/enums/paymentTerm.js +1 -1
- package/lib/io/flow/internal/v0/enums/riskEvaluation.js +13 -0
- package/lib/io/flow/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +13 -0
- package/lib/io/flow/internal/v0/enums/transferTransactionSource.js +13 -0
- package/lib/io/flow/internal/v0/models/authorizationParameters.js +16 -0
- package/lib/io/flow/internal/v0/models/authorizationParametersForm.js +23 -0
- package/lib/io/flow/internal/v0/models/bankPayment.js +1 -0
- package/lib/io/flow/internal/v0/models/{marketingAccountSummary.js → billingInvoiceSummary.js} +1 -2
- package/lib/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +24 -0
- package/lib/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +20 -0
- package/lib/io/flow/internal/v0/models/decision.js +3 -1
- package/lib/io/flow/internal/v0/models/fraudEmailRule.js +20 -0
- package/lib/io/flow/internal/v0/models/fraudEmailRuleForm.js +19 -0
- package/lib/io/flow/internal/v0/models/fraudReview.js +5 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayAccount.js +38 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +19 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnectionForm.js +16 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +36 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +25 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayCountryLanguage.js +16 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +21 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayLocalizationFlowCountry.js +15 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayLocalizationFlowExperience.js +19 -0
- package/lib/io/flow/internal/v0/models/marketingGatewayProduct.js +35 -0
- package/lib/io/flow/internal/v0/models/pendingBankPayment.js +1 -1
- package/lib/io/flow/internal/v0/models/pendingBankPaymentTaxRemittanceDetail.js +19 -0
- package/lib/io/flow/internal/v0/models/{pendingBankPaymentDetail.js → pendingBankPaymentTransferDetail.js} +6 -6
- package/lib/io/flow/internal/v0/models/searchProviderExport.js +15 -0
- package/lib/io/flow/internal/v0/models/shopifyPromotionOrderEntitlement.js +24 -0
- package/lib/io/flow/internal/v0/models/taxRemittanceTransaction.js +43 -0
- package/lib/io/flow/internal/v0/models/transferTransaction.js +5 -0
- package/lib/io/flow/internal/v0/unions/checkoutSubmitOrderBundles.js +17 -0
- package/lib/io/flow/internal/v0/unions/checkoutSubmitOrderForms.js +17 -0
- package/lib/io/flow/internal/v0/unions/marketingGatewayLocalization.js +21 -0
- package/lib/io/flow/internal/v0/unions/pendingBankPaymentDetail.js +21 -0
- package/lib/io/flow/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/lib/io/flow/internal/v0/unions/transaction.js +5 -1
- package/lib/io/flow/invoice/v0/enums/paymentTerm.js +1 -1
- package/lib/io/flow/payment/v0/models/applePayMerchantValidationPayload.js +16 -0
- package/lib/io/flow/payment/v0/models/authorizationPayload.js +19 -0
- package/lib/io/flow/payment/v0/models/authorizationResult.js +6 -1
- package/lib/io/flow/payment/v0/models/authorizationResultDescription.js +15 -0
- package/lib/io/flow/payment/v0/models/googlePayAuthorizationPayload.js +15 -0
- package/lib/io/flow/payment/v0/models/inlineAuthorizationDetails.js +2 -1
- package/lib/io/flow/payment/v0/models/inlineAuthorizationForm.js +6 -1
- package/lib/io/flow/payment/v0/unions/authorizationPayloadParameters.js +21 -0
- package/lib/io/flow/price/v0/models/priceBookItem.js +2 -1
- package/lib/io/flow/price/v0/models/priceBookItemForm.js +2 -1
- package/lib/io/flow/shopify/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +13 -0
- package/lib/io/flow/shopify/internal/v0/models/shopifyPromotionOrderEntitlement.js +24 -0
- package/lib/io/flow/shopify/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/lib/io/flow/shopify/{internal/v0 → v0}/models/shopifyLine.js +1 -1
- package/lib/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +2 -1
- package/lib/io/flow/{internal → shopify}/v0/models/shopifyLocalizedOrder.js +1 -1
- package/lib/io/flow/shopify/v0/models/shopifyOrderPriceAttributesMetafield.js +20 -0
- package/lib/mocks.js +34 -11
- package/lib/validators.js +154 -39
- package/package.json +1 -1
- package/src/index.d.ts +33 -10
- package/src/io/flow/adyen/v0/models/authorizeRequest.js +4 -0
- package/src/io/flow/adyen/v0/models/threeDSecureData.js +10 -0
- package/src/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +7 -1
- package/src/io/flow/billing/v0/enums/billingTransactionType.js +1 -0
- package/src/io/flow/common/v0/models/merchantOfRecordEntity.js +2 -0
- package/src/io/flow/common/v0/models/organization.js +2 -0
- package/src/io/flow/common/v0/models/organizationDefaults.js +9 -0
- package/src/io/flow/fraud/internal/v0/enums/fraudEmailRuleDecision.js +3 -0
- package/src/io/flow/fraud/internal/v0/enums/riskEvaluation.js +9 -0
- package/src/io/flow/fraud/internal/v0/models/decision.js +3 -1
- package/src/io/flow/fraud/internal/v0/models/fraudEmailRule.js +7 -0
- package/src/io/flow/fraud/internal/v0/models/fraudEmailRuleForm.js +6 -0
- package/src/io/flow/fraud/internal/v0/models/fraudReview.js +2 -0
- package/src/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +7 -1
- package/src/io/flow/internal/v0/enums/billingTransactionType.js +1 -0
- package/src/io/flow/internal/v0/enums/fraudEmailRuleDecision.js +3 -0
- package/src/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +9 -0
- package/src/io/flow/internal/v0/enums/paymentTerm.js +1 -1
- package/src/io/flow/internal/v0/enums/riskEvaluation.js +9 -0
- package/src/io/flow/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +3 -0
- package/src/io/flow/internal/v0/enums/transferTransactionSource.js +3 -0
- package/src/io/flow/internal/v0/models/authorizationParameters.js +6 -0
- package/src/io/flow/internal/v0/models/authorizationParametersForm.js +10 -0
- package/src/io/flow/internal/v0/models/bankPayment.js +1 -0
- package/src/io/flow/internal/v0/models/billingInvoiceSummary.js +6 -0
- package/src/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +8 -0
- package/src/io/flow/internal/v0/models/checkoutSubmitOrderForm.js +7 -0
- package/src/io/flow/internal/v0/models/decision.js +3 -1
- package/src/io/flow/internal/v0/models/fraudEmailRule.js +7 -0
- package/src/io/flow/internal/v0/models/fraudEmailRuleForm.js +6 -0
- package/src/io/flow/internal/v0/models/fraudReview.js +2 -0
- package/src/io/flow/internal/v0/models/marketingGatewayAccount.js +17 -0
- package/src/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayAccountConnectionForm.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +14 -0
- package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +9 -0
- package/src/io/flow/internal/v0/models/marketingGatewayCountryLanguage.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayExistingMarket.js +8 -0
- package/src/io/flow/internal/v0/models/marketingGatewayLocalizationFlowCountry.js +5 -0
- package/src/io/flow/internal/v0/models/marketingGatewayLocalizationFlowExperience.js +6 -0
- package/src/io/flow/internal/v0/models/marketingGatewayProduct.js +16 -0
- package/src/io/flow/internal/v0/models/pendingBankPayment.js +1 -1
- package/src/io/flow/internal/v0/models/pendingBankPaymentTaxRemittanceDetail.js +6 -0
- package/src/io/flow/internal/v0/models/{pendingBankPaymentDetail.js → pendingBankPaymentTransferDetail.js} +2 -2
- package/src/io/flow/internal/v0/models/{marketingAccountSummary.js → searchProviderExport.js} +0 -2
- package/src/io/flow/internal/v0/models/shopifyPromotionOrderEntitlement.js +9 -0
- package/src/io/flow/internal/v0/models/taxRemittanceTransaction.js +18 -0
- package/src/io/flow/internal/v0/models/transferTransaction.js +2 -0
- package/src/io/flow/internal/v0/unions/checkoutSubmitOrderBundles.js +4 -0
- package/src/io/flow/internal/v0/unions/checkoutSubmitOrderForms.js +4 -0
- package/src/io/flow/internal/v0/unions/marketingGatewayLocalization.js +8 -0
- package/src/io/flow/internal/v0/unions/pendingBankPaymentDetail.js +8 -0
- package/src/io/flow/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/src/io/flow/internal/v0/unions/transaction.js +2 -0
- package/src/io/flow/invoice/v0/enums/paymentTerm.js +1 -1
- package/src/io/flow/payment/v0/models/applePayMerchantValidationPayload.js +6 -0
- package/src/io/flow/payment/v0/models/authorizationPayload.js +6 -0
- package/src/io/flow/payment/v0/models/authorizationResult.js +2 -0
- package/src/io/flow/payment/v0/models/authorizationResultDescription.js +5 -0
- package/src/io/flow/payment/v0/models/googlePayAuthorizationPayload.js +5 -0
- package/src/io/flow/payment/v0/models/inlineAuthorizationDetails.js +2 -1
- package/src/io/flow/payment/v0/models/inlineAuthorizationForm.js +2 -0
- package/src/io/flow/payment/v0/unions/authorizationPayloadParameters.js +8 -0
- package/src/io/flow/price/v0/models/priceBookItem.js +1 -0
- package/src/io/flow/price/v0/models/priceBookItemForm.js +1 -0
- package/src/io/flow/shopify/internal/v0/enums/shopifyPromotionOrderEntitlementComponent.js +3 -0
- package/src/io/flow/shopify/internal/v0/models/shopifyPromotionOrderEntitlement.js +9 -0
- package/src/io/flow/shopify/internal/v0/unions/shopifyPromotionOfferEntitlement.js +5 -1
- package/src/io/flow/shopify/{internal/v0 → v0}/models/shopifyLine.js +1 -1
- package/src/io/flow/shopify/v0/models/shopifyLocalCartMetadata.js +1 -0
- package/src/io/flow/{internal → shopify}/v0/models/shopifyLocalizedOrder.js +1 -1
- package/src/io/flow/shopify/v0/models/shopifyOrderPriceAttributesMetafield.js +7 -0
- package/src/mocks.js +34 -11
- package/src/validators.js +68 -22
- package/lib/io/flow/internal/v0/models/marketingAccount.js +0 -27
- package/lib/io/flow/internal/v0/models/marketingConnection.js +0 -25
- package/lib/io/flow/internal/v0/models/marketingConnectionForm.js +0 -24
- package/lib/io/flow/internal/v0/models/marketingProduct.js +0 -32
- package/lib/io/flow/internal/v0/models/shopifyLine.js +0 -22
- package/lib/io/flow/shopify/internal/v0/models/shopifyLocalizedOrder.js +0 -52
- package/lib/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +0 -50
- package/src/io/flow/internal/v0/models/marketingAccount.js +0 -11
- package/src/io/flow/internal/v0/models/marketingConnection.js +0 -9
- package/src/io/flow/internal/v0/models/marketingConnectionForm.js +0 -11
- package/src/io/flow/internal/v0/models/marketingProduct.js +0 -16
- package/src/io/flow/internal/v0/models/shopifyLine.js +0 -9
- package/src/io/flow/shopify/internal/v0/models/shopifyLocalizedOrder.js +0 -21
- package/src/io/flow/shopify/v0/models/shopifyOrderMetafieldValue.js +0 -19
- /package/lib/io/flow/internal/v0/enums/{platform.js → marketingGatewayPlatform.js} +0 -0
- /package/lib/io/flow/internal/v0/models/{marketingProductPrice.js → marketingGatewayProductPrice.js} +0 -0
- /package/lib/io/flow/internal/v0/models/{marketingProductWarning.js → marketingGatewayProductWarning.js} +0 -0
- /package/src/io/flow/internal/v0/enums/{platform.js → marketingGatewayPlatform.js} +0 -0
- /package/src/io/flow/internal/v0/models/{marketingProductPrice.js → marketingGatewayProductPrice.js} +0 -0
- /package/src/io/flow/internal/v0/models/{marketingProductWarning.js → marketingGatewayProductWarning.js} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import environment from '../enums/environment';
|
|
3
3
|
import organizationReference from './organizationReference';
|
|
4
|
+
import organizationDefaults from './organizationDefaults';
|
|
4
5
|
|
|
5
6
|
export default PropTypes.shape({
|
|
6
7
|
id: PropTypes.string.isRequired,
|
|
7
8
|
name: PropTypes.string.isRequired,
|
|
8
9
|
environment: environment.isRequired,
|
|
9
10
|
parent: organizationReference,
|
|
11
|
+
defaults: organizationDefaults,
|
|
10
12
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export default PropTypes.shape({
|
|
4
|
+
country: PropTypes.string.isRequired,
|
|
5
|
+
base_currency: PropTypes.string.isRequired,
|
|
6
|
+
language: PropTypes.string.isRequired,
|
|
7
|
+
locale: PropTypes.string.isRequired,
|
|
8
|
+
timezone: PropTypes.string.isRequired,
|
|
9
|
+
});
|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
export default PropTypes.shape({
|
|
4
4
|
id: PropTypes.string.isRequired,
|
|
5
5
|
status: PropTypes.string.isRequired,
|
|
6
|
-
description: PropTypes.string.isRequired,
|
|
7
6
|
old_status: PropTypes.string.isRequired,
|
|
7
|
+
description: PropTypes.string.isRequired,
|
|
8
|
+
category: PropTypes.string,
|
|
9
|
+
shop_url: PropTypes.string,
|
|
8
10
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import orderReference from '../../../../experience/v0/models/orderReference';
|
|
3
3
|
import fraudStatus from '../../../v0/enums/fraudStatus';
|
|
4
|
+
import riskEvaluation from '../enums/riskEvaluation';
|
|
4
5
|
import fraudLiability from '../../../v0/enums/fraudLiability';
|
|
5
6
|
|
|
6
7
|
export default PropTypes.shape({
|
|
@@ -9,6 +10,7 @@ export default PropTypes.shape({
|
|
|
9
10
|
order: orderReference.isRequired,
|
|
10
11
|
status: fraudStatus.isRequired,
|
|
11
12
|
description: PropTypes.string,
|
|
13
|
+
risk_evaluation: riskEvaluation,
|
|
12
14
|
liability: fraudLiability,
|
|
13
15
|
status_updated_at: PropTypes.string,
|
|
14
16
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
order_number: PropTypes.string.isRequired,
|
|
6
|
+
amount: PropTypes.number.isRequired,
|
|
7
|
+
currency: PropTypes.string.isRequired,
|
|
8
|
+
billing_address: billingAddress,
|
|
9
|
+
ip: PropTypes.string,
|
|
10
|
+
});
|
|
@@ -4,6 +4,7 @@ import price from '../../../common/v0/models/price';
|
|
|
4
4
|
|
|
5
5
|
export default PropTypes.shape({
|
|
6
6
|
id: PropTypes.string.isRequired,
|
|
7
|
+
key: PropTypes.string.isRequired,
|
|
7
8
|
account: accountReference.isRequired,
|
|
8
9
|
reference: PropTypes.string,
|
|
9
10
|
sent_on: PropTypes.string.isRequired,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import order from '../../../experience/v0/models/order';
|
|
3
|
+
import authorizationResultAction from '../../../payment/v0/models/authorizationResultAction';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
order: order,
|
|
7
|
+
redirect: authorizationResultAction,
|
|
8
|
+
});
|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
export default PropTypes.shape({
|
|
4
4
|
id: PropTypes.string.isRequired,
|
|
5
5
|
status: PropTypes.string.isRequired,
|
|
6
|
-
description: PropTypes.string.isRequired,
|
|
7
6
|
old_status: PropTypes.string.isRequired,
|
|
7
|
+
description: PropTypes.string.isRequired,
|
|
8
|
+
category: PropTypes.string,
|
|
9
|
+
shop_url: PropTypes.string,
|
|
8
10
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import orderReference from '../../../experience/v0/models/orderReference';
|
|
3
3
|
import fraudStatus from '../../../fraud/v0/enums/fraudStatus';
|
|
4
|
+
import riskEvaluation from '../enums/riskEvaluation';
|
|
4
5
|
import fraudLiability from '../../../fraud/v0/enums/fraudLiability';
|
|
5
6
|
|
|
6
7
|
export default PropTypes.shape({
|
|
@@ -9,6 +10,7 @@ export default PropTypes.shape({
|
|
|
9
10
|
order: orderReference.isRequired,
|
|
10
11
|
status: fraudStatus.isRequired,
|
|
11
12
|
description: PropTypes.string,
|
|
13
|
+
risk_evaluation: riskEvaluation,
|
|
12
14
|
liability: fraudLiability,
|
|
13
15
|
status_updated_at: PropTypes.string,
|
|
14
16
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayPlatform from '../enums/marketingGatewayPlatform';
|
|
3
|
+
import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
|
|
4
|
+
import marketingGatewayExistingMarket from './marketingGatewayExistingMarket';
|
|
5
|
+
import marketingGatewayConfiguredMarket from './marketingGatewayConfiguredMarket';
|
|
6
|
+
|
|
7
|
+
export default PropTypes.shape({
|
|
8
|
+
id: PropTypes.string.isRequired,
|
|
9
|
+
platform: marketingGatewayPlatform.isRequired,
|
|
10
|
+
name: PropTypes.string.isRequired,
|
|
11
|
+
aggregator_id: PropTypes.string,
|
|
12
|
+
sync_status: marketingGatewaySyncStatus.isRequired,
|
|
13
|
+
synced_at: PropTypes.string,
|
|
14
|
+
existing_market: PropTypes.arrayOf(marketingGatewayExistingMarket).isRequired,
|
|
15
|
+
configured_market: PropTypes.arrayOf(marketingGatewayConfiguredMarket)
|
|
16
|
+
.isRequired,
|
|
17
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayExistingMarket from './marketingGatewayExistingMarket';
|
|
3
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
4
|
+
import marketingGatewayLocalization from '../unions/marketingGatewayLocalization';
|
|
5
|
+
import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
|
|
6
|
+
|
|
7
|
+
export default PropTypes.shape({
|
|
8
|
+
id: PropTypes.string.isRequired,
|
|
9
|
+
source: marketingGatewayExistingMarket.isRequired,
|
|
10
|
+
target: marketingGatewayCountryLanguage.isRequired,
|
|
11
|
+
localization: marketingGatewayLocalization.isRequired,
|
|
12
|
+
sync_status: marketingGatewaySyncStatus.isRequired,
|
|
13
|
+
synced_at: PropTypes.string,
|
|
14
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
3
|
+
import marketingGatewayLocalization from '../unions/marketingGatewayLocalization';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
source_id: PropTypes.string.isRequired,
|
|
7
|
+
target: marketingGatewayCountryLanguage.isRequired,
|
|
8
|
+
localization: marketingGatewayLocalization.isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
id: PropTypes.string.isRequired,
|
|
6
|
+
country_language: marketingGatewayCountryLanguage.isRequired,
|
|
7
|
+
product_count: PropTypes.number.isRequired,
|
|
8
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import marketingGatewayCountryLanguage from './marketingGatewayCountryLanguage';
|
|
3
|
+
import marketingGatewayProductPrice from './marketingGatewayProductPrice';
|
|
4
|
+
import marketingGatewayProductWarning from './marketingGatewayProductWarning';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
id: PropTypes.string.isRequired,
|
|
8
|
+
title: PropTypes.string.isRequired,
|
|
9
|
+
description: PropTypes.string,
|
|
10
|
+
link: PropTypes.string.isRequired,
|
|
11
|
+
country_language: marketingGatewayCountryLanguage.isRequired,
|
|
12
|
+
brand: PropTypes.string.isRequired,
|
|
13
|
+
color: PropTypes.string.isRequired,
|
|
14
|
+
price: marketingGatewayProductPrice.isRequired,
|
|
15
|
+
warnings: PropTypes.arrayOf(marketingGatewayProductWarning).isRequired,
|
|
16
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import accountReference from '../../../billing/v0/models/accountReference';
|
|
3
3
|
import price from '../../../common/v0/models/price';
|
|
4
|
-
import pendingBankPaymentDetail from '
|
|
4
|
+
import pendingBankPaymentDetail from '../unions/pendingBankPaymentDetail';
|
|
5
5
|
|
|
6
6
|
export default PropTypes.shape({
|
|
7
7
|
organization: PropTypes.string.isRequired,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import billingStatementReference from '../../../billing/v0/models/billingStatementReference';
|
|
3
2
|
import transactionReference from './transactionReference';
|
|
3
|
+
import billingStatementReference from '../../../billing/v0/models/billingStatementReference';
|
|
4
4
|
|
|
5
5
|
export default PropTypes.shape({
|
|
6
|
+
transaction: transactionReference.isRequired,
|
|
6
7
|
statement: billingStatementReference.isRequired,
|
|
7
|
-
transfer_transaction: transactionReference.isRequired,
|
|
8
8
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyPromotionOrderEntitlementComponent from '../enums/shopifyPromotionOrderEntitlementComponent';
|
|
3
|
+
import shopifyPromotionOfferAllocationMethod from '../enums/shopifyPromotionOfferAllocationMethod';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
components: PropTypes.arrayOf(shopifyPromotionOrderEntitlementComponent)
|
|
7
|
+
.isRequired,
|
|
8
|
+
allocation_method: shopifyPromotionOfferAllocationMethod.isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import billingTransactionType from '../../../billing/v0/enums/billingTransactionType';
|
|
3
|
+
import price from '../../../common/v0/models/price';
|
|
4
|
+
import billingStatementReference from '../../../billing/v0/models/billingStatementReference';
|
|
5
|
+
import billingOrderSummary from './billingOrderSummary';
|
|
6
|
+
import billingInvoiceSummary from './billingInvoiceSummary';
|
|
7
|
+
|
|
8
|
+
export default PropTypes.shape({
|
|
9
|
+
id: PropTypes.string.isRequired,
|
|
10
|
+
type: billingTransactionType.isRequired,
|
|
11
|
+
posted_at: PropTypes.string.isRequired,
|
|
12
|
+
value: price.isRequired,
|
|
13
|
+
description: PropTypes.string.isRequired,
|
|
14
|
+
statement: billingStatementReference,
|
|
15
|
+
created_at: PropTypes.string.isRequired,
|
|
16
|
+
order: billingOrderSummary.isRequired,
|
|
17
|
+
invoice: billingInvoiceSummary.isRequired,
|
|
18
|
+
});
|
|
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import billingTransactionType from '../../../billing/v0/enums/billingTransactionType';
|
|
3
3
|
import price from '../../../common/v0/models/price';
|
|
4
4
|
import billingStatementReference from '../../../billing/v0/models/billingStatementReference';
|
|
5
|
+
import transferTransactionSource from '../enums/transferTransactionSource';
|
|
5
6
|
import transferMethod from '../enums/transferMethod';
|
|
6
7
|
|
|
7
8
|
export default PropTypes.shape({
|
|
@@ -12,5 +13,6 @@ export default PropTypes.shape({
|
|
|
12
13
|
description: PropTypes.string.isRequired,
|
|
13
14
|
statement: billingStatementReference,
|
|
14
15
|
created_at: PropTypes.string.isRequired,
|
|
16
|
+
source: transferTransactionSource.isRequired,
|
|
15
17
|
method: transferMethod.isRequired,
|
|
16
18
|
});
|
|
@@ -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
|
+
]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import pendingBankPaymentTransferDetail from '../models/pendingBankPaymentTransferDetail';
|
|
3
|
+
import pendingBankPaymentTaxRemittanceDetail from '../models/pendingBankPaymentTaxRemittanceDetail';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
pendingBankPaymentTransferDetail,
|
|
7
|
+
pendingBankPaymentTaxRemittanceDetail,
|
|
8
|
+
]);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import shopifyPromotionItemEntitlement from '../models/shopifyPromotionItemEntitlement';
|
|
3
|
+
import shopifyPromotionOrderEntitlement from '../models/shopifyPromotionOrderEntitlement';
|
|
3
4
|
|
|
4
|
-
export default PropTypes.oneOfType([
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
shopifyPromotionItemEntitlement,
|
|
7
|
+
shopifyPromotionOrderEntitlement,
|
|
8
|
+
]);
|
|
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import processingTransaction from '../models/processingTransaction';
|
|
3
3
|
import subscriptionTransaction from '../models/subscriptionTransaction';
|
|
4
4
|
import invoiceTransaction from '../models/invoiceTransaction';
|
|
5
|
+
import taxRemittanceTransaction from '../models/taxRemittanceTransaction';
|
|
5
6
|
import transferTransaction from '../models/transferTransaction';
|
|
6
7
|
import virtualCardTransaction from '../models/virtualCardTransaction';
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ export default PropTypes.oneOfType([
|
|
|
9
10
|
processingTransaction,
|
|
10
11
|
subscriptionTransaction,
|
|
11
12
|
invoiceTransaction,
|
|
13
|
+
taxRemittanceTransaction,
|
|
12
14
|
transferTransaction,
|
|
13
15
|
virtualCardTransaction,
|
|
14
16
|
]);
|
|
@@ -5,6 +5,7 @@ import authorizationDeclineCode from '../enums/authorizationDeclineCode';
|
|
|
5
5
|
import avs from './avs';
|
|
6
6
|
import cvv from './cvv';
|
|
7
7
|
import threeDSecure from './threeDSecure';
|
|
8
|
+
import authorizationResultDescription from './authorizationResultDescription';
|
|
8
9
|
|
|
9
10
|
export default PropTypes.shape({
|
|
10
11
|
status: authorizationStatus.isRequired,
|
|
@@ -13,4 +14,5 @@ export default PropTypes.shape({
|
|
|
13
14
|
avs: avs,
|
|
14
15
|
cvv: cvv,
|
|
15
16
|
three_d_secure: threeDSecure,
|
|
17
|
+
description: authorizationResultDescription,
|
|
16
18
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import issuerReference from './issuerReference';
|
|
3
3
|
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
4
|
+
import authorizationPayload from './authorizationPayload';
|
|
4
5
|
|
|
5
6
|
export default PropTypes.shape({
|
|
6
7
|
method: PropTypes.string.isRequired,
|
|
@@ -12,4 +13,5 @@ export default PropTypes.shape({
|
|
|
12
13
|
key: PropTypes.string,
|
|
13
14
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
14
15
|
ip: PropTypes.string,
|
|
16
|
+
payload: authorizationPayload,
|
|
15
17
|
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import googlePayAuthorizationPayload from '../models/googlePayAuthorizationPayload';
|
|
3
|
+
import applePayMerchantValidationPayload from '../models/applePayMerchantValidationPayload';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.oneOfType([
|
|
6
|
+
googlePayAuthorizationPayload,
|
|
7
|
+
applePayMerchantValidationPayload,
|
|
8
|
+
]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import shopifyPromotionOrderEntitlementComponent from '../enums/shopifyPromotionOrderEntitlementComponent';
|
|
3
|
+
import shopifyPromotionOfferAllocationMethod from '../enums/shopifyPromotionOfferAllocationMethod';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
components: PropTypes.arrayOf(shopifyPromotionOrderEntitlementComponent)
|
|
7
|
+
.isRequired,
|
|
8
|
+
allocation_method: shopifyPromotionOfferAllocationMethod.isRequired,
|
|
9
|
+
});
|