@flowio/types 11.19.4 → 11.19.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.
@@ -6682,17 +6682,6 @@ declare namespace io.flow.payment.gateway.v0.enums {
6682
6682
  type SupportedActionType = 'redirect' | 'use_sdk_klarna_v1' | 'use_sdk_applepay_js' | 'use_sdk_googlepay' | 'use_sdk_paypal' | 'use_sdk_stripe_v3' | 'use_sdk_adyen_v3' | 'use_sdk_adyen_v4' | 'execute_script' | 'display_inline_window';
6683
6683
  }
6684
6684
  declare namespace io.flow.payment.gateway.v0.models {
6685
- interface ActionAddPaymentMethod {
6686
- readonly type: 'add_payment_method';
6687
- readonly expires_at?: string;
6688
- readonly available_payment_methods: io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
6689
- }
6690
- interface ActionCapture {
6691
- readonly type: 'capture';
6692
- readonly expires_at?: string;
6693
- readonly amount_awaiting_capture: number;
6694
- readonly currency: string;
6695
- }
6696
6685
  interface ActionDisplayInlineWindow {
6697
6686
  readonly type: 'display_inline_window';
6698
6687
  readonly expires_at?: string;
@@ -6857,6 +6846,15 @@ declare namespace io.flow.payment.gateway.v0.models {
6857
6846
  readonly failure_code: io.flow.payment.gateway.v0.enums.PaymentFailureCode;
6858
6847
  readonly failure_message: string;
6859
6848
  }
6849
+ interface PaymentInformation {
6850
+ readonly amount_refundable?: number;
6851
+ readonly amount_refunded?: number;
6852
+ readonly refundable_before?: string;
6853
+ readonly amount_capturable?: number;
6854
+ readonly amount_captured?: number;
6855
+ readonly capturable_before?: string;
6856
+ readonly authorizations: io.flow.payment.gateway.v0.models.PaymentAuthorization[];
6857
+ }
6860
6858
  interface PaymentMethodBrand {
6861
6859
  readonly id: string;
6862
6860
  readonly name: string;
@@ -7004,10 +7002,10 @@ declare namespace io.flow.payment.gateway.v0.models {
7004
7002
  interface PaymentRequest {
7005
7003
  readonly id: string;
7006
7004
  readonly status: io.flow.payment.gateway.v0.enums.PaymentStatus;
7005
+ readonly available_payment_methods: io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
7007
7006
  readonly last_payment_failure?: io.flow.payment.gateway.v0.models.PaymentFailure;
7008
7007
  readonly next_action?: io.flow.payment.gateway.v0.unions.Action;
7009
7008
  readonly amount: number;
7010
- readonly amount_refundable?: number;
7011
7009
  readonly currency: string;
7012
7010
  readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
7013
7011
  readonly ip?: string;
@@ -7015,7 +7013,7 @@ declare namespace io.flow.payment.gateway.v0.models {
7015
7013
  readonly return_url: string;
7016
7014
  readonly attributes?: Record<string, string>;
7017
7015
  readonly reference?: string;
7018
- readonly authorizations: io.flow.payment.gateway.v0.models.PaymentAuthorization[];
7016
+ readonly payment_information: io.flow.payment.gateway.v0.models.PaymentInformation;
7019
7017
  readonly supported_actions: io.flow.payment.gateway.v0.enums.SupportedActionType[];
7020
7018
  }
7021
7019
  interface PaymentRequestForm {
@@ -7059,7 +7057,7 @@ declare namespace io.flow.payment.gateway.v0.models {
7059
7057
  }
7060
7058
  }
7061
7059
  declare namespace io.flow.payment.gateway.v0.unions {
7062
- type Action = io.flow.payment.gateway.v0.models.ActionRedirect | io.flow.payment.gateway.v0.models.ActionUseSdkKlarnaV1 | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCreateSession | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCompleteValidation | io.flow.payment.gateway.v0.models.ActionUseSdkGooglepay | io.flow.payment.gateway.v0.models.ActionUseSdkPaypal | io.flow.payment.gateway.v0.models.ActionUseSdkStripeV3 | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV3 | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV4 | io.flow.payment.gateway.v0.models.ActionExecuteScript | io.flow.payment.gateway.v0.models.ActionDisplayInlineWindow | io.flow.payment.gateway.v0.models.ActionCapture | io.flow.payment.gateway.v0.models.ActionAddPaymentMethod | io.flow.payment.gateway.v0.models.ActionWait;
7060
+ type Action = io.flow.payment.gateway.v0.models.ActionRedirect | io.flow.payment.gateway.v0.models.ActionUseSdkKlarnaV1 | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCreateSession | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCompleteValidation | io.flow.payment.gateway.v0.models.ActionUseSdkGooglepay | io.flow.payment.gateway.v0.models.ActionUseSdkPaypal | io.flow.payment.gateway.v0.models.ActionUseSdkStripeV3 | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV3 | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV4 | io.flow.payment.gateway.v0.models.ActionExecuteScript | io.flow.payment.gateway.v0.models.ActionDisplayInlineWindow | io.flow.payment.gateway.v0.models.ActionWait;
7063
7061
  type CardAuthorizationActionResult = io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV3 | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV4;
7064
7062
  type CardNumber = io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCleartext | io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCipher;
7065
7063
  type DeviceDetails = io.flow.payment.gateway.v0.models.BrowserDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.19.4",
3
+ "version": "11.19.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": "4ee937f0264f472ffb8ef97e272f90334c844939"
28
+ "gitHead": "4917a4529871e5b4930634acfe6fc5b61d2316e1"
29
29
  }
@@ -8800,19 +8800,6 @@ declare namespace io.flow.payment.gateway.v0.enums {
8800
8800
  }
8801
8801
 
8802
8802
  declare namespace io.flow.payment.gateway.v0.models {
8803
- interface ActionAddPaymentMethod {
8804
- readonly type: 'add_payment_method';
8805
- readonly expires_at?: string;
8806
- readonly available_payment_methods: io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
8807
- }
8808
-
8809
- interface ActionCapture {
8810
- readonly type: 'capture';
8811
- readonly expires_at?: string;
8812
- readonly amount_awaiting_capture: number;
8813
- readonly currency: string;
8814
- }
8815
-
8816
8803
  interface ActionDisplayInlineWindow {
8817
8804
  readonly type: 'display_inline_window';
8818
8805
  readonly expires_at?: string;
@@ -9006,6 +8993,16 @@ declare namespace io.flow.payment.gateway.v0.models {
9006
8993
  readonly failure_message: string;
9007
8994
  }
9008
8995
 
8996
+ interface PaymentInformation {
8997
+ readonly amount_refundable?: number;
8998
+ readonly amount_refunded?: number;
8999
+ readonly refundable_before?: string;
9000
+ readonly amount_capturable?: number;
9001
+ readonly amount_captured?: number;
9002
+ readonly capturable_before?: string;
9003
+ readonly authorizations: io.flow.payment.gateway.v0.models.PaymentAuthorization[];
9004
+ }
9005
+
9009
9006
  interface PaymentMethodBrand {
9010
9007
  readonly id: string;
9011
9008
  readonly name: string;
@@ -9182,10 +9179,10 @@ declare namespace io.flow.payment.gateway.v0.models {
9182
9179
  interface PaymentRequest {
9183
9180
  readonly id: string;
9184
9181
  readonly status: io.flow.payment.gateway.v0.enums.PaymentStatus;
9182
+ readonly available_payment_methods: io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
9185
9183
  readonly last_payment_failure?: io.flow.payment.gateway.v0.models.PaymentFailure;
9186
9184
  readonly next_action?: io.flow.payment.gateway.v0.unions.Action;
9187
9185
  readonly amount: number;
9188
- readonly amount_refundable?: number;
9189
9186
  readonly currency: string;
9190
9187
  readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
9191
9188
  readonly ip?: string;
@@ -9193,7 +9190,7 @@ declare namespace io.flow.payment.gateway.v0.models {
9193
9190
  readonly return_url: string;
9194
9191
  readonly attributes?: Record<string, string>;
9195
9192
  readonly reference?: string;
9196
- readonly authorizations: io.flow.payment.gateway.v0.models.PaymentAuthorization[];
9193
+ readonly payment_information: io.flow.payment.gateway.v0.models.PaymentInformation;
9197
9194
  readonly supported_actions: io.flow.payment.gateway.v0.enums.SupportedActionType[];
9198
9195
  }
9199
9196
 
@@ -9256,8 +9253,6 @@ declare namespace io.flow.payment.gateway.v0.unions {
9256
9253
  | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV4
9257
9254
  | io.flow.payment.gateway.v0.models.ActionExecuteScript
9258
9255
  | io.flow.payment.gateway.v0.models.ActionDisplayInlineWindow
9259
- | io.flow.payment.gateway.v0.models.ActionCapture
9260
- | io.flow.payment.gateway.v0.models.ActionAddPaymentMethod
9261
9256
  | io.flow.payment.gateway.v0.models.ActionWait;
9262
9257
  type CardAuthorizationActionResult =
9263
9258
  | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV3