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
@@ -5,12 +5,12 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "relationship_kind"
8
- require_relative "relationship_policy"
8
+ require_relative "relationship_parent"
9
9
  require_relative "relationship_status"
10
10
 
11
11
  module Inttegro
12
12
  class Application
13
- # Relationship receipt for the created child app.
13
+ # Identifies the created app's direct placement relationship.
14
14
  #
15
15
  # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
16
  # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
@@ -30,11 +30,11 @@ module Inttegro
30
30
  # Required in the API payload. Wire name: `kind`.
31
31
  # @return [Inttegro::Application::RelationshipKind]
32
32
  #
33
- # @!attribute [r] policy_version
34
- # Value of the `policy_version` field in the Inttegro API payload.
33
+ # @!attribute [r] parent
34
+ # Application that directly contains the created app.
35
35
  #
36
- # Required in the API payload. Wire name: `policy_version`.
37
- # @return [String]
36
+ # Required in the API payload. Wire name: `parent`.
37
+ # @return [Inttegro::Application::RelationshipParent]
38
38
  #
39
39
  # @!attribute [r] status
40
40
  # Value of the `status` field in the Inttegro API payload.
@@ -42,54 +42,6 @@ module Inttegro
42
42
  # Required in the API payload. Wire name: `status`.
43
43
  # @return [Inttegro::Application::RelationshipStatus]
44
44
  #
45
- # @!attribute [r] actor_app_id
46
- # Value of the `actor_app_id` field in the Inttegro API payload.
47
- #
48
- # Required in the API payload. Wire name: `actor_app_id`.
49
- # @return [String]
50
- #
51
- # @!attribute [r] creator_app_id
52
- # Value of the `creator_app_id` field in the Inttegro API payload.
53
- #
54
- # Required in the API payload. Wire name: `creator_app_id`.
55
- # @return [String]
56
- #
57
- # @!attribute [r] placement_parent_app_id
58
- # Value of the `placement_parent_app_id` field in the Inttegro API payload.
59
- #
60
- # Required in the API payload. Wire name: `placement_parent_app_id`.
61
- # @return [String]
62
- #
63
- # @!attribute [r] subject_app_id
64
- # Value of the `subject_app_id` field in the Inttegro API payload.
65
- #
66
- # Required in the API payload. Wire name: `subject_app_id`.
67
- # @return [String]
68
- #
69
- # @!attribute [r] child_app_id
70
- # Value of the `child_app_id` field in the Inttegro API payload.
71
- #
72
- # Required in the API payload. Wire name: `child_app_id`.
73
- # @return [String]
74
- #
75
- # @!attribute [r] child_standing
76
- # Value of the `child_standing` field in the Inttegro API payload.
77
- #
78
- # Required in the API payload. Wire name: `child_standing`.
79
- # @return [String]
80
- #
81
- # @!attribute [r] relationship_policy
82
- # Value of the `relationship_policy` field in the Inttegro API payload.
83
- #
84
- # Required in the API payload. Wire name: `relationship_policy`.
85
- # @return [Inttegro::Application::RelationshipPolicy]
86
- #
87
- # @!attribute [r] retained_creator_authority_exists
88
- # Value of the `retained_creator_authority_exists` field in the Inttegro API payload.
89
- #
90
- # Required in the API payload. Wire name: `retained_creator_authority_exists`.
91
- # @return [Boolean]
92
- #
93
45
  # @!attribute [r] created_at
94
46
  # Value of the `created_at` field in the Inttegro API payload.
95
47
  #
@@ -98,16 +50,8 @@ module Inttegro
98
50
  class Relationship < T::Struct
99
51
  const :id, String
100
52
  const :kind, Inttegro::Application::RelationshipKind
101
- const :policy_version, String
53
+ const :parent, Inttegro::Application::RelationshipParent
102
54
  const :status, Inttegro::Application::RelationshipStatus
103
- const :actor_app_id, String
104
- const :creator_app_id, String
105
- const :placement_parent_app_id, String
106
- const :subject_app_id, String
107
- const :child_app_id, String
108
- const :child_standing, String
109
- const :relationship_policy, Inttegro::Application::RelationshipPolicy
110
- const :retained_creator_authority_exists, T::Boolean
111
55
  const :created_at, Time
