inttegro 9.3.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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -2
  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/balance/currency_snapshot.rb +11 -2
  26. data/lib/inttegro/balance/currency_snapshot_refund.rb +1 -1
  27. data/lib/inttegro/balance/currency_snapshot_reserved.rb +2 -1
  28. data/lib/inttegro/balance/holds.rb +43 -0
  29. data/lib/inttegro/balance/holds_payout.rb +27 -0
  30. data/lib/inttegro/balance/holds_refund.rb +27 -0
  31. data/lib/inttegro/checkout/invoice_view_format.rb +0 -8
  32. data/lib/inttegro/financial_account/compact.rb +5 -7
  33. data/lib/inttegro/financial_account/connected.rb +5 -7
  34. data/lib/inttegro/financial_account/created.rb +5 -7
  35. data/lib/inttegro/financial_account/details.rb +5 -7
  36. data/lib/inttegro/financial_account/financial_account.rb +5 -7
  37. data/lib/inttegro/financial_account/updated.rb +5 -7
  38. data/lib/inttegro/generated/enums.rb +8 -0
  39. data/lib/inttegro/generated/models.rb +21 -3
  40. data/lib/inttegro/generated/operations.rb +3 -0
  41. data/lib/inttegro/models.rb +1 -0
  42. data/lib/inttegro/order/invoice_format.rb +0 -8
  43. data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
  44. data/lib/inttegro/order/receipt_format.rb +35 -0
  45. data/lib/inttegro/payment/payment.rb +8 -0
  46. data/lib/inttegro/payout/amount_limits.rb +35 -0
  47. data/lib/inttegro/payout/balance_transaction.rb +11 -1
  48. data/lib/inttegro/payout/balance_transaction_status.rb +31 -0
  49. data/lib/inttegro/payout/cancellation.rb +42 -0
  50. data/lib/inttegro/payout/cancellation_reason.rb +30 -0
  51. data/lib/inttegro/payout/error.rb +1 -1
  52. data/lib/inttegro/payout/failure.rb +43 -0
  53. data/lib/inttegro/payout/failure_reason.rb +33 -0
  54. data/lib/inttegro/payout/payout.rb +19 -2
  55. data/lib/inttegro/payout/settings_limits.rb +28 -0
  56. data/lib/inttegro/payout/settings_lookup.rb +8 -0
  57. data/lib/inttegro/payout/settings_mutation.rb +8 -0
  58. data/lib/inttegro/payout/status.rb +2 -2
  59. data/lib/inttegro/resources/apps.rb +12 -0
  60. data/lib/inttegro/version.rb +1 -1
  61. data/rbi/inttegro/generated.rbi +3 -0
  62. metadata +32 -5
  63. data/lib/inttegro/app/relationship_policy.rb +0 -43
@@ -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
@@ -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: `invalid`.
33
+ # Serialized wire value: `failed`.
34
34
  # @return [Inttegro::Payout::Status]
35
- INVALID = new("invalid")
35
+ FAILED = new("failed")
36
36
  # Serialized wire value: `canceled`.
37
37
  # @return [Inttegro::Payout::Status]
38
38
  CANCELED = new("canceled")
@@ -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 = "9.3.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: 9.3.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-03 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
@@ -102,6 +119,9 @@ files:
102
119
  - lib/inttegro/balance/currency_snapshot.rb
103
120
  - lib/inttegro/balance/currency_snapshot_refund.rb
104
121
  - lib/inttegro/balance/currency_snapshot_reserved.rb
122
+ - lib/inttegro/balance/holds.rb
123
+ - lib/inttegro/balance/holds_payout.rb
124
+ - lib/inttegro/balance/holds_refund.rb
105
125
  - lib/inttegro/balance/lookup_request.rb
106
126
  - lib/inttegro/balance/snapshot.rb
107
127
  - lib/inttegro/balance/snapshot_response.rb
@@ -156,7 +176,6 @@ files:
156
176
  - lib/inttegro/checkout/invoice_view_beneficiary.rb
157
177
  - lib/inttegro/checkout/invoice_view_format.rb
158
178
  - lib/inttegro/checkout/invoice_view_format_pdf.rb
159
- - lib/inttegro/checkout/invoice_view_format_receipt.rb
160
179
  - lib/inttegro/checkout/invoice_view_format_web.rb
161
180
  - lib/inttegro/checkout/invoice_view_status.rb
162
181
  - lib/inttegro/checkout/lookup_request.rb
@@ -453,7 +472,8 @@ files:
453
472
  - lib/inttegro/order/product_line_item_product.rb
454
473
  - lib/inttegro/order/product_line_item_type.rb
455
474
  - lib/inttegro/order/questions.rb
456
- - lib/inttegro/order/receipt_document_format.rb
475
+ - lib/inttegro/order/receipt.rb
476
+ - lib/inttegro/order/receipt_format.rb
457
477
  - lib/inttegro/order/shipping_line_item.rb
458
478
  - lib/inttegro/order/shipping_line_item_shipping.rb
459
479
  - lib/inttegro/order/shipping_line_item_type.rb
@@ -554,14 +574,20 @@ files:
554
574
  - lib/inttegro/payment_method/update_request_owner_address.rb
555
575
  - lib/inttegro/payment_method/update_response.rb
556
576
  - lib/inttegro/payment_method/verification.rb
577
+ - lib/inttegro/payout/amount_limits.rb
557
578
  - lib/inttegro/payout/balance_transaction.rb
579
+ - lib/inttegro/payout/balance_transaction_status.rb
558
580
  - lib/inttegro/payout/base.rb
559
581
  - lib/inttegro/payout/cancel_request.rb
582
+ - lib/inttegro/payout/cancellation.rb
583
+ - lib/inttegro/payout/cancellation_reason.rb
560
584
  - lib/inttegro/payout/destinations.rb
561
585
  - lib/inttegro/payout/disable_automatic_request.rb
562
586
  - lib/inttegro/payout/disable_automatic_response.rb
563
587
  - lib/inttegro/payout/enable_automatic_request.rb
564
588
  - lib/inttegro/payout/error.rb
589
+ - lib/inttegro/payout/failure.rb
590
+ - lib/inttegro/payout/failure_reason.rb
565
591
  - lib/inttegro/payout/get_settings_request.rb
566
592
  - lib/inttegro/payout/lookup_request.rb
567
593
  - lib/inttegro/payout/page.rb
@@ -570,6 +596,7 @@ files:
570
596
  - lib/inttegro/payout/payout.rb
571
597
  - lib/inttegro/payout/response.rb
572
598
  - lib/inttegro/payout/set_destinations_request.rb
599
+ - lib/inttegro/payout/settings_limits.rb
573
600
  - lib/inttegro/payout/settings_lookup.rb
574
601
  - lib/inttegro/payout/settings_lookup_response.rb
575
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