@flowio/types 11.9.4 → 11.9.6

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/dist/api.d.ts CHANGED
@@ -899,7 +899,7 @@ declare namespace io.flow.v0.enums {
899
899
  type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
900
900
  type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
901
901
  type OrderPaymentType = 'card' | 'online' | 'credit' | 'installment_plan' | 'cash_on_delivery';
902
- type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge';
902
+ type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge';
903
903
  type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
904
904
  type OrderStatus = 'open' | 'submitted';
905
905
  type OrderStorage = 'do_not_persist' | 'persist';
@@ -924,6 +924,8 @@ declare namespace io.flow.v0.enums {
924
924
  type RatecardOwner = 'flow' | 'organization';
925
925
  type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
926
926
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
927
+ type ReturnItemStatus = 'returnable' | 'non-returnable';
928
+ type ReturnPolicyState = 'current' | 'deleting' | 'updating';
927
929
  type ReturnStatus = 'open' | 'refunded';
928
930
  type ReturnTrackingStatus = 'awaiting_customs_clearance' | 'cancel_requested' | 'canceled' | 'collection_attempt_failed' | 'customs_clearance_completed' | 'delivered_to_retailer' | 'in_transit_to_local_hub' | 'in_transit_to_retailer' | 'parcel_added_to_pallet' | 'parcel_delayed' | 'parcel_extracted_from_pallet' | 'parcel_lost' | 'parcel_processed_by_retailer' | 'parcel_under_investigation' | 'processed_by_local_hub' | 'received_at_local_hub' | 'received_by_the_carrier' | 'return_registered_online';
929
931
  type ReversalErrorCode = 'amount_exceeds_balance' | 'authorization_declined' | 'authorization_expired' | 'invalid_authorization' | 'invalid_key' | 'invalid_amount' | 'invalid_currency' | 'no_remaining_balance' | 'partial_reversal_not_supported' | 'unknown';
@@ -2800,6 +2802,7 @@ declare namespace io.flow.v0.models {
2800
2802
  interface EntityIdentifier {
2801
2803
  readonly name: io.flow.v0.enums.EntityIdentifierType;
2802
2804
  readonly number: string;
2805
+ readonly issuing_country?: string;
2803
2806
  }
2804
2807
  interface EstimatedDimensions {
2805
2808
  readonly depth: io.flow.v0.models.Measurement;
@@ -5531,6 +5534,12 @@ declare namespace io.flow.v0.models {
5531
5534
  readonly rounding_method?: string;
5532
5535
  readonly rounding_value?: number;
5533
5536
  }
5537
+ interface PricingVersion {
5538
+ readonly id: string;
5539
+ readonly timestamp: string;
5540
+ readonly type: io.flow.v0.enums.ChangeType;
5541
+ readonly pricing: io.flow.v0.models.Pricing;
5542
+ }
5534
5543
  interface ProcessingEstimate {
5535
5544
  readonly location: io.flow.v0.enums.DeliveryWindowLocation;
5536
5545
  readonly min_date: string;
@@ -6164,6 +6173,35 @@ declare namespace io.flow.v0.models {
6164
6173
  readonly discriminator: 'return_package_ratecard_fee';
6165
6174
  readonly amount: number;
6166
6175
  }
6176
+ interface ReturnPolicy {
6177
+ readonly id: string;
6178
+ readonly q: string;
6179
+ readonly query: io.flow.v0.models.Query;
6180
+ readonly status: io.flow.v0.enums.ReturnItemStatus;
6181
+ readonly description?: string;
6182
+ readonly statistics: io.flow.v0.models.ReturnPolicyStatistic;
6183
+ }
6184
+ interface ReturnPolicyForm {
6185
+ readonly q: string;
6186
+ readonly description?: string;
6187
+ }
6188
+ interface ReturnPolicyItemResult {
6189
+ readonly id: string;
6190
+ readonly organization_id: string;
6191
+ readonly catalog_item_id: string;
6192
+ readonly return_policy_id: string;
6193
+ readonly status: io.flow.v0.enums.ReturnItemStatus;
6194
+ }
6195
+ interface ReturnPolicyStatistic {
6196
+ readonly state: io.flow.v0.enums.ReturnPolicyState;
6197
+ readonly number_items: number;
6198
+ }
6199
+ interface ReturnPolicyVersion {
6200
+ readonly id: string;
6201
+ readonly timestamp: string;
6202
+ readonly type: io.flow.v0.enums.ChangeType;
6203
+ readonly return_policy: io.flow.v0.models.ReturnPolicy;
6204
+ }
6167
6205
  interface ReturnReason {
6168
6206
  readonly name: string;
6169
6207
  }
@@ -8486,6 +8524,7 @@ export declare type PricingDeleted = io.flow.v0.models.PricingDeleted;
8486
8524
  export declare type PricingLevySetting = io.flow.v0.enums.PricingLevySetting;
8487
8525
  export declare type PricingSettings = io.flow.v0.models.PricingSettings;
8488
8526
  export declare type PricingUpserted = io.flow.v0.models.PricingUpserted;
8527
+ export declare type PricingVersion = io.flow.v0.models.PricingVersion;
8489
8528
  export declare type ProcessingEstimate = io.flow.v0.models.ProcessingEstimate;
8490
8529
  export declare type Promotion = io.flow.v0.unions.Promotion;
8491
8530
  export declare type PromotionTrigger = io.flow.v0.models.PromotionTrigger;
@@ -8594,9 +8633,16 @@ export declare type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
8594
8633
  export declare type ReturnDeletedV2 = io.flow.v0.models.ReturnDeletedV2;
8595
8634
  export declare type ReturnForm = io.flow.v0.models.ReturnForm;
8596
8635
  export declare type ReturnItemReference = io.flow.v0.models.ReturnItemReference;
8636
+ export declare type ReturnItemStatus = io.flow.v0.enums.ReturnItemStatus;
8597
8637
  export declare type ReturnLineItem = io.flow.v0.models.ReturnLineItem;
8598
8638
  export declare type ReturnOrderReference = io.flow.v0.models.ReturnOrderReference;
8599
8639
  export declare type ReturnPackageRatecardFee = io.flow.v0.models.ReturnPackageRatecardFee;
8640
+ export declare type ReturnPolicy = io.flow.v0.models.ReturnPolicy;
8641
+ export declare type ReturnPolicyForm = io.flow.v0.models.ReturnPolicyForm;
8642
+ export declare type ReturnPolicyItemResult = io.flow.v0.models.ReturnPolicyItemResult;
8643
+ export declare type ReturnPolicyState = io.flow.v0.enums.ReturnPolicyState;
8644
+ export declare type ReturnPolicyStatistic = io.flow.v0.models.ReturnPolicyStatistic;
8645
+ export declare type ReturnPolicyVersion = io.flow.v0.models.ReturnPolicyVersion;
8600
8646
  export declare type ReturnReason = io.flow.v0.models.ReturnReason;
8601
8647
  export declare type ReturnReasonForm = io.flow.v0.models.ReturnReasonForm;
8602
8648
  export declare type ReturnReasonPutForm = io.flow.v0.models.ReturnReasonPutForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.9.4",
3
+ "version": "11.9.6",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "da8141fd09ff9f207af4e9c749252f5be3fe6d2c"
28
+ "gitHead": "a0d0163b850c3fb93821d750061d1e38fc6cd04b"
29
29
  }