112
56
  end
113
57
  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 Application
10
+ # Application that directly contains the created app.
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] id
19
+ # Value of the `id` field in the Inttegro API payload.
20
+ #
21
+ # Required in the API payload. Wire name: `id`.
22
+ # @return [String]
23
+ #
24
+ # @!attribute [r] name
25
+ # Value of the `name` field in the Inttegro API payload.
26
+ #
27
+ # Required in the API payload. Wire name: `name`.
28
+ # @return [String]
29
+ #
30
+ # @!attribute [r] alias
31
+ # Value of the `alias` field in the Inttegro API payload.
32
+ #
33
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `alias`.
34
+ # @return [String, nil]
35
+ class RelationshipParent < T::Struct
36
+ const :id, String
37
+ const :name, String
38
+ const :alias, T.nilable(String), default: nil
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,51 @@
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 "capability_requirements"
8
+ require_relative "restricted_capability_status"
9
+ require_relative "restricted_capability_status_reason"
10
+
11
+ module Inttegro
12
+ class Application
13
+ # Typed representation of the restricted capability object in the Inttegro API.
14
+ #
15
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
17
+ # field names and serialized enum values.
18
+ #
19
+ # @api public
20
+ #
21
+ # @!attribute [r] status
22
+ # Value of the `status` field in the Inttegro API payload.
23
+ #
24
+ # Required in the API payload. Wire name: `status`.
25
+ # @return [Inttegro::Application::RestrictedCapabilityStatus]
26
+ #
27
+ # @!attribute [r] status_reason
28
+ # Value of the `status_reason` field in the Inttegro API payload.
29
+ #
30
+ # Required in the API payload. Wire name: `status_reason`.
31
+ # @return [Inttegro::Application::RestrictedCapabilityStatusReason]
32
+ #
33
+ # @!attribute [r] status_changed_at
34
+ # Value of the `status_changed_at` field in the Inttegro API payload.
35
+ #
36
+ # Required in the API payload. Wire name: `status_changed_at`.
37
+ # @return [Time]
38
+ #
39
+ # @!attribute [r] requirements
40
+ # Value of the `requirements` field in the Inttegro API payload.
41
+ #
42
+ # Required in the API payload. Wire name: `requirements`.
43
+ # @return [Inttegro::Application::CapabilityRequirements]
44
+ class RestrictedCapability < T::Struct
45
+ const :status, Inttegro::Application::RestrictedCapabilityStatus
46
+ const :status_reason, Inttegro::Application::RestrictedCapabilityStatusReason
47
+ const :status_changed_at, Time
48
+ const :requirements, Inttegro::Application::CapabilityRequirements
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,25 @@
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 Application
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Application::RestrictedCapabilityStatus.
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 RestrictedCapabilityStatus < T::Enum
18
+ enums do
19
+ # Serialized wire value: `restricted`.
20
+ # @return [Inttegro::Application::RestrictedCapabilityStatus]
21
+ RESTRICTED = new("restricted")
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,34 @@
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 Application
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Application::RestrictedCapabilityStatusReason.
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 RestrictedCapabilityStatusReason < T::Enum
18
+ enums do
19
+ # Serialized wire value: `setup_incomplete`.
20
+ # @return [Inttegro::Application::RestrictedCapabilityStatusReason]
21
+ SETUP_INCOMPLETE = new("setup_incomplete")
22
+ # Serialized wire value: `account_under_review`.
23
+ # @return [Inttegro::Application::RestrictedCapabilityStatusReason]
24
+ ACCOUNT_UNDER_REVIEW = new("account_under_review")
25
+ # Serialized wire value: `account_restricted`.
26
+ # @return [Inttegro::Application::RestrictedCapabilityStatusReason]
27
+ ACCOUNT_RESTRICTED = new("account_restricted")
28
+ # Serialized wire value: `account_inactive`.
29
+ # @return [Inttegro::Application::RestrictedCapabilityStatusReason]
30
+ ACCOUNT_INACTIVE = new("account_inactive")
31
+ end
32
+ end
33
+ end
34
+ 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 "capability_projection"
7
8
 
