@flowio/types 10.9.1 → 10.9.3

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.
@@ -1226,7 +1226,7 @@ declare namespace io.flow.checkout.protocol.v0.enums {
1226
1226
  type CheckoutAddLineErrorCode = 'line_quantity_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_value_threshold_exceeded';
1227
1227
  type CheckoutAddOrderIdentifierErrorCode = 'order_identifier_invalid';
1228
1228
  type CheckoutCreateAuthorizationDetailsErrorCode = 'checkout_not_found' | 'authorization_details_payment_not_found';
1229
- type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance';
1229
+ type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
1230
1230
  type CheckoutCreateBySessionErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported';
1231
1231
  type CheckoutDeleteAddressStreetErrorCode = 'address_line_number_invalid';
1232
1232
  type CheckoutDeleteLineErrorCode = 'line_not_found';
@@ -2142,7 +2142,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
2142
2142
  readonly key?: string;
2143
2143
  readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
2144
2144
  readonly center_key?: string;
2145
- readonly source: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2145
+ readonly source?: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2146
2146
  readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
2147
2147
  readonly tracking_status_timestamp?: string;
2148
2148
  readonly carrier_tracking_number?: string;
@@ -2156,6 +2156,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
2156
2156
  readonly quantity: number;
2157
2157
  readonly reason?: io.flow.RESERVED_WORD_return.v0.models.ReturnReason;
2158
2158
  readonly notes?: string;
2159
+ readonly attributes?: Record<string, string>;
2159
2160
  }
