@flowio/api-internal-prop-types 1.2.27 → 1.2.28
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 +18 -3
- package/.eslintcache +1 -0
- package/LICENSE +21 -0
- package/lib/index.d.ts +9 -0
- package/lib/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +1 -1
- package/lib/io/flow/{harmonization/v0/models/avalaraTaxSetting.js → common/v0/models/priceSourceCatalog.js} +5 -3
- package/lib/io/flow/common/v0/models/priceSourcePriceBook.js +29 -0
- package/lib/io/flow/common/v0/models/priceSourcePriceBookReference.js +16 -0
- package/lib/io/flow/{harmonization/v0/unions/taxSetting.js → common/v0/models/priceSourceProvided.js} +5 -3
- package/lib/io/flow/common/v0/unions/priceSource.js +25 -0
- package/lib/io/flow/experience/v0/models/localizedLineItem.js +6 -1
- package/lib/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +1 -1
- package/lib/io/flow/internal/v0/enums/calculationStyle.js +13 -0
- package/lib/io/flow/internal/v0/enums/checkoutPromptBehavior.js +1 -1
- package/lib/io/flow/internal/v0/enums/checkoutShippingMethodPromptBehavior.js +1 -1
- package/lib/io/flow/internal/v0/enums/eventType.js +1 -1
- package/lib/io/flow/internal/v0/models/adyenClassicPaymentRedirectForm.js +16 -0
- package/lib/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +1 -1
- package/lib/io/flow/internal/v0/models/landedCostExport.js +23 -0
- package/lib/io/flow/internal/v0/models/landedCostItem.js +17 -0
- package/lib/io/flow/internal/v0/models/taxCalculation.js +25 -0
- package/lib/io/flow/internal/v0/models/taxCalculationForm.js +33 -0
- package/lib/io/flow/internal/v0/models/taxCalculationLineItem.js +20 -0
- package/lib/io/flow/internal/v0/models/taxCalculationLineItemForm.js +25 -0
- package/lib/io/flow/internal/v0/unions/event.js +5 -1
- package/lib/io/flow/internal/v0/unions/paymentRedirectForm.js +17 -0
- package/lib/io/flow/payment/v0/models/authorizationResult.js +1 -1
- package/lib/io/flow/payment/v0/models/authorizationResultActionPost.js +21 -0
- package/lib/io/flow/payment/v0/models/authorizationResultActionWait.js +19 -0
- package/lib/io/flow/payment/v0/unions/authorizationResultAction.js +25 -0
- package/lib/io/flow/shopify/v0/models/shopifyLine.js +6 -1
- package/lib/io/flow/shopify/v0/models/shopifyOrderDeliveryMetafield.js +6 -1
- package/lib/mocks.js +9 -0
- package/lib/validators.js +45 -0
- package/package.json +3 -2
- package/src/index.d.ts +9 -0
- package/src/io/flow/billing/v0/enums/billingStatementAttachmentKey.js +2 -0
- package/src/io/flow/common/v0/models/priceSourceCatalog.js +6 -0
- package/src/io/flow/common/v0/models/priceSourcePriceBook.js +10 -0
- package/src/io/flow/common/v0/models/priceSourcePriceBookReference.js +6 -0
- package/src/io/flow/common/v0/models/priceSourceProvided.js +6 -0
- package/src/io/flow/common/v0/unions/priceSource.js +10 -0
- package/src/io/flow/experience/v0/models/localizedLineItem.js +2 -0
- package/src/io/flow/internal/v0/enums/billingStatementAttachmentKey.js +2 -0
- package/src/io/flow/internal/v0/enums/calculationStyle.js +3 -0
- package/src/io/flow/internal/v0/enums/checkoutPromptBehavior.js +1 -1
- package/src/io/flow/internal/v0/enums/checkoutShippingMethodPromptBehavior.js +1 -1
- package/src/io/flow/internal/v0/enums/eventType.js +1 -0
- package/src/io/flow/internal/v0/models/adyenClassicPaymentRedirectForm.js +6 -0
- package/src/io/flow/internal/v0/models/checkoutSubmitOrderBundle.js +1 -1
- package/src/io/flow/internal/v0/models/landedCostExport.js +10 -0
- package/src/io/flow/internal/v0/models/landedCostItem.js +7 -0
- package/src/io/flow/internal/v0/models/taxCalculation.js +12 -0
- package/src/io/flow/internal/v0/models/taxCalculationForm.js +14 -0
- package/src/io/flow/internal/v0/models/taxCalculationLineItem.js +10 -0
- package/src/io/flow/internal/v0/models/taxCalculationLineItemForm.js +12 -0
- package/src/io/flow/internal/v0/unions/event.js +2 -0
- package/src/io/flow/internal/v0/unions/paymentRedirectForm.js +4 -0
- package/src/io/flow/payment/v0/models/authorizationResult.js +1 -1
- package/src/io/flow/payment/v0/models/authorizationResultActionPost.js +8 -0
- package/src/io/flow/payment/v0/models/authorizationResultActionWait.js +6 -0
- package/src/io/flow/payment/v0/unions/authorizationResultAction.js +10 -0
- package/src/io/flow/shopify/v0/models/shopifyLine.js +2 -0
- package/src/io/flow/shopify/v0/models/shopifyOrderDeliveryMetafield.js +2 -0
- package/src/mocks.js +9 -0
- package/src/validators.js +18 -0
- package/src/io/flow/harmonization/v0/models/avalaraTaxSetting.js +0 -7
- package/src/io/flow/harmonization/v0/unions/taxSetting.js +0 -4
- /package/lib/io/flow/payment/v0/models/{authorizationResultAction.js → authorizationResultActionGet.js} +0 -0
- /package/src/io/flow/payment/v0/models/{authorizationResultAction.js → authorizationResultActionGet.js} +0 -0
package/lib/mocks.js
CHANGED
|
@@ -16,6 +16,7 @@ exports.default = {
|
|
|
16
16
|
billingStatementAttachmentKey: noopThunk,
|
|
17
17
|
billingTransactionStatus: noopThunk,
|
|
18
18
|
billingTransactionType: noopThunk,
|
|
19
|
+
calculationStyle: noopThunk,
|
|
19
20
|
carrierLabelGenerationMethod: noopThunk,
|
|
20
21
|
catalogImportType: noopThunk,
|
|
21
22
|
checkoutPromptBehavior: noopThunk,
|
|
@@ -108,6 +109,7 @@ exports.default = {
|
|
|
108
109
|
adyenCancelUpserted: noopThunk,
|
|
109
110
|
adyenCaptureDeleted: noopThunk,
|
|
110
111
|
adyenCaptureUpserted: noopThunk,
|
|
112
|
+
adyenClassicPaymentRedirectForm: noopThunk,
|
|
111
113
|
adyenInternalAuthorization: noopThunk,
|
|
112
114
|
adyenInternalCancel: noopThunk,
|
|
113
115
|
adyenInternalCapture: noopThunk,
|
|
@@ -401,6 +403,8 @@ exports.default = {
|
|
|
401
403
|
labelInvoiceUpserted: noopThunk,
|
|
402
404
|
labelSummary: noopThunk,
|
|
403
405
|
labeledContent: noopThunk,
|
|
406
|
+
landedCostExport: noopThunk,
|
|
407
|
+
landedCostItem: noopThunk,
|
|
404
408
|
landmark: noopThunk,
|
|
405
409
|
lineActionForm: noopThunk,
|
|
406
410
|
lineActionQuantities: noopThunk,
|
|
@@ -642,6 +646,10 @@ exports.default = {
|
|
|
642
646
|
taskItemUpserted: noopThunk,
|
|
643
647
|
taskProcessQueuedEvent: noopThunk,
|
|
644
648
|
taskSummarizeCode: noopThunk,
|
|
649
|
+
taxCalculation: noopThunk,
|
|
650
|
+
taxCalculationForm: noopThunk,
|
|
651
|
+
taxCalculationLineItem: noopThunk,
|
|
652
|
+
taxCalculationLineItemForm: noopThunk,
|
|
645
653
|
taxRemittanceTransaction: noopThunk,
|
|
646
654
|
timeCondition: noopThunk,
|
|
647
655
|
timeWithTimezone: noopThunk,
|
|
@@ -692,6 +700,7 @@ exports.default = {
|
|
|
692
700
|
paymentAccount: noopThunk,
|
|
693
701
|
paymentAccountForm: noopThunk,
|
|
694
702
|
paymentRedirect: noopThunk,
|
|
703
|
+
paymentRedirectForm: noopThunk,
|
|
695
704
|
paymentSummaryDetails: noopThunk,
|
|
696
705
|
repeatSchedule: noopThunk,
|
|
697
706
|
shopifyCheckoutBundle: noopThunk,
|
package/lib/validators.js
CHANGED
|
@@ -20,6 +20,10 @@ var _billingTransactionType = require('./io/flow/internal/v0/enums/billingTransa
|
|
|
20
20
|
|
|
21
21
|
var _billingTransactionType2 = _interopRequireDefault(_billingTransactionType);
|
|
22
22
|
|
|
23
|
+
var _calculationStyle = require('./io/flow/internal/v0/enums/calculationStyle');
|
|
24
|
+
|
|
25
|
+
var _calculationStyle2 = _interopRequireDefault(_calculationStyle);
|
|
26
|
+
|
|
23
27
|
var _carrierLabelGenerationMethod = require('./io/flow/internal/v0/enums/carrierLabelGenerationMethod');
|
|
24
28
|
|
|
25
29
|
var _carrierLabelGenerationMethod2 = _interopRequireDefault(_carrierLabelGenerationMethod);
|
|
@@ -388,6 +392,10 @@ var _adyenCaptureUpserted = require('./io/flow/internal/v0/models/adyenCaptureUp
|
|
|
388
392
|
|
|
389
393
|
var _adyenCaptureUpserted2 = _interopRequireDefault(_adyenCaptureUpserted);
|
|
390
394
|
|
|
395
|
+
var _adyenClassicPaymentRedirectForm = require('./io/flow/internal/v0/models/adyenClassicPaymentRedirectForm');
|
|
396
|
+
|
|
397
|
+
var _adyenClassicPaymentRedirectForm2 = _interopRequireDefault(_adyenClassicPaymentRedirectForm);
|
|
398
|
+
|
|
391
399
|
var _adyenInternalAuthorization = require('./io/flow/internal/v0/models/adyenInternalAuthorization');
|
|
392
400
|
|
|
393
401
|
var _adyenInternalAuthorization2 = _interopRequireDefault(_adyenInternalAuthorization);
|
|
@@ -1560,6 +1568,14 @@ var _labeledContent = require('./io/flow/internal/v0/models/labeledContent');
|
|
|
1560
1568
|
|
|
1561
1569
|
var _labeledContent2 = _interopRequireDefault(_labeledContent);
|
|
1562
1570
|
|
|
1571
|
+
var _landedCostExport = require('./io/flow/internal/v0/models/landedCostExport');
|
|
1572
|
+
|
|
1573
|
+
var _landedCostExport2 = _interopRequireDefault(_landedCostExport);
|
|
1574
|
+
|
|
1575
|
+
var _landedCostItem = require('./io/flow/internal/v0/models/landedCostItem');
|
|
1576
|
+
|
|
1577
|
+
var _landedCostItem2 = _interopRequireDefault(_landedCostItem);
|
|
1578
|
+
|
|
1563
1579
|
var _landmark = require('./io/flow/internal/v0/models/landmark');
|
|
1564
1580
|
|
|
1565
1581
|
var _landmark2 = _interopRequireDefault(_landmark);
|
|
@@ -2524,6 +2540,22 @@ var _taskSummarizeCode = require('./io/flow/internal/v0/models/taskSummarizeCode
|
|
|
2524
2540
|
|
|
2525
2541
|
var _taskSummarizeCode2 = _interopRequireDefault(_taskSummarizeCode);
|
|
2526
2542
|
|
|
2543
|
+
var _taxCalculation = require('./io/flow/internal/v0/models/taxCalculation');
|
|
2544
|
+
|
|
2545
|
+
var _taxCalculation2 = _interopRequireDefault(_taxCalculation);
|
|
2546
|
+
|
|
2547
|
+
var _taxCalculationForm = require('./io/flow/internal/v0/models/taxCalculationForm');
|
|
2548
|
+
|
|
2549
|
+
var _taxCalculationForm2 = _interopRequireDefault(_taxCalculationForm);
|
|
2550
|
+
|
|
2551
|
+
var _taxCalculationLineItem = require('./io/flow/internal/v0/models/taxCalculationLineItem');
|
|
2552
|
+
|
|
2553
|
+
var _taxCalculationLineItem2 = _interopRequireDefault(_taxCalculationLineItem);
|
|
2554
|
+
|
|
2555
|
+
var _taxCalculationLineItemForm = require('./io/flow/internal/v0/models/taxCalculationLineItemForm');
|
|
2556
|
+
|
|
2557
|
+
var _taxCalculationLineItemForm2 = _interopRequireDefault(_taxCalculationLineItemForm);
|
|
2558
|
+
|
|
2527
2559
|
var _taxRemittanceTransaction = require('./io/flow/internal/v0/models/taxRemittanceTransaction');
|
|
2528
2560
|
|
|
2529
2561
|
var _taxRemittanceTransaction2 = _interopRequireDefault(_taxRemittanceTransaction);
|
|
@@ -2724,6 +2756,10 @@ var _paymentRedirect = require('./io/flow/internal/v0/unions/paymentRedirect');
|
|
|
2724
2756
|
|
|
2725
2757
|
var _paymentRedirect2 = _interopRequireDefault(_paymentRedirect);
|
|
2726
2758
|
|
|
2759
|
+
var _paymentRedirectForm = require('./io/flow/internal/v0/unions/paymentRedirectForm');
|
|
2760
|
+
|
|
2761
|
+
var _paymentRedirectForm2 = _interopRequireDefault(_paymentRedirectForm);
|
|
2762
|
+
|
|
2727
2763
|
var _paymentSummaryDetails = require('./io/flow/internal/v0/unions/paymentSummaryDetails');
|
|
2728
2764
|
|
|
2729
2765
|
var _paymentSummaryDetails2 = _interopRequireDefault(_paymentSummaryDetails);
|
|
@@ -2779,6 +2815,7 @@ exports.default = {
|
|
|
2779
2815
|
billingStatementAttachmentKey: _billingStatementAttachmentKey2.default,
|
|
2780
2816
|
billingTransactionStatus: _billingTransactionStatus2.default,
|
|
2781
2817
|
billingTransactionType: _billingTransactionType2.default,
|
|
2818
|
+
calculationStyle: _calculationStyle2.default,
|
|
2782
2819
|
carrierLabelGenerationMethod: _carrierLabelGenerationMethod2.default,
|
|
2783
2820
|
catalogImportType: _catalogImportType2.default,
|
|
2784
2821
|
checkoutPromptBehavior: _checkoutPromptBehavior2.default,
|
|
@@ -2871,6 +2908,7 @@ exports.default = {
|
|
|
2871
2908
|
adyenCancelUpserted: _adyenCancelUpserted2.default,
|
|
2872
2909
|
adyenCaptureDeleted: _adyenCaptureDeleted2.default,
|
|
2873
2910
|
adyenCaptureUpserted: _adyenCaptureUpserted2.default,
|
|
2911
|
+
adyenClassicPaymentRedirectForm: _adyenClassicPaymentRedirectForm2.default,
|
|
2874
2912
|
adyenInternalAuthorization: _adyenInternalAuthorization2.default,
|
|
2875
2913
|
adyenInternalCancel: _adyenInternalCancel2.default,
|
|
2876
2914
|
adyenInternalCapture: _adyenInternalCapture2.default,
|
|
@@ -3164,6 +3202,8 @@ exports.default = {
|
|
|
3164
3202
|
labelInvoiceUpserted: _labelInvoiceUpserted2.default,
|
|
3165
3203
|
labelSummary: _labelSummary2.default,
|
|
3166
3204
|
labeledContent: _labeledContent2.default,
|
|
3205
|
+
landedCostExport: _landedCostExport2.default,
|
|
3206
|
+
landedCostItem: _landedCostItem2.default,
|
|
3167
3207
|
landmark: _landmark2.default,
|
|
3168
3208
|
lineActionForm: _lineActionForm2.default,
|
|
3169
3209
|
lineActionQuantities: _lineActionQuantities2.default,
|
|
@@ -3405,6 +3445,10 @@ exports.default = {
|
|
|
3405
3445
|
taskItemUpserted: _taskItemUpserted2.default,
|
|
3406
3446
|
taskProcessQueuedEvent: _taskProcessQueuedEvent2.default,
|
|
3407
3447
|
taskSummarizeCode: _taskSummarizeCode2.default,
|
|
3448
|
+
taxCalculation: _taxCalculation2.default,
|
|
3449
|
+
taxCalculationForm: _taxCalculationForm2.default,
|
|
3450
|
+
taxCalculationLineItem: _taxCalculationLineItem2.default,
|
|
3451
|
+
taxCalculationLineItemForm: _taxCalculationLineItemForm2.default,
|
|
3408
3452
|
taxRemittanceTransaction: _taxRemittanceTransaction2.default,
|
|
3409
3453
|
timeCondition: _timeCondition2.default,
|
|
3410
3454
|
timeWithTimezone: _timeWithTimezone2.default,
|
|
@@ -3455,6 +3499,7 @@ exports.default = {
|
|
|
3455
3499
|
paymentAccount: _paymentAccount2.default,
|
|
3456
3500
|
paymentAccountForm: _paymentAccountForm2.default,
|
|
3457
3501
|
paymentRedirect: _paymentRedirect2.default,
|
|
3502
|
+
paymentRedirectForm: _paymentRedirectForm2.default,
|
|
3458
3503
|
paymentSummaryDetails: _paymentSummaryDetails2.default,
|
|
3459
3504
|
repeatSchedule: _repeatSchedule2.default,
|
|
3460
3505
|
shopifyCheckoutBundle: _shopifyCheckoutBundle2.default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-prop-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.28",
|
|
4
4
|
"description": "PropType validators that work with internal Flow API",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,5 +40,6 @@
|
|
|
40
40
|
"eslint-plugin-react": "^7.10.0",
|
|
41
41
|
"prop-types": "^15.7.2",
|
|
42
42
|
"rimraf": "^2.6.2"
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "c8cc47ba346ea31620799025e79aa372d75316da"
|
|
44
45
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ declare const defaultExport: {
|
|
|
25
25
|
adyenCancelUpserted: Requireable<any> & Validator<any>;
|
|
26
26
|
adyenCaptureDeleted: Requireable<any> & Validator<any>;
|
|
27
27
|
adyenCaptureUpserted: Requireable<any> & Validator<any>;
|
|
28
|
+
adyenClassicPaymentRedirectForm: Requireable<any> & Validator<any>;
|
|
28
29
|
adyenInternalAuthorization: Requireable<any> & Validator<any>;
|
|
29
30
|
adyenInternalCancel: Requireable<any> & Validator<any>;
|
|
30
31
|
adyenInternalCapture: Requireable<any> & Validator<any>;
|
|
@@ -87,6 +88,7 @@ declare const defaultExport: {
|
|
|
87
88
|
booleanFeatureValue: Requireable<any> & Validator<any>;
|
|
88
89
|
brickWebhookEvent: Requireable<any> & Validator<any>;
|
|
89
90
|
brickWebhookEventResponse: Requireable<any> & Validator<any>;
|
|
91
|
+
calculationStyle: Requireable<any> & Validator<any>;
|
|
90
92
|
carrierAccount: Requireable<any> & Validator<any>;
|
|
91
93
|
carrierAccountUpserted: Requireable<any> & Validator<any>;
|
|
92
94
|
carrierCredentials: Requireable<any> & Validator<any>;
|
|
@@ -380,6 +382,8 @@ declare const defaultExport: {
|
|
|
380
382
|
labelInvoiceUpserted: Requireable<any> & Validator<any>;
|
|
381
383
|
labelSummary: Requireable<any> & Validator<any>;
|
|
382
384
|
labeledContent: Requireable<any> & Validator<any>;
|
|
385
|
+
landedCostExport: Requireable<any> & Validator<any>;
|
|
386
|
+
landedCostItem: Requireable<any> & Validator<any>;
|
|
383
387
|
landmark: Requireable<any> & Validator<any>;
|
|
384
388
|
lineActionForm: Requireable<any> & Validator<any>;
|
|
385
389
|
lineActionQuantities: Requireable<any> & Validator<any>;
|
|
@@ -511,6 +515,7 @@ declare const defaultExport: {
|
|
|
511
515
|
paymentAccount: Requireable<any> & Validator<any>;
|
|
512
516
|
paymentAccountForm: Requireable<any> & Validator<any>;
|
|
513
517
|
paymentRedirect: Requireable<any> & Validator<any>;
|
|
518
|
+
paymentRedirectForm: Requireable<any> & Validator<any>;
|
|
514
519
|
paymentSummaryDetails: Requireable<any> & Validator<any>;
|
|
515
520
|
paymentSummaryStatus: Requireable<any> & Validator<any>;
|
|
516
521
|
paymentSummaryType: Requireable<any> & Validator<any>;
|
|
@@ -671,6 +676,10 @@ declare const defaultExport: {
|
|
|
671
676
|
taskItemUpserted: Requireable<any> & Validator<any>;
|
|
672
677
|
taskProcessQueuedEvent: Requireable<any> & Validator<any>;
|
|
673
678
|
taskSummarizeCode: Requireable<any> & Validator<any>;
|
|
679
|
+
taxCalculation: Requireable<any> & Validator<any>;
|
|
680
|
+
taxCalculationForm: Requireable<any> & Validator<any>;
|
|
681
|
+
taxCalculationLineItem: Requireable<any> & Validator<any>;
|
|
682
|
+
taxCalculationLineItemForm: Requireable<any> & Validator<any>;
|
|
674
683
|
taxRemittanceTransaction: Requireable<any> & Validator<any>;
|
|
675
684
|
timeCondition: Requireable<any> & Validator<any>;
|
|
676
685
|
timeWithTimezone: Requireable<any> & Validator<any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import money from './money';
|
|
3
|
+
import includedLevies from './includedLevies';
|
|
4
|
+
import priceSourcePriceBookReference from './priceSourcePriceBookReference';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
price: money.isRequired,
|
|
8
|
+
includes: includedLevies.isRequired,
|
|
9
|
+
price_book_reference: priceSourcePriceBookReference.isRequired,
|
|
10
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import priceSourcePriceBook from '../models/priceSourcePriceBook';
|
|
3
|
+
import priceSourceCatalog from '../models/priceSourceCatalog';
|
|
4
|
+
import priceSourceProvided from '../models/priceSourceProvided';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.oneOfType([
|
|
7
|
+
priceSourcePriceBook,
|
|
8
|
+
priceSourceCatalog,
|
|
9
|
+
priceSourceProvided,
|
|
10
|
+
]);
|
|
@@ -3,6 +3,7 @@ import money from '../../../common/v0/models/money';
|
|
|
3
3
|
import localizedLineItemDiscount from './localizedLineItemDiscount';
|
|
4
4
|
import local from '../../../catalog/v0/models/local';
|
|
5
5
|
import datetimeRange from '../../../common/v0/models/datetimeRange';
|
|
6
|
+
import priceSource from '../../../common/v0/unions/priceSource';
|
|
6
7
|
|
|
7
8
|
export default PropTypes.shape({
|
|
8
9
|
number: PropTypes.string.isRequired,
|
|
@@ -15,4 +16,5 @@ export default PropTypes.shape({
|
|
|
15
16
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
16
17
|
local: local.isRequired,
|
|
17
18
|
shipment_estimate: datetimeRange,
|
|
19
|
+
price_source: priceSource,
|
|
18
20
|
});
|
|
@@ -62,6 +62,7 @@ export default PropTypes.oneOf([
|
|
|
62
62
|
'harmonized_items_hs6_export',
|
|
63
63
|
'unharmonized_items_export',
|
|
64
64
|
'dutied_items_export',
|
|
65
|
+
'landed_cost_export',
|
|
65
66
|
'harmonization_phrase_suggestion_request_import',
|
|
66
67
|
'harmonization_codes_import',
|
|
67
68
|
'customs_description_sugestion_created',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import order from '../../../experience/v0/models/order';
|
|
3
|
-
import authorizationResultAction from '../../../payment/v0/
|
|
3
|
+
import authorizationResultAction from '../../../payment/v0/unions/authorizationResultAction';
|
|
4
4
|
import orderError from '../../../experience/v0/models/orderError';
|
|
5
5
|
|
|
6
6
|
export default PropTypes.shape({
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import landedCostItem from './landedCostItem';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
event_id: PropTypes.string.isRequired,
|
|
6
|
+
timestamp: PropTypes.string.isRequired,
|
|
7
|
+
organization: PropTypes.string.isRequired,
|
|
8
|
+
export_id: PropTypes.string.isRequired,
|
|
9
|
+
items: PropTypes.arrayOf(landedCostItem).isRequired,
|
|
10
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import taxCalculationLineItem from './taxCalculationLineItem';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
order_number: PropTypes.string.isRequired,
|
|
6
|
+
target_currency_code: PropTypes.string.isRequired,
|
|
7
|
+
total: PropTypes.number.isRequired,
|
|
8
|
+
tax: PropTypes.number.isRequired,
|
|
9
|
+
lines: PropTypes.arrayOf(taxCalculationLineItem).isRequired,
|
|
10
|
+
shipping_total: PropTypes.number.isRequired,
|
|
11
|
+
shipping_tax: PropTypes.number.isRequired,
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import address from '../../../common/v0/models/address';
|
|
3
|
+
import taxCalculationLineItemForm from './taxCalculationLineItemForm';
|
|
4
|
+
import calculationStyle from '../enums/calculationStyle';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
order_number: PropTypes.string.isRequired,
|
|
8
|
+
target_currency_code: PropTypes.string.isRequired,
|
|
9
|
+
destination: address.isRequired,
|
|
10
|
+
order_date: PropTypes.string.isRequired,
|
|
11
|
+
lines: PropTypes.arrayOf(taxCalculationLineItemForm).isRequired,
|
|
12
|
+
shipping_amount: PropTypes.number.isRequired,
|
|
13
|
+
calculation_style: calculationStyle,
|
|
14
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export default PropTypes.shape({
|
|
4
|
+
line_number: PropTypes.string.isRequired,
|
|
5
|
+
item_number: PropTypes.string.isRequired,
|
|
6
|
+
quantity: PropTypes.number.isRequired,
|
|
7
|
+
total: PropTypes.number.isRequired,
|
|
8
|
+
tax: PropTypes.number.isRequired,
|
|
9
|
+
sku: PropTypes.string,
|
|
10
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import address from '../../../common/v0/models/address';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
line_number: PropTypes.string.isRequired,
|
|
6
|
+
item_number: PropTypes.string.isRequired,
|
|
7
|
+
ship_from: address.isRequired,
|
|
8
|
+
quantity: PropTypes.number.isRequired,
|
|
9
|
+
amount: PropTypes.number.isRequired,
|
|
10
|
+
tax_code: PropTypes.string,
|
|
11
|
+
sku: PropTypes.string,
|
|
12
|
+
});
|
|
@@ -60,6 +60,7 @@ import allItemsExport from '../models/allItemsExport';
|
|
|
60
60
|
import harmonizedItemsHs6Export from '../models/harmonizedItemsHs6Export';
|
|
61
61
|
import unharmonizedItemsExport from '../models/unharmonizedItemsExport';
|
|
62
62
|
import dutiedItemsExport from '../models/dutiedItemsExport';
|
|
63
|
+
import landedCostExport from '../models/landedCostExport';
|
|
63
64
|
import harmonizationPhraseSuggestionRequestImport from '../models/harmonizationPhraseSuggestionRequestImport';
|
|
64
65
|
import harmonizationCodesImport from '../models/harmonizationCodesImport';
|
|
65
66
|
import customsDescriptionSugestionCreated from '../models/customsDescriptionSugestionCreated';
|
|
@@ -184,6 +185,7 @@ export default PropTypes.oneOfType([
|
|
|
184
185
|
harmonizedItemsHs6Export,
|
|
185
186
|
unharmonizedItemsExport,
|
|
186
187
|
dutiedItemsExport,
|
|
188
|
+
landedCostExport,
|
|
187
189
|
harmonizationPhraseSuggestionRequestImport,
|
|
188
190
|
harmonizationCodesImport,
|
|
189
191
|
customsDescriptionSugestionCreated,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import authorizationStatus from '../enums/authorizationStatus';
|
|
3
|
-
import authorizationResultAction from '
|
|
3
|
+
import authorizationResultAction from '../unions/authorizationResultAction';
|
|
4
4
|
import authorizationDeclineCode from '../enums/authorizationDeclineCode';
|
|
5
5
|
import avs from './avs';
|
|
6
6
|
import cvv from './cvv';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import authorizationResultActionType from '../enums/authorizationResultActionType';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
type: authorizationResultActionType.isRequired,
|
|
6
|
+
url: PropTypes.string.isRequired,
|
|
7
|
+
parameters: PropTypes.object.isRequired,
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import authorizationResultActionGet from '../models/authorizationResultActionGet';
|
|
3
|
+
import authorizationResultActionPost from '../models/authorizationResultActionPost';
|
|
4
|
+
import authorizationResultActionWait from '../models/authorizationResultActionWait';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.oneOfType([
|
|
7
|
+
authorizationResultActionGet,
|
|
8
|
+
authorizationResultActionPost,
|
|
9
|
+
authorizationResultActionWait,
|
|
10
|
+
]);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import shopifyPrice from './shopifyPrice';
|
|
3
|
+
import priceSource from '../../../common/v0/unions/priceSource';
|
|
3
4
|
|
|
4
5
|
export default PropTypes.shape({
|
|
5
6
|
variant_id: PropTypes.number.isRequired,
|
|
6
7
|
quantity: PropTypes.number.isRequired,
|
|
7
8
|
price: shopifyPrice.isRequired,
|
|
8
9
|
total: shopifyPrice.isRequired,
|
|
10
|
+
price_source: priceSource,
|
|
9
11
|
});
|
|
@@ -2,9 +2,11 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import shopifyOrderDeliveryMetafieldItem from './shopifyOrderDeliveryMetafieldItem';
|
|
3
3
|
import serviceSummary from '../../../fulfillment/v0/models/serviceSummary';
|
|
4
4
|
import deliveryWindow from '../../../fulfillment/v0/models/deliveryWindow';
|
|
5
|
+
import moneyWithOptionalBase from '../../../common/v0/models/moneyWithOptionalBase';
|
|
5
6
|
|
|
6
7
|
export default PropTypes.shape({
|
|
7
8
|
items: PropTypes.arrayOf(shopifyOrderDeliveryMetafieldItem).isRequired,
|
|
8
9
|
service: serviceSummary.isRequired,
|
|
9
10
|
window: deliveryWindow.isRequired,
|
|
11
|
+
cost: moneyWithOptionalBase,
|
|
10
12
|
});
|
package/src/mocks.js
CHANGED
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
billingStatementAttachmentKey: noopThunk,
|
|
12
12
|
billingTransactionStatus: noopThunk,
|
|
13
13
|
billingTransactionType: noopThunk,
|
|
14
|
+
calculationStyle: noopThunk,
|
|
14
15
|
carrierLabelGenerationMethod: noopThunk,
|
|
15
16
|
catalogImportType: noopThunk,
|
|
16
17
|
checkoutPromptBehavior: noopThunk,
|
|
@@ -103,6 +104,7 @@ export default {
|
|
|
103
104
|
adyenCancelUpserted: noopThunk,
|
|
104
105
|
adyenCaptureDeleted: noopThunk,
|
|
105
106
|
adyenCaptureUpserted: noopThunk,
|
|
107
|
+
adyenClassicPaymentRedirectForm: noopThunk,
|
|
106
108
|
adyenInternalAuthorization: noopThunk,
|
|
107
109
|
adyenInternalCancel: noopThunk,
|
|
108
110
|
adyenInternalCapture: noopThunk,
|
|
@@ -396,6 +398,8 @@ export default {
|
|
|
396
398
|
labelInvoiceUpserted: noopThunk,
|
|
397
399
|
labelSummary: noopThunk,
|
|
398
400
|
labeledContent: noopThunk,
|
|
401
|
+
landedCostExport: noopThunk,
|
|
402
|
+
landedCostItem: noopThunk,
|
|
399
403
|
landmark: noopThunk,
|
|
400
404
|
lineActionForm: noopThunk,
|
|
401
405
|
lineActionQuantities: noopThunk,
|
|
@@ -637,6 +641,10 @@ export default {
|
|
|
637
641
|
taskItemUpserted: noopThunk,
|
|
638
642
|
taskProcessQueuedEvent: noopThunk,
|
|
639
643
|
taskSummarizeCode: noopThunk,
|
|
644
|
+
taxCalculation: noopThunk,
|
|
645
|
+
taxCalculationForm: noopThunk,
|
|
646
|
+
taxCalculationLineItem: noopThunk,
|
|
647
|
+
taxCalculationLineItemForm: noopThunk,
|
|
640
648
|
taxRemittanceTransaction: noopThunk,
|
|
641
649
|
timeCondition: noopThunk,
|
|
642
650
|
timeWithTimezone: noopThunk,
|
|
@@ -687,6 +695,7 @@ export default {
|
|
|
687
695
|
paymentAccount: noopThunk,
|
|
688
696
|
paymentAccountForm: noopThunk,
|
|
689
697
|
paymentRedirect: noopThunk,
|
|
698
|
+
paymentRedirectForm: noopThunk,
|
|
690
699
|
paymentSummaryDetails: noopThunk,
|
|
691
700
|
repeatSchedule: noopThunk,
|
|
692
701
|
shopifyCheckoutBundle: noopThunk,
|
package/src/validators.js
CHANGED
|
@@ -2,6 +2,7 @@ import billingAllocationKey from './io/flow/internal/v0/enums/billingAllocationK
|
|
|
2
2
|
import billingStatementAttachmentKey from './io/flow/internal/v0/enums/billingStatementAttachmentKey';
|
|
3
3
|
import billingTransactionStatus from './io/flow/internal/v0/enums/billingTransactionStatus';
|
|
4
4
|
import billingTransactionType from './io/flow/internal/v0/enums/billingTransactionType';
|
|
5
|
+
import calculationStyle from './io/flow/internal/v0/enums/calculationStyle';
|
|
5
6
|
import carrierLabelGenerationMethod from './io/flow/internal/v0/enums/carrierLabelGenerationMethod';
|
|
6
7
|
import catalogImportType from './io/flow/internal/v0/enums/catalogImportType';
|
|
7
8
|
import checkoutPromptBehavior from './io/flow/internal/v0/enums/checkoutPromptBehavior';
|
|
@@ -94,6 +95,7 @@ import adyenCancelDeleted from './io/flow/internal/v0/models/adyenCancelDeleted'
|
|
|
94
95
|
import adyenCancelUpserted from './io/flow/internal/v0/models/adyenCancelUpserted';
|
|
95
96
|
import adyenCaptureDeleted from './io/flow/internal/v0/models/adyenCaptureDeleted';
|
|
96
97
|
import adyenCaptureUpserted from './io/flow/internal/v0/models/adyenCaptureUpserted';
|
|
98
|
+
import adyenClassicPaymentRedirectForm from './io/flow/internal/v0/models/adyenClassicPaymentRedirectForm';
|
|
97
99
|
import adyenInternalAuthorization from './io/flow/internal/v0/models/adyenInternalAuthorization';
|
|
98
100
|
import adyenInternalCancel from './io/flow/internal/v0/models/adyenInternalCancel';
|
|
99
101
|
import adyenInternalCapture from './io/flow/internal/v0/models/adyenInternalCapture';
|
|
@@ -387,6 +389,8 @@ import labelInvoiceTotal from './io/flow/internal/v0/models/labelInvoiceTotal';
|
|
|
387
389
|
import labelInvoiceUpserted from './io/flow/internal/v0/models/labelInvoiceUpserted';
|
|
388
390
|
import labelSummary from './io/flow/internal/v0/models/labelSummary';
|
|
389
391
|
import labeledContent from './io/flow/internal/v0/models/labeledContent';
|
|
392
|
+
import landedCostExport from './io/flow/internal/v0/models/landedCostExport';
|
|
393
|
+
import landedCostItem from './io/flow/internal/v0/models/landedCostItem';
|
|
390
394
|
import landmark from './io/flow/internal/v0/models/landmark';
|
|
391
395
|
import lineActionForm from './io/flow/internal/v0/models/lineActionForm';
|
|
392
396
|
import lineActionQuantities from './io/flow/internal/v0/models/lineActionQuantities';
|
|
@@ -628,6 +632,10 @@ import taskImport from './io/flow/internal/v0/models/taskImport';
|
|
|
628
632
|
import taskItemUpserted from './io/flow/internal/v0/models/taskItemUpserted';
|
|
629
633
|
import taskProcessQueuedEvent from './io/flow/internal/v0/models/taskProcessQueuedEvent';
|
|
630
634
|
import taskSummarizeCode from './io/flow/internal/v0/models/taskSummarizeCode';
|
|
635
|
+
import taxCalculation from './io/flow/internal/v0/models/taxCalculation';
|
|
636
|
+
import taxCalculationForm from './io/flow/internal/v0/models/taxCalculationForm';
|
|
637
|
+
import taxCalculationLineItem from './io/flow/internal/v0/models/taxCalculationLineItem';
|
|
638
|
+
import taxCalculationLineItemForm from './io/flow/internal/v0/models/taxCalculationLineItemForm';
|
|
631
639
|
import taxRemittanceTransaction from './io/flow/internal/v0/models/taxRemittanceTransaction';
|
|
632
640
|
import timeCondition from './io/flow/internal/v0/models/timeCondition';
|
|
633
641
|
import timeWithTimezone from './io/flow/internal/v0/models/timeWithTimezone';
|
|
@@ -678,6 +686,7 @@ import orderActionForm from './io/flow/internal/v0/unions/orderActionForm';
|
|
|
678
686
|
import paymentAccount from './io/flow/internal/v0/unions/paymentAccount';
|
|
679
687
|
import paymentAccountForm from './io/flow/internal/v0/unions/paymentAccountForm';
|
|
680
688
|
import paymentRedirect from './io/flow/internal/v0/unions/paymentRedirect';
|
|
689
|
+
import paymentRedirectForm from './io/flow/internal/v0/unions/paymentRedirectForm';
|
|
681
690
|
import paymentSummaryDetails from './io/flow/internal/v0/unions/paymentSummaryDetails';
|
|
682
691
|
import repeatSchedule from './io/flow/internal/v0/unions/repeatSchedule';
|
|
683
692
|
import shopifyCheckoutBundle from './io/flow/internal/v0/unions/shopifyCheckoutBundle';
|
|
@@ -696,6 +705,7 @@ export default {
|
|
|
696
705
|
billingStatementAttachmentKey,
|
|
697
706
|
billingTransactionStatus,
|
|
698
707
|
billingTransactionType,
|
|
708
|
+
calculationStyle,
|
|
699
709
|
carrierLabelGenerationMethod,
|
|
700
710
|
catalogImportType,
|
|
701
711
|
checkoutPromptBehavior,
|
|
@@ -788,6 +798,7 @@ export default {
|
|
|
788
798
|
adyenCancelUpserted,
|
|
789
799
|
adyenCaptureDeleted,
|
|
790
800
|
adyenCaptureUpserted,
|
|
801
|
+
adyenClassicPaymentRedirectForm,
|
|
791
802
|
adyenInternalAuthorization,
|
|
792
803
|
adyenInternalCancel,
|
|
793
804
|
adyenInternalCapture,
|
|
@@ -1081,6 +1092,8 @@ export default {
|
|
|
1081
1092
|
labelInvoiceUpserted,
|
|
1082
1093
|
labelSummary,
|
|
1083
1094
|
labeledContent,
|
|
1095
|
+
landedCostExport,
|
|
1096
|
+
landedCostItem,
|
|
1084
1097
|
landmark,
|
|
1085
1098
|
lineActionForm,
|
|
1086
1099
|
lineActionQuantities,
|
|
@@ -1322,6 +1335,10 @@ export default {
|
|
|
1322
1335
|
taskItemUpserted,
|
|
1323
1336
|
taskProcessQueuedEvent,
|
|
1324
1337
|
taskSummarizeCode,
|
|
1338
|
+
taxCalculation,
|
|
1339
|
+
taxCalculationForm,
|
|
1340
|
+
taxCalculationLineItem,
|
|
1341
|
+
taxCalculationLineItemForm,
|
|
1325
1342
|
taxRemittanceTransaction,
|
|
1326
1343
|
timeCondition,
|
|
1327
1344
|
timeWithTimezone,
|
|
@@ -1372,6 +1389,7 @@ export default {
|
|
|
1372
1389
|
paymentAccount,
|
|
1373
1390
|
paymentAccountForm,
|
|
1374
1391
|
paymentRedirect,
|
|
1392
|
+
paymentRedirectForm,
|
|
1375
1393
|
paymentSummaryDetails,
|
|
1376
1394
|
repeatSchedule,
|
|
1377
1395
|
shopifyCheckoutBundle,
|