8
9
  module Inttegro
9
10
  class Application
@@ -50,6 +51,14 @@ module Inttegro
50
51
  #
51
52
  # Optional in the API payload; omitted values default to `nil`. Wire name: `updated_at`.
52
53
  # @return [Time, nil]
54
+ #
55
+ # @!attribute [r] capabilities
56
+ # Public capability states currently available to the application. Newly created applications
57
+ # can return an empty object until capabilities become available. New capability keys may
58
+ # appear over time.
59
+ #
60
+ # Required in the API payload. Wire name: `capabilities`.
61
+ # @return [Inttegro::Application::CapabilityProjection]
53
62
  class Updated < T::Struct
54
63
  const :id, String
55
64
  const :name, String
@@ -57,6 +66,7 @@ module Inttegro
57
66
  const :description, T.nilable(String), default: nil
58
67
  const :created_at, Time
59
68
  const :updated_at, T.nilable(Time), default: nil
69
+ const :capabilities, Inttegro::Application::CapabilityProjection
60
70
  end
61
71
  end
62
72
  end
@@ -5,7 +5,6 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "invoice_view_format_pdf"
8
- require_relative "invoice_view_format_receipt"
9
8
  require_relative "invoice_view_format_web"
10
9
 
11
10
  module Inttegro
@@ -29,16 +28,9 @@ module Inttegro
29
28
  #
30
29
  # Optional in the API payload; omitted values default to `nil`. Wire name: `pdf`.
31
30
  # @return [Inttegro::Checkout::InvoiceViewFormatPdf, nil]
32
- #
33
- # @!attribute [r] receipt
34
- # Value of the `receipt` field in the Inttegro API payload.
35
- #
36
- # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
37
- # @return [Inttegro::Checkout::InvoiceViewFormatReceipt, nil]
38
31
  class InvoiceViewFormat < T::Struct
39
32
  const :web, T.nilable(Inttegro::Checkout::InvoiceViewFormatWeb), default: nil
40
33
  const :pdf, T.nilable(Inttegro::Checkout::InvoiceViewFormatPdf), default: nil
41
- const :receipt, T.nilable(Inttegro::Checkout::InvoiceViewFormatReceipt), default: nil
42
34
  end
43
35
  end
44
36
  end
@@ -4,9 +4,14 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "../app/credential_owner"
7
+ require_relative "../app/enabled_capability_status"
7
8
  require_relative "../app/management_role"
9
+ require_relative "../app/pending_review_capability_status"
10
+ require_relative "../app/pending_review_capability_status_reason"
8
11
  require_relative "../app/relationship_kind"
9
12
  require_relative "../app/relationship_status"
13
+ require_relative "../app/restricted_capability_status"
14
+ require_relative "../app/restricted_capability_status_reason"
10
15
  require_relative "../balance_transaction/allocation_base_type"
11
16
  require_relative "../balance_transaction/allocation_status"
12
17
  require_relative "../balance_transaction/payout_allocation_type"
@@ -66,6 +71,7 @@ require_relative "../payment_method/tokenize_base_type"
66
71
  require_relative "../payment_method/tokenize_mobile_money_request_type"
67
72
  require_relative "../payment_method/type"
68
73
  require_relative "../payout/balance_transaction_status"
74
+ require_relative "../payout/cancellation_reason"
69
75
  require_relative "../payout/failure_reason"
70
76
  require_relative "../payout/status"
71
77
  require_relative "../price/type"
@@ -39,10 +39,18 @@ require_relative "../price/catalog_price"
39
39
  require_relative "../shared/error_payload"
40
40
  require_relative "../product/add_price_response"
41
41
  require_relative "../shared/address"
42
+ require_relative "../app/enabled_capability"
43
+ require_relative "../app/capability_requirement"
44
+ require_relative "../app/capability_requirements"
45
+ require_relative "../app/restricted_capability"
46
+ require_relative "../app/pending_review_capability"
47
+ require_relative "../app/capability_projection"
42
48
  require_relative "../app/secret_key"
