inttegro 9.2.2 → 10.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/inttegro/balance/currency_snapshot.rb +11 -2
- data/lib/inttegro/balance/currency_snapshot_refund.rb +1 -1
- data/lib/inttegro/balance/currency_snapshot_reserved.rb +2 -1
- data/lib/inttegro/balance/holds.rb +43 -0
- data/lib/inttegro/balance/holds_payout.rb +27 -0
- data/lib/inttegro/balance/holds_refund.rb +27 -0
- data/lib/inttegro/checkout/amount_selection.rb +84 -0
- data/lib/inttegro/checkout/lookup_request.rb +18 -0
- data/lib/inttegro/checkout/lookup_request_variant2.rb +27 -0
- data/lib/inttegro/checkout/lookup_response.rb +47 -0
- data/lib/inttegro/checkout/select_amount_request.rb +18 -0
- data/lib/inttegro/checkout/select_amount_request_variant1.rb +35 -0
- data/lib/inttegro/checkout/select_amount_request_variant2.rb +35 -0
- data/lib/inttegro/checkout/selected_amount.rb +36 -0
- data/lib/inttegro/financial_account/compact.rb +8 -0
- data/lib/inttegro/financial_account/connected.rb +8 -0
- data/lib/inttegro/financial_account/created.rb +8 -0
- data/lib/inttegro/financial_account/details.rb +8 -0
- data/lib/inttegro/financial_account/financial_account.rb +8 -0
- data/lib/inttegro/financial_account/updated.rb +8 -0
- data/lib/inttegro/generated/enums.rb +2 -0
- data/lib/inttegro/generated/models.rb +23 -2
- data/lib/inttegro/generated/operations.rb +5 -2
- data/lib/inttegro/payout/balance_transaction.rb +11 -1
- data/lib/inttegro/payout/balance_transaction_status.rb +31 -0
- data/lib/inttegro/payout/error.rb +1 -1
- data/lib/inttegro/payout/failure.rb +43 -0
- data/lib/inttegro/payout/failure_reason.rb +33 -0
- data/lib/inttegro/payout/payout.rb +10 -2
- data/lib/inttegro/payout/status.rb +2 -2
- data/lib/inttegro/purchase_intent/create_presentation.rb +29 -0
- data/lib/inttegro/purchase_intent/create_presentation_buy_page.rb +28 -0
- data/lib/inttegro/purchase_intent/create_presentation_buy_page_text.rb +42 -0
- data/lib/inttegro/purchase_intent/create_request.rb +9 -0
- data/lib/inttegro/purchase_intent/presentation.rb +28 -0
- data/lib/inttegro/purchase_intent/presentation_buy_page.rb +28 -0
- data/lib/inttegro/purchase_intent/presentation_buy_page_text.rb +41 -0
- data/lib/inttegro/purchase_intent/purchase_intent.rb +8 -0
- data/lib/inttegro/purchase_intent/update_presentation.rb +29 -0
- data/lib/inttegro/purchase_intent/update_presentation_buy_page.rb +28 -0
- data/lib/inttegro/purchase_intent/update_presentation_buy_page_text.rb +41 -0
- data/lib/inttegro/purchase_intent/update_request.rb +9 -0
- data/lib/inttegro/version.rb +1 -1
- metadata +25 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8c0508ade3212d4ccc84c3a2dea5923e18b78107ea89c32aec593e88e906d06
|
|
4
|
+
data.tar.gz: 7b6397d7a6b11f25086ad29686b5b349d062aabcbce36c61a01d2dc99e995e61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6c649339f31489b6094d742cd3ab8532be95f290034fbe6b0f38151d1b68ed93b5e15a23b7ee6dc0ad3702c608da9b93f2a1eb24211bb39bc7cef0164294add
|
|
7
|
+
data.tar.gz: 986b30ca34a595267558bfd32b70a6be3ba73ef458167a9d54ba648d516b6b6af1f63bcb7939fcb6e7cf4c7b7f882f0e8b094065363cb2f144eaeab7777931e1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [10.0.0] - 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **Breaking:** replaced the payout status `invalid` with `failed`.
|
|
6
|
+
- Added typed payout failure details with a stable reason, caller-safe detail,
|
|
7
|
+
retry guidance, and a separate lifecycle timestamp.
|
|
8
|
+
- Added the application-scoped financial-account fingerprint to typed
|
|
9
|
+
responses.
|
|
10
|
+
|
|
11
|
+
## [9.3.0] - 2026-10-03
|
|
12
|
+
|
|
13
|
+
- Added typed hosted Buy-page text overrides to Purchase Intent create,
|
|
14
|
+
update, and response models, including explicit default restoration.
|
|
15
|
+
|
|
3
16
|
## [9.2.2] - 2026-10-02
|
|
4
17
|
|
|
5
18
|
- Restored the broad Inttegro API description while retaining searchable gem
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "currency_snapshot_refund"
|
|
8
8
|
require_relative "currency_snapshot_reserved"
|
|
9
|
+
require_relative "holds"
|
|
9
10
|
require_relative "value"
|
|
10
11
|
|
|
11
12
|
module Inttegro
|
|
@@ -24,6 +25,12 @@ module Inttegro
|
|
|
24
25
|
# Required in the API payload. Wire name: `available`.
|
|
25
26
|
# @return [Inttegro::Balance::Value]
|
|
26
27
|
#
|
|
28
|
+
# @!attribute [r] held
|
|
29
|
+
# Live operational commitments read from the canonical balance position.
|
|
30
|
+
#
|
|
31
|
+
# Required in the API payload. Wire name: `held`.
|
|
32
|
+
# @return [Inttegro::Balance::Holds]
|
|
33
|
+
#
|
|
27
34
|
# @!attribute [r] includes_transactions_before
|
|
28
35
|
# The snapshot includes transactions created before this timestamp
|
|
29
36
|
#
|
|
@@ -37,18 +44,20 @@ module Inttegro
|
|
|
37
44
|
# @return [Inttegro::Balance::Value]
|
|
38
45
|
#
|
|
39
46
|
# @!attribute [r] refund
|
|
40
|
-
# Funds
|
|
47
|
+
# Funds intentionally earmarked for future refund obligations at the snapshot cutoff
|
|
41
48
|
#
|
|
42
49
|
# Required in the API payload. Wire name: `refund`.
|
|
43
50
|
# @return [Inttegro::Balance::CurrencySnapshotRefund]
|
|
44
51
|
#
|
|
45
52
|
# @!attribute [r] reserved
|
|
46
|
-
# Funds
|
|
53
|
+
# Funds intentionally reserved for policy, risk, or remediation purposes at the snapshot
|
|
54
|
+
# cutoff
|
|
47
55
|
#
|
|
48
56
|
# Required in the API payload. Wire name: `reserved`.
|
|
49
57
|
# @return [Inttegro::Balance::CurrencySnapshotReserved]
|
|
50
58
|
class CurrencySnapshot < T::Struct
|
|
51
59
|
const :available, Inttegro::Balance::Value
|
|
60
|
+
const :held, Inttegro::Balance::Holds
|
|
52
61
|
const :includes_transactions_before, Time
|
|
53
62
|
const :pending, Inttegro::Balance::Value
|
|
54
63
|
const :refund, Inttegro::Balance::CurrencySnapshotRefund
|
|
@@ -7,7 +7,7 @@ require_relative "base"
|
|
|
7
7
|
|
|
8
8
|
module Inttegro
|
|
9
9
|
module Balance
|
|
10
|
-
# Funds
|
|
10
|
+
# Funds intentionally earmarked for future refund obligations at the snapshot cutoff
|
|
11
11
|
#
|
|
12
12
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
13
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -7,7 +7,8 @@ require_relative "base"
|
|
|
7
7
|
|
|
8
8
|
module Inttegro
|
|
9
9
|
module Balance
|
|
10
|
-
# Funds
|
|
10
|
+
# Funds intentionally reserved for policy, risk, or remediation purposes at the snapshot
|
|
11
|
+
# cutoff
|
|
11
12
|
#
|
|
12
13
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
14
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "holds_payout"
|
|
8
|
+
require_relative "holds_refund"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
module Balance
|
|
12
|
+
# Live operational commitments read from the canonical balance position.
|
|
13
|
+
#
|
|
14
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
15
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
16
|
+
# field names and serialized enum values.
|
|
17
|
+
#
|
|
18
|
+
# @api public
|
|
19
|
+
#
|
|
20
|
+
# @!attribute [r] as_of
|
|
21
|
+
# When these strongly consistent hold amounts were read.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `as_of`.
|
|
24
|
+
# @return [Time]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] payout
|
|
27
|
+
# Funds committed to in-flight or unresolved payouts.
|
|
28
|
+
#
|
|
29
|
+
# Required in the API payload. Wire name: `payout`.
|
|
30
|
+
# @return [Inttegro::Balance::HoldsPayout]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] refund
|
|
33
|
+
# Funds committed to in-flight or unresolved refunds.
|
|
34
|
+
#
|
|
35
|
+
# Required in the API payload. Wire name: `refund`.
|
|
36
|
+
# @return [Inttegro::Balance::HoldsRefund]
|
|
37
|
+
class Holds < T::Struct
|
|
38
|
+
const :as_of, Time
|
|
39
|
+
const :payout, Inttegro::Balance::HoldsPayout
|
|
40
|
+
const :refund, Inttegro::Balance::HoldsRefund
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Balance
|
|
10
|
+
# Funds committed to in-flight or unresolved payouts.
|
|
11
|
+
#
|
|
12
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
14
|
+
# field names and serialized enum values.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
#
|
|
18
|
+
# @!attribute [r] amount
|
|
19
|
+
# Amount in the currency's smallest unit
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `amount`.
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
class HoldsPayout < T::Struct
|
|
24
|
+
const :amount, Integer
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Balance
|
|
10
|
+
# Funds committed to in-flight or unresolved refunds.
|
|
11
|
+
#
|
|
12
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
14
|
+
# field names and serialized enum values.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
#
|
|
18
|
+
# @!attribute [r] amount
|
|
19
|
+
# Amount in the currency's smallest unit
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `amount`.
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
class HoldsRefund < T::Struct
|
|
24
|
+
const :amount, Integer
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "../price/customer_selected_amount"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Checkout
|
|
11
|
+
# Typed representation of the amount selection object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] purchase_intent_id
|
|
20
|
+
# Purchase Intent reference present when selection creates an Order.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `purchase_intent_id`.
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] order_id
|
|
26
|
+
# Order reference present when selection changes an existing Order.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `order_id`.
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] price_id
|
|
32
|
+
# Value of the `price_id` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Required in the API payload. Wire name: `price_id`.
|
|
35
|
+
# @return [String]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] product_id
|
|
38
|
+
# Value of the `product_id` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Required in the API payload. Wire name: `product_id`.
|
|
41
|
+
# @return [String]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] merchant_name
|
|
44
|
+
# Value of the `merchant_name` field in the Inttegro API payload.
|
|
45
|
+
#
|
|
46
|
+
# Required in the API payload. Wire name: `merchant_name`.
|
|
47
|
+
# @return [String]
|
|
48
|
+
#
|
|
49
|
+
# @!attribute [r] product_name
|
|
50
|
+
# Value of the `product_name` field in the Inttegro API payload.
|
|
51
|
+
#
|
|
52
|
+
# Required in the API payload. Wire name: `product_name`.
|
|
53
|
+
# @return [String]
|
|
54
|
+
#
|
|
55
|
+
# @!attribute [r] product_about
|
|
56
|
+
# Value of the `product_about` field in the Inttegro API payload.
|
|
57
|
+
#
|
|
58
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `product_about`.
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
#
|
|
61
|
+
# @!attribute [r] expires_at
|
|
62
|
+
# Value of the `expires_at` field in the Inttegro API payload.
|
|
63
|
+
#
|
|
64
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `expires_at`.
|
|
65
|
+
# @return [Time, nil]
|
|
66
|
+
#
|
|
67
|
+
# @!attribute [r] customer_selected_amount
|
|
68
|
+
# Value of the `customer_selected_amount` field in the Inttegro API payload.
|
|
69
|
+
#
|
|
70
|
+
# Required in the API payload. Wire name: `customer_selected_amount`.
|
|
71
|
+
# @return [Inttegro::Price::CustomerSelectedAmount]
|
|
72
|
+
class AmountSelection < T::Struct
|
|
73
|
+
const :purchase_intent_id, T.nilable(String), default: nil
|
|
74
|
+
const :order_id, T.nilable(String), default: nil
|
|
75
|
+
const :price_id, String
|
|
76
|
+
const :product_id, String
|
|
77
|
+
const :merchant_name, String
|
|
78
|
+
const :product_name, String
|
|
79
|
+
const :product_about, T.nilable(String), default: nil
|
|
80
|
+
const :expires_at, T.nilable(Time), default: nil
|
|
81
|
+
const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "lookup_request_variant2"
|
|
8
|
+
require_relative "order_reference_request"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
module Checkout
|
|
12
|
+
# Typed representation of the lookup request object in the Inttegro API.
|
|
13
|
+
#
|
|
14
|
+
# @api public
|
|
15
|
+
# @return [Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::LookupRequestVariant2]
|
|
16
|
+
LookupRequest = T.type_alias { T.any(Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::LookupRequestVariant2) }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Checkout
|
|
10
|
+
# Typed representation of the lookup request variant2 object in the Inttegro API.
|
|
11
|
+
#
|
|
12
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
14
|
+
# field names and serialized enum values.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
#
|
|
18
|
+
# @!attribute [r] purchase_intent_id
|
|
19
|
+
# Purchase Intent whose customer-selected amount policy should be loaded.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `purchase_intent_id`.
|
|
22
|
+
# @return [String]
|
|
23
|
+
class LookupRequestVariant2 < T::Struct
|
|
24
|
+
const :purchase_intent_id, String
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "../shared/error_payload"
|
|
8
|
+
require_relative "amount_selection"
|
|
9
|
+
require_relative "order"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
module Checkout
|
|
13
|
+
# A Purchase Intent lookup returns `amount_selection`. An Order lookup returns `order` and
|
|
14
|
+
# also returns `amount_selection` while that Order's amount can still be changed.
|
|
15
|
+
#
|
|
16
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
17
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
18
|
+
# field names and serialized enum values.
|
|
19
|
+
#
|
|
20
|
+
# @api public
|
|
21
|
+
#
|
|
22
|
+
# @!attribute [r] order
|
|
23
|
+
# Current checkout projection. Its existing fields are published unchanged for the initial
|
|
24
|
+
# mobile SDK contract and may be narrowed in a future contract revision.
|
|
25
|
+
#
|
|
26
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `order`.
|
|
27
|
+
# @return [Inttegro::Checkout::Order, nil]
|
|
28
|
+
#
|
|
29
|
+
# @!attribute [r] amount_selection
|
|
30
|
+
# Value of the `amount_selection` field in the Inttegro API payload.
|
|
31
|
+
#
|
|
32
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `amount_selection`.
|
|
33
|
+
# @return [Inttegro::Checkout::AmountSelection, nil]
|
|
34
|
+
#
|
|
35
|
+
# @!attribute [r] error
|
|
36
|
+
# Standard error response structure returned by all API endpoints. Provides machine-readable
|
|
37
|
+
# codes, human-readable messages, and actionable guidance for resolution.
|
|
38
|
+
#
|
|
39
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `error`.
|
|
40
|
+
# @return [Inttegro::Shared::ErrorPayload, nil]
|
|
41
|
+
class LookupResponse < T::Struct
|
|
42
|
+
const :order, T.nilable(Inttegro::Checkout::Order), default: nil
|
|
43
|
+
const :amount_selection, T.nilable(Inttegro::Checkout::AmountSelection), default: nil
|
|
44
|
+
const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "select_amount_request_variant1"
|
|
8
|
+
require_relative "select_amount_request_variant2"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
module Checkout
|
|
12
|
+
# Typed representation of the select amount request object in the Inttegro API.
|
|
13
|
+
#
|
|
14
|
+
# @api public
|
|
15
|
+
# @return [Inttegro::Checkout::SelectAmountRequestVariant1, Inttegro::Checkout::SelectAmountRequestVariant2]
|
|
16
|
+
SelectAmountRequest = T.type_alias { T.any(Inttegro::Checkout::SelectAmountRequestVariant1, Inttegro::Checkout::SelectAmountRequestVariant2) }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "selected_amount"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Checkout
|
|
11
|
+
# Typed representation of the select amount request variant1 object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] purchase_intent_id
|
|
20
|
+
# Purchase Intent used to create a new Checkout Order.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `purchase_intent_id`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] selected_amount
|
|
26
|
+
# Value of the `selected_amount` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `selected_amount`.
|
|
29
|
+
# @return [Inttegro::Checkout::SelectedAmount]
|
|
30
|
+
class SelectAmountRequestVariant1 < T::Struct
|
|
31
|
+
const :purchase_intent_id, String
|
|
32
|
+
const :selected_amount, Inttegro::Checkout::SelectedAmount
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "selected_amount"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Checkout
|
|
11
|
+
# Typed representation of the select amount request variant2 object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] order_id
|
|
20
|
+
# Existing finalized Order whose amount should be changed before payment begins.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `order_id`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] selected_amount
|
|
26
|
+
# Value of the `selected_amount` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `selected_amount`.
|
|
29
|
+
# @return [Inttegro::Checkout::SelectedAmount]
|
|
30
|
+
class SelectAmountRequestVariant2 < T::Struct
|
|
31
|
+
const :order_id, String
|
|
32
|
+
const :selected_amount, Inttegro::Checkout::SelectedAmount
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "../money/currency"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Checkout
|
|
11
|
+
# Typed representation of the selected amount object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] currency
|
|
20
|
+
# A currency code recognized by the Inttegro API. Individual operations can support a subset
|
|
21
|
+
# of these currencies.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `currency`.
|
|
24
|
+
# @return [Inttegro::Money::Currency]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] value
|
|
27
|
+
# Payer-selected amount in the currency's smallest unit.
|
|
28
|
+
#
|
|
29
|
+
# Required in the API payload. Wire name: `value`.
|
|
30
|
+
# @return [Integer]
|
|
31
|
+
class SelectedAmount < T::Struct
|
|
32
|
+
const :currency, Inttegro::Money::Currency
|
|
33
|
+
const :value, Integer
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -40,6 +40,13 @@ module Inttegro
|
|
|
40
40
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `disconnected_at`.
|
|
41
41
|
# @return [Time, nil]
|
|
42
42
|
#
|
|
43
|
+
# @!attribute [r] fingerprint
|
|
44
|
+
# A stable identifier for the underlying financial account within your application. Use it to
|
|
45
|
+
# recognize when the same account has been connected more than once.
|
|
46
|
+
#
|
|
47
|
+
# Required in the API payload. Wire name: `fingerprint`.
|
|
48
|
+
# @return [String]
|
|
49
|
+
#
|
|
43
50
|
# @!attribute [r] id
|
|
44
51
|
# Value of the `id` field in the Inttegro API payload.
|
|
45
52
|
#
|
|
@@ -62,6 +69,7 @@ module Inttegro
|
|
|
62
69
|
const :currency, String
|
|
63
70
|
const :description, T.nilable(String), default: nil
|
|
64
71
|
const :disconnected_at, T.nilable(Time), default: nil
|
|
72
|
+
const :fingerprint, String
|
|
65
73
|
const :id, String
|
|
66
74
|
const :label, T.nilable(String), default: nil
|
|
67
75
|
const :type, Inttegro::FinancialAccount::Type
|
|
@@ -57,6 +57,13 @@ module Inttegro
|
|
|
57
57
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
58
58
|
# @return [String, nil]
|
|
59
59
|
#
|
|
60
|
+
# @!attribute [r] fingerprint
|
|
61
|
+
# A stable identifier for the underlying financial account within your application. Use it to
|
|
62
|
+
# recognize when the same account has been connected more than once.
|
|
63
|
+
#
|
|
64
|
+
# Required in the API payload. Wire name: `fingerprint`.
|
|
65
|
+
# @return [String]
|
|
66
|
+
#
|
|
60
67
|
# @!attribute [r] id
|
|
61
68
|
# Value of the `id` field in the Inttegro API payload.
|
|
62
69
|
#
|
|
@@ -141,6 +148,7 @@ module Inttegro
|
|
|
141
148
|
const :currency, String
|
|
142
149
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
143
150
|
const :description, T.nilable(String), default: nil
|
|
151
|
+
const :fingerprint, String
|
|
144
152
|
const :id, String
|
|
145
153
|
const :institution, T.nilable(Inttegro::Shared::FinancialInstitution), default: nil
|
|
146
154
|
const :label, T.nilable(String), default: nil
|
|
@@ -56,6 +56,13 @@ module Inttegro
|
|
|
56
56
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
57
57
|
# @return [String, nil]
|
|
58
58
|
#
|
|
59
|
+
# @!attribute [r] fingerprint
|
|
60
|
+
# A stable identifier for the underlying financial account within your application. Use it to
|
|
61
|
+
# recognize when the same account has been connected more than once.
|
|
62
|
+
#
|
|
63
|
+
# Required in the API payload. Wire name: `fingerprint`.
|
|
64
|
+
# @return [String]
|
|
65
|
+
#
|
|
59
66
|
# @!attribute [r] id
|
|
60
67
|
# Value of the `id` field in the Inttegro API payload.
|
|
61
68
|
#
|
|
@@ -133,6 +140,7 @@ module Inttegro
|
|
|
133
140
|
const :currency, String
|
|
134
141
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
135
142
|
const :description, T.nilable(String), default: nil
|
|
143
|
+
const :fingerprint, String
|
|
136
144
|
const :id, String
|
|
137
145
|
const :institution, T.nilable(Inttegro::Shared::FinancialInstitution), default: nil
|
|
138
146
|
const :label, T.nilable(String), default: nil
|
|
@@ -53,6 +53,13 @@ module Inttegro
|
|
|
53
53
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
54
54
|
# @return [String, nil]
|
|
55
55
|
#
|
|
56
|
+
# @!attribute [r] fingerprint
|
|
57
|
+
# A stable identifier for the underlying financial account within your application. Use it to
|
|
58
|
+
# recognize when the same account has been connected more than once.
|
|
59
|
+
#
|
|
60
|
+
# Required in the API payload. Wire name: `fingerprint`.
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
56
63
|
# @!attribute [r] id
|
|
57
64
|
# Value of the `id` field in the Inttegro API payload.
|
|
58
65
|
#
|
|
@@ -112,6 +119,7 @@ module Inttegro
|
|
|
112
119
|
const :currency, String
|
|
113
120
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
114
121
|
const :description, T.nilable(String), default: nil
|
|
122
|
+
const :fingerprint, String
|
|
115
123
|
const :id, String
|
|
116
124
|
const :institution, T.nilable(Inttegro::Shared::FinancialInstitution), default: nil
|
|
117
125
|
const :label, T.nilable(String), default: nil
|
|
@@ -56,6 +56,13 @@ module Inttegro
|
|
|
56
56
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
57
57
|
# @return [String, nil]
|
|
58
58
|
#
|
|
59
|
+
# @!attribute [r] fingerprint
|
|
60
|
+
# A stable identifier for the underlying financial account within your application. Use it to
|
|
61
|
+
# recognize when the same account has been connected more than once.
|
|
62
|
+
#
|
|
63
|
+
# Required in the API payload. Wire name: `fingerprint`.
|
|
64
|
+
# @return [String]
|
|
65
|
+
#
|
|
59
66
|
# @!attribute [r] id
|
|
60
67
|
# Value of the `id` field in the Inttegro API payload.
|
|
61
68
|
#
|
|
@@ -146,6 +153,7 @@ module Inttegro
|
|
|
146
153
|
const :currency, String
|
|
147
154
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
148
155
|
const :description, T.nilable(String), default: nil
|
|
156
|
+
const :fingerprint, String
|
|
149
157
|
const :id, String
|
|
150
158
|
const :institution, T.nilable(Inttegro::Shared::FinancialInstitution), default: nil
|
|
151
159
|
const :label, T.nilable(String), default: nil
|
|
@@ -57,6 +57,13 @@ module Inttegro
|
|
|
57
57
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
58
58
|
# @return [String, nil]
|
|
59
59
|
#
|
|
60
|
+
# @!attribute [r] fingerprint
|
|
61
|
+
# A stable identifier for the underlying financial account within your application. Use it to
|
|
62
|
+
# recognize when the same account has been connected more than once.
|
|
63
|
+
#
|
|
64
|
+
# Required in the API payload. Wire name: `fingerprint`.
|
|
65
|
+
# @return [String]
|
|
66
|
+
#
|
|
60
67
|
# @!attribute [r] id
|
|
61
68
|
# Value of the `id` field in the Inttegro API payload.
|
|
62
69
|
#
|
|
@@ -147,6 +154,7 @@ module Inttegro
|
|
|
147
154
|
const :currency, String
|
|
148
155
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
149
156
|
const :description, T.nilable(String), default: nil
|
|
157
|
+
const :fingerprint, String
|
|
150
158
|
const :id, String
|
|
151
159
|
const :institution, T.nilable(Inttegro::Shared::FinancialInstitution), default: nil
|
|
152
160
|
const :label, T.nilable(String), default: nil
|
|
@@ -65,6 +65,8 @@ require_relative "../payment_method/data_type"
|
|
|
65
65
|
require_relative "../payment_method/tokenize_base_type"
|
|
66
66
|
require_relative "../payment_method/tokenize_mobile_money_request_type"
|
|
67
67
|
require_relative "../payment_method/type"
|
|
68
|
+
require_relative "../payout/balance_transaction_status"
|
|
69
|
+
require_relative "../payout/failure_reason"
|
|
68
70
|
require_relative "../payout/status"
|
|
69
71
|
require_relative "../price/type"
|
|
70
72
|
require_relative "../product/line_item_type"
|