@flowio/api-internal-prop-types 9.19.4 → 9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "9.19.4",
3
+ "version": "9.19.5",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "keywords": [
6
6
  "flow",
@@ -30,5 +30,5 @@
30
30
  "peerDependencies": {
31
31
  "prop-types": "^15.7.0"
32
32
  },
33
- "gitHead": "4ee937f0264f472ffb8ef97e272f90334c844939"
33
+ "gitHead": "4917a4529871e5b4930634acfe6fc5b61d2316e1"
34
34
  }
@@ -7634,19 +7634,6 @@ declare namespace io.flow.payment.gateway.v0.enums {
7634
7634
  }
7635
7635
 
7636
7636
  declare namespace io.flow.payment.gateway.v0.models {
7637
- interface ActionAddPaymentMethod {
7638
- readonly 'type': 'add_payment_method';
7639
- readonly 'expires_at'?: string;
7640
- readonly 'available_payment_methods': io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
7641
- }
7642
-
7643
- interface ActionCapture {
7644
- readonly 'type': 'capture';
7645
- readonly 'expires_at'?: string;
7646
- readonly 'amount_awaiting_capture': number;
7647
- readonly 'currency': string;
7648
- }
7649
-
7650
7637
  interface ActionDisplayInlineWindow {
7651
7638
  readonly 'type': 'display_inline_window';
7652
7639
  readonly 'expires_at'?: string;
@@ -7840,6 +7827,16 @@ declare namespace io.flow.payment.gateway.v0.models {
7840
7827
  readonly 'failure_message': string;
7841
7828
  }
7842
7829
 
7830
+ interface PaymentInformation {
7831
+ readonly 'amount_refundable'?: number;
7832
+ readonly 'amount_refunded'?: number;
7833
+ readonly 'refundable_before'?: string;
7834
+ readonly 'amount_capturable'?: number;
7835
+ readonly 'amount_captured'?: number;
7836
+ readonly 'capturable_before'?: string;
7837
+ readonly 'authorizations': io.flow.payment.gateway.v0.models.PaymentAuthorization[];
7838
+ }
7839
+
7843
7840
  interface PaymentMethodBrand {
7844
7841
  readonly 'id': string;
7845
7842
  readonly 'name': string;
@@ -8016,10 +8013,10 @@ declare namespace io.flow.payment.gateway.v0.models {
8016
8013
  interface PaymentRequest {
8017
8014
  readonly 'id': string;
8018
8015
  readonly 'status': io.flow.payment.gateway.v0.enums.PaymentStatus;
8016
+ readonly 'available_payment_methods': io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
8019
8017
  readonly 'last_payment_failure'?: io.flow.payment.gateway.v0.models.PaymentFailure;
8020
8018
  readonly 'next_action'?: io.flow.payment.gateway.v0.unions.Action;
8021
8019
  readonly 'amount': number;
8022
- readonly 'amount_refundable'?: number;
8023
8020
  readonly 'currency': string;
8024
8021
  readonly 'order_information': io.flow.payment.gateway.v0.unions.OrderInformation;
8025
8022
  readonly 'ip'?: string;
@@ -8027,7 +8024,7 @@ declare namespace io.flow.payment.gateway.v0.models {
8027
8024
  readonly 'return_url': string;
8028
8025
  readonly 'attributes'?: Record<string, string>;
8029
8026
  readonly 'reference'?: string;
8030
- readonly 'authorizations': io.flow.payment.gateway.v0.models.PaymentAuthorization[];
8027
+ readonly 'payment_information': io.flow.payment.gateway.v0.models.PaymentInformation;
8031
8028
  readonly 'supported_actions': io.flow.payment.gateway.v0.enums.SupportedActionType[];
8032
8029
  }
8033
8030
 
@@ -8078,7 +8075,7 @@ declare namespace io.flow.payment.gateway.v0.models {
8078
8075
  }
8079
8076
 
8080
8077
  declare namespace io.flow.payment.gateway.v0.unions {
8081
- 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);
8078
+ 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);
8082
8079
  type CardAuthorizationActionResult = (io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV3 | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV4);
8083
8080
  type CardNumber = (io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCleartext | io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCipher);
8084
8081
  type DeviceDetails = (io.flow.payment.gateway.v0.models.BrowserDetails);
@@ -817,6 +817,8 @@ T['io.flow.payment.gateway.v0.models.payment_method_data_init_klarna'] = PropTyp
817
817
  placeholder: PropTypes.string,
818
818
  });
819
819
 
820
+ T['io.flow.payment.gateway.v0.enums.payment_type'] = PropTypes.oneOf(['card', 'klarna', 'googlepay', 'paypal', 'applepay', 'ideal', 'afterpay']);
821
+
820
822
  T['io.flow.payment.gateway.v0.models.authorization_action_result_adyen_v4'] = PropTypes.exact({
821
823
  type: PropTypes.oneOf(['adyen_v4']).isRequired,
822
824
  result: PropTypes.object.isRequired,
@@ -1040,8 +1042,6 @@ T['io.flow.payment.gateway.v0.unions.sdk_adyen_v3_authentication_token'] = PropT
1040
1042
  T['io.flow.payment.gateway.v0.models.adyen_v3_challenge_token'],
1041
1043
  ]);
1042
1044
 
1043
- T['io.flow.payment.gateway.v0.enums.payment_type'] = PropTypes.oneOf(['card', 'klarna', 'googlepay', 'paypal', 'applepay', 'ideal', 'afterpay']);
1044
-
1045
1045
  T['io.flow.svb.v0.enums.notification_type'] = PropTypes.oneOf([
1046
1046
  'virtualcard.clearings',
1047
1047
  'virtualcard.created',
@@ -9607,13 +9607,6 @@ T['io.flow.payment.gateway.v0.models.action_wait'] = PropTypes.exact({
9607
9607
  expires_at: PropTypes.string,
9608
9608
  });
9609
9609
 
9610
- T['io.flow.payment.gateway.v0.models.action_capture'] = PropTypes.exact({
9611
- type: PropTypes.oneOf(['capture']).isRequired,
9612
- expires_at: PropTypes.string,
9613
- amount_awaiting_capture: PropTypes.number.isRequired,
9614
- currency: PropTypes.string.isRequired,
9615
- });
9616
-
9617
9610
  T['io.flow.payment.gateway.v0.models.action_display_inline_window'] = PropTypes.exact({
9618
9611
  type: PropTypes.oneOf(['display_inline_window']).isRequired,
9619
9612
  expires_at: PropTypes.string,
@@ -9722,6 +9715,21 @@ T['io.flow.payment.gateway.v0.enums.payment_status'] = PropTypes.oneOf([
9722
9715
  'charged_back',
9723
9716
  ]);
9724
9717
 
9718
+ T['io.flow.payment.gateway.v0.unions.action'] = PropTypes.oneOfType([
9719
+ T['io.flow.payment.gateway.v0.models.action_redirect'],
9720
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_klarna_v1'],
9721
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_applepay_js_create_session'],
9722
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_applepay_js_complete_validation'],
9723
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_googlepay'],
9724
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_paypal'],
9725
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_stripe_v3'],
9726
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_adyen_v3'],
9727
+ T['io.flow.payment.gateway.v0.models.action_use_sdk_adyen_v4'],
9728
+ T['io.flow.payment.gateway.v0.models.action_execute_script'],
9729
+ T['io.flow.payment.gateway.v0.models.action_display_inline_window'],
9730
+ T['io.flow.payment.gateway.v0.models.action_wait'],
9731
+ ]);
9732
+
9725
9733
  T['io.flow.internal.v0.enums.rate_source'] = PropTypes.oneOf(['calculated', 'market']);
9726
9734
 
9727
9735
  T['io.flow.common.v0.models.session_reference'] = PropTypes.exact({
@@ -12002,6 +12010,16 @@ T['io.flow.payment.gateway.v0.models.payment_authorization'] = PropTypes.exact({
12002
12010
  currency: PropTypes.string.isRequired,
12003
12011
  });
12004
12012
 
12013
+ T['io.flow.payment.gateway.v0.models.payment_information'] = PropTypes.exact({
12014
+ amount_refundable: PropTypes.number,
12015
+ amount_refunded: PropTypes.number,
12016
+ refundable_before: PropTypes.string,
12017
+ amount_capturable: PropTypes.number,
12018
+ amount_captured: PropTypes.number,
12019
+ capturable_before: PropTypes.string,
12020
+ authorizations: PropTypes.arrayOf(T['io.flow.payment.gateway.v0.models.payment_authorization']).isRequired,
12021
+ });
12022
+
12005
12023
  T['io.flow.internal.v0.enums.checkout_payment_authorization_parameters_error_code'] = PropTypes.oneOf(['order_balance_not_available']);
12006
12024
 
12007
12025
  T['io.flow.internal.v0.models.checkout_payment_authorization_parameters_error'] = PropTypes.exact({
@@ -12128,29 +12146,6 @@ T['io.flow.payment.gateway.v0.models.payment_payment_method'] = PropTypes.exact(
12128
12146
  possible_actions: PropTypes.arrayOf(T['io.flow.payment.gateway.v0.enums.supported_action_type']).isRequired,
12129
12147
  });
12130
12148
 
12131
- T['io.flow.payment.gateway.v0.models.action_add_payment_method'] = PropTypes.exact({
12132
- type: PropTypes.oneOf(['add_payment_method']).isRequired,
12133
- expires_at: PropTypes.string,
12134
- available_payment_methods: PropTypes.arrayOf(T['io.flow.payment.gateway.v0.models.payment_payment_method']).isRequired,
12135
- });
12136
-
12137
- T['io.flow.payment.gateway.v0.unions.action'] = PropTypes.oneOfType([
12138
- T['io.flow.payment.gateway.v0.models.action_redirect'],
12139
- T['io.flow.payment.gateway.v0.models.action_use_sdk_klarna_v1'],
12140
- T['io.flow.payment.gateway.v0.models.action_use_sdk_applepay_js_create_session'],
12141
- T['io.flow.payment.gateway.v0.models.action_use_sdk_applepay_js_complete_validation'],
12142
- T['io.flow.payment.gateway.v0.models.action_use_sdk_googlepay'],
12143
- T['io.flow.payment.gateway.v0.models.action_use_sdk_paypal'],
12144
- T['io.flow.payment.gateway.v0.models.action_use_sdk_stripe_v3'],
12145
- T['io.flow.payment.gateway.v0.models.action_use_sdk_adyen_v3'],
12146
- T['io.flow.payment.gateway.v0.models.action_use_sdk_adyen_v4'],
12147
- T['io.flow.payment.gateway.v0.models.action_execute_script'],
12148
- T['io.flow.payment.gateway.v0.models.action_display_inline_window'],
12149
- T['io.flow.payment.gateway.v0.models.action_capture'],
12150
- T['io.flow.payment.gateway.v0.models.action_add_payment_method'],
12151
- T['io.flow.payment.gateway.v0.models.action_wait'],
12152
- ]);
12153
-
12154
12149
  T['io.flow.reference.v0.enums.payment_method_type'] = PropTypes.oneOf(['card', 'online', 'offline']);
12155
12150
 
12156
12151
  T['io.flow.reference.v0.models.payment_method'] = PropTypes.exact({
@@ -16844,10 +16839,10 @@ T['io.flow.payment.gateway.v0.models.payment_request_form'] = PropTypes.exact({
16844
16839
  T['io.flow.payment.gateway.v0.models.payment_request'] = PropTypes.exact({
16845
16840
  id: PropTypes.string.isRequired,
16846
16841
  status: T['io.flow.payment.gateway.v0.enums.payment_status'].isRequired,
16842
+ available_payment_methods: PropTypes.arrayOf(T['io.flow.payment.gateway.v0.models.payment_payment_method']).isRequired,
16847
16843
  last_payment_failure: T['io.flow.payment.gateway.v0.models.payment_failure'],
16848
16844
  next_action: T['io.flow.payment.gateway.v0.unions.action'],
16849
16845
  amount: PropTypes.number.isRequired,
16850
- amount_refundable: PropTypes.number,
16851
16846
  currency: PropTypes.string.isRequired,
16852
16847
  order_information: T['io.flow.payment.gateway.v0.unions.order_information'].isRequired,
16853
16848
  ip: PropTypes.string,
@@ -16855,7 +16850,7 @@ T['io.flow.payment.gateway.v0.models.payment_request'] = PropTypes.exact({
16855
16850
  return_url: PropTypes.string.isRequired,
16856
16851
  attributes: PropTypes.objectOf(PropTypes.string),
16857
16852
  reference: PropTypes.string,
16858
- authorizations: PropTypes.arrayOf(T['io.flow.payment.gateway.v0.models.payment_authorization']).isRequired,
16853
+ payment_information: T['io.flow.payment.gateway.v0.models.payment_information'].isRequired,
16859
16854
  supported_actions: PropTypes.arrayOf(T['io.flow.payment.gateway.v0.enums.supported_action_type']).isRequired,
16860
16855
  });
16861
16856