inttegro 10.0.0 → 11.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/lib/inttegro/app/application.rb +11 -1
  4. data/lib/inttegro/app/capabilities.rb +11 -0
  5. data/lib/inttegro/app/capabilities_response.rb +28 -0
  6. data/lib/inttegro/app/capabilities_response_capabilities.rb +37 -0
  7. data/lib/inttegro/app/capability_projection.rb +39 -0
  8. data/lib/inttegro/app/capability_requirement.rb +41 -0
  9. data/lib/inttegro/app/capability_requirements.rb +28 -0
  10. data/lib/inttegro/app/enabled_capability.rb +35 -0
  11. data/lib/inttegro/app/enabled_capability_status.rb +25 -0
  12. data/lib/inttegro/app/looked_up.rb +18 -0
  13. data/lib/inttegro/app/looked_up_relationship.rb +58 -0
  14. data/lib/inttegro/app/looked_up_relationship_parent.rb +41 -0
  15. data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → app/lookup_capabilities_request.rb} +4 -10
  16. data/lib/inttegro/app/pending_review_capability.rb +43 -0
  17. data/lib/inttegro/app/pending_review_capability_status.rb +25 -0
  18. data/lib/inttegro/app/pending_review_capability_status_reason.rb +34 -0
  19. data/lib/inttegro/app/relationship.rb +7 -63
  20. data/lib/inttegro/app/relationship_parent.rb +41 -0
  21. data/lib/inttegro/app/restricted_capability.rb +51 -0
  22. data/lib/inttegro/app/restricted_capability_status.rb +25 -0
  23. data/lib/inttegro/app/restricted_capability_status_reason.rb +34 -0
  24. data/lib/inttegro/app/updated.rb +10 -0
  25. data/lib/inttegro/checkout/invoice_view_format.rb +0 -8
  26. data/lib/inttegro/generated/enums.rb +6 -0
  27. data/lib/inttegro/generated/models.rb +17 -3
  28. data/lib/inttegro/generated/operations.rb +3 -0
  29. data/lib/inttegro/models.rb +1 -0
  30. data/lib/inttegro/order/invoice_format.rb +0 -8
  31. data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
  32. data/lib/inttegro/order/receipt_format.rb +35 -0
  33. data/lib/inttegro/payment/payment.rb +8 -0
  34. data/lib/inttegro/payout/amount_limits.rb +35 -0
  35. data/lib/inttegro/payout/cancellation.rb +42 -0
  36. data/lib/inttegro/payout/cancellation_reason.rb +30 -0
  37. data/lib/inttegro/payout/payout.rb +9 -0
  38. data/lib/inttegro/payout/settings_limits.rb +28 -0
  39. data/lib/inttegro/payout/settings_lookup.rb +8 -0
  40. data/lib/inttegro/payout/settings_mutation.rb +8 -0
  41. data/lib/inttegro/resources/apps.rb +12 -0
  42. data/lib/inttegro/version.rb +1 -1
  43. data/rbi/inttegro/generated.rbi +3 -0
  44. metadata +26 -5
  45. data/lib/inttegro/app/relationship_policy.rb +0 -43
@@ -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
+ class Payout
10
+ # Stable category describing why the payout was canceled.
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 CancellationReason < T::Enum
17
+ enums do
18
+ # Serialized wire value: `requested`.
19
+ # @return [Inttegro::Payout::CancellationReason]
20
+ REQUESTED = new("requested")
21
+ # Serialized wire value: `no_eligible_funds`.
22
+ # @return [Inttegro::Payout::CancellationReason]
23
+ NO_ELIGIBLE_FUNDS = new("no_eligible_funds")
24
+ # Serialized wire value: `unknown`.
25
+ # @return [Inttegro::Payout::CancellationReason]
26
+ UNKNOWN = new("unknown")
27
+ end
28
+ end
29
+ end
30
+ end
@@ -7,6 +7,7 @@ require_relative "base"
7
7
  require_relative "../custom_data"
8
8
  require_relative "../money/amount"
