@flowio/api-prop-types 10.16.103 → 10.16.105
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/lib/api.d.ts +17 -3
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +17 -3
- package/src/api.js +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-prop-types",
|
|
3
|
-
"version": "10.16.
|
|
3
|
+
"version": "10.16.105",
|
|
4
4
|
"description": "PropType validators that work with Flow API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"prop-types": "^15.7.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "3006280bce074215dc46ad9c937db245d67d2783"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -3590,7 +3590,7 @@ declare namespace io.flow.v0.enums {
|
|
|
3590
3590
|
type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired' | 'unknown' | 'unmapped';
|
|
3591
3591
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
3592
3592
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
3593
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund' | 'duty_refund' | 'non_l4l_tax_duty_fx' | 'merchant_payout' | 'merchant_refund' | 'ge_revenue_share';
|
|
3593
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund' | 'duty_refund' | 'non_l4l_tax_duty_fx' | 'merchant_payout' | 'merchant_refund' | 'ge_revenue_share' | 'merchant_fee';
|
|
3594
3594
|
type TransferStatus = 'succeeded' | 'canceled';
|
|
3595
3595
|
type TransferType = 'payout_to_merchant' | 'disputed_amount_to_merchant' | 'duties_and_taxes_adjustment_to_merchant' | 'disputed_amount_from_merchant' | 'duties_and_taxes_adjustment_from_merchant' | 'refund_from_merchant';
|
|
3596
3596
|
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
|
|
@@ -5547,6 +5547,18 @@ declare namespace io.flow.v0.models {
|
|
|
5547
5547
|
readonly 'duty'?: io.flow.v0.models.ConsumerInvoiceLevyForm;
|
|
5548
5548
|
}
|
|
5549
5549
|
|
|
5550
|
+
interface ConsumerInvoiceLineTip {
|
|
5551
|
+
readonly 'discriminator': 'tip';
|
|
5552
|
+
readonly 'price': io.flow.v0.models.Price;
|
|
5553
|
+
readonly 'tax'?: io.flow.v0.models.ConsumerInvoiceLevy;
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5556
|
+
interface ConsumerInvoiceLineTipForm {
|
|
5557
|
+
readonly 'discriminator': 'tip';
|
|
5558
|
+
readonly 'price': number;
|
|
5559
|
+
readonly 'tax'?: io.flow.v0.models.ConsumerInvoiceLevyForm;
|
|
5560
|
+
}
|
|
5561
|
+
|
|
5550
5562
|
interface ConsumerInvoiceOrderSummary {
|
|
5551
5563
|
readonly 'id': string;
|
|
5552
5564
|
readonly 'number': string;
|
|
@@ -13648,8 +13660,8 @@ declare namespace io.flow.v0.unions {
|
|
|
13648
13660
|
type CardNumber = (io.flow.v0.models.PaymentMethodCardNumberCleartext | io.flow.v0.models.PaymentMethodCardNumberCipher);
|
|
13649
13661
|
type CheckoutTokenForm = (io.flow.v0.models.CheckoutTokenOrderForm | io.flow.v0.models.CheckoutTokenReferenceForm);
|
|
13650
13662
|
type ConfirmationDetails = (io.flow.v0.models.DirectDebit | io.flow.v0.models.CardConfirmationSummary);
|
|
13651
|
-
type ConsumerInvoiceLine = (io.flow.v0.models.ConsumerInvoiceLineItem | io.flow.v0.models.ConsumerInvoiceLineDiscount | io.flow.v0.models.ConsumerInvoiceLineShipping);
|
|
13652
|
-
type ConsumerInvoiceLineForm = (io.flow.v0.models.ConsumerInvoiceLineItemForm | io.flow.v0.models.ConsumerInvoiceLineDiscountForm | io.flow.v0.models.ConsumerInvoiceLineShippingForm);
|
|
13663
|
+
type ConsumerInvoiceLine = (io.flow.v0.models.ConsumerInvoiceLineItem | io.flow.v0.models.ConsumerInvoiceLineDiscount | io.flow.v0.models.ConsumerInvoiceLineShipping | io.flow.v0.models.ConsumerInvoiceLineTip);
|
|
13664
|
+
type ConsumerInvoiceLineForm = (io.flow.v0.models.ConsumerInvoiceLineItemForm | io.flow.v0.models.ConsumerInvoiceLineDiscountForm | io.flow.v0.models.ConsumerInvoiceLineShippingForm | io.flow.v0.models.ConsumerInvoiceLineTipForm);
|
|
13653
13665
|
type Delivery = (io.flow.v0.models.DigitalDelivery | io.flow.v0.models.PhysicalDelivery);
|
|
13654
13666
|
type Deminimis = (io.flow.v0.models.DeminimisSimple | io.flow.v0.models.DeminimisPerItem);
|
|
13655
13667
|
type DeviceDetails = (io.flow.v0.models.DeviceDetailsBrowser);
|
|
@@ -14244,6 +14256,8 @@ export const consumerInvoiceLineItem: PropTypes.Requireable<io.flow.v0.models.Co
|
|
|
14244
14256
|
export const consumerInvoiceLineItemForm: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceLineItemForm>;
|
|
14245
14257
|
export const consumerInvoiceLineShipping: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceLineShipping>;
|
|
14246
14258
|
export const consumerInvoiceLineShippingForm: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceLineShippingForm>;
|
|
14259
|
+
export const consumerInvoiceLineTip: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceLineTip>;
|
|
14260
|
+
export const consumerInvoiceLineTipForm: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceLineTipForm>;
|
|
14247
14261
|
export const consumerInvoiceOrderSummary: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceOrderSummary>;
|
|
14248
14262
|
export const consumerInvoicePayment: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoicePayment>;
|
|
14249
14263
|
export const consumerInvoiceReference: PropTypes.Requireable<io.flow.v0.models.ConsumerInvoiceReference>;
|
package/src/api.js
CHANGED
|
@@ -7572,6 +7572,12 @@ T['io.flow.v0.models.consumer_invoice_levy_form'] = PropTypes.exact({
|
|
|
7572
7572
|
amount: PropTypes.number.isRequired,
|
|
7573
7573
|
});
|
|
7574
7574
|
|
|
7575
|
+
T['io.flow.v0.models.consumer_invoice_line_tip_form'] = PropTypes.exact({
|
|
7576
|
+
discriminator: PropTypes.oneOf(['tip']).isRequired,
|
|
7577
|
+
price: PropTypes.number.isRequired,
|
|
7578
|
+
tax: T['io.flow.v0.models.consumer_invoice_levy_form'],
|
|
7579
|
+
});
|
|
7580
|
+
|
|
7575
7581
|
T['io.flow.v0.models.consumer_invoice_line_shipping_form'] = PropTypes.exact({
|
|
7576
7582
|
discriminator: PropTypes.oneOf(['shipping']).isRequired,
|
|
7577
7583
|
price: PropTypes.number.isRequired,
|
|
@@ -7594,6 +7600,7 @@ T['io.flow.v0.unions.consumer_invoice_line_form'] = PropTypes.oneOfType([
|
|
|
7594
7600
|
T['io.flow.v0.models.consumer_invoice_line_item_form'],
|
|
7595
7601
|
T['io.flow.v0.models.consumer_invoice_line_discount_form'],
|
|
7596
7602
|
T['io.flow.v0.models.consumer_invoice_line_shipping_form'],
|
|
7603
|
+
T['io.flow.v0.models.consumer_invoice_line_tip_form'],
|
|
7597
7604
|
]);
|
|
7598
7605
|
|
|
7599
7606
|
T['io.flow.v0.models.credit_memo_form'] = PropTypes.exact({
|
|
@@ -7955,6 +7962,7 @@ T['io.flow.v0.enums.transaction_source'] = PropTypes.oneOf([
|
|
|
7955
7962
|
'merchant_payout',
|
|
7956
7963
|
'merchant_refund',
|
|
7957
7964
|
'ge_revenue_share',
|
|
7965
|
+
'merchant_fee',
|
|
7958
7966
|
]);
|
|
7959
7967
|
|
|
7960
7968
|
T['io.flow.v0.models.parent_transaction_summary'] = PropTypes.exact({
|
|
@@ -10607,6 +10615,12 @@ T['io.flow.v0.models.consumer_invoice_levy'] = PropTypes.exact({
|
|
|
10607
10615
|
value: T['io.flow.v0.models.price'].isRequired,
|
|
10608
10616
|
});
|
|
10609
10617
|
|
|
10618
|
+
T['io.flow.v0.models.consumer_invoice_line_tip'] = PropTypes.exact({
|
|
10619
|
+
discriminator: PropTypes.oneOf(['tip']).isRequired,
|
|
10620
|
+
price: T['io.flow.v0.models.price'].isRequired,
|
|
10621
|
+
tax: T['io.flow.v0.models.consumer_invoice_levy'],
|
|
10622
|
+
});
|
|
10623
|
+
|
|
10610
10624
|
T['io.flow.v0.models.consumer_invoice_line_shipping'] = PropTypes.exact({
|
|
10611
10625
|
discriminator: PropTypes.oneOf(['shipping']).isRequired,
|
|
10612
10626
|
price: T['io.flow.v0.models.price'].isRequired,
|
|
@@ -10630,6 +10644,7 @@ T['io.flow.v0.unions.consumer_invoice_line'] = PropTypes.oneOfType([
|
|
|
10630
10644
|
T['io.flow.v0.models.consumer_invoice_line_item'],
|
|
10631
10645
|
T['io.flow.v0.models.consumer_invoice_line_discount'],
|
|
10632
10646
|
T['io.flow.v0.models.consumer_invoice_line_shipping'],
|
|
10647
|
+
T['io.flow.v0.models.consumer_invoice_line_tip'],
|
|
10633
10648
|
]);
|
|
10634
10649
|
|
|
10635
10650
|
T['io.flow.v0.models.b2b_credit_memo'] = PropTypes.exact({
|
|
@@ -16547,6 +16562,8 @@ export const consumerInvoiceLineItem = T['io.flow.v0.models.consumer_invoice_lin
|
|
|
16547
16562
|
export const consumerInvoiceLineItemForm = T['io.flow.v0.models.consumer_invoice_line_item_form'];
|
|
16548
16563
|
export const consumerInvoiceLineShipping = T['io.flow.v0.models.consumer_invoice_line_shipping'];
|
|
16549
16564
|
export const consumerInvoiceLineShippingForm = T['io.flow.v0.models.consumer_invoice_line_shipping_form'];
|
|
16565
|
+
export const consumerInvoiceLineTip = T['io.flow.v0.models.consumer_invoice_line_tip'];
|
|
16566
|
+
export const consumerInvoiceLineTipForm = T['io.flow.v0.models.consumer_invoice_line_tip_form'];
|
|
16550
16567
|
export const consumerInvoiceOrderSummary = T['io.flow.v0.models.consumer_invoice_order_summary'];
|
|
16551
16568
|
export const consumerInvoicePayment = T['io.flow.v0.models.consumer_invoice_payment'];
|
|
16552
16569
|
export const consumerInvoiceReference = T['io.flow.v0.models.consumer_invoice_reference'];
|