@flowio/api-internal-prop-types 9.16.0 → 9.16.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "9.16.0",
3
+ "version": "9.16.1",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "keywords": [
6
6
  "flow",
@@ -30,5 +30,5 @@
30
30
  "peerDependencies": {
31
31
  "prop-types": "^15.7.0"
32
32
  },
33
- "gitHead": "4f33dd3511d45000dd2c832ede028d2388f13ff4"
33
+ "gitHead": "fbd4b0964f2c1283e416a565a6ca2966a727ef63"
34
34
  }
@@ -366,6 +366,40 @@ declare namespace io.flow.experience.v0.models {
366
366
  readonly 'not_included': io.flow.experience.v0.unions.AllocationComponent[];
367
367
  }
368
368
 
369
+ interface AllocationLineSummary {
370
+ readonly 'line_items': io.flow.experience.v0.models.AllocationLineSummaryLineItem[];
371
+ readonly 'shipping': io.flow.experience.v0.models.AllocationLineSummaryShipping;
372
+ readonly 'subtotal': io.flow.common.v0.models.MoneyWithBase;
373
+ readonly 'discount': io.flow.common.v0.models.MoneyWithBase;
374
+ readonly 'duties': io.flow.common.v0.models.MoneyWithBase;
375
+ readonly 'tax': io.flow.common.v0.models.MoneyWithBase;
376
+ readonly 'tax_subsidy': io.flow.common.v0.models.MoneyWithBase;
377
+ readonly 'duties_subsidy': io.flow.common.v0.models.MoneyWithBase;
378
+ readonly 'total': io.flow.common.v0.models.MoneyWithBase;
379
+ }
380
+
381
+ interface AllocationLineSummaryLineItem {
382
+ readonly 'item_number': string;
383
+ readonly 'line_number': string;
384
+ readonly 'subtotal': io.flow.common.v0.models.MoneyWithBase;
385
+ readonly 'discount': io.flow.common.v0.models.MoneyWithBase;
386
+ readonly 'duties': io.flow.common.v0.models.MoneyWithBase;
387
+ readonly 'tax': io.flow.common.v0.models.MoneyWithBase;
388
+ readonly 'tax_subsidy': io.flow.common.v0.models.MoneyWithBase;
389
+ readonly 'duties_subsidy': io.flow.common.v0.models.MoneyWithBase;
390
+ readonly 'total': io.flow.common.v0.models.MoneyWithBase;
391
+ }
392
+
393
+ interface AllocationLineSummaryShipping {
394
+ readonly 'subtotal': io.flow.common.v0.models.MoneyWithBase;
395
+ readonly 'discount': io.flow.common.v0.models.MoneyWithBase;
396
+ readonly 'duties': io.flow.common.v0.models.MoneyWithBase;
397
+ readonly 'tax': io.flow.common.v0.models.MoneyWithBase;
398
+ readonly 'tax_subsidy': io.flow.common.v0.models.MoneyWithBase;
399
+ readonly 'duties_subsidy': io.flow.common.v0.models.MoneyWithBase;
400
+ readonly 'total': io.flow.common.v0.models.MoneyWithBase;
401
+ }
402
+
369
403
  interface AllocationOrderDetail {
370
404
  readonly 'discriminator': 'allocation_order_detail';
371
405
  readonly 'key': io.flow.order.price.v0.enums.OrderPriceDetailKey;
@@ -9538,14 +9572,14 @@ declare namespace io.flow.label.internal.v0.models {
9538
9572
  readonly 'carrier': io.flow.fulfillment.v0.models.CarrierReference;
9539
9573
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9540
9574
  readonly 'q'?: string;
9541
- readonly 'position'?: number;
9575
+ readonly 'position': number;
9542
9576
  }
9543
9577
 
9544
9578
  interface CarrierAccountForm {
9545
9579
  readonly 'carrier_id': string;
9546
9580
  readonly 'credentials': io.flow.tracking.internal.v0.unions.CarrierCredentials;
9547
9581
  readonly 'q'?: string;
9548
- readonly 'position'?: number;
9582
+ readonly 'position': number;
9549
9583
  }
9550
9584
 
9551
9585
  interface CarrierInvoice {
@@ -12287,7 +12321,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
12287
12321
  type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
12288
12322
  type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
12289
12323
  type CheckoutInfoPaymentsFormDataKeyField = 'value' | 'currency' | 'shipping_country';
12290
- type CheckoutInfoTranslationsKeyField = 'locale';
12324
+ type CheckoutInfoTranslationsKeyField = 'language';
12291
12325
  type CheckoutInitiatePaymentErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
12292
12326
  type CheckoutPaymentAuthorizationParametersErrorCode = 'order_balance_not_available';
12293
12327
  type CheckoutSetAddressCityErrorCode = 'address_city_invalid' | 'address_city_required';
@@ -16230,7 +16264,7 @@ declare namespace io.flow.internal.v0.enums {
16230
16264
  type CheckoutInfoOrderSummaryKeyField = 'shipping_country' | 'shipping_province' | 'shipping_postal' | 'delivery_option_id';
16231
16265
  type CheckoutInfoPaymentDetailsKeyField = 'value' | 'currency' | 'payment_method_id';
16232
16266
  type CheckoutInfoPaymentsFormDataKeyField = 'value' | 'currency' | 'shipping_country';
16233
- type CheckoutInfoTranslationsKeyField = 'locale';
16267
+ type CheckoutInfoTranslationsKeyField = 'language';
16234
16268
  type CheckoutInitiatePaymentErrorCode = 'payment_failed' | 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
16235
16269
  type CheckoutLineErrorCode = 'line_quantity_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_value_threshold_exceeded';
16236
16270
  type CheckoutPaymentAuthorizationParametersErrorCode = 'order_balance_not_available';
@@ -1453,7 +1453,7 @@ T['io.flow.checkout.protocol.v0.models.checkout_initiate_payment_error'] = PropT
1453
1453
  message: PropTypes.string.isRequired,
1454
1454
  });
1455
1455
 
1456
- T['io.flow.checkout.protocol.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['locale']);
1456
+ T['io.flow.checkout.protocol.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['language']);
1457
1457
 
1458
1458
  T['io.flow.checkout.protocol.v0.models.checkout_info_translations_key'] = PropTypes.exact({
1459
1459
  field: T['io.flow.checkout.protocol.v0.enums.checkout_info_translations_key_field'].isRequired,
@@ -16560,7 +16560,7 @@ T['io.flow.internal.v0.unions.checkout_initiate_payment_form'] = PropTypes.oneOf
16560
16560
  T['io.flow.internal.v0.models.checkout_initiate_direct_payment_form'],
16561
16561
  ]);
16562
16562
 
16563
- T['io.flow.internal.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['locale']);
16563
+ T['io.flow.internal.v0.enums.checkout_info_translations_key_field'] = PropTypes.oneOf(['language']);
16564
16564
 
16565
16565
  T['io.flow.internal.v0.models.checkout_info_translations_key'] = PropTypes.exact({
16566
16566
  field: T['io.flow.internal.v0.enums.checkout_info_translations_key_field'].isRequired,
@@ -20304,6 +20304,40 @@ T['io.flow.common.v0.models.money_with_base'] = PropTypes.exact({
20304
20304
  base: T['io.flow.common.v0.models.money'].isRequired,
20305
20305
  });
20306
20306
 
20307
+ T['io.flow.experience.v0.models.allocation_line_summary_shipping'] = PropTypes.exact({
20308
+ subtotal: T['io.flow.common.v0.models.money_with_base'].isRequired,
20309
+ discount: T['io.flow.common.v0.models.money_with_base'].isRequired,
20310
+ duties: T['io.flow.common.v0.models.money_with_base'].isRequired,
20311
+ tax: T['io.flow.common.v0.models.money_with_base'].isRequired,
20312
+ tax_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20313
+ duties_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20314
+ total: T['io.flow.common.v0.models.money_with_base'].isRequired,
20315
+ });
20316
+
20317
+ T['io.flow.experience.v0.models.allocation_line_summary_line_item'] = PropTypes.exact({
20318
+ item_number: PropTypes.string.isRequired,
20319
+ line_number: PropTypes.string.isRequired,
20320
+ subtotal: T['io.flow.common.v0.models.money_with_base'].isRequired,
20321
+ discount: T['io.flow.common.v0.models.money_with_base'].isRequired,
20322
+ duties: T['io.flow.common.v0.models.money_with_base'].isRequired,
20323
+ tax: T['io.flow.common.v0.models.money_with_base'].isRequired,
20324
+ tax_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20325
+ duties_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20326
+ total: T['io.flow.common.v0.models.money_with_base'].isRequired,
20327
+ });
20328
+
20329
+ T['io.flow.experience.v0.models.allocation_line_summary'] = PropTypes.exact({
20330
+ line_items: PropTypes.arrayOf(T['io.flow.experience.v0.models.allocation_line_summary_line_item']).isRequired,
20331
+ shipping: T['io.flow.experience.v0.models.allocation_line_summary_shipping'].isRequired,
20332
+ subtotal: T['io.flow.common.v0.models.money_with_base'].isRequired,
20333
+ discount: T['io.flow.common.v0.models.money_with_base'].isRequired,
20334
+ duties: T['io.flow.common.v0.models.money_with_base'].isRequired,
20335
+ tax: T['io.flow.common.v0.models.money_with_base'].isRequired,
20336
+ tax_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20337
+ duties_subsidy: T['io.flow.common.v0.models.money_with_base'].isRequired,
20338
+ total: T['io.flow.common.v0.models.money_with_base'].isRequired,
20339
+ });
20340
+
20307
20341
  T['io.flow.tax.internal.v0.models.liability_remittance_plan'] = PropTypes.exact({
20308
20342
  id: PropTypes.string.isRequired,
20309
20343
  organization: PropTypes.string.isRequired,
@@ -20927,7 +20961,7 @@ T['io.flow.label.internal.v0.models.carrier_account_form'] = PropTypes.exact({
20927
20961
  carrier_id: PropTypes.string.isRequired,
20928
20962
  credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
20929
20963
  q: PropTypes.string,
20930
- position: PropTypes.number,
20964
+ position: PropTypes.number.isRequired,
20931
20965
  });
20932
20966
 
20933
20967
  T['io.flow.tracking.internal.v0.models.tracking_request'] = PropTypes.exact({
@@ -20976,7 +21010,7 @@ T['io.flow.label.internal.v0.models.carrier_account'] = PropTypes.exact({
20976
21010
  carrier: T['io.flow.fulfillment.v0.models.carrier_reference'].isRequired,
20977
21011
  credentials: T['io.flow.tracking.internal.v0.unions.carrier_credentials'].isRequired,
20978
21012
  q: PropTypes.string,
20979
- position: PropTypes.number,
21013
+ position: PropTypes.number.isRequired,
20980
21014
  });
20981
21015
 
20982
21016
  T['io.flow.internal.v0.models.carrier_account_upserted'] = PropTypes.exact({