@flowio/types 11.13.0 → 11.14.0

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.
@@ -12848,6 +12848,8 @@ declare namespace io.flow.checkout.backend.v0.enums {
12848
12848
  declare namespace io.flow.checkout.backend.v0.models {
12849
12849
  interface CheckoutAddress {
12850
12850
  readonly name?: string;
12851
+ readonly first_name?: string;
12852
+ readonly last_name?: string;
12851
12853
  readonly country?: string;
12852
12854
  readonly streets?: string[];
12853
12855
  readonly city?: string;
@@ -13197,6 +13199,9 @@ declare namespace io.flow.checkout.backend.v0.models {
13197
13199
  readonly contact: io.flow.checkout.backend.v0.models.CheckoutContact;
13198
13200
  readonly deliveries: io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
13199
13201
  }
13202
+ interface CheckoutUrlParameters {
13203
+ readonly confirmation_url?: string;
13204
+ }
13200
13205
  interface InternalAvailableDelivery {
13201
13206
  readonly id: string;
13202
13207
  readonly items: io.flow.fulfillment.v0.models.DeliveryItem[];
@@ -15037,6 +15042,8 @@ declare namespace io.flow.internal.v0.models {
15037
15042
  }
15038
15043
  interface CheckoutAddress {
15039
15044
  readonly name?: string;
15045
+ readonly first_name?: string;
15046
+ readonly last_name?: string;
15040
15047
  readonly country?: string;
15041
15048
  readonly streets?: string[];
15042
15049
  readonly city?: string;
@@ -16448,6 +16455,9 @@ declare namespace io.flow.internal.v0.models {
16448
16455
  readonly url: string;
16449
16456
  readonly type: io.flow.internal.v0.enums.CheckoutUrlType;
16450
16457
  }
16458
+ interface CheckoutUrlParameters {
16459
+ readonly confirmation_url?: string;
16460
+ }
16451
16461
  interface Cipher {
16452
16462
  readonly id: string;
16453
16463
  readonly attributes: Record<string, string>;
@@ -22210,6 +22220,7 @@ export declare type CheckoutSubmitOrderForm = io.flow.internal.v0.models.Checkou
22210
22220
  export declare type CheckoutSubmitOrderForms = io.flow.internal.v0.unions.CheckoutSubmitOrderForms;
22211
22221
  export declare type CheckoutSubmittedOrder = io.flow.internal.v0.models.CheckoutSubmittedOrder;
22212
22222
  export declare type CheckoutUrl = io.flow.internal.v0.models.CheckoutUrl;
22223
+ export declare type CheckoutUrlParameters = io.flow.internal.v0.models.CheckoutUrlParameters;
22213
22224
  export declare type CheckoutUrlType = io.flow.internal.v0.enums.CheckoutUrlType;
22214
22225
  export declare type Cipher = io.flow.internal.v0.models.Cipher;
22215
22226
  export declare type CipherForm = io.flow.internal.v0.models.CipherForm;
package/dist/api.d.ts CHANGED
@@ -905,6 +905,7 @@ declare namespace io.flow.v0.enums {
905
905
  type OrderRefundSummaryPartialCharged = 'per_item' | 'for_order' | 'by_value_percentage' | 'by_quantity_percentage';
906
906
  type OrderStatus = 'open' | 'submitted';
907
907
  type OrderStorage = 'do_not_persist' | 'persist';
908
+ type OrderType = 'standard' | 'replacement';
908
909
  type OrganizationPaymentMethodTag = 'deny';
909
910
  type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
910
911
  type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
@@ -1036,7 +1037,6 @@ declare namespace io.flow.v0.models {
1036
1037
  readonly type: 'add_payment_method';
1037
1038
  readonly expires_at?: string;
1038
1039
  readonly available_payment_methods: io.flow.v0.models.PaymentPaymentMethod[];
1039
- readonly payment_failure?: io.flow.v0.models.PaymentFailure;
1040
1040
  }
1041
1041
  interface ActionCapture {
1042
1042
  readonly type: 'capture';
@@ -4591,6 +4591,7 @@ declare namespace io.flow.v0.models {
4591
4591
  readonly discriminator: 'order';
4592
4592
  readonly id: string;
4593
4593
  readonly number: string;
4594
+ readonly order_type?: io.flow.v0.enums.OrderType;
4594
4595
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
4595
4596
  readonly experience?: io.flow.v0.unions.ExpandableExperience;
4596
4597
  readonly customer: io.flow.v0.models.OrderCustomer;
@@ -4890,6 +4891,7 @@ declare namespace io.flow.v0.models {
4890
4891
  readonly min?: io.flow.v0.models.Price;
4891
4892
  }
4892
4893
  interface OrderPutForm {
4894
+ readonly order_type?: io.flow.v0.enums.OrderType;
4893
4895
  readonly items: io.flow.v0.models.LineItemForm[];
4894
4896
  readonly customer?: io.flow.v0.models.OrderCustomerForm;
4895
4897
  readonly delivered_duty?: io.flow.v0.enums.DeliveredDuty;
@@ -4936,6 +4938,14 @@ declare namespace io.flow.v0.models {
4936
4938
  readonly key: io.flow.v0.enums.OrderRefundSummaryIncludes;
4937
4939
  readonly charged: io.flow.v0.enums.OrderRefundSummaryPartialCharged;
4938
4940
  }
4941
+ interface OrderReplacement {
4942
+ readonly id: string;
4943
+ readonly parent_order: io.flow.v0.models.Order;
4944
+ readonly replacement_order: io.flow.v0.models.Order;
4945
+ }
4946
+ interface OrderReplacementForm {
4947
+ readonly items?: io.flow.v0.models.LineItemForm[];
4948
+ }
4939
4949
  interface OrderRuleReference {
4940
4950
  readonly id: string;
4941
4951
  readonly key: string;
@@ -5367,7 +5377,7 @@ declare namespace io.flow.v0.models {
5367
5377
  readonly codes: io.flow.v0.enums.PaymentErrorCode[];
5368
5378
  }
5369
5379
  interface PaymentFailure {
5370
- readonly authorization_id: string;
5380
+ readonly authorization_id?: string;
5371
5381
  readonly failure_code: io.flow.v0.enums.PaymentFailureCode;
5372
5382
  readonly failure_message: string;
5373
5383
  }
@@ -5568,6 +5578,7 @@ declare namespace io.flow.v0.models {
5568
5578
  interface PaymentRequest {
5569
5579
  readonly id: string;
5570
5580
  readonly status: io.flow.v0.models.PaymentRequestStatus;
5581
+ readonly last_payment_failure?: io.flow.v0.models.PaymentFailure;
5571
5582
  readonly next_action?: io.flow.v0.unions.Action;
5572
5583
  readonly amount: number;
5573
5584
  readonly amount_refundable?: number;
@@ -8782,6 +8793,8 @@ export declare type OrderRefundSummaryItem = io.flow.v0.models.OrderRefundSummar
8782
8793
  export declare type OrderRefundSummaryPartialCharged = io.flow.v0.enums.OrderRefundSummaryPartialCharged;
8783
8794
  export declare type OrderRefundSummaryPartialForm = io.flow.v0.models.OrderRefundSummaryPartialForm;
8784
8795
  export declare type OrderRefundSummaryPartialIncludes = io.flow.v0.models.OrderRefundSummaryPartialIncludes;
8796
+ export declare type OrderReplacement = io.flow.v0.models.OrderReplacement;
8797
+ export declare type OrderReplacementForm = io.flow.v0.models.OrderReplacementForm;
8785
8798
  export declare type OrderRuleReference = io.flow.v0.models.OrderRuleReference;
8786
8799
  export declare type OrderRulesSummary = io.flow.v0.models.OrderRulesSummary;
8787
8800
  export declare type OrderServiceChange = io.flow.v0.models.OrderServiceChange;
@@ -8798,6 +8811,7 @@ export declare type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
8798
8811
  export declare type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
8799
8812
  export declare type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
8800
8813
  export declare type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
8814
+ export declare type OrderType = io.flow.v0.enums.OrderType;
8801
8815
  export declare type OrderUpserted = io.flow.v0.models.OrderUpserted;
8802
8816
  export declare type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
8803
8817
  export declare type OrderVersion = io.flow.v0.models.OrderVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.13.0",
3
+ "version": "11.14.0",
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": "462c26f90ea96f2f4a3a44d1d71ebeb3238f1239"
28
+ "gitHead": "9769b7fb2d83cbbedf5b031b65d235cbea955967"
29
29
  }
@@ -16776,6 +16776,8 @@ declare namespace io.flow.checkout.backend.v0.enums {
16776
16776
  declare namespace io.flow.checkout.backend.v0.models {
16777
16777
  interface CheckoutAddress {
16778
16778
  readonly name?: string;
16779
+ readonly first_name?: string;
16780
+ readonly last_name?: string;
16779
16781
  readonly country?: string;
16780
16782
  readonly streets?: string[];
16781
16783
  readonly city?: string;
@@ -17197,6 +17199,10 @@ declare namespace io.flow.checkout.backend.v0.models {
17197
17199
  readonly deliveries: io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
17198
17200
  }
17199
17201
 
17202
+ interface CheckoutUrlParameters {
17203
+ readonly confirmation_url?: string;
17204
+ }
17205
+
17200
17206
  interface InternalAvailableDelivery {
17201
17207
  readonly id: string;
17202
17208
  readonly items: io.flow.fulfillment.v0.models.DeliveryItem[];
@@ -19944,6 +19950,8 @@ declare namespace io.flow.internal.v0.models {
19944
19950
 
19945
19951
  interface CheckoutAddress {
19946
19952
  readonly name?: string;
19953
+ readonly first_name?: string;
19954
+ readonly last_name?: string;
19947
19955
  readonly country?: string;
19948
19956
  readonly streets?: string[];
19949
19957
  readonly city?: string;
@@ -21666,6 +21674,10 @@ declare namespace io.flow.internal.v0.models {
21666
21674
  readonly type: io.flow.internal.v0.enums.CheckoutUrlType;
21667
21675
  }
21668
21676
 
21677
+ interface CheckoutUrlParameters {
21678
+ readonly confirmation_url?: string;
21679
+ }
21680
+
21669
21681
  interface Cipher {
21670
21682
  readonly id: string;
21671
21683
  readonly attributes: Record<string, string>;
@@ -28774,6 +28786,7 @@ export type CheckoutSubmitOrderForm = io.flow.internal.v0.models.CheckoutSubmitO
28774
28786
  export type CheckoutSubmitOrderForms = io.flow.internal.v0.unions.CheckoutSubmitOrderForms;
28775
28787
  export type CheckoutSubmittedOrder = io.flow.internal.v0.models.CheckoutSubmittedOrder;
28776
28788
  export type CheckoutUrl = io.flow.internal.v0.models.CheckoutUrl;
28789
+ export type CheckoutUrlParameters = io.flow.internal.v0.models.CheckoutUrlParameters;
28777
28790
  export type CheckoutUrlType = io.flow.internal.v0.enums.CheckoutUrlType;
28778
28791
  export type Cipher = io.flow.internal.v0.models.Cipher;
28779
28792
  export type CipherForm = io.flow.internal.v0.models.CipherForm;
package/src/api.ts CHANGED
@@ -1502,6 +1502,7 @@ declare namespace io.flow.v0.enums {
1502
1502
  | 'by_quantity_percentage';
1503
1503
  type OrderStatus = 'open' | 'submitted';
1504
1504
  type OrderStorage = 'do_not_persist' | 'persist';
1505
+ type OrderType = 'standard' | 'replacement';
1505
1506
  type OrganizationPaymentMethodTag = 'deny';
1506
1507
  type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
1507
1508
  type PaymentErrorCode =
@@ -1792,7 +1793,6 @@ declare namespace io.flow.v0.models {
1792
1793
  readonly type: 'add_payment_method';
1793
1794
  readonly expires_at?: string;
1794
1795
  readonly available_payment_methods: io.flow.v0.models.PaymentPaymentMethod[];
1795
- readonly payment_failure?: io.flow.v0.models.PaymentFailure;
1796
1796
  }
1797
1797
 
1798
1798
  interface ActionCapture {
@@ -5929,6 +5929,7 @@ declare namespace io.flow.v0.models {
5929
5929
  readonly discriminator: 'order';
5930
5930
  readonly id: string;
5931
5931
  readonly number: string;
5932
+ readonly order_type?: io.flow.v0.enums.OrderType;
5932
5933
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
5933
5934
  readonly experience?: io.flow.v0.unions.ExpandableExperience;
5934
5935
  readonly customer: io.flow.v0.models.OrderCustomer;
@@ -6273,6 +6274,7 @@ declare namespace io.flow.v0.models {
6273
6274
  }
6274
6275
 
6275
6276
  interface OrderPutForm {
6277
+ readonly order_type?: io.flow.v0.enums.OrderType;
6276
6278
  readonly items: io.flow.v0.models.LineItemForm[];
6277
6279
  readonly customer?: io.flow.v0.models.OrderCustomerForm;
6278
6280
  readonly delivered_duty?: io.flow.v0.enums.DeliveredDuty;
@@ -6327,6 +6329,16 @@ declare namespace io.flow.v0.models {
6327
6329
  readonly charged: io.flow.v0.enums.OrderRefundSummaryPartialCharged;
6328
6330
  }
6329
6331
 
6332
+ interface OrderReplacement {
6333
+ readonly id: string;
6334
+ readonly parent_order: io.flow.v0.models.Order;
6335
+ readonly replacement_order: io.flow.v0.models.Order;
6336
+ }
6337
+
6338
+ interface OrderReplacementForm {
6339
+ readonly items?: io.flow.v0.models.LineItemForm[];
6340
+ }
6341
+
6330
6342
  interface OrderRuleReference {
6331
6343
  readonly id: string;
6332
6344
  readonly key: string;
@@ -6825,7 +6837,7 @@ declare namespace io.flow.v0.models {
6825
6837
  }
6826
6838
 
6827
6839
  interface PaymentFailure {
6828
- readonly authorization_id: string;
6840
+ readonly authorization_id?: string;
6829
6841
  readonly failure_code: io.flow.v0.enums.PaymentFailureCode;
6830
6842
  readonly failure_message: string;
6831
6843
  }
@@ -7066,6 +7078,7 @@ declare namespace io.flow.v0.models {
7066
7078
  interface PaymentRequest {
7067
7079
  readonly id: string;
7068
7080
  readonly status: io.flow.v0.models.PaymentRequestStatus;
7081
+ readonly last_payment_failure?: io.flow.v0.models.PaymentFailure;
7069
7082
  readonly next_action?: io.flow.v0.unions.Action;
7070
7083
  readonly amount: number;
7071
7084
  readonly amount_refundable?: number;
@@ -11022,6 +11035,8 @@ export type OrderRefundSummaryItem = io.flow.v0.models.OrderRefundSummaryItem;
11022
11035
  export type OrderRefundSummaryPartialCharged = io.flow.v0.enums.OrderRefundSummaryPartialCharged;
11023
11036
  export type OrderRefundSummaryPartialForm = io.flow.v0.models.OrderRefundSummaryPartialForm;
11024
11037
  export type OrderRefundSummaryPartialIncludes = io.flow.v0.models.OrderRefundSummaryPartialIncludes;
11038
+ export type OrderReplacement = io.flow.v0.models.OrderReplacement;
11039
+ export type OrderReplacementForm = io.flow.v0.models.OrderReplacementForm;
11025
11040
  export type OrderRuleReference = io.flow.v0.models.OrderRuleReference;
11026
11041
  export type OrderRulesSummary = io.flow.v0.models.OrderRulesSummary;
11027
11042
  export type OrderServiceChange = io.flow.v0.models.OrderServiceChange;
@@ -11038,6 +11053,7 @@ export type OrderSummaryItem = io.flow.v0.models.OrderSummaryItem;
11038
11053
  export type OrderSummaryLevy = io.flow.v0.models.OrderSummaryLevy;
11039
11054
  export type OrderSummaryLineItem = io.flow.v0.models.OrderSummaryLineItem;
11040
11055
  export type OrderSummaryPriceDetail = io.flow.v0.models.OrderSummaryPriceDetail;
11056
+ export type OrderType = io.flow.v0.enums.OrderType;
11041
11057
  export type OrderUpserted = io.flow.v0.models.OrderUpserted;
11042
11058
  export type OrderUpsertedV2 = io.flow.v0.models.OrderUpsertedV2;
11043
11059
  export type OrderVersion = io.flow.v0.models.OrderVersion;