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
|
@@ -45,6 +45,9 @@ require_relative "../app/relationship"
|
|
|
45
45
|
require_relative "../app/application"
|
|
46
46
|
require_relative "../payment_method/archive_request"
|
|
47
47
|
require_relative "../payment_method/archive_response"
|
|
48
|
+
require_relative "../balance/holds_payout"
|
|
49
|
+
require_relative "../balance/holds_refund"
|
|
50
|
+
require_relative "../balance/holds"
|
|
48
51
|
require_relative "../balance/value"
|
|
49
52
|
require_relative "../balance/currency_snapshot_refund"
|
|
50
53
|
require_relative "../balance/currency_snapshot_reserved"
|
|
@@ -106,6 +109,7 @@ require_relative "../product/catalog_with_customer_selected_price"
|
|
|
106
109
|
require_relative "../price/price_params"
|
|
107
110
|
require_relative "../product/catalog_with_price_data"
|
|
108
111
|
require_relative "../product/catalog_with_price_reference"
|
|
112
|
+
require_relative "../checkout/amount_selection"
|
|
109
113
|
require_relative "../checkout/payment_address"
|
|
110
114
|
require_relative "../checkout/billing_details"
|
|
111
115
|
require_relative "../checkout/confirm_payment_request"
|
|
@@ -118,7 +122,9 @@ require_relative "../checkout/invoice_view_format_receipt"
|
|
|
118
122
|
require_relative "../checkout/invoice_view_format"
|
|
119
123
|
require_relative "../checkout/invoice_view_beneficiary"
|
|
120
124
|
require_relative "../checkout/invoice_view"
|
|
121
|
-
require_relative "../checkout/
|
|
125
|
+
require_relative "../checkout/order_reference_request"
|
|
126
|
+
require_relative "../checkout/lookup_request_variant2"
|
|
127
|
+
require_relative "../checkout/lookup_request"
|
|
122
128
|
require_relative "../checkout/order_checkout_settings"
|
|
123
129
|
require_relative "../product/inline_details"
|
|
124
130
|
require_relative "../product/details"
|
|
@@ -140,12 +146,17 @@ require_relative "../checkout/order_payment_next_action"
|
|
|
140
146
|
require_relative "../checkout/order_payment_latest_error"
|
|
141
147
|
require_relative "../checkout/order_payment"
|
|
142
148
|
require_relative "../checkout/order"
|
|
143
|
-
require_relative "../checkout/
|
|
149
|
+
require_relative "../checkout/lookup_response"
|
|
150
|
+
require_relative "../checkout/mobile_money_data"
|
|
144
151
|
require_relative "../checkout/order_response"
|
|
145
152
|
require_relative "../checkout/payment_method_data_billing_details"
|
|
146
153
|
require_relative "../checkout/pay_request_payment_method_data"
|
|
147
154
|
require_relative "../checkout/pay_request"
|
|
148
155
|
require_relative "../checkout/payment_method_data"
|
|
156
|
+
require_relative "../checkout/selected_amount"
|
|
157
|
+
require_relative "../checkout/select_amount_request_variant1"
|
|
158
|
+
require_relative "../checkout/select_amount_request_variant2"
|
|
159
|
+
require_relative "../checkout/select_amount_request"
|
|
149
160
|
require_relative "../chime/recipient_detail_phone"
|
|
150
161
|
require_relative "../chime/recipient_detail_email"
|
|
151
162
|
require_relative "../chime/recipient_detail"
|
|
@@ -284,6 +295,9 @@ require_relative "../order/create_new_customer"
|
|
|
284
295
|
require_relative "../product/shipment_input"
|
|
285
296
|
require_relative "../product/attribute"
|
|
286
297
|
require_relative "../product/create_request"
|
|
298
|
+
require_relative "../purchase_intent/create_presentation_buy_page_text"
|
|
299
|
+
require_relative "../purchase_intent/create_presentation_buy_page"
|
|
300
|
+
require_relative "../purchase_intent/create_presentation"
|
|
287
301
|
require_relative "../purchase_intent/create_request_product"
|
|
288
302
|
require_relative "../purchase_intent/create_request_price_original"
|
|
289
303
|
require_relative "../purchase_intent/create_request_price"
|
|
@@ -461,6 +475,9 @@ require_relative "../purchase_intent/page_request"
|
|
|
461
475
|
require_relative "../purchase_intent/merchant"
|
|
462
476
|
require_relative "../purchase_intent/original_price"
|
|
463
477
|
require_relative "../purchase_intent/price"
|
|
478
|
+
require_relative "../purchase_intent/presentation_buy_page_text"
|
|
479
|
+
require_relative "../purchase_intent/presentation_buy_page"
|
|
480
|
+
require_relative "../purchase_intent/presentation"
|
|
464
481
|
require_relative "../purchase_intent/product"
|
|
465
482
|
require_relative "../purchase_intent/quantity"
|
|
466
483
|
require_relative "../purchase_intent/usage_order"
|
|
@@ -486,6 +503,7 @@ require_relative "../payment_method/tokenize_base"
|
|
|
486
503
|
require_relative "../payment/result"
|
|
487
504
|
require_relative "../payout/balance_transaction"
|
|
488
505
|
require_relative "../payout/error"
|
|
506
|
+
require_relative "../payout/failure"
|
|
489
507
|
require_relative "../payout/payout"
|
|
490
508
|
require_relative "../payout/page"
|
|
491
509
|
require_relative "../payout/page_response"
|
|
@@ -575,6 +593,9 @@ require_relative "../price/update_request"
|
|
|
575
593
|
require_relative "../product/update_request"
|
|
576
594
|
require_relative "../product/updated"
|
|
577
595
|
require_relative "../product/update_response"
|
|
596
|
+
require_relative "../purchase_intent/update_presentation_buy_page_text"
|
|
597
|
+
require_relative "../purchase_intent/update_presentation_buy_page"
|
|
598
|
+
require_relative "../purchase_intent/update_presentation"
|
|
578
599
|
require_relative "../purchase_intent/update_request_quantity"
|
|
579
600
|
require_relative "../purchase_intent/update_request"
|
|
580
601
|
require_relative "../secret_key/update_request"
|
|
@@ -31,7 +31,8 @@ module Inttegro
|
|
|
31
31
|
"/customers/lookup" => Inttegro::Customer::Response,
|
|
32
32
|
"/customers/update" => Inttegro::Customer::Response,
|
|
33
33
|
"/customers/page" => Inttegro::Customer::PageResponse,
|
|
34
|
-
"/checkout/lookup" => Inttegro::Checkout::
|
|
34
|
+
"/checkout/lookup" => Inttegro::Checkout::LookupResponse,
|
|
35
|
+
"/checkout/select_amount" => Inttegro::Checkout::OrderResponse,
|
|
35
36
|
"/checkout/pay" => Inttegro::Checkout::OrderResponse,
|
|
36
37
|
"/checkout/confirm_payment" => Inttegro::Checkout::OrderResponse,
|
|
37
38
|
"/checkout/request_confirmation" => Inttegro::Checkout::OrderResponse,
|
|
@@ -158,7 +159,8 @@ module Inttegro
|
|
|
158
159
|
"/customers/lookup" => "Inttegro::Customer::LookupRequest",
|
|
159
160
|
"/customers/update" => "Inttegro::Customer::UpdateRequest",
|
|
160
161
|
"/customers/page" => "Inttegro::Customer::PageRequest",
|
|
161
|
-
"/checkout/lookup" => "Inttegro::Checkout::
|
|
162
|
+
"/checkout/lookup" => "Inttegro::Checkout::LookupRequest",
|
|
163
|
+
"/checkout/select_amount" => "Inttegro::Checkout::SelectAmountRequest",
|
|
162
164
|
"/checkout/pay" => "Inttegro::Checkout::PayRequest",
|
|
163
165
|
"/checkout/confirm_payment" => "Inttegro::Checkout::ConfirmPaymentRequest",
|
|
164
166
|
"/checkout/request_confirmation" => "Inttegro::Checkout::OrderReferenceRequest",
|
|
@@ -284,6 +286,7 @@ module Inttegro
|
|
|
284
286
|
"/customers/update" => "updateCustomer",
|
|
285
287
|
"/customers/page" => "pageCustomers",
|
|
286
288
|
"/checkout/lookup" => "lookupCheckoutOrder",
|
|
289
|
+
"/checkout/select_amount" => "selectCheckoutAmount",
|
|
287
290
|
"/checkout/pay" => "payCheckoutOrder",
|
|
288
291
|
"/checkout/confirm_payment" => "confirmCheckoutPayment",
|
|
289
292
|
"/checkout/request_confirmation" => "requestCheckoutConfirmation",
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "../money/amount"
|
|
8
|
+
require_relative "balance_transaction_status"
|
|
8
9
|
|
|
9
10
|
module Inttegro
|
|
10
11
|
class Payout
|
|
11
|
-
# A
|
|
12
|
+
# A historical view of one balance transaction's contribution to a payout. Released
|
|
13
|
+
# contributions remain present so clients can inspect the payout's original composition.
|
|
12
14
|
#
|
|
13
15
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
16
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -33,10 +35,18 @@ module Inttegro
|
|
|
33
35
|
#
|
|
34
36
|
# Required in the API payload. Wire name: `id`.
|
|
35
37
|
# @return [String]
|
|
38
|
+
#
|
|
39
|
+
# @!attribute [r] status
|
|
40
|
+
# Whether this contribution is still reserved for the payout, was consumed by a successful
|
|
41
|
+
# payout, or was released after the payout did not complete.
|
|
42
|
+
#
|
|
43
|
+
# Required in the API payload. Wire name: `status`.
|
|
44
|
+
# @return [Inttegro::Payout::BalanceTransactionStatus]
|
|
36
45
|
class BalanceTransaction < T::Struct
|
|
37
46
|
const :allocated_amount, Inttegro::Money::Amount
|
|
38
47
|
const :amount, Inttegro::Money::Amount
|
|
39
48
|
const :id, String
|
|
49
|
+
const :status, Inttegro::Payout::BalanceTransactionStatus
|
|
40
50
|
end
|
|
41
51
|
end
|
|
42
52
|
end
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
class Payout
|
|
10
|
+
# Whether this contribution is still reserved for the payout, was consumed by a successful
|
|
11
|
+
# payout, or was released after the payout did not complete.
|
|
12
|
+
#
|
|
13
|
+
# Use the constants below when constructing a request. `#serialize` returns the documented
|
|
14
|
+
# string wire value received from or sent to the API.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
class BalanceTransactionStatus < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `reserved`.
|
|
20
|
+
# @return [Inttegro::Payout::BalanceTransactionStatus]
|
|
21
|
+
RESERVED = new("reserved")
|
|
22
|
+
# Serialized wire value: `completed`.
|
|
23
|
+
# @return [Inttegro::Payout::BalanceTransactionStatus]
|
|
24
|
+
COMPLETED = new("completed")
|
|
25
|
+
# Serialized wire value: `released`.
|
|
26
|
+
# @return [Inttegro::Payout::BalanceTransactionStatus]
|
|
27
|
+
RELEASED = new("released")
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -7,7 +7,7 @@ require_relative "base"
|
|
|
7
7
|
|
|
8
8
|
module Inttegro
|
|
9
9
|
class Payout
|
|
10
|
-
#
|
|
10
|
+
# Deprecated compatibility projection of `PayoutFailure`.
|
|
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
|
|
@@ -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 "failure_reason"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Payout
|
|
11
|
+
# Stable, caller-safe information about a terminal payout failure.
|
|
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] detail
|
|
20
|
+
# Human-readable explanation safe to show to an operator.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `detail`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] reason
|
|
26
|
+
# Stable category describing why the payout failed.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `reason`.
|
|
29
|
+
# @return [Inttegro::Payout::FailureReason]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] retryable
|
|
32
|
+
# Whether creating a new payout attempt may succeed without changing the destination or
|
|
33
|
+
# request.
|
|
34
|
+
#
|
|
35
|
+
# Required in the API payload. Wire name: `retryable`.
|
|
36
|
+
# @return [Boolean]
|
|
37
|
+
class Failure < T::Struct
|
|
38
|
+
const :detail, String
|
|
39
|
+
const :reason, Inttegro::Payout::FailureReason
|
|
40
|
+
const :retryable, T::Boolean
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
class Payout
|
|
10
|
+
# Stable category describing why the payout failed.
|
|
11
|
+
#
|
|
12
|
+
# Use the constants below when constructing a request. `#serialize` returns the documented
|
|
13
|
+
# string wire value received from or sent to the API.
|
|
14
|
+
#
|
|
15
|
+
# @api public
|
|
16
|
+
class FailureReason < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `provider_declined`.
|
|
19
|
+
# @return [Inttegro::Payout::FailureReason]
|
|
20
|
+
PROVIDER_DECLINED = new("provider_declined")
|
|
21
|
+
# Serialized wire value: `delivery_failed`.
|
|
22
|
+
# @return [Inttegro::Payout::FailureReason]
|
|
23
|
+
DELIVERY_FAILED = new("delivery_failed")
|
|
24
|
+
# Serialized wire value: `temporarily_unavailable`.
|
|
25
|
+
# @return [Inttegro::Payout::FailureReason]
|
|
26
|
+
TEMPORARILY_UNAVAILABLE = new("temporarily_unavailable")
|
|
27
|
+
# Serialized wire value: `unknown`.
|
|
28
|
+
# @return [Inttegro::Payout::FailureReason]
|
|
29
|
+
UNKNOWN = new("unknown")
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -8,6 +8,7 @@ require_relative "../custom_data"
|
|
|
8
8
|
require_relative "../money/amount"
|
|
9
9
|
require_relative "balance_transaction"
|
|
10
10
|
require_relative "error"
|
|
11
|
+
require_relative "failure"
|
|
11
12
|
require_relative "status"
|
|
12
13
|
|
|
13
14
|
module Inttegro
|
|
@@ -60,7 +61,7 @@ module Inttegro
|
|
|
60
61
|
# @return [String]
|
|
61
62
|
#
|
|
62
63
|
# @!attribute [r] error
|
|
63
|
-
#
|
|
64
|
+
# Deprecated compatibility projection of `failure`. New integrations should use `failure`.
|
|
64
65
|
#
|
|
65
66
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `error`.
|
|
66
67
|
# @return [Inttegro::Payout::Error, nil]
|
|
@@ -84,11 +85,17 @@ module Inttegro
|
|
|
84
85
|
# @return [Time, nil]
|
|
85
86
|
#
|
|
86
87
|
# @!attribute [r] failed_at
|
|
87
|
-
# When the payout entered
|
|
88
|
+
# When the payout entered the `failed` state.
|
|
88
89
|
#
|
|
89
90
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `failed_at`.
|
|
90
91
|
# @return [Time, nil]
|
|
91
92
|
#
|
|
93
|
+
# @!attribute [r] failure
|
|
94
|
+
# Caller-safe failure information. Present only when `status` is `failed`.
|
|
95
|
+
#
|
|
96
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `failure`.
|
|
97
|
+
# @return [Inttegro::Payout::Failure, nil]
|
|
98
|
+
#
|
|
92
99
|
# @!attribute [r] id
|
|
93
100
|
# Unique payout identifier
|
|
94
101
|
#
|
|
@@ -172,6 +179,7 @@ module Inttegro
|
|
|
172
179
|
const :executed_by, T.nilable(String), default: nil
|
|
173
180
|
const :expected_at, T.nilable(Time), default: nil
|
|
174
181
|
const :failed_at, T.nilable(Time), default: nil
|
|
182
|
+
const :failure, T.nilable(Inttegro::Payout::Failure), default: nil
|
|
175
183
|
const :id, String
|
|
176
184
|
const :initiated_at, Time
|
|
177
185
|
const :initiated_by, T.nilable(String), default: nil
|
|
@@ -30,9 +30,9 @@ module Inttegro
|
|
|
30
30
|
# Serialized wire value: `succeeded`.
|
|
31
31
|
# @return [Inttegro::Payout::Status]
|
|
32
32
|
SUCCEEDED = new("succeeded")
|
|
33
|
-
# Serialized wire value: `
|
|
33
|
+
# Serialized wire value: `failed`.
|
|
34
34
|
# @return [Inttegro::Payout::Status]
|
|
35
|
-
|
|
35
|
+
FAILED = new("failed")
|
|
36
36
|
# Serialized wire value: `canceled`.
|
|
37
37
|
# @return [Inttegro::Payout::Status]
|
|
38
38
|
CANCELED = new("canceled")
|
|
@@ -0,0 +1,29 @@
|
|
|
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 "create_presentation_buy_page"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PurchaseIntent
|
|
11
|
+
# Optional merchant-authored copy for the hosted Buy page. Omit it to use product-aware
|
|
12
|
+
# defaults.
|
|
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] buy_page
|
|
21
|
+
# Value of the `buy_page` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `buy_page`.
|
|
24
|
+
# @return [Inttegro::PurchaseIntent::CreatePresentationBuyPage]
|
|
25
|
+
class CreatePresentation < T::Struct
|
|
26
|
+
const :buy_page, Inttegro::PurchaseIntent::CreatePresentationBuyPage
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
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 "create_presentation_buy_page_text"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PurchaseIntent
|
|
11
|
+
# Typed representation of the create presentation buy page 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] text
|
|
20
|
+
# Value of the `text` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `text`.
|
|
23
|
+
# @return [Inttegro::PurchaseIntent::CreatePresentationBuyPageText]
|
|
24
|
+
class CreatePresentationBuyPage < T::Struct
|
|
25
|
+
const :text, Inttegro::PurchaseIntent::CreatePresentationBuyPageText
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
class PurchaseIntent
|
|
10
|
+
# Typed representation of the create presentation buy page text 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] checkout_section_title
|
|
19
|
+
# Plain, single-line title shown above the Buy page form
|
|
20
|
+
#
|
|
21
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `checkout_section_title`.
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] amount_field_label
|
|
25
|
+
# Plain, single-line label for a customer-selected amount field
|
|
26
|
+
#
|
|
27
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `amount_field_label`.
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] primary_action_label
|
|
31
|
+
# Plain, single-line label used for the ready primary action. Validation and loading labels
|
|
32
|
+
# remain system-owned.
|
|
33
|
+
#
|
|
34
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `primary_action_label`.
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
class CreatePresentationBuyPageText < T::Struct
|
|
37
|
+
const :checkout_section_title, T.nilable(String), default: nil
|
|
38
|
+
const :amount_field_label, T.nilable(String), default: nil
|
|
39
|
+
const :primary_action_label, T.nilable(String), default: nil
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
+
require_relative "create_presentation"
|
|
7
8
|
require_relative "create_request_price"
|
|
8
9
|
require_relative "create_request_product"
|
|
9
10
|
require_relative "create_request_quantity"
|
|
@@ -62,6 +63,13 @@ module Inttegro
|
|
|
62
63
|
#
|
|
63
64
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `expires_at`.
|
|
64
65
|
# @return [Time, nil]
|
|
66
|
+
#
|
|
67
|
+
# @!attribute [r] presentation
|
|
68
|
+
# Optional merchant-authored copy for the hosted Buy page. Omit it to use product-aware
|
|
69
|
+
# defaults.
|
|
70
|
+
#
|
|
71
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `presentation`.
|
|
72
|
+
# @return [Inttegro::PurchaseIntent::CreatePresentation, nil]
|
|
65
73
|
class CreateRequest < T::Struct
|
|
66
74
|
const :product, T.nilable(Inttegro::PurchaseIntent::CreateRequestProduct), default: nil
|
|
67
75
|
const :product_id, T.nilable(String), default: nil
|
|
@@ -70,6 +78,7 @@ module Inttegro
|
|
|
70
78
|
const :quantity, Inttegro::PurchaseIntent::CreateRequestQuantity
|
|
71
79
|
const :usage, T.nilable(Inttegro::PurchaseIntent::CreateRequestUsage), default: nil
|
|
72
80
|
const :expires_at, T.nilable(Time), default: nil
|
|
81
|
+
const :presentation, T.nilable(Inttegro::PurchaseIntent::CreatePresentation), default: nil
|
|
73
82
|
end
|
|
74
83
|
end
|
|
75
84
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
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 "presentation_buy_page"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PurchaseIntent
|
|
11
|
+
# Typed representation of the presentation 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] buy_page
|
|
20
|
+
# Value of the `buy_page` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `buy_page`.
|
|
23
|
+
# @return [Inttegro::PurchaseIntent::PresentationBuyPage, nil]
|
|
24
|
+
class Presentation < T::Struct
|
|
25
|
+
const :buy_page, T.nilable(Inttegro::PurchaseIntent::PresentationBuyPage), default: nil
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
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 "presentation_buy_page_text"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PurchaseIntent
|
|
11
|
+
# Typed representation of the presentation buy page 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] text
|
|
20
|
+
# Value of the `text` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `text`.
|
|
23
|
+
# @return [Inttegro::PurchaseIntent::PresentationBuyPageText, nil]
|
|
24
|
+
class PresentationBuyPage < T::Struct
|
|
25
|
+
const :text, T.nilable(Inttegro::PurchaseIntent::PresentationBuyPageText), default: nil
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
class PurchaseIntent
|
|
10
|
+
# Typed representation of the presentation buy page text 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] checkout_section_title
|
|
19
|
+
# Value of the `checkout_section_title` field in the Inttegro API payload.
|
|
20
|
+
#
|
|
21
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `checkout_section_title`.
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] amount_field_label
|
|
25
|
+
# Value of the `amount_field_label` field in the Inttegro API payload.
|
|
26
|
+
#
|
|
27
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `amount_field_label`.
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] primary_action_label
|
|
31
|
+
# Value of the `primary_action_label` field in the Inttegro API payload.
|
|
32
|
+
#
|
|
33
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `primary_action_label`.
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
class PresentationBuyPageText < T::Struct
|
|
36
|
+
const :checkout_section_title, T.nilable(String), default: nil
|
|
37
|
+
const :amount_field_label, T.nilable(String), default: nil
|
|
38
|
+
const :primary_action_label, T.nilable(String), default: nil
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "merchant"
|
|
8
|
+
require_relative "presentation"
|
|
8
9
|
require_relative "price"
|
|
9
10
|
require_relative "product"
|
|
10
11
|
require_relative "quantity"
|
|
@@ -65,6 +66,12 @@ module Inttegro
|
|
|
65
66
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `price`.
|
|
66
67
|
# @return [Inttegro::PurchaseIntent::Price, nil]
|
|
67
68
|
#
|
|
69
|
+
# @!attribute [r] presentation
|
|
70
|
+
# Value of the `presentation` field in the Inttegro API payload.
|
|
71
|
+
#
|
|
72
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `presentation`.
|
|
73
|
+
# @return [Inttegro::PurchaseIntent::Presentation, nil]
|
|
74
|
+
#
|
|
68
75
|
# @!attribute [r] product
|
|
69
76
|
# Value of the `product` field in the Inttegro API payload.
|
|
70
77
|
#
|
|
@@ -110,6 +117,7 @@ module Inttegro
|
|
|
110
117
|
const :inactive_at, T.nilable(Time), default: nil
|
|
111
118
|
const :merchant, T.nilable(Inttegro::PurchaseIntent::Merchant), default: nil
|
|
112
119
|
const :price, T.nilable(Inttegro::PurchaseIntent::Price), default: nil
|
|
120
|
+
const :presentation, T.nilable(Inttegro::PurchaseIntent::Presentation), default: nil
|
|
113
121
|
const :product, T.nilable(Inttegro::PurchaseIntent::Product), default: nil
|
|
114
122
|
const :quantity, Inttegro::PurchaseIntent::Quantity
|
|
115
123
|
const :status, Inttegro::PurchaseIntent::Status
|
|
@@ -0,0 +1,29 @@
|
|
|
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 "update_presentation_buy_page"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PurchaseIntent
|
|
11
|
+
# Sparse Buy page copy update. Omit a field to preserve it, or send null to restore the
|
|
12
|
+
# product-aware default.
|
|
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] buy_page
|
|
21
|
+
# Value of the `buy_page` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `buy_page`.
|
|
24
|
+
# @return [Inttegro::PurchaseIntent::UpdatePresentationBuyPage]
|
|
25
|
+
class UpdatePresentation < T::Struct
|
|
26
|
+
const :buy_page, Inttegro::PurchaseIntent::UpdatePresentationBuyPage
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
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 "update_presentation_buy_page_text"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PurchaseIntent
|
|
11
|
+
# Typed representation of the update presentation buy page 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] text
|
|
20
|
+
# Value of the `text` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `text`.
|
|
23
|
+
# @return [Inttegro::PurchaseIntent::UpdatePresentationBuyPageText]
|
|
24
|
+
class UpdatePresentationBuyPage < T::Struct
|
|
25
|
+
const :text, Inttegro::PurchaseIntent::UpdatePresentationBuyPageText
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|