2160
2161
  interface ReturnOrderReference {
2161
2162
  readonly number: string;
@@ -3905,6 +3906,10 @@ declare namespace io.flow.adyen.v0.models {
3905
3906
  readonly value: number;
3906
3907
  readonly currency: string;
3907
3908
  }
3909
+ interface Applepay {
3910
+ readonly type: 'applepay';
3911
+ readonly applePayToken: string;
3912
+ }
3908
3913
  interface Authentication {
3909
3914
  readonly 'threeds2.fingerprintToken'?: string;
3910
3915
  readonly 'threeds2.challengeToken'?: string;
@@ -4085,7 +4090,7 @@ declare namespace io.flow.adyen.v0.models {
4085
4090
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
4086
4091
  readonly origin?: string;
4087
4092
  readonly channel?: io.flow.adyen.v0.enums.Channel;
4088
- readonly returnURL?: string;
4093
+ readonly returnUrl?: string;
4089
4094
  }
4090
4095
  interface PaymentResponse {
4091
4096
  readonly resultCode: io.flow.adyen.v0.enums.ResultCode;
@@ -4158,7 +4163,7 @@ declare namespace io.flow.adyen.v0.models {
4158
4163
  }
4159
4164
  declare namespace io.flow.adyen.v0.unions {
4160
4165
  type BrowserInfo = io.flow.adyen.v0.models.BrowserInfo3Ds1 | io.flow.adyen.v0.models.BrowserInfo3Ds2;
4161
- type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
4166
+ type PaymentMethodData = io.flow.adyen.v0.models.Scheme | io.flow.adyen.v0.models.Applepay;
4162
4167
  }
4163
4168
  declare namespace io.flow.order.management.v0.enums {
4164
4169
  type CancelReason = 'out_of_stock' | 'consumer_requested' | 'flow_cancel';
@@ -5613,19 +5618,9 @@ declare namespace io.flow.payment.internal.v0.models {
5613
5618
  readonly username: string;
5614
5619
  readonly password: string;
5615
5620
  }
5616
- interface ApplePaymentToken {
5617
- readonly discriminator: 'apple_payment_token';
5618
- readonly data: string;
5619
- readonly header: io.flow.payment.internal.v0.models.ApplePaymentTokenHeader;
5620
- readonly signature: string;
5621
- readonly version: string;
5622
- }
5623
- interface ApplePaymentTokenHeader {
5624
- readonly applicationData?: string;
5625
- readonly ephemeralPublicKey?: string;
5626
- readonly wrappedKey?: string;
5627
- readonly publicKeyHash: string;
5628
- readonly transactionId: string;
5621
+ interface ApplePayAuthorizationPayload {
5622
+ readonly discriminator: 'apple_pay_authorization_payload';
5623
+ readonly apple_pay_token: string;
5629
5624
  }
5630
5625
  interface AuthenticationForm {
5631
5626
  readonly password: string;
@@ -6125,7 +6120,7 @@ declare namespace io.flow.payment.internal.v0.models {
6125
6120
  }
6126
6121
  }
6127
6122
  declare namespace io.flow.payment.internal.v0.unions {
6128
- type AuthorizationPayload = io.flow.payment.internal.v0.models.ApplePaymentToken | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
6123
+ type AuthorizationPayload = io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
6129
6124
  type InlineAuthorizationParameters = io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
6130
6125
  type InternalAuthorizationDetails = io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails;
6131
6126
  type InternalRefundForm = io.flow.payment.internal.v0.models.AdyenRefundForm;
@@ -13024,7 +13019,7 @@ declare namespace io.flow.internal.v0.enums {
13024
13019
  type CheckoutAddressType = 'shipping' | 'invoicing';
13025
13020
  type CheckoutAssetType = 'stylesheet' | 'javascript';
13026
13021
  type CheckoutCreateAuthorizationDetailsErrorCode = 'checkout_not_found' | 'authorization_details_payment_not_found';
13027
- type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance';
13022
+ type CheckoutCreateAuthorizationErrorCode = 'authorization_form_not_supported' | 'authorization_invalid_amount' | 'authorization_invalid_currency' | 'authorization_amount_exceeds_balance' | 'address_street1_required';
13028
13023
  type CheckoutCreateBySessionErrorCode = 'session_not_found' | 'session_experience_required' | 'country_not_supported';
13029
13024
  type CheckoutDeleteAddressStreetErrorCode = 'address_line_number_invalid';
13030
13025
  type CheckoutDeleteLineErrorCode = 'line_not_found';
@@ -13609,19 +13604,9 @@ declare namespace io.flow.internal.v0.models {
13609
13604
  interface ApmContent {
13610
13605
  readonly processor_description: io.flow.internal.v0.unions.ContentItem;
13611
13606
  }
13612
- interface ApplePaymentToken {
13613
- readonly discriminator: 'apple_payment_token';
13614
- readonly data: string;
13615
- readonly header: io.flow.internal.v0.models.ApplePaymentTokenHeader;
13616
- readonly signature: string;
13617
- readonly version: string;
13618
- }
13619
- interface ApplePaymentTokenHeader {
13620
- readonly applicationData?: string;
13621
- readonly ephemeralPublicKey?: string;
13622
- readonly wrappedKey?: string;
13623
- readonly publicKeyHash: string;
13624
- readonly transactionId: string;
13607
+ interface ApplePayAuthorizationPayload {
13608
+ readonly discriminator: 'apple_pay_authorization_payload';
13609
+ readonly apple_pay_token: string;
13625
13610
  }
13626
13611
  interface AttributeLabel {
13627
13612
  readonly value: string;
@@ -19639,7 +19624,7 @@ declare namespace io.flow.internal.v0.models {
19639
19624
  }
19640
19625
  }
19641
19626
  declare namespace io.flow.internal.v0.unions {
19642
- type AuthorizationPayload = io.flow.internal.v0.models.ApplePaymentToken | io.flow.internal.v0.models.PaypalAuthorizationPayload;
19627
+ type AuthorizationPayload = io.flow.internal.v0.models.ApplePayAuthorizationPayload | io.flow.internal.v0.models.PaypalAuthorizationPayload;
19643
19628
  type AuthorizedOrderCharge = io.flow.internal.v0.models.AuthorizedShippingCharge;
19644
19629
  type CarrierCredentials = io.flow.internal.v0.models.SfExpress | io.flow.internal.v0.models.DhlEcommerce | io.flow.internal.v0.models.Landmark | io.flow.internal.v0.models.Dhl | io.flow.internal.v0.models.FedexCrossborder | io.flow.internal.v0.models.Ups | io.flow.internal.v0.models.Fedex;
19645
19630
  type CheckoutAnalyticsDeliveryOption = io.flow.internal.v0.models.CheckoutAnalyticsPhysicalDeliveryOption | io.flow.internal.v0.models.CheckoutAnalyticsDigitalDeliveryOption;
@@ -19818,8 +19803,7 @@ export declare type AllItemsExport = io.flow.internal.v0.models.AllItemsExport;
19818
19803
  export declare type AllocationItemReference = io.flow.internal.v0.models.AllocationItemReference;
19819
19804
  export declare type AllowedLabels = io.flow.internal.v0.models.AllowedLabels;
19820
19805
  export declare type ApmContent = io.flow.internal.v0.models.ApmContent;
19821
- export declare type ApplePaymentToken = io.flow.internal.v0.models.ApplePaymentToken;
19822
- export declare type ApplePaymentTokenHeader = io.flow.internal.v0.models.ApplePaymentTokenHeader;
19806
+ export declare type ApplePayAuthorizationPayload = io.flow.internal.v0.models.ApplePayAuthorizationPayload;
19823
19807
  export declare type AttributeLabel = io.flow.internal.v0.models.AttributeLabel;
19824
19808
  export declare type AuthenticationForm = io.flow.internal.v0.models.AuthenticationForm;
19825
19809
  export declare type AuthorizationMetadata = io.flow.internal.v0.models.AuthorizationMetadata;
package/dist/api.d.ts CHANGED
@@ -6107,7 +6107,7 @@ declare namespace io.flow.v0.models {
6107
6107
  readonly key?: string;
6108
6108
  readonly origin?: io.flow.v0.models.ShippingAddress;
6109
6109
  readonly center_key?: string;
6110
- readonly source: io.flow.v0.unions.ReturnSource;
6110
+ readonly source?: io.flow.v0.unions.ReturnSource;
6111
6111
  readonly tracking_status?: io.flow.v0.enums.ReturnTrackingStatus;
6112
6112
  readonly tracking_status_timestamp?: string;
6113
6113
  readonly carrier_tracking_number?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "10.9.1",
3
+ "version": "10.9.3",
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": "8b500a72ee5a1129076bf143bf4fcd3190eb123a"
28
+ "gitHead": "c023716d7107311c0fbd117ba054c6af4e9e2e06"
29
29
  }
@@ -1579,7 +1579,8 @@ declare namespace io.flow.checkout.protocol.v0.enums {
1579
1579
  | 'authorization_form_not_supported'
1580
1580
  | 'authorization_invalid_amount'
1581
1581
  | 'authorization_invalid_currency'
1582
- | 'authorization_amount_exceeds_balance';
1582
+ | 'authorization_amount_exceeds_balance'
1583
+ | 'address_street1_required';
1583
1584
  type CheckoutCreateBySessionErrorCode =
1584
1585
  | 'session_not_found'
1585
1586
  | 'session_experience_required'
@@ -2933,7 +2934,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
2933
2934
  readonly key?: string;
2934
2935
  readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
2935
2936
  readonly center_key?: string;
2936
- readonly source: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2937
+ readonly source?: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2937
2938
  readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
2938
2939
  readonly tracking_status_timestamp?: string;
2939
2940
  readonly carrier_tracking_number?: string;
@@ -2949,6 +2950,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
2949
2950
  readonly quantity: number;
2950
2951
  readonly reason?: io.flow.RESERVED_WORD_return.v0.models.ReturnReason;
2951
2952
  readonly notes?: string;
2953
+ readonly attributes?: Record<string, string>;
2952
2954
  }
2953
2955
 
2954
2956
  interface ReturnOrderReference {
@@ -5504,6 +5506,11 @@ declare namespace io.flow.adyen.v0.models {
5504
5506
  readonly currency: string;
5505
5507
  }
5506
5508
 
5509
+ interface Applepay {
5510
+ readonly type: 'applepay';
5511
+ readonly applePayToken: string;
5512
+ }
5513
+
5507
5514
  interface Authentication {
5508
5515
  readonly 'threeds2.fingerprintToken'?: string;
5509
5516
  readonly 'threeds2.challengeToken'?: string;
@@ -5708,7 +5715,7 @@ declare namespace io.flow.adyen.v0.models {
5708
5715
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
5709
5716
  readonly origin?: string;
5710
5717
  readonly channel?: io.flow.adyen.v0.enums.Channel;
5711
- readonly returnURL?: string;
5718
+ readonly returnUrl?: string;
5712
5719
  }
5713
5720
 
5714
5721
  interface PaymentResponse {
@@ -5795,7 +5802,9 @@ declare namespace io.flow.adyen.v0.unions {
5795
5802
  type BrowserInfo =
5796
5803
  | io.flow.adyen.v0.models.BrowserInfo3Ds1
5797
5804
  | io.flow.adyen.v0.models.BrowserInfo3Ds2;
5798
- type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
5805
+ type PaymentMethodData =
5806
+ | io.flow.adyen.v0.models.Scheme
5807
+ | io.flow.adyen.v0.models.Applepay;
5799
5808
  }
5800
5809
 
5801
5810
  declare namespace io.flow.order.management.v0.enums {
@@ -7598,20 +7607,9 @@ declare namespace io.flow.payment.internal.v0.models {
7598
7607
  readonly password: string;
7599
7608
  }
7600
7609
 
7601
- interface ApplePaymentToken {
7602
- readonly discriminator: 'apple_payment_token';
7603
- readonly data: string;
7604
- readonly header: io.flow.payment.internal.v0.models.ApplePaymentTokenHeader;
7605
- readonly signature: string;
7606
- readonly version: string;
7607
- }
7608
-
7609
- interface ApplePaymentTokenHeader {
7610
- readonly applicationData?: string;
7611
- readonly ephemeralPublicKey?: string;
7612
- readonly wrappedKey?: string;
7613
- readonly publicKeyHash: string;
7614
- readonly transactionId: string;
7610
+ interface ApplePayAuthorizationPayload {
7611
+ readonly discriminator: 'apple_pay_authorization_payload';
7612
+ readonly apple_pay_token: string;
7615
7613
  }
7616
7614
 
7617
7615
  interface AuthenticationForm {
@@ -8192,7 +8190,7 @@ declare namespace io.flow.payment.internal.v0.models {
8192
8190
 
8193
8191
  declare namespace io.flow.payment.internal.v0.unions {
8194
8192
  type AuthorizationPayload =
8195
- | io.flow.payment.internal.v0.models.ApplePaymentToken
8193
+ | io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload
8196
8194
  | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
8197
8195
  type InlineAuthorizationParameters = io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
8198
8196
  type InternalAuthorizationDetails =
@@ -16926,7 +16924,8 @@ declare namespace io.flow.internal.v0.enums {
16926
16924
  | 'authorization_form_not_supported'
16927
16925
  | 'authorization_invalid_amount'
16928
16926
  | 'authorization_invalid_currency'
16929
- | 'authorization_amount_exceeds_balance';
16927
+ | 'authorization_amount_exceeds_balance'
16928
+ | 'address_street1_required';
16930
16929
  type CheckoutCreateBySessionErrorCode =
16931
16930
  | 'session_not_found'
16932
16931
  | 'session_experience_required'
@@ -18019,20 +18018,9 @@ declare namespace io.flow.internal.v0.models {
18019
18018
  readonly processor_description: io.flow.internal.v0.unions.ContentItem;
18020
18019
  }
18021
18020
 
18022
- interface ApplePaymentToken {
18023
- readonly discriminator: 'apple_payment_token';
18024
- readonly data: string;
18025
- readonly header: io.flow.internal.v0.models.ApplePaymentTokenHeader;
18026
- readonly signature: string;
18027
- readonly version: string;
18028
- }
18029
-
18030
- interface ApplePaymentTokenHeader {
18031
- readonly applicationData?: string;
18032
- readonly ephemeralPublicKey?: string;
18033
- readonly wrappedKey?: string;
18034
- readonly publicKeyHash: string;
18035
- readonly transactionId: string;
18021
+ interface ApplePayAuthorizationPayload {
18022
+ readonly discriminator: 'apple_pay_authorization_payload';
18023
+ readonly apple_pay_token: string;
18036
18024
  }
18037
18025
 
18038
18026
  interface AttributeLabel {
@@ -25093,7 +25081,7 @@ declare namespace io.flow.internal.v0.models {
25093
25081
 
25094
25082
  declare namespace io.flow.internal.v0.unions {
25095
25083
  type AuthorizationPayload =
25096
- | io.flow.internal.v0.models.ApplePaymentToken
25084
+ | io.flow.internal.v0.models.ApplePayAuthorizationPayload
25097
25085
  | io.flow.internal.v0.models.PaypalAuthorizationPayload;
25098
25086
  type AuthorizedOrderCharge = io.flow.internal.v0.models.AuthorizedShippingCharge;
25099
25087
  type CarrierCredentials =
@@ -25741,8 +25729,7 @@ export type AllItemsExport = io.flow.internal.v0.models.AllItemsExport;
25741
25729
  export type AllocationItemReference = io.flow.internal.v0.models.AllocationItemReference;
25742
25730
  export type AllowedLabels = io.flow.internal.v0.models.AllowedLabels;
25743
25731
  export type ApmContent = io.flow.internal.v0.models.ApmContent;
25744
- export type ApplePaymentToken = io.flow.internal.v0.models.ApplePaymentToken;
25745
- export type ApplePaymentTokenHeader = io.flow.internal.v0.models.ApplePaymentTokenHeader;
25732
+ export type ApplePayAuthorizationPayload = io.flow.internal.v0.models.ApplePayAuthorizationPayload;
25746
25733
  export type AttributeLabel = io.flow.internal.v0.models.AttributeLabel;
25747
25734
  export type AuthenticationForm = io.flow.internal.v0.models.AuthenticationForm;
25748
25735
  export type AuthorizationMetadata = io.flow.internal.v0.models.AuthorizationMetadata;
package/src/api.ts CHANGED
@@ -7628,7 +7628,7 @@ declare namespace io.flow.v0.models {
7628
7628
  readonly key?: string;
7629
7629
  readonly origin?: io.flow.v0.models.ShippingAddress;
7630
7630
  readonly center_key?: string;
7631
- readonly source: io.flow.v0.unions.ReturnSource;
7631
+ readonly source?: io.flow.v0.unions.ReturnSource;
7632
7632
  readonly tracking_status?: io.flow.v0.enums.ReturnTrackingStatus;
7633
7633
  readonly tracking_status_timestamp?: string;
7634
7634
  readonly carrier_tracking_number?: string;