@flowio/types 11.9.4 → 11.9.5

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.
@@ -6447,6 +6447,7 @@ declare namespace io.flow.common.v0.models {
6447
6447
  interface EntityIdentifier {
6448
6448
  readonly name: io.flow.common.v0.enums.EntityIdentifierType;
6449
6449
  readonly number: string;
6450
+ readonly issuing_country?: string;
6450
6451
  }
6451
6452
  interface Exception {
6452
6453
  readonly type: io.flow.common.v0.enums.ExceptionType;
@@ -18368,7 +18369,7 @@ declare namespace io.flow.internal.v0.models {
18368
18369
  }
18369
18370
  interface MerchantOfRecordEntitySettingsForm {
18370
18371
  readonly name: string;
18371
- readonly vat: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
18372
+ readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
18372
18373
  readonly streets: string[];
18373
18374
  readonly city: string;
18374
18375
  readonly province?: string;
package/dist/api.d.ts CHANGED
@@ -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;
@@ -6164,6 +6167,35 @@ declare namespace io.flow.v0.models {
6164
6167
  readonly discriminator: 'return_package_ratecard_fee';
6165
6168
  readonly amount: number;
6166
6169
  }
6170
+ interface ReturnPolicy {
6171
+ readonly id: string;
6172
+ readonly q: string;
6173
+ readonly query: io.flow.v0.models.Query;
6174
+ readonly status: io.flow.v0.enums.ReturnItemStatus;
6175
+ readonly description?: string;
6176
+ readonly statistics: io.flow.v0.models.ReturnPolicyStatistic;
6177
+ }
6178
+ interface ReturnPolicyForm {
6179
+ readonly q: string;
6180
+ readonly description?: string;
6181
+ }
6182
+ interface ReturnPolicyItemResult {
6183
+ readonly id: string;
6184
+ readonly organization_id: string;
6185
+ readonly catalog_item_id: string;
6186
+ readonly return_policy_id: string;
6187
+ readonly status: io.flow.v0.enums.ReturnItemStatus;
6188
+ }
6189
+ interface ReturnPolicyStatistic {
6190
+ readonly state: io.flow.v0.enums.ReturnPolicyState;
6191
+ readonly number_items: number;
6192
+ }
6193
+ interface ReturnPolicyVersion {
6194
+ readonly id: string;
6195
+ readonly timestamp: string;
6196
+ readonly type: io.flow.v0.enums.ChangeType;
6197
+ readonly return_policy: io.flow.v0.models.ReturnPolicy;
6198
+ }
6167
6199
  interface ReturnReason {
6168
6200
  readonly name: string;
6169
6201
  }
@@ -8594,9 +8626,16 @@ export declare type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
8594
8626
  export declare type ReturnDeletedV2 = io.flow.v0.models.ReturnDeletedV2;
8595
8627
  export declare type ReturnForm = io.flow.v0.models.ReturnForm;
8596
8628
  export declare type ReturnItemReference = io.flow.v0.models.ReturnItemReference;
8629
+ export declare type ReturnItemStatus = io.flow.v0.enums.ReturnItemStatus;
8597
8630
  export declare type ReturnLineItem = io.flow.v0.models.ReturnLineItem;
8598
8631
  export declare type ReturnOrderReference = io.flow.v0.models.ReturnOrderReference;
8599
8632
  export declare type ReturnPackageRatecardFee = io.flow.v0.models.ReturnPackageRatecardFee;
8633
+ export declare type ReturnPolicy = io.flow.v0.models.ReturnPolicy;
8634
+ export declare type ReturnPolicyForm = io.flow.v0.models.ReturnPolicyForm;
8635
+ export declare type ReturnPolicyItemResult = io.flow.v0.models.ReturnPolicyItemResult;
8636
+ export declare type ReturnPolicyState = io.flow.v0.enums.ReturnPolicyState;
8637
+ export declare type ReturnPolicyStatistic = io.flow.v0.models.ReturnPolicyStatistic;
8638
+ export declare type ReturnPolicyVersion = io.flow.v0.models.ReturnPolicyVersion;
8600
8639
  export declare type ReturnReason = io.flow.v0.models.ReturnReason;
8601
8640
  export declare type ReturnReasonForm = io.flow.v0.models.ReturnReasonForm;
8602
8641
  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.5",
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": "15fd85cc5d7cbfb89d3226c8158381ccba253fcb"
29
29
  }
@@ -8711,6 +8711,7 @@ declare namespace io.flow.common.v0.models {
8711
8711
  interface EntityIdentifier {
8712
8712
  readonly name: io.flow.common.v0.enums.EntityIdentifierType;
8713
8713
  readonly number: string;
8714
+ readonly issuing_country?: string;
8714
8715
  }
8715
8716
 
8716
8717
  interface Exception {
@@ -23736,7 +23737,7 @@ declare namespace io.flow.internal.v0.models {
23736
23737
 
23737
23738
  interface MerchantOfRecordEntitySettingsForm {
23738
23739
  readonly name: string;
23739
- readonly vat: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
23740
+ readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
23740
23741
  readonly streets: string[];
23741
23742
  readonly city: string;
23742
23743
  readonly province?: string;
package/src/api.ts CHANGED
@@ -1573,6 +1573,8 @@ declare namespace io.flow.v0.enums {
1573
1573
  type RatecardOwner = 'flow' | 'organization';
1574
1574
  type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
1575
1575
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
1576
+ type ReturnItemStatus = 'returnable' | 'non-returnable';
1577
+ type ReturnPolicyState = 'current' | 'deleting' | 'updating';
1576
1578
  type ReturnStatus = 'open' | 'refunded';
1577
1579
  type ReturnTrackingStatus =
1578
1580
  | 'awaiting_customs_clearance'
@@ -3802,6 +3804,7 @@ declare namespace io.flow.v0.models {
3802
3804
  interface EntityIdentifier {
3803
3805
  readonly name: io.flow.v0.enums.EntityIdentifierType;
3804
3806
  readonly number: string;
3807
+ readonly issuing_country?: string;
3805
3808
  }
3806
3809
 
3807
3810
  interface EstimatedDimensions {
@@ -7710,6 +7713,40 @@ declare namespace io.flow.v0.models {
7710
7713
  readonly amount: number;
7711
7714
  }
7712
7715
 
7716
+ interface ReturnPolicy {
7717
+ readonly id: string;
7718
+ readonly q: string;
7719
+ readonly query: io.flow.v0.models.Query;
7720
+ readonly status: io.flow.v0.enums.ReturnItemStatus;
7721
+ readonly description?: string;
7722
+ readonly statistics: io.flow.v0.models.ReturnPolicyStatistic;
7723
+ }
7724
+
7725
+ interface ReturnPolicyForm {
7726
+ readonly q: string;
7727
+ readonly description?: string;
7728
+ }
7729
+
7730
+ interface ReturnPolicyItemResult {
7731
+ readonly id: string;
7732
+ readonly organization_id: string;
7733
+ readonly catalog_item_id: string;
7734
+ readonly return_policy_id: string;
7735
+ readonly status: io.flow.v0.enums.ReturnItemStatus;
7736
+ }
7737
+
7738
+ interface ReturnPolicyStatistic {
7739
+ readonly state: io.flow.v0.enums.ReturnPolicyState;
7740
+ readonly number_items: number;
7741
+ }
7742
+
7743
+ interface ReturnPolicyVersion {
7744
+ readonly id: string;
7745
+ readonly timestamp: string;
7746
+ readonly type: io.flow.v0.enums.ChangeType;
7747
+ readonly return_policy: io.flow.v0.models.ReturnPolicy;
7748
+ }
7749
+
7713
7750
  interface ReturnReason {
7714
7751
  readonly name: string;
7715
7752
  }
@@ -10686,9 +10723,16 @@ export type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
10686
10723
  export type ReturnDeletedV2 = io.flow.v0.models.ReturnDeletedV2;
10687
10724
  export type ReturnForm = io.flow.v0.models.ReturnForm;
10688
10725
  export type ReturnItemReference = io.flow.v0.models.ReturnItemReference;
10726
+ export type ReturnItemStatus = io.flow.v0.enums.ReturnItemStatus;
10689
10727
  export type ReturnLineItem = io.flow.v0.models.ReturnLineItem;
10690
10728
  export type ReturnOrderReference = io.flow.v0.models.ReturnOrderReference;
10691
10729
  export type ReturnPackageRatecardFee = io.flow.v0.models.ReturnPackageRatecardFee;
10730
+ export type ReturnPolicy = io.flow.v0.models.ReturnPolicy;
10731
+ export type ReturnPolicyForm = io.flow.v0.models.ReturnPolicyForm;
10732
+ export type ReturnPolicyItemResult = io.flow.v0.models.ReturnPolicyItemResult;
10733
+ export type ReturnPolicyState = io.flow.v0.enums.ReturnPolicyState;
10734
+ export type ReturnPolicyStatistic = io.flow.v0.models.ReturnPolicyStatistic;
10735
+ export type ReturnPolicyVersion = io.flow.v0.models.ReturnPolicyVersion;
10692
10736
  export type ReturnReason = io.flow.v0.models.ReturnReason;
10693
10737
  export type ReturnReasonForm = io.flow.v0.models.ReturnReasonForm;
10694
10738
  export type ReturnReasonPutForm = io.flow.v0.models.ReturnReasonPutForm;