9
9
  require_relative "balance_transaction"
10
+ require_relative "cancellation"
10
11
  require_relative "error"
11
12
  require_relative "failure"
12
13
  require_relative "status"
@@ -47,6 +48,13 @@ module Inttegro
47
48
  # Optional in the API payload; omitted values default to `nil`. Wire name: `canceled_at`.
48
49
  # @return [Time, nil]
49
50
  #
51
+ # @!attribute [r] cancellation
52
+ # Caller-safe explanation and next step for a canceled payout. Present only when `status` is
53
+ # `canceled`.
54
+ #
55
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `cancellation`.
56
+ # @return [Inttegro::Payout::Cancellation, nil]
57
+ #
50
58
  # @!attribute [r] custom_data
51
59
  # Merchant-defined string values attached to a resource. SDKs expose this as a semantic
52
60
  # collection rather than a raw map.
@@ -172,6 +180,7 @@ module Inttegro
172
180
  const :balance_transactions, T.nilable(T::Array[Inttegro::Payout::BalanceTransaction]), default: nil
173
181
  const :balance_transaction_id, T.nilable(String), default: nil
174
182
  const :canceled_at, T.nilable(Time), default: nil
183
+ const :cancellation, T.nilable(Inttegro::Payout::Cancellation), default: nil
175
184
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
176
185
  const :destination_id, String
177
186
  const :error, T.nilable(Inttegro::Payout::Error), default: nil
@@ -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 "amount_limits"
8
+
9
+ module Inttegro
10
+ class Payout
11
+ # Platform limits applied to payouts.
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] amount
20
+ # Inclusive payout amount range. Values use the currency's smallest unit.
21
+ #
22
+ # Required in the API payload. Wire name: `amount`.
23
+ # @return [Inttegro::Payout::AmountLimits]
24
+ class SettingsLimits < T::Struct
25
+ const :amount, Inttegro::Payout::AmountLimits
26
+ end
27
+ end
28
+ end
@@ -5,6 +5,7 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "destinations"
8
+ require_relative "settings_limits"
8
9
  require_relative "settings_lookup_schedule"
9
10
 
10
11
  module Inttegro
@@ -29,6 +30,12 @@ module Inttegro
29
30
  # Optional in the API payload; omitted values default to `nil`. Wire name: `fx_enabled`.
30
31
  # @return [Boolean, nil]
31
32
  #
33
+ # @!attribute [r] limits
34
+ # Platform limits applied to payouts.
35
+ #
36
+ # Required in the API payload. Wire name: `limits`.
37
+ # @return [Inttegro::Payout::SettingsLimits]
38
+ #
32
39
  # @!attribute [r] schedule
33
40
  # Active payout schedule returned when settings are retrieved.
34
41
  #
@@ -37,6 +44,7 @@ module Inttegro
37
44
  class SettingsLookup < T::Struct
38
45
  const :destinations, Inttegro::Payout::Destinations
39
46
  const :fx_enabled, T.nilable(T::Boolean), default: nil
47
+ const :limits, Inttegro::Payout::SettingsLimits
40
48
  const :schedule, T.nilable(Inttegro::Payout::SettingsLookupSchedule), default: nil
41
49
  end
42
50
  end
@@ -5,6 +5,7 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "destinations"
8
+ require_relative "settings_limits"
8
9
  require_relative "settings_mutation_schedule"
9
10
 
10
11
  module Inttegro
@@ -35,6 +36,12 @@ module Inttegro
35
36
  # Optional in the API payload; omitted values default to `nil`. Wire name: `id`.
36
37
  # @return [String, nil]
37
38
  #
39
+ # @!attribute [r] limits
40
+ # Platform limits applied to payouts.
41
+ #
42
+ # Required in the API payload. Wire name: `limits`.
43
+ # @return [Inttegro::Payout::SettingsLimits]
44
+ #
38
45
  # @!attribute [r] schedule
39
46
  # Updated payout schedule returned after a settings mutation.
40
47
  #
