@flowio/api-prop-types 10.16.70 → 10.16.71
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 +31 -1
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +31 -1
- package/src/api.js +32 -1
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.71",
|
|
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": "5fe142f9c051bfc6d8266e2debef0a86210b1e43"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -2282,7 +2282,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2282
2282
|
type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
|
|
2283
2283
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2284
2284
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2285
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'trueup' | 'carrier_charge' | '
|
|
2285
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | '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';
|
|
2286
2286
|
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2287
2287
|
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2288
2288
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
@@ -2335,6 +2335,10 @@ declare namespace io.flow.v0.models {
|
|
|
2335
2335
|
readonly 'status': io.flow.v0.enums.AbandonedOrderSettingStatus;
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
|
+
interface AccountIdReference {
|
|
2339
|
+
readonly 'id': string;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2338
2342
|
interface AccountOrdersExportType {
|
|
2339
2343
|
readonly 'discriminator': 'account_orders_export_type';
|
|
2340
2344
|
readonly 'statement_id'?: string;
|
|
@@ -3940,6 +3944,7 @@ declare namespace io.flow.v0.models {
|
|
|
3940
3944
|
interface ChannelTransaction {
|
|
3941
3945
|
readonly 'statement'?: io.flow.v0.models.BillingChannelStatementReference;
|
|
3942
3946
|
readonly 'id': string;
|
|
3947
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
3943
3948
|
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
3944
3949
|
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
3945
3950
|
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -5642,6 +5647,26 @@ declare namespace io.flow.v0.models {
|
|
|
5642
5647
|
readonly 'status': io.flow.v0.enums.SubcatalogItemStatus;
|
|
5643
5648
|
}
|
|
5644
5649
|
|
|
5650
|
+
interface FlowTransaction {
|
|
5651
|
+
readonly 'statement'?: io.flow.v0.models.BillingChannelStatementReference;
|
|
5652
|
+
readonly 'id': string;
|
|
5653
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
5654
|
+
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
5655
|
+
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
5656
|
+
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
5657
|
+
readonly 'currency': string;
|
|
5658
|
+
readonly 'source': io.flow.v0.enums.TransactionSource;
|
|
5659
|
+
readonly 'parent'?: io.flow.v0.models.ParentTransactionSummary;
|
|
5660
|
+
readonly 'gross': number;
|
|
5661
|
+
readonly 'fees': io.flow.v0.models.FeeDeduction[];
|
|
5662
|
+
readonly 'withholdings': io.flow.v0.models.WithholdingDeduction[];
|
|
5663
|
+
readonly 'discounts': io.flow.v0.models.BillingDiscount[];
|
|
5664
|
+
readonly 'net': number;
|
|
5665
|
+
readonly 'identifiers': Record<string, string>;
|
|
5666
|
+
readonly 'created_at': string;
|
|
5667
|
+
readonly 'updated_at': string;
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5645
5670
|
interface FraudEmailRule {
|
|
5646
5671
|
readonly 'id'?: string;
|
|
5647
5672
|
readonly 'email': string;
|
|
@@ -9285,6 +9310,7 @@ declare namespace io.flow.v0.models {
|
|
|
9285
9310
|
|
|
9286
9311
|
interface PayoutTransaction {
|
|
9287
9312
|
readonly 'id': string;
|
|
9313
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
9288
9314
|
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
9289
9315
|
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
9290
9316
|
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -12157,6 +12183,7 @@ declare namespace io.flow.v0.models {
|
|
|
12157
12183
|
interface Transaction {
|
|
12158
12184
|
readonly 'statement'?: io.flow.v0.models.BillingChannelStatementReference;
|
|
12159
12185
|
readonly 'id': string;
|
|
12186
|
+
readonly 'account': io.flow.v0.models.AccountIdReference;
|
|
12160
12187
|
readonly 'metadata'?: io.flow.v0.unions.TransactionMetadata;
|
|
12161
12188
|
readonly 'order'?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
12162
12189
|
readonly 'payment_request'?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -12186,6 +12213,7 @@ declare namespace io.flow.v0.models {
|
|
|
12186
12213
|
readonly 'label_created_at': string;
|
|
12187
12214
|
readonly 'carrier_id': string;
|
|
12188
12215
|
readonly 'carrier_tracking_number': string;
|
|
12216
|
+
readonly 'revenue_share_percentage': number;
|
|
12189
12217
|
readonly 'outbound'?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
12190
12218
|
}
|
|
12191
12219
|
|
|
@@ -12867,6 +12895,7 @@ export const abandonedOrderPromotion: PropTypes.Requireable<io.flow.v0.models.Ab
|
|
|
12867
12895
|
export const abandonedOrderPromotionDiscountDetails: PropTypes.Requireable<io.flow.v0.models.AbandonedOrderPromotionDiscountDetails>;
|
|
12868
12896
|
export const abandonedOrderPromotionForm: PropTypes.Requireable<io.flow.v0.models.AbandonedOrderPromotionForm>;
|
|
12869
12897
|
export const abandonedOrderSettings: PropTypes.Requireable<io.flow.v0.models.AbandonedOrderSettings>;
|
|
12898
|
+
export const accountIdReference: PropTypes.Requireable<io.flow.v0.models.AccountIdReference>;
|
|
12870
12899
|
export const accountOrdersExportType: PropTypes.Requireable<io.flow.v0.models.AccountOrdersExportType>;
|
|
12871
12900
|
export const accountReference: PropTypes.Requireable<io.flow.v0.models.AccountReference>;
|
|
12872
12901
|
export const accountTransactionsExportType: PropTypes.Requireable<io.flow.v0.models.AccountTransactionsExportType>;
|
|
@@ -13330,6 +13359,7 @@ export const flatRate: PropTypes.Requireable<io.flow.v0.models.FlatRate>;
|
|
|
13330
13359
|
export const flatRateForm: PropTypes.Requireable<io.flow.v0.models.FlatRateForm>;
|
|
13331
13360
|
export const flowCenterReference: PropTypes.Requireable<io.flow.v0.models.FlowCenterReference>;
|
|
13332
13361
|
export const flowItemIndexMetadata: PropTypes.Requireable<io.flow.v0.models.FlowItemIndexMetadata>;
|
|
13362
|
+
export const flowTransaction: PropTypes.Requireable<io.flow.v0.models.FlowTransaction>;
|
|
13333
13363
|
export const fraudEmailRule: PropTypes.Requireable<io.flow.v0.models.FraudEmailRule>;
|
|
13334
13364
|
export const fraudEmailRuleForm: PropTypes.Requireable<io.flow.v0.models.FraudEmailRuleForm>;
|
|
13335
13365
|
export const fraudFlowOrderReference: PropTypes.Requireable<io.flow.v0.models.FraudFlowOrderReference>;
|
package/src/api.js
CHANGED
|
@@ -6978,6 +6978,7 @@ T['io.flow.v0.models.transaction_metadata_carrier_charge'] = PropTypes.exact({
|
|
|
6978
6978
|
label_created_at: PropTypes.string.isRequired,
|
|
6979
6979
|
carrier_id: PropTypes.string.isRequired,
|
|
6980
6980
|
carrier_tracking_number: PropTypes.string.isRequired,
|
|
6981
|
+
revenue_share_percentage: PropTypes.number.isRequired,
|
|
6981
6982
|
outbound: T['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'],
|
|
6982
6983
|
});
|
|
6983
6984
|
|
|
@@ -7020,9 +7021,10 @@ T['io.flow.v0.enums.transaction_source'] = PropTypes.oneOf([
|
|
|
7020
7021
|
'reversal',
|
|
7021
7022
|
'shipping_label',
|
|
7022
7023
|
'shipping_label_service',
|
|
7024
|
+
'shipping_label_revenue_share',
|
|
7023
7025
|
'trueup',
|
|
7024
7026
|
'carrier_charge',
|
|
7025
|
-
'
|
|
7027
|
+
'carrier_charge_revenue_share',
|
|
7026
7028
|
'platform_fee',
|
|
7027
7029
|
'tax',
|
|
7028
7030
|
'duty',
|
|
@@ -7046,6 +7048,10 @@ T['io.flow.v0.models.billing_channel_payment_request_reference'] = PropTypes.exa
|
|
|
7046
7048
|
reference: PropTypes.string,
|
|
7047
7049
|
});
|
|
7048
7050
|
|
|
7051
|
+
T['io.flow.v0.models.account_id_reference'] = PropTypes.exact({
|
|
7052
|
+
id: PropTypes.string.isRequired,
|
|
7053
|
+
});
|
|
7054
|
+
|
|
7049
7055
|
T['io.flow.v0.models.billing_channel_statement_reference'] = PropTypes.exact({
|
|
7050
7056
|
id: PropTypes.string.isRequired,
|
|
7051
7057
|
});
|
|
@@ -8130,6 +8136,7 @@ T['io.flow.v0.models.billing_channel_order_summary'] = PropTypes.exact({
|
|
|
8130
8136
|
|
|
8131
8137
|
T['io.flow.v0.models.payout_transaction'] = PropTypes.exact({
|
|
8132
8138
|
id: PropTypes.string.isRequired,
|
|
8139
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8133
8140
|
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8134
8141
|
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8135
8142
|
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
@@ -8149,6 +8156,7 @@ T['io.flow.v0.models.payout_transaction'] = PropTypes.exact({
|
|
|
8149
8156
|
T['io.flow.v0.models.transaction'] = PropTypes.exact({
|
|
8150
8157
|
statement: T['io.flow.v0.models.billing_channel_statement_reference'],
|
|
8151
8158
|
id: PropTypes.string.isRequired,
|
|
8159
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8152
8160
|
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8153
8161
|
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8154
8162
|
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
@@ -8181,9 +8189,30 @@ T['io.flow.v0.models.organization_transaction_upserted'] = PropTypes.exact({
|
|
|
8181
8189
|
transaction: T['io.flow.v0.models.transaction'].isRequired,
|
|
8182
8190
|
});
|
|
8183
8191
|
|
|
8192
|
+
T['io.flow.v0.models.flow_transaction'] = PropTypes.exact({
|
|
8193
|
+
statement: T['io.flow.v0.models.billing_channel_statement_reference'],
|
|
8194
|
+
id: PropTypes.string.isRequired,
|
|
8195
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8196
|
+
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8197
|
+
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8198
|
+
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
8199
|
+
currency: PropTypes.string.isRequired,
|
|
8200
|
+
source: T['io.flow.v0.enums.transaction_source'].isRequired,
|
|
8201
|
+
parent: T['io.flow.v0.models.parent_transaction_summary'],
|
|
8202
|
+
gross: PropTypes.number.isRequired,
|
|
8203
|
+
fees: PropTypes.arrayOf(T['io.flow.v0.models.fee_deduction']).isRequired,
|
|
8204
|
+
withholdings: PropTypes.arrayOf(T['io.flow.v0.models.withholding_deduction']).isRequired,
|
|
8205
|
+
discounts: PropTypes.arrayOf(T['io.flow.v0.models.billing_discount']).isRequired,
|
|
8206
|
+
net: PropTypes.number.isRequired,
|
|
8207
|
+
identifiers: PropTypes.objectOf(PropTypes.string).isRequired,
|
|
8208
|
+
created_at: PropTypes.string.isRequired,
|
|
8209
|
+
updated_at: PropTypes.string.isRequired,
|
|
8210
|
+
});
|
|
8211
|
+
|
|
8184
8212
|
T['io.flow.v0.models.channel_transaction'] = PropTypes.exact({
|
|
8185
8213
|
statement: T['io.flow.v0.models.billing_channel_statement_reference'],
|
|
8186
8214
|
id: PropTypes.string.isRequired,
|
|
8215
|
+
account: T['io.flow.v0.models.account_id_reference'].isRequired,
|
|
8187
8216
|
metadata: T['io.flow.v0.unions.transaction_metadata'],
|
|
8188
8217
|
order: T['io.flow.v0.models.billing_channel_order_summary'],
|
|
8189
8218
|
payment_request: T['io.flow.v0.models.billing_channel_payment_request_reference'],
|
|
@@ -14688,6 +14717,7 @@ export const abandonedOrderPromotionForm = T['io.flow.v0.models.abandoned_order_
|
|
|
14688
14717
|
export const abandonedOrderPromotionStatus = T['io.flow.v0.enums.abandoned_order_promotion_status'];
|
|
14689
14718
|
export const abandonedOrderSettingStatus = T['io.flow.v0.enums.abandoned_order_setting_status'];
|
|
14690
14719
|
export const abandonedOrderSettings = T['io.flow.v0.models.abandoned_order_settings'];
|
|
14720
|
+
export const accountIdReference = T['io.flow.v0.models.account_id_reference'];
|
|
14691
14721
|
export const accountOrdersExportType = T['io.flow.v0.models.account_orders_export_type'];
|
|
14692
14722
|
export const accountReference = T['io.flow.v0.models.account_reference'];
|
|
14693
14723
|
export const accountTransactionsExportType = T['io.flow.v0.models.account_transactions_export_type'];
|
|
@@ -15257,6 +15287,7 @@ export const flowCenterReference = T['io.flow.v0.models.flow_center_reference'];
|
|
|
15257
15287
|
export const flowEntity = T['io.flow.v0.enums.flow_entity'];
|
|
15258
15288
|
export const flowItemIndexMetadata = T['io.flow.v0.models.flow_item_index_metadata'];
|
|
15259
15289
|
export const flowRole = T['io.flow.v0.enums.flow_role'];
|
|
15290
|
+
export const flowTransaction = T['io.flow.v0.models.flow_transaction'];
|
|
15260
15291
|
export const fraudEmailRule = T['io.flow.v0.models.fraud_email_rule'];
|
|
15261
15292
|
export const fraudEmailRuleDecision = T['io.flow.v0.enums.fraud_email_rule_decision'];
|
|
15262
15293
|
export const fraudEmailRuleForm = T['io.flow.v0.models.fraud_email_rule_form'];
|