43
- require_relative "../app/relationship_policy"
49
+ require_relative "../app/relationship_parent"
44
50
  require_relative "../app/relationship"
45
51
  require_relative "../app/application"
52
+ require_relative "../app/capabilities_response_capabilities"
53
+ require_relative "../app/capabilities_response"
46
54
  require_relative "../payment_method/archive_request"
47
55
  require_relative "../payment_method/archive_response"
48
56
  require_relative "../balance/holds_payout"
@@ -118,7 +126,6 @@ require_relative "../order/document_delivery_summary_channels"
118
126
  require_relative "../order/document_delivery_summary"
119
127
  require_relative "../checkout/invoice_view_format_web"
120
128
  require_relative "../checkout/invoice_view_format_pdf"
121
- require_relative "../checkout/invoice_view_format_receipt"
122
129
  require_relative "../checkout/invoice_view_format"
123
130
  require_relative "../checkout/invoice_view_beneficiary"
124
131
  require_relative "../checkout/invoice_view"
@@ -171,7 +178,6 @@ require_relative "../order/created_from"
171
178
  require_relative "../order/address"
172
179
  require_relative "../order/customer"
173
180
  require_relative "../order/document_format"
174
- require_relative "../order/receipt_document_format"
175
181
  require_relative "../order/invoice_format"
176
182
  require_relative "../order/invoice"
177
183
  require_relative "../refund/failure"
@@ -212,6 +218,8 @@ require_relative "../payment/method_snapshot_owner"
212
218
  require_relative "../payment/payment_method"
213
219
  require_relative "../payment/billing_details_owner"
214
220
  require_relative "../payment/billing_details"
221
+ require_relative "../order/receipt_format"
222
+ require_relative "../order/receipt"
215
223
  require_relative "../payment/customer"
216
224
  require_relative "../payment/latest_attempt_error"
217
225
  require_relative "../payment/latest_attempt"
@@ -323,6 +331,8 @@ require_relative "../secret_key/secret_key"
323
331
  require_relative "../secret_key/destroy_response"
324
332
  require_relative "../payout/disable_automatic_request"
325
333
  require_relative "../payout/destinations"
334
+ require_relative "../payout/amount_limits"
335
+ require_relative "../payout/settings_limits"
326
336
  require_relative "../payout/settings_mutation_schedule_spec"
327
337
  require_relative "../payout/settings_mutation_schedule"
328
338
  require_relative "../payout/settings_mutation"
@@ -402,7 +412,10 @@ require_relative "../otp/transmission"
402
412
  require_relative "../otp/transaction"
403
413
  require_relative "../otp/initiate_response"
404
414
  require_relative "../shared/list_country_specs_request"
415
+ require_relative "../app/looked_up_relationship_parent"
416
+ require_relative "../app/looked_up_relationship"
405
417
  require_relative "../app/looked_up"
418
+ require_relative "../app/lookup_capabilities_request"
406
419
  require_relative "../app/lookup_response"
407
420
  require_relative "../balance_transaction/lookup_request"
408
421
  require_relative "../balance/lookup_request"
@@ -502,6 +515,7 @@ require_relative "../payment_method/page_response"
502
515
  require_relative "../payment_method/tokenize_base"
503
516
  require_relative "../payment/result"
504
517
  require_relative "../payout/balance_transaction"
518
+ require_relative "../payout/cancellation"
505
519
  require_relative "../payout/error"
506
520
  require_relative "../payout/failure"
507
521
  require_relative "../payout/payout"
@@ -53,6 +53,7 @@ module Inttegro
53
53
  "/refunds/lookup" => Inttegro::Refund::Response,
54
54
  "/refunds/page" => Inttegro::Refund::PageResponse,
55
55
  "/apps/create" => Inttegro::Application::CreateResponse,
56
+ "/apps/capabilities" => Inttegro::Application::CapabilitiesResponse,
56
57
  "/apps/lookup" => Inttegro::Application::LookupResponse,
