@flowio/types 10.9.1 → 10.9.2

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.
@@ -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;
@@ -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.2",
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": "fddc3e0a9ca7753c118861b1e5a9b16d4621b473"
29
29
  }
@@ -2933,7 +2933,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
2933
2933
  readonly key?: string;
2934
2934
  readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
2935
2935
  readonly center_key?: string;
2936
- readonly source: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2936
+ readonly source?: io.flow.RESERVED_WORD_return.v0.unions.ReturnSource;
2937
2937
  readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
2938
2938
  readonly tracking_status_timestamp?: string;
2939
2939
  readonly carrier_tracking_number?: string;
@@ -2949,6 +2949,7 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
2949
2949
  readonly quantity: number;
2950
2950
  readonly reason?: io.flow.RESERVED_WORD_return.v0.models.ReturnReason;
2951
2951
  readonly notes?: string;
2952
+ readonly attributes?: Record<string, string>;
2952
2953
  }
2953
2954
 
2954
2955
  interface ReturnOrderReference {
@@ -5504,6 +5505,11 @@ declare namespace io.flow.adyen.v0.models {
5504
5505
  readonly currency: string;
5505
5506
  }
5506
5507
 
5508
+ interface Applepay {
5509
+ readonly type: 'applepay';
5510
+ readonly applePayToken: string;
5511
+ }
5512
+
5507
5513
  interface Authentication {
5508
5514
  readonly 'threeds2.fingerprintToken'?: string;
5509
5515
  readonly 'threeds2.challengeToken'?: string;
@@ -5708,7 +5714,7 @@ declare namespace io.flow.adyen.v0.models {
5708
5714
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
5709
5715
  readonly origin?: string;
5710
5716
  readonly channel?: io.flow.adyen.v0.enums.Channel;
5711
- readonly returnURL?: string;
5717
+ readonly returnUrl?: string;
5712
5718
  }
5713
5719
 
5714
5720
  interface PaymentResponse {
@@ -5795,7 +5801,9 @@ declare namespace io.flow.adyen.v0.unions {
5795
5801
  type BrowserInfo =
5796
5802
  | io.flow.adyen.v0.models.BrowserInfo3Ds1
5797
5803
  | io.flow.adyen.v0.models.BrowserInfo3Ds2;
5798
- type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
5804
+ type PaymentMethodData =
5805
+ | io.flow.adyen.v0.models.Scheme
5806
+ | io.flow.adyen.v0.models.Applepay;
5799
5807
  }
5800
5808
 
5801
5809
  declare namespace io.flow.order.management.v0.enums {
@@ -7598,20 +7606,9 @@ declare namespace io.flow.payment.internal.v0.models {
7598
7606
  readonly password: string;
7599
7607
  }
7600
7608
 
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;
7609
+ interface ApplePayAuthorizationPayload {
7610
+ readonly discriminator: 'apple_pay_authorization_payload';
7611
+ readonly apple_pay_token: string;
7615
7612
  }
7616
7613
 
7617
7614
  interface AuthenticationForm {
@@ -8192,7 +8189,7 @@ declare namespace io.flow.payment.internal.v0.models {
8192
8189
 
8193
8190
  declare namespace io.flow.payment.internal.v0.unions {
8194
8191
  type AuthorizationPayload =
8195
- | io.flow.payment.internal.v0.models.ApplePaymentToken
8192
+ | io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload
8196
8193
  | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
8197
8194
  type InlineAuthorizationParameters = io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
8198
8195
  type InternalAuthorizationDetails =
@@ -18019,20 +18016,9 @@ declare namespace io.flow.internal.v0.models {
18019
18016
  readonly processor_description: io.flow.internal.v0.unions.ContentItem;
18020
18017
  }
18021
18018
 
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;
18019
+ interface ApplePayAuthorizationPayload {
18020
+ readonly discriminator: 'apple_pay_authorization_payload';
18021
+ readonly apple_pay_token: string;
18036
18022
  }
18037
18023
 
18038
18024
  interface AttributeLabel {
@@ -25093,7 +25079,7 @@ declare namespace io.flow.internal.v0.models {
25093
25079
 
25094
25080
  declare namespace io.flow.internal.v0.unions {
25095
25081
  type AuthorizationPayload =
25096
- | io.flow.internal.v0.models.ApplePaymentToken
25082
+ | io.flow.internal.v0.models.ApplePayAuthorizationPayload
25097
25083
  | io.flow.internal.v0.models.PaypalAuthorizationPayload;
25098
25084
  type AuthorizedOrderCharge = io.flow.internal.v0.models.AuthorizedShippingCharge;
25099
25085
  type CarrierCredentials =
@@ -25741,8 +25727,7 @@ export type AllItemsExport = io.flow.internal.v0.models.AllItemsExport;
25741
25727
  export type AllocationItemReference = io.flow.internal.v0.models.AllocationItemReference;
25742
25728
  export type AllowedLabels = io.flow.internal.v0.models.AllowedLabels;
25743
25729
  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;
25730
+ export type ApplePayAuthorizationPayload = io.flow.internal.v0.models.ApplePayAuthorizationPayload;
25746
25731
  export type AttributeLabel = io.flow.internal.v0.models.AttributeLabel;
25747
25732
  export type AuthenticationForm = io.flow.internal.v0.models.AuthenticationForm;
25748
25733
  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;