@@ -44,6 +51,7 @@ module Inttegro
44
51
  const :destinations, T.nilable(Inttegro::Payout::Destinations), default: nil
45
52
  const :fx_enabled, T.nilable(T::Boolean), default: nil
46
53
  const :id, T.nilable(String), default: nil
54
+ const :limits, Inttegro::Payout::SettingsLimits
47
55
  const :schedule, T.nilable(Inttegro::Payout::SettingsMutationSchedule), default: nil
48
56
  end
49
57
  end
@@ -31,6 +31,18 @@ module Inttegro
31
31
  @http.post_resource("/apps/lookup", Inttegro::Application, :app, {})
32
32
  end
33
33
 
34
+ # Retrieve the authenticated application's payment and payout capabilities.
35
+ #
36
+ # @return [Inttegro::Application::Capabilities] current capability states
37
+ def capabilities
38
+ @http.post_resource(
39
+ "/apps/capabilities",
40
+ Inttegro::Application::Capabilities,
41
+ :capabilities,
42
+ {}
43
+ )
44
+ end
45
+
34
46
  # Update mutable fields on the authenticated application.
35
47
  #
36
48
  # @param payload [Hash, Inttegro::Application::UpdateRequest] fields to change
@@ -2,5 +2,5 @@
2
2
  # typed: strict
3
3
 
4
4
  module Inttegro
5
- VERSION = "10.0.0"
5
+ VERSION = "11.0.0"
6
6
  end
@@ -7,6 +7,9 @@ module Inttegro
7
7
  sig { params(http: Inttegro::HTTPClient).void }
8
8
  def initialize(http); end
9
9
 
10
+ sig { returns(Inttegro::Application::Capabilities) }
11
+ def capabilities(); end
12
+
10
13
  sig { params(payload: T.any(Inttegro::Application::CreateRequest, Inttegro::Types::Payload)).returns(Inttegro::Application) }
11
14
  def create(payload); end
12
15
 
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: 10.0.0
4
+ version: 11.0.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-10-05 00:00:00.000000000 Z
11
+ date: 2026-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -83,17 +83,34 @@ files:
83
83
  - lib/inttegro/api_response.rb
84
84
  - lib/inttegro/app/application.rb
85
85
  - lib/inttegro/app/base.rb
86
+ - lib/inttegro/app/capabilities.rb
87
+ - lib/inttegro/app/capabilities_response.rb
88
+ - lib/inttegro/app/capabilities_response_capabilities.rb
89
+ - lib/inttegro/app/capability_projection.rb
90
+ - lib/inttegro/app/capability_requirement.rb
91
+ - lib/inttegro/app/capability_requirements.rb
86
92
  - lib/inttegro/app/create_request.rb
87
93
  - lib/inttegro/app/create_request_relationship_policy.rb
88
94
  - lib/inttegro/app/create_response.rb
89
95
  - lib/inttegro/app/credential_owner.rb
96
+ - lib/inttegro/app/enabled_capability.rb
97
+ - lib/inttegro/app/enabled_capability_status.rb
90
98
  - lib/inttegro/app/looked_up.rb
99
+ - lib/inttegro/app/looked_up_relationship.rb
100
+ - lib/inttegro/app/looked_up_relationship_parent.rb
101
+ - lib/inttegro/app/lookup_capabilities_request.rb
91
102
  - lib/inttegro/app/lookup_response.rb
92
103
  - lib/inttegro/app/management_role.rb
104
+ - lib/inttegro/app/pending_review_capability.rb
105
+ - lib/inttegro/app/pending_review_capability_status.rb
106
+ - lib/inttegro/app/pending_review_capability_status_reason.rb
93
107
  - lib/inttegro/app/relationship.rb
94
108
  - lib/inttegro/app/relationship_kind.rb
95
- - lib/inttegro/app/relationship_policy.rb
109
+ - lib/inttegro/app/relationship_parent.rb
96
110
  - lib/inttegro/app/relationship_status.rb
111
+ - lib/inttegro/app/restricted_capability.rb
112
+ - lib/inttegro/app/restricted_capability_status.rb
113
+ - lib/inttegro/app/restricted_capability_status_reason.rb
97
114
  - lib/inttegro/app/secret_key.rb