57
58
  "/apps/update" => Inttegro::Application::UpdateResponse,
58
59
  "/keys/generate" => Inttegro::SecretKey::GenerateResponse,
@@ -181,6 +182,7 @@ module Inttegro
181
182
  "/refunds/lookup" => "Inttegro::Refund::LookupRequest",
182
183
  "/refunds/page" => "Inttegro::Refund::PageRequest",
183
184
  "/apps/create" => "Inttegro::Application::CreateRequest",
185
+ "/apps/capabilities" => "Inttegro::Application::LookupCapabilitiesRequest",
184
186
  "/apps/update" => "Inttegro::Application::UpdateRequest",
185
187
  "/keys/generate" => "Inttegro::SecretKey::GenerateRequest",
186
188
  "/keys/page" => "Inttegro::SecretKey::PageRequest",
@@ -307,6 +309,7 @@ module Inttegro
307
309
  "/refunds/lookup" => "lookupRefund",
308
310
  "/refunds/page" => "pageRefunds",
309
311
  "/apps/create" => "createApplication",
312
+ "/apps/capabilities" => "lookupApplicationCapabilities",
310
313
  "/apps/lookup" => "lookupApplication",
311
314
  "/apps/update" => "updateApplication",
312
315
  "/keys/generate" => "generateSecretKey",
@@ -3,6 +3,7 @@
3
3
 
4
4
  # Generated resource models are loaded in dependency order by this manifest.
5
5
  require_relative "generated/models"
6
+ require_relative "app/capabilities"
6
7
 
7
8
  # Hand-written behavior lives beside the resource it extends.
8
9
  require_relative "model_serialization"
@@ -5,7 +5,6 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "document_format"
8
- require_relative "receipt_document_format"
9
8
 
10
9
  module Inttegro
11
10
  class Order
@@ -28,16 +27,9 @@ module Inttegro
28
27
  #
29
28
  # Required in the API payload. Wire name: `pdf`.
30
29
  # @return [Inttegro::Order::DocumentFormat]
31
- #
32
- # @!attribute [r] receipt
33
- # Value of the `receipt` field in the Inttegro API payload.
34
- #
35
- # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
36
- # @return [Inttegro::Order::ReceiptDocumentFormat, nil]
37
30
  class InvoiceFormat < T::Struct
38
31
  const :web, Inttegro::Order::DocumentFormat
39
32
  const :pdf, Inttegro::Order::DocumentFormat
40
- const :receipt, T.nilable(Inttegro::Order::ReceiptDocumentFormat), default: nil
41
33
  end
42
34
  end
43
35
  end
@@ -5,10 +5,11 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "document_delivery_summary"
8
+ require_relative "receipt_format"
8
9
 
9
10
  module Inttegro
10
11
  class Order
11
- # Typed representation of the receipt document format object in the Inttegro API.
12
+ # Receipt issued for a paid order payment.
12
13
  #
13
14
  # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
15
  # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
@@ -16,20 +17,27 @@ module Inttegro
16
17
  #
17
18
  # @api public
18
19
  #
20
+ # @!attribute [r] number
21
+ # Value of the `number` field in the Inttegro API payload.
22
+ #
23
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
24
+ # @return [String, nil]
25
+ #
19
26
  # @!attribute [r] delivery_summary
20
27
  # Bounded aggregate of Chime-accepted sends for one generated order document.
21
28
  #
22
29
  # Optional in the API payload; omitted values default to `nil`. Wire name: `delivery_summary`.
23
30
  # @return [Inttegro::Order::DocumentDeliverySummary, nil]
24
31
  #
25
- # @!attribute [r] url
26
- # Value of the `url` field in the Inttegro API payload.
32
+ # @!attribute [r] format_value
33
+ # Value of the `format` field in the Inttegro API payload.
27
34
  #
28
- # Required in the API payload. Wire name: `url`.
29
- # @return [String]
30
- class ReceiptDocumentFormat < T::Struct
35
+ # Required in the API payload. Wire name: `format`.
36
+ # @return [Inttegro::Order::ReceiptFormat]
37
+ class Receipt < T::Struct
38
+ const :number, T.nilable(String), default: nil
31
39
  const :delivery_summary, T.nilable(Inttegro::Order::DocumentDeliverySummary), default: nil
