inttegro 7.0.0 → 8.1.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 +16 -0
- data/lib/inttegro/checkout/invoice_view.rb +8 -0
- data/lib/inttegro/checkout/order_line_item_group.rb +23 -0
- data/lib/inttegro/chime/chime.rb +3 -2
- data/lib/inttegro/chime/send_request.rb +12 -2
- data/lib/inttegro/chime/send_request_cooldown.rb +35 -0
- data/lib/inttegro/chime/transport.rb +2 -1
- data/lib/inttegro/custom_data.rb +132 -0
- data/lib/inttegro/customer/create_request.rb +3 -2
- data/lib/inttegro/customer/customer.rb +3 -2
- data/lib/inttegro/customer/data.rb +3 -2
- data/lib/inttegro/customer/update_request.rb +3 -2
- data/lib/inttegro/file/file.rb +3 -2
- data/lib/inttegro/file_link/create_request.rb +3 -2
- data/lib/inttegro/file_link/file_link.rb +3 -2
- data/lib/inttegro/financial_account/bank_request.rb +3 -2
- data/lib/inttegro/financial_account/connected.rb +3 -2
- data/lib/inttegro/financial_account/created.rb +3 -2
- data/lib/inttegro/financial_account/details.rb +3 -2
- data/lib/inttegro/financial_account/dosh_request.rb +3 -2
- data/lib/inttegro/financial_account/financial_account.rb +3 -2
- data/lib/inttegro/financial_account/request_base.rb +3 -2
- data/lib/inttegro/financial_account/update_request.rb +3 -2
- data/lib/inttegro/financial_account/updated.rb +3 -2
- data/lib/inttegro/financial_account/wallet_request.rb +3 -2
- data/lib/inttegro/financial_account/wire_page_accounts_item.rb +3 -2
- data/lib/inttegro/generated/enums.rb +17 -1
- data/lib/inttegro/generated/models.rb +36 -0
- data/lib/inttegro/generated/operations.rb +18 -3
- data/lib/inttegro/http_client.rb +1 -1
- data/lib/inttegro/model_serialization.rb +30 -1
- data/lib/inttegro/order/create_existing_customer.rb +26 -2
- data/lib/inttegro/order/create_new_customer.rb +26 -2
- data/lib/inttegro/order/document_delivery_attempt.rb +7 -0
- data/lib/inttegro/order/document_delivery_channel_summary.rb +34 -0
- data/lib/inttegro/order/document_delivery_summary.rb +43 -0
- data/lib/inttegro/order/document_delivery_summary_channels.rb +36 -0
- data/lib/inttegro/order/invoice.rb +8 -0
- data/lib/inttegro/order/invoice_format.rb +3 -2
- data/lib/inttegro/order/line_item_group.rb +25 -0
- data/lib/inttegro/order/order.rb +3 -2
- data/lib/inttegro/order/product_line_item_product.rb +3 -2
- data/lib/inttegro/order/receipt_document_format.rb +35 -0
- data/lib/inttegro/order/update_request.rb +26 -2
- data/lib/inttegro/otp/initiate_request.rb +35 -8
- data/lib/inttegro/otp/purpose.rb +62 -0
- data/lib/inttegro/otp/transmission.rb +4 -4
- data/lib/inttegro/otp/transmission_status.rb +9 -0
- data/lib/inttegro/otp/verify_request.rb +2 -1
- data/lib/inttegro/payment_method/payment_method.rb +14 -2
- data/lib/inttegro/payment_method/tokenize_base.rb +3 -2
- data/lib/inttegro/payment_method/tokenize_mobile_money_request.rb +3 -2
- data/lib/inttegro/payment_method/update_request.rb +3 -2
- data/lib/inttegro/payout/payout.rb +3 -2
- data/lib/inttegro/price/embedded_product.rb +3 -2
- data/lib/inttegro/product/create_request.rb +3 -2
- data/lib/inttegro/product/inline_details.rb +3 -2
- data/lib/inttegro/product/product.rb +3 -2
- data/lib/inttegro/product/update_request.rb +3 -2
- data/lib/inttegro/product/updated.rb +3 -2
- data/lib/inttegro/purchase_intent/product.rb +3 -2
- data/lib/inttegro/refund/create_request.rb +3 -2
- data/lib/inttegro/refund/failure.rb +45 -0
- data/lib/inttegro/refund/failure_reason.rb +49 -0
- data/lib/inttegro/refund/line_item.rb +31 -1
- data/lib/inttegro/refund/offline_settlement.rb +28 -0
- data/lib/inttegro/{otp/transmission_sent_via.rb → refund/offline_settlement_type.rb} +6 -6
- data/lib/inttegro/refund/order_fee_line_item.rb +43 -0
- data/lib/inttegro/refund/order_fee_line_item_fee.rb +34 -0
- data/lib/inttegro/refund/order_fee_line_item_type.rb +25 -0
- data/lib/inttegro/refund/order_line_item.rb +20 -0
- data/lib/inttegro/refund/order_product_line_item.rb +50 -0
- data/lib/inttegro/refund/order_product_line_item_product.rb +34 -0
- data/lib/inttegro/refund/order_product_line_item_type.rb +25 -0
- data/lib/inttegro/refund/order_shipping_line_item.rb +43 -0
- data/lib/inttegro/refund/order_shipping_line_item_shipping.rb +34 -0
- data/lib/inttegro/refund/order_shipping_line_item_type.rb +25 -0
- data/lib/inttegro/refund/payment_method_settlement.rb +55 -0
- data/lib/inttegro/refund/payment_method_settlement_type.rb +24 -0
- data/lib/inttegro/refund/refund.rb +39 -2
- data/lib/inttegro/refund/settlement.rb +19 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method.rb +44 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method_bank_account.rb +37 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method_bank_account_ghana_bank_account.rb +35 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method_type.rb +25 -0
- data/lib/inttegro/refund/settlement_mobile_money_payment_method.rb +44 -0
- data/lib/inttegro/refund/settlement_mobile_money_payment_method_mobile_money.rb +43 -0
- data/lib/inttegro/refund/settlement_mobile_money_payment_method_type.rb +25 -0
- data/lib/inttegro/refund/settlement_payment_method.rb +19 -0
- data/lib/inttegro/resources/customers.rb +8 -0
- data/lib/inttegro/resources/financial_accounts.rb +12 -0
- data/lib/inttegro/resources/orders.rb +8 -0
- data/lib/inttegro/resources/payouts.rb +8 -0
- data/lib/inttegro/resources/products.rb +8 -0
- data/lib/inttegro/search/base.rb +17 -0
- data/lib/inttegro/search/facet.rb +34 -0
- data/lib/inttegro/search/facet_bucket.rb +34 -0
- data/lib/inttegro/search/facet_result.rb +35 -0
- data/lib/inttegro/search/filter.rb +42 -0
- data/lib/inttegro/search/filter_operator.rb +27 -0
- data/lib/inttegro/search/freshness.rb +43 -0
- data/lib/inttegro/search/freshness_state.rb +36 -0
- data/lib/inttegro/search/page.rb +104 -0
- data/lib/inttegro/search/request.rb +68 -0
- data/lib/inttegro/search/resource_freshness.rb +50 -0
- data/lib/inttegro/search/resource_freshness_state.rb +37 -0
- data/lib/inttegro/search/resource_reference.rb +35 -0
- data/lib/inttegro/search/resource_total.rb +43 -0
- data/lib/inttegro/search/resource_total_relation.rb +28 -0
- data/lib/inttegro/search/response.rb +28 -0
- data/lib/inttegro/search/result.rb +78 -0
- data/lib/inttegro/search/sort.rb +36 -0
- data/lib/inttegro/search/sort_direction.rb +27 -0
- data/lib/inttegro/search/sort_field.rb +30 -0
- data/lib/inttegro/search/total.rb +35 -0
- data/lib/inttegro/search/total_relation.rb +27 -0
- data/lib/inttegro/search/type.rb +36 -0
- data/lib/inttegro/shared/fee_details.rb +3 -2
- data/lib/inttegro/shared/invoice_settings.rb +3 -2
- data/lib/inttegro/shared/shipping_details.rb +3 -2
- data/lib/inttegro/telemetry.rb +1 -1
- data/lib/inttegro/upload_request/create_request.rb +3 -2
- data/lib/inttegro/upload_request/details.rb +3 -2
- data/lib/inttegro/upload_request/upload_request.rb +3 -2
- data/lib/inttegro/version.rb +1 -1
- data/lib/inttegro.rb +1 -0
- data/rbi/inttegro/generated.rbi +15 -0
- metadata +57 -3
|
@@ -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 Search
|
|
10
|
+
# Relevance supports descending order only.
|
|
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 SortDirection < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `asc`.
|
|
19
|
+
# @return [Inttegro::Search::SortDirection]
|
|
20
|
+
ASC = new("asc")
|
|
21
|
+
# Serialized wire value: `desc`.
|
|
22
|
+
# @return [Inttegro::Search::SortDirection]
|
|
23
|
+
DESC = new("desc")
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Search
|
|
10
|
+
# `published_at` is supported only by product search.
|
|
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 SortField < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `relevance`.
|
|
19
|
+
# @return [Inttegro::Search::SortField]
|
|
20
|
+
RELEVANCE = new("relevance")
|
|
21
|
+
# Serialized wire value: `updated_at`.
|
|
22
|
+
# @return [Inttegro::Search::SortField]
|
|
23
|
+
UPDATED_AT = new("updated_at")
|
|
24
|
+
# Serialized wire value: `published_at`.
|
|
25
|
+
# @return [Inttegro::Search::SortField]
|
|
26
|
+
PUBLISHED_AT = new("published_at")
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
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 "total_relation"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Search
|
|
11
|
+
# Typed representation of the total 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] value
|
|
20
|
+
# Value of the `value` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `value`.
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] relation
|
|
26
|
+
# Value of the `relation` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `relation`.
|
|
29
|
+
# @return [Inttegro::Search::TotalRelation]
|
|
30
|
+
class Total < T::Struct
|
|
31
|
+
const :value, Integer
|
|
32
|
+
const :relation, Inttegro::Search::TotalRelation
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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 Search
|
|
10
|
+
# String-backed values accepted by the Inttegro API for Inttegro::Search::TotalRelation.
|
|
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 TotalRelation < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `exact`.
|
|
19
|
+
# @return [Inttegro::Search::TotalRelation]
|
|
20
|
+
EXACT = new("exact")
|
|
21
|
+
# Serialized wire value: `lower_bound`.
|
|
22
|
+
# @return [Inttegro::Search::TotalRelation]
|
|
23
|
+
LOWER_BOUND = new("lower_bound")
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
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
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Search
|
|
10
|
+
# String-backed values accepted by the Inttegro API for Inttegro::Search::Type.
|
|
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 Type < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `customer`.
|
|
19
|
+
# @return [Inttegro::Search::Type]
|
|
20
|
+
CUSTOMER = new("customer")
|
|
21
|
+
# Serialized wire value: `financial_account`.
|
|
22
|
+
# @return [Inttegro::Search::Type]
|
|
23
|
+
FINANCIAL_ACCOUNT = new("financial_account")
|
|
24
|
+
# Serialized wire value: `order`.
|
|
25
|
+
# @return [Inttegro::Search::Type]
|
|
26
|
+
ORDER = new("order")
|
|
27
|
+
# Serialized wire value: `payout`.
|
|
28
|
+
# @return [Inttegro::Search::Type]
|
|
29
|
+
PAYOUT = new("payout")
|
|
30
|
+
# Serialized wire value: `product`.
|
|
31
|
+
# @return [Inttegro::Search::Type]
|
|
32
|
+
PRODUCT = new("product")
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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 "../custom_data"
|
|
7
8
|
require_relative "../money/amount_params"
|
|
8
9
|
|
|
9
10
|
module Inttegro
|
|
@@ -45,7 +46,7 @@ module Inttegro
|
|
|
45
46
|
# collection rather than a raw map.
|
|
46
47
|
#
|
|
47
48
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
48
|
-
# @return [
|
|
49
|
+
# @return [Inttegro::CustomData, nil]
|
|
49
50
|
#
|
|
50
51
|
# @!attribute [r] amount
|
|
51
52
|
# Value of the `amount` field in the Inttegro API payload.
|
|
@@ -57,7 +58,7 @@ module Inttegro
|
|
|
57
58
|
const :label, T.nilable(String), default: nil
|
|
58
59
|
const :tax_code, T.nilable(String), default: nil
|
|
59
60
|
const :description, T.nilable(String), default: nil
|
|
60
|
-
const :custom_data, T.nilable(
|
|
61
|
+
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
61
62
|
const :amount, Inttegro::Money::AmountParams
|
|
62
63
|
end
|
|
63
64
|
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 "../custom_data"
|
|
7
8
|
|
|
8
9
|
module Inttegro
|
|
9
10
|
module Shared
|
|
@@ -40,12 +41,12 @@ module Inttegro
|
|
|
40
41
|
# collection rather than a raw map.
|
|
41
42
|
#
|
|
42
43
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
43
|
-
# @return [
|
|
44
|
+
# @return [Inttegro::CustomData, nil]
|
|
44
45
|
class InvoiceSettings < T::Struct
|
|
45
46
|
const :number, T.nilable(String), default: nil
|
|
46
47
|
const :memo, T.nilable(String), default: nil
|
|
47
48
|
const :footer, T.nilable(String), default: nil
|
|
48
|
-
const :custom_data, T.nilable(
|
|
49
|
+
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
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 "../custom_data"
|
|
7
8
|
require_relative "../money/amount_params"
|
|
8
9
|
|
|
9
10
|
module Inttegro
|
|
@@ -33,7 +34,7 @@ module Inttegro
|
|
|
33
34
|
# collection rather than a raw map.
|
|
34
35
|
#
|
|
35
36
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
36
|
-
# @return [
|
|
37
|
+
# @return [Inttegro::CustomData, nil]
|
|
37
38
|
#
|
|
38
39
|
# @!attribute [r] fee
|
|
39
40
|
# Value of the `fee` field in the Inttegro API payload.
|
|
@@ -43,7 +44,7 @@ module Inttegro
|
|
|
43
44
|
class ShippingDetails < T::Struct
|
|
44
45
|
const :id, T.nilable(String), default: nil
|
|
45
46
|
const :tax_code, T.nilable(String), default: nil
|
|
46
|
-
const :custom_data, T.nilable(
|
|
47
|
+
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
47
48
|
const :fee, Inttegro::Money::AmountParams
|
|
48
49
|
end
|
|
49
50
|
end
|
data/lib/inttegro/telemetry.rb
CHANGED
|
@@ -25,7 +25,7 @@ module Inttegro
|
|
|
25
25
|
activate add_price archive broadcast cancel complete confirm_payment confirm_verification connect contents
|
|
26
26
|
countries create deactivate delete destroy disable disable_fx disable_pull disable_push disactivate disconnect
|
|
27
27
|
enable enable_fx enable_pull enable_push finalize generate initiate lookup new open page pay publish reconcile
|
|
28
|
-
reconnect refund render_preview request_confirmation review revoke schedule send send_invoice send_receipt
|
|
28
|
+
reconnect refund render_preview request_confirmation review revoke schedule search send send_invoice send_receipt
|
|
29
29
|
set_default_unit_price set_destinations settings tokenize unarchive unpublish update upload usage verify
|
|
30
30
|
].freeze
|
|
31
31
|
|
|
@@ -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 "../custom_data"
|
|
7
8
|
require_relative "../file/actor_input"
|
|
8
9
|
require_relative "../file/party"
|
|
9
10
|
require_relative "../file/resource"
|
|
@@ -74,7 +75,7 @@ module Inttegro
|
|
|
74
75
|
# collection rather than a raw map.
|
|
75
76
|
#
|
|
76
77
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
77
|
-
# @return [
|
|
78
|
+
# @return [Inttegro::CustomData, nil]
|
|
78
79
|
#
|
|
79
80
|
# @!attribute [r] expires_at
|
|
80
81
|
# Value of the `expires_at` field in the Inttegro API payload.
|
|
@@ -90,7 +91,7 @@ module Inttegro
|
|
|
90
91
|
const :resource, T.nilable(Inttegro::File::Resource), default: nil
|
|
91
92
|
const :requester, T.nilable(Inttegro::File::ActorInput), default: nil
|
|
92
93
|
const :attempts, T.nilable(Inttegro::UploadRequest::AttemptsRequest), default: nil
|
|
93
|
-
const :custom_data, T.nilable(
|
|
94
|
+
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
94
95
|
const :expires_at, T.nilable(Time), default: nil
|
|
95
96
|
end
|
|
96
97
|
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 "../custom_data"
|
|
7
8
|
require_relative "../file/party"
|
|
8
9
|
require_relative "../file/resource"
|
|
9
10
|
require_relative "actor"
|
|
@@ -119,7 +120,7 @@ module Inttegro
|
|
|
119
120
|
# collection rather than a raw map.
|
|
120
121
|
#
|
|
121
122
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
122
|
-
# @return [
|
|
123
|
+
# @return [Inttegro::CustomData, nil]
|
|
123
124
|
#
|
|
124
125
|
# @!attribute [r] metadata
|
|
125
126
|
# System-managed string metadata attached to a file resource.
|
|
@@ -190,7 +191,7 @@ module Inttegro
|
|
|
190
191
|
const :attempts, Inttegro::UploadRequest::Attempts
|
|
191
192
|
const :latest_error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
|
|
192
193
|
const :canceled_by, T.nilable(Inttegro::UploadRequest::Actor), default: nil
|
|
193
|
-
const :custom_data, T.nilable(
|
|
194
|
+
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
194
195
|
const :metadata, T.nilable(T::Hash[String, String]), default: nil
|
|
195
196
|
const :created_at, Time
|
|
196
197
|
const :updated_at, Time
|
|
@@ -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 "../custom_data"
|
|
7
8
|
require_relative "../file/party"
|
|
8
9
|
require_relative "../file/resource"
|
|
9
10
|
require_relative "actor"
|
|
@@ -117,7 +118,7 @@ module Inttegro
|
|
|
117
118
|
# collection rather than a raw map.
|
|
118
119
|
#
|
|
119
120
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
120
|
-
# @return [
|
|
121
|
+
# @return [Inttegro::CustomData, nil]
|
|
121
122
|
#
|
|
122
123
|
# @!attribute [r] metadata
|
|
123
124
|
# System-managed string metadata attached to a file resource.
|
|
@@ -182,7 +183,7 @@ module Inttegro
|
|
|
182
183
|
const :attempts, Inttegro::UploadRequest::Attempts
|
|
183
184
|
const :latest_error, T.nilable(Inttegro::UploadRequest::LatestError), default: nil
|
|
184
185
|
const :canceled_by, T.nilable(Inttegro::UploadRequest::Actor), default: nil
|
|
185
|
-
const :custom_data, T.nilable(
|
|
186
|
+
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
186
187
|
const :metadata, T.nilable(T::Hash[String, String]), default: nil
|
|
187
188
|
const :created_at, Time
|
|
188
189
|
const :updated_at, Time
|
data/lib/inttegro/version.rb
CHANGED
data/lib/inttegro.rb
CHANGED
|
@@ -6,6 +6,7 @@ require "sorbet-runtime"
|
|
|
6
6
|
require_relative "inttegro/types"
|
|
7
7
|
require_relative "inttegro/api_response"
|
|
8
8
|
require_relative "inttegro/client"
|
|
9
|
+
require_relative "inttegro/custom_data"
|
|
9
10
|
require_relative "inttegro/errors"
|
|
10
11
|
require_relative "inttegro/error_reporting"
|
|
11
12
|
require_relative "inttegro/enums"
|
data/rbi/inttegro/generated.rbi
CHANGED
|
@@ -80,6 +80,9 @@ module Inttegro
|
|
|
80
80
|
sig { params(payload: T.nilable(T.any(Inttegro::Customer::PageRequest, Inttegro::Types::Payload))).returns(Inttegro::Customer::Page) }
|
|
81
81
|
def page(payload = nil); end
|
|
82
82
|
|
|
83
|
+
sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
|
|
84
|
+
def search(payload); end
|
|
85
|
+
|
|
83
86
|
sig { params(payload: T.any(Inttegro::Customer::UpdateRequest, Inttegro::Types::Payload)).returns(Inttegro::Customer) }
|
|
84
87
|
def update(payload); end
|
|
85
88
|
end
|
|
@@ -171,6 +174,9 @@ module Inttegro
|
|
|
171
174
|
sig { params(account_id: String).returns(Inttegro::FinancialAccount) }
|
|
172
175
|
def reconnect(account_id:); end
|
|
173
176
|
|
|
177
|
+
sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
|
|
178
|
+
def search(payload); end
|
|
179
|
+
|
|
174
180
|
sig { params(payload: T.any(Inttegro::FinancialAccount::UpdateRequest, Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
|
|
175
181
|
def update(payload); end
|
|
176
182
|
end
|
|
@@ -268,6 +274,9 @@ module Inttegro
|
|
|
268
274
|
sig { params(order_id: String, request_meta: T.nilable(Inttegro::Types::Payload)).returns(Inttegro::Order) }
|
|
269
275
|
def request_confirmation(order_id:, request_meta: nil); end
|
|
270
276
|
|
|
277
|
+
sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
|
|
278
|
+
def search(payload); end
|
|
279
|
+
|
|
271
280
|
sig { params(order_id: String).returns(Inttegro::Order::DocumentDeliveryResult) }
|
|
272
281
|
def send_invoice(order_id:); end
|
|
273
282
|
|
|
@@ -374,6 +383,9 @@ module Inttegro
|
|
|
374
383
|
sig { params(payload: Inttegro::Schedule::PayoutRequest).returns(Inttegro::Payout) }
|
|
375
384
|
def schedule(payload); end
|
|
376
385
|
|
|
386
|
+
sig { params(payload: Inttegro::Search::Request).returns(Inttegro::Search::Page) }
|
|
387
|
+
def search(payload); end
|
|
388
|
+
|
|
377
389
|
sig { params(destinations: Inttegro::Payout::Destinations).returns(Inttegro::Payout::SettingsMutation) }
|
|
378
390
|
def set_destinations(destinations:); end
|
|
379
391
|
|
|
@@ -429,6 +441,9 @@ module Inttegro
|
|
|
429
441
|
sig { params(product_id: String).returns(Inttegro::Product) }
|
|
430
442
|
def publish(product_id:); end
|
|
431
443
|
|
|
444
|
+
sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
|
|
445
|
+
def search(payload); end
|
|
446
|
+
|
|
432
447
|
sig { params(payload: T.any(Inttegro::Product::SetDefaultUnitPriceRequest, Inttegro::Types::Payload)).returns(Inttegro::Product) }
|
|
433
448
|
def set_default_unit_price(payload); end
|
|
434
449
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inttegro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Inttegro Engineering
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-runtime
|
|
@@ -199,10 +199,12 @@ files:
|
|
|
199
199
|
- lib/inttegro/chime/response.rb
|
|
200
200
|
- lib/inttegro/chime/saved_customer_recipient.rb
|
|
201
201
|
- lib/inttegro/chime/send_request.rb
|
|
202
|
+
- lib/inttegro/chime/send_request_cooldown.rb
|
|
202
203
|
- lib/inttegro/chime/send_request_request_meta.rb
|
|
203
204
|
- lib/inttegro/chime/transmission.rb
|
|
204
205
|
- lib/inttegro/chime/transport.rb
|
|
205
206
|
- lib/inttegro/client.rb
|
|
207
|
+
- lib/inttegro/custom_data.rb
|
|
206
208
|
- lib/inttegro/customer/address.rb
|
|
207
209
|
- lib/inttegro/customer/address_input.rb
|
|
208
210
|
- lib/inttegro/customer/balance_value.rb
|
|
@@ -400,9 +402,12 @@ files:
|
|
|
400
402
|
- lib/inttegro/order/discount_line_item_type.rb
|
|
401
403
|
- lib/inttegro/order/document_delivery.rb
|
|
402
404
|
- lib/inttegro/order/document_delivery_attempt.rb
|
|
405
|
+
- lib/inttegro/order/document_delivery_channel_summary.rb
|
|
403
406
|
- lib/inttegro/order/document_delivery_failure.rb
|
|
404
407
|
- lib/inttegro/order/document_delivery_request.rb
|
|
405
408
|
- lib/inttegro/order/document_delivery_result.rb
|
|
409
|
+
- lib/inttegro/order/document_delivery_summary.rb
|
|
410
|
+
- lib/inttegro/order/document_delivery_summary_channels.rb
|
|
406
411
|
- lib/inttegro/order/document_format.rb
|
|
407
412
|
- lib/inttegro/order/document_kind.rb
|
|
408
413
|
- lib/inttegro/order/envelope.rb
|
|
@@ -427,6 +432,7 @@ files:
|
|
|
427
432
|
- lib/inttegro/order/product_line_item_product.rb
|
|
428
433
|
- lib/inttegro/order/product_line_item_type.rb
|
|
429
434
|
- lib/inttegro/order/questions.rb
|
|
435
|
+
- lib/inttegro/order/receipt_document_format.rb
|
|
430
436
|
- lib/inttegro/order/shipping_line_item.rb
|
|
431
437
|
- lib/inttegro/order/shipping_line_item_shipping.rb
|
|
432
438
|
- lib/inttegro/order/shipping_line_item_type.rb
|
|
@@ -440,10 +446,10 @@ files:
|
|
|
440
446
|
- lib/inttegro/otp/initiate_response.rb
|
|
441
447
|
- lib/inttegro/otp/lookup_request.rb
|
|
442
448
|
- lib/inttegro/otp/lookup_response.rb
|
|
449
|
+
- lib/inttegro/otp/purpose.rb
|
|
443
450
|
- lib/inttegro/otp/status.rb
|
|
444
451
|
- lib/inttegro/otp/transaction.rb
|
|
445
452
|
- lib/inttegro/otp/transmission.rb
|
|
446
|
-
- lib/inttegro/otp/transmission_sent_via.rb
|
|
447
453
|
- lib/inttegro/otp/transmission_status.rb
|
|
448
454
|
- lib/inttegro/otp/verification.rb
|
|
449
455
|
- lib/inttegro/otp/verification_attempt.rb
|
|
@@ -637,15 +643,40 @@ files:
|
|
|
637
643
|
- lib/inttegro/refund/cancel_request.rb
|
|
638
644
|
- lib/inttegro/refund/create_line_item.rb
|
|
639
645
|
- lib/inttegro/refund/create_request.rb
|
|
646
|
+
- lib/inttegro/refund/failure.rb
|
|
647
|
+
- lib/inttegro/refund/failure_reason.rb
|
|
640
648
|
- lib/inttegro/refund/line_item.rb
|
|
641
649
|
- lib/inttegro/refund/lookup_request.rb
|
|
650
|
+
- lib/inttegro/refund/offline_settlement.rb
|
|
651
|
+
- lib/inttegro/refund/offline_settlement_type.rb
|
|
652
|
+
- lib/inttegro/refund/order_fee_line_item.rb
|
|
653
|
+
- lib/inttegro/refund/order_fee_line_item_fee.rb
|
|
654
|
+
- lib/inttegro/refund/order_fee_line_item_type.rb
|
|
655
|
+
- lib/inttegro/refund/order_line_item.rb
|
|
656
|
+
- lib/inttegro/refund/order_product_line_item.rb
|
|
657
|
+
- lib/inttegro/refund/order_product_line_item_product.rb
|
|
658
|
+
- lib/inttegro/refund/order_product_line_item_type.rb
|
|
659
|
+
- lib/inttegro/refund/order_shipping_line_item.rb
|
|
660
|
+
- lib/inttegro/refund/order_shipping_line_item_shipping.rb
|
|
661
|
+
- lib/inttegro/refund/order_shipping_line_item_type.rb
|
|
642
662
|
- lib/inttegro/refund/page.rb
|
|
643
663
|
- lib/inttegro/refund/page_request.rb
|
|
644
664
|
- lib/inttegro/refund/page_response.rb
|
|
665
|
+
- lib/inttegro/refund/payment_method_settlement.rb
|
|
666
|
+
- lib/inttegro/refund/payment_method_settlement_type.rb
|
|
645
667
|
- lib/inttegro/refund/reason.rb
|
|
646
668
|
- lib/inttegro/refund/refund.rb
|
|
647
669
|
- lib/inttegro/refund/request_meta.rb
|
|
648
670
|
- lib/inttegro/refund/response.rb
|
|
671
|
+
- lib/inttegro/refund/settlement.rb
|
|
672
|
+
- lib/inttegro/refund/settlement_bank_account_payment_method.rb
|
|
673
|
+
- lib/inttegro/refund/settlement_bank_account_payment_method_bank_account.rb
|
|
674
|
+
- lib/inttegro/refund/settlement_bank_account_payment_method_bank_account_ghana_bank_account.rb
|
|
675
|
+
- lib/inttegro/refund/settlement_bank_account_payment_method_type.rb
|
|
676
|
+
- lib/inttegro/refund/settlement_mobile_money_payment_method.rb
|
|
677
|
+
- lib/inttegro/refund/settlement_mobile_money_payment_method_mobile_money.rb
|
|
678
|
+
- lib/inttegro/refund/settlement_mobile_money_payment_method_type.rb
|
|
679
|
+
- lib/inttegro/refund/settlement_payment_method.rb
|
|
649
680
|
- lib/inttegro/refund/status.rb
|
|
650
681
|
- lib/inttegro/resources/apps.rb
|
|
651
682
|
- lib/inttegro/resources/balance_transactions.rb
|
|
@@ -684,6 +715,29 @@ files:
|
|
|
684
715
|
- lib/inttegro/schedule/lookup_response.rb
|
|
685
716
|
- lib/inttegro/schedule/payout_request.rb
|
|
686
717
|
- lib/inttegro/schedule/response.rb
|
|
718
|
+
- lib/inttegro/search/base.rb
|
|
719
|
+
- lib/inttegro/search/facet.rb
|
|
720
|
+
- lib/inttegro/search/facet_bucket.rb
|
|
721
|
+
- lib/inttegro/search/facet_result.rb
|
|
722
|
+
- lib/inttegro/search/filter.rb
|
|
723
|
+
- lib/inttegro/search/filter_operator.rb
|
|
724
|
+
- lib/inttegro/search/freshness.rb
|
|
725
|
+
- lib/inttegro/search/freshness_state.rb
|
|
726
|
+
- lib/inttegro/search/page.rb
|
|
727
|
+
- lib/inttegro/search/request.rb
|
|
728
|
+
- lib/inttegro/search/resource_freshness.rb
|
|
729
|
+
- lib/inttegro/search/resource_freshness_state.rb
|
|
730
|
+
- lib/inttegro/search/resource_reference.rb
|
|
731
|
+
- lib/inttegro/search/resource_total.rb
|
|
732
|
+
- lib/inttegro/search/resource_total_relation.rb
|
|
733
|
+
- lib/inttegro/search/response.rb
|
|
734
|
+
- lib/inttegro/search/result.rb
|
|
735
|
+
- lib/inttegro/search/sort.rb
|
|
736
|
+
- lib/inttegro/search/sort_direction.rb
|
|
737
|
+
- lib/inttegro/search/sort_field.rb
|
|
738
|
+
- lib/inttegro/search/total.rb
|
|
739
|
+
- lib/inttegro/search/total_relation.rb
|
|
740
|
+
- lib/inttegro/search/type.rb
|
|
687
741
|
- lib/inttegro/secret_key/auth_result.rb
|
|
688
742
|
- lib/inttegro/secret_key/base.rb
|
|
689
743
|
- lib/inttegro/secret_key/destroy_request.rb
|