98
115
  - lib/inttegro/app/update_request.rb
99
116
  - lib/inttegro/app/update_response.rb
@@ -159,7 +176,6 @@ files:
159
176
  - lib/inttegro/checkout/invoice_view_beneficiary.rb
160
177
  - lib/inttegro/checkout/invoice_view_format.rb
161
178
  - lib/inttegro/checkout/invoice_view_format_pdf.rb
162
- - lib/inttegro/checkout/invoice_view_format_receipt.rb
163
179
  - lib/inttegro/checkout/invoice_view_format_web.rb
164
180
  - lib/inttegro/checkout/invoice_view_status.rb
165
181
  - lib/inttegro/checkout/lookup_request.rb
@@ -456,7 +472,8 @@ files:
456
472
  - lib/inttegro/order/product_line_item_product.rb
457
473
  - lib/inttegro/order/product_line_item_type.rb
458
474
  - lib/inttegro/order/questions.rb
459
- - lib/inttegro/order/receipt_document_format.rb
475
+ - lib/inttegro/order/receipt.rb
476
+ - lib/inttegro/order/receipt_format.rb
460
477
  - lib/inttegro/order/shipping_line_item.rb
461
478
  - lib/inttegro/order/shipping_line_item_shipping.rb
462
479
  - lib/inttegro/order/shipping_line_item_type.rb
@@ -557,10 +574,13 @@ files:
557
574
  - lib/inttegro/payment_method/update_request_owner_address.rb
558
575
  - lib/inttegro/payment_method/update_response.rb
559
576
  - lib/inttegro/payment_method/verification.rb
577
+ - lib/inttegro/payout/amount_limits.rb
560
578
  - lib/inttegro/payout/balance_transaction.rb
561
579
  - lib/inttegro/payout/balance_transaction_status.rb
562
580
  - lib/inttegro/payout/base.rb
563
581
  - lib/inttegro/payout/cancel_request.rb
582
+ - lib/inttegro/payout/cancellation.rb
583
+ - lib/inttegro/payout/cancellation_reason.rb
564
584
  - lib/inttegro/payout/destinations.rb
565
585
  - lib/inttegro/payout/disable_automatic_request.rb
566
586
  - lib/inttegro/payout/disable_automatic_response.rb
@@ -576,6 +596,7 @@ files:
576
596
  - lib/inttegro/payout/payout.rb
577
597
  - lib/inttegro/payout/response.rb
578
598
  - lib/inttegro/payout/set_destinations_request.rb
599
+ - lib/inttegro/payout/settings_limits.rb
579
600
  - lib/inttegro/payout/settings_lookup.rb
580
601
  - lib/inttegro/payout/settings_lookup_response.rb
581
602
  - lib/inttegro/payout/settings_lookup_schedule.rb
@@ -1,43 +0,0 @@
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 "credential_owner"
8
- require_relative "management_role"
9
-
10
- module Inttegro
11
- class Application
12
- # Typed representation of the relationship policy object in the Inttegro API.
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] child_standing
21
- # Value of the `child_standing` field in the Inttegro API payload.
22
- #
23
- # Required in the API payload. Wire name: `child_standing`.
24
- # @return [String]
25
- #
26
- # @!attribute [r] management
27
- # Value of the `management` field in the Inttegro API payload.
28
- #
29
- # Required in the API payload. Wire name: `management`.
30
- # @return [Inttegro::Application::ManagementRole]
31
- #
32
- # @!attribute [r] credentials
33
- # Value of the `credentials` field in the Inttegro API payload.
34
- #
35
- # Required in the API payload. Wire name: `credentials`.
36
- # @return [Inttegro::Application::CredentialOwner]
37
- class RelationshipPolicy < T::Struct
38
- const :child_standing, String
39
- const :management, Inttegro::Application::ManagementRole
40
- const :credentials, Inttegro::Application::CredentialOwner
41
- end
42
- end
43
- end