32
- const :url, String
40
+ const :format_value, Inttegro::Order::ReceiptFormat, name: "format"
33
41
  end
34
42
  end
35
43
  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 "document_format"
8
+
9
+ module Inttegro
10
+ class Order
11
+ # Typed representation of the receipt format 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] web
20
+ # Value of the `web` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `web`.
23
+ # @return [Inttegro::Order::DocumentFormat]
24
+ #
25
+ # @!attribute [r] pdf
26
+ # Value of the `pdf` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `pdf`.
29
+ # @return [Inttegro::Order::DocumentFormat]
30
+ class ReceiptFormat < T::Struct
31
+ const :web, Inttegro::Order::DocumentFormat
32
+ const :pdf, Inttegro::Order::DocumentFormat
33
+ end
34
+ end
35
+ end
@@ -6,6 +6,7 @@
6
6
  require_relative "base"
7
7
  require_relative "../balance_transaction/balance_transaction"
8
8
  require_relative "../money/amount"
9
+ require_relative "../order/receipt"
9
10
  require_relative "billing_details"
10
11
  require_relative "customer"
11
12
  require_relative "latest_attempt"
@@ -67,6 +68,12 @@ module Inttegro
67
68
  # Optional in the API payload; omitted values default to `nil`. Wire name: `billing_details`.
68
69
  # @return [Inttegro::Payment::BillingDetails, nil]
69
70
  #
71
+ # @!attribute [r] receipt
72
+ # Receipt issued for a paid order payment.
73
+ #
74
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
75
+ # @return [Inttegro::Order::Receipt, nil]
76
+ #
70
77
  # @!attribute [r] customer
71
78
  # Value of the `customer` field in the Inttegro API payload.
72
79
  #
@@ -158,6 +165,7 @@ module Inttegro
158
165
  const :balance_transaction, T.nilable(Inttegro::BalanceTransaction), default: nil
159
166
  const :payment_method, T.nilable(Inttegro::Payment::PaymentMethod), default: nil
160
167
  const :billing_details, T.nilable(Inttegro::Payment::BillingDetails), default: nil
168
+ const :receipt, T.nilable(Inttegro::Order::Receipt), default: nil
161
169
  const :customer, T.nilable(Inttegro::Payment::Customer), default: nil
162
170
  const :latest_attempt, T.nilable(Inttegro::Payment::LatestAttempt), default: nil
163
171
  const :next_action, T.nilable(Inttegro::Payment::NextAction), default: nil
@@ -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 "../money/amount"
8
+
9
+ module Inttegro
10
+ class Payout
11
+ # Inclusive payout amount range. Values use the currency's smallest unit.
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] min
20
+ # Value of the `min` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `min`.
23
+ # @return [Inttegro::Money::Amount]
24
+ #
25
+ # @!attribute [r] max
26
+ # Value of the `max` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `max`.
29
+ # @return [Inttegro::Money::Amount]
30
+ class AmountLimits < T::Struct
31
+ const :min, Inttegro::Money::Amount
32
+ const :max, Inttegro::Money::Amount
33
+ end
34
+ end
35
+ 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
+ require_relative "cancellation_reason"
8
+
9
+ module Inttegro
10
+ class Payout
11
+ # Stable, caller-safe information and guidance for a canceled payout.
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 was canceled.
27
+ #
28
+ # Required in the API payload. Wire name: `reason`.
29
+ # @return [Inttegro::Payout::CancellationReason]
30
+ #
31
+ # @!attribute [r] remediation
32
+ # Recommended next step safe to show to an operator.
33
+ #
34
+ # Required in the API payload. Wire name: `remediation`.
35
+ # @return [String]
36
+ class Cancellation < T::Struct
37
+ const :detail, String
38
+ const :reason, Inttegro::Payout::CancellationReason
39
+ const :remediation, String
40
+ end
41
+ end
42
+ end