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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/inttegro/app/application.rb +11 -1
- data/lib/inttegro/app/capabilities.rb +11 -0
- data/lib/inttegro/app/capabilities_response.rb +28 -0
- data/lib/inttegro/app/capabilities_response_capabilities.rb +37 -0
- data/lib/inttegro/app/capability_projection.rb +39 -0
- data/lib/inttegro/app/capability_requirement.rb +41 -0
- data/lib/inttegro/app/capability_requirements.rb +28 -0
- data/lib/inttegro/app/enabled_capability.rb +35 -0
- data/lib/inttegro/app/enabled_capability_status.rb +25 -0
- data/lib/inttegro/app/looked_up.rb +18 -0
- data/lib/inttegro/app/looked_up_relationship.rb +58 -0
- data/lib/inttegro/app/looked_up_relationship_parent.rb +41 -0
- data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → app/lookup_capabilities_request.rb} +4 -10
- data/lib/inttegro/app/pending_review_capability.rb +43 -0
- data/lib/inttegro/app/pending_review_capability_status.rb +25 -0
- data/lib/inttegro/app/pending_review_capability_status_reason.rb +34 -0
- data/lib/inttegro/app/relationship.rb +7 -63
- data/lib/inttegro/app/relationship_parent.rb +41 -0
- data/lib/inttegro/app/restricted_capability.rb +51 -0
- data/lib/inttegro/app/restricted_capability_status.rb +25 -0
- data/lib/inttegro/app/restricted_capability_status_reason.rb +34 -0
- data/lib/inttegro/app/updated.rb +10 -0
- data/lib/inttegro/checkout/invoice_view_format.rb +0 -8
- data/lib/inttegro/generated/enums.rb +6 -0
- data/lib/inttegro/generated/models.rb +17 -3
- data/lib/inttegro/generated/operations.rb +3 -0
- data/lib/inttegro/models.rb +1 -0
- data/lib/inttegro/order/invoice_format.rb +0 -8
- data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
- data/lib/inttegro/order/receipt_format.rb +35 -0
- data/lib/inttegro/payment/payment.rb +8 -0
- data/lib/inttegro/payout/amount_limits.rb +35 -0
- data/lib/inttegro/payout/cancellation.rb +42 -0
- data/lib/inttegro/payout/cancellation_reason.rb +30 -0
- data/lib/inttegro/payout/payout.rb +9 -0
- data/lib/inttegro/payout/settings_limits.rb +28 -0
- data/lib/inttegro/payout/settings_lookup.rb +8 -0
- data/lib/inttegro/payout/settings_mutation.rb +8 -0
- data/lib/inttegro/resources/apps.rb +12 -0
- data/lib/inttegro/version.rb +1 -1
- data/rbi/inttegro/generated.rbi +3 -0
- metadata +26 -5
- data/lib/inttegro/app/relationship_policy.rb +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83fa875bd760e81c7d474ee8df008463fb185a69fa14730c4292e4aa852c46a6
|
|
4
|
+
data.tar.gz: 303c6d8eafd7135b879890890efbe2eb756debfe1befef9a113cc7a97133ce55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1812e3a9156655cf6d7ae908682a95a9a7cdf87d13d9de5054bbd07c441ab8c55abf2c741d97eac82d8712868228eb0761a190c269ec7fc607b0e56d3ab1e002
|
|
7
|
+
data.tar.gz: a684c2a1e7d03c9c401508ee30cc887c98920336fffd1a9882850fbbba1f4a332f01f54b18a5d7e333af955b66babd168c02ba5392f785cb1b474a415e657b68
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [11.0.0] - 2026-10-14
|
|
4
|
+
|
|
5
|
+
- **Breaking:** replaced the legacy flat payout minimum with typed
|
|
6
|
+
`limits.amount.min` and `limits.amount.max` values.
|
|
7
|
+
- **Breaking:** reshaped application placement relationships around a typed
|
|
8
|
+
parent identity.
|
|
9
|
+
- Added typed payment and payout capability lookup for the authenticated app.
|
|
10
|
+
- Added payment receipt data separately from invoice data.
|
|
11
|
+
|
|
3
12
|
## [10.0.0] - 2026-10-05
|
|
4
13
|
|
|
5
14
|
- **Breaking:** replaced the payout status `invalid` with `failed`.
|
|
@@ -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
|
require_relative "relationship"
|
|
8
9
|
require_relative "secret_key"
|
|
9
10
|
|
|
@@ -46,6 +47,14 @@ module Inttegro
|
|
|
46
47
|
# Required in the API payload. Wire name: `created_at`.
|
|
47
48
|
# @return [Time]
|
|
48
49
|
#
|
|
50
|
+
# @!attribute [r] capabilities
|
|
51
|
+
# Public capability states currently available to the application. Newly created applications
|
|
52
|
+
# can return an empty object until capabilities become available. New capability keys may
|
|
53
|
+
# appear over time.
|
|
54
|
+
#
|
|
55
|
+
# Required in the API payload. Wire name: `capabilities`.
|
|
56
|
+
# @return [Inttegro::Application::CapabilityProjection]
|
|
57
|
+
#
|
|
49
58
|
# @!attribute [r] secret_key
|
|
50
59
|
# Value of the `secret_key` field in the Inttegro API payload.
|
|
51
60
|
#
|
|
@@ -53,7 +62,7 @@ module Inttegro
|
|
|
53
62
|
# @return [Inttegro::Application::SecretKey, nil]
|
|
54
63
|
#
|
|
55
64
|
# @!attribute [r] relationship
|
|
56
|
-
#
|
|
65
|
+
# Identifies the created app's direct placement relationship.
|
|
57
66
|
#
|
|
58
67
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `relationship`.
|
|
59
68
|
# @return [Inttegro::Application::Relationship, nil]
|
|
@@ -63,6 +72,7 @@ module Inttegro
|
|
|
63
72
|
const :alias, T.nilable(String), default: nil
|
|
64
73
|
const :description, T.nilable(String), default: nil
|
|
65
74
|
const :created_at, Time
|
|
75
|
+
const :capabilities, Inttegro::Application::CapabilityProjection
|
|
66
76
|
const :secret_key, T.nilable(Inttegro::Application::SecretKey), default: nil
|
|
67
77
|
const :relationship, T.nilable(Inttegro::Application::Relationship), default: nil
|
|
68
78
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
require_relative "capabilities_response_capabilities"
|
|
5
|
+
|
|
6
|
+
module Inttegro
|
|
7
|
+
class Application
|
|
8
|
+
# Payment and payout capabilities available to the authenticated app.
|
|
9
|
+
Capabilities = CapabilitiesResponseCapabilities
|
|
10
|
+
end
|
|
11
|
+
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 "capabilities_response_capabilities"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Application
|
|
11
|
+
# Typed representation of the capabilities response 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] capabilities
|
|
20
|
+
# Value of the `capabilities` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `capabilities`.
|
|
23
|
+
# @return [Inttegro::Application::CapabilitiesResponseCapabilities]
|
|
24
|
+
class CapabilitiesResponse < T::Struct
|
|
25
|
+
const :capabilities, Inttegro::Application::CapabilitiesResponseCapabilities
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
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 "enabled_capability"
|
|
8
|
+
require_relative "pending_review_capability"
|
|
9
|
+
require_relative "restricted_capability"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
class Application
|
|
13
|
+
# Typed representation of the capabilities response capabilities 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] payments
|
|
22
|
+
# Value of the `payments` field in the Inttegro API payload.
|
|
23
|
+
#
|
|
24
|
+
# Required in the API payload. Wire name: `payments`.
|
|
25
|
+
# @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] payouts
|
|
28
|
+
# Value of the `payouts` field in the Inttegro API payload.
|
|
29
|
+
#
|
|
30
|
+
# Required in the API payload. Wire name: `payouts`.
|
|
31
|
+
# @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability]
|
|
32
|
+
class CapabilitiesResponseCapabilities < T::Struct
|
|
33
|
+
const :payments, T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability)
|
|
34
|
+
const :payouts, T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
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 "enabled_capability"
|
|
8
|
+
require_relative "pending_review_capability"
|
|
9
|
+
require_relative "restricted_capability"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
class Application
|
|
13
|
+
# Public capability states currently available to the application. Newly created applications
|
|
14
|
+
# can return an empty object until capabilities become available. New capability keys may
|
|
15
|
+
# appear over time.
|
|
16
|
+
#
|
|
17
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
18
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
19
|
+
# field names and serialized enum values.
|
|
20
|
+
#
|
|
21
|
+
# @api public
|
|
22
|
+
#
|
|
23
|
+
# @!attribute [r] payments
|
|
24
|
+
# Value of the `payments` field in the Inttegro API payload.
|
|
25
|
+
#
|
|
26
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payments`.
|
|
27
|
+
# @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, nil]
|
|
28
|
+
#
|
|
29
|
+
# @!attribute [r] payouts
|
|
30
|
+
# Value of the `payouts` field in the Inttegro API payload.
|
|
31
|
+
#
|
|
32
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payouts`.
|
|
33
|
+
# @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability, nil]
|
|
34
|
+
class CapabilityProjection < T::Struct
|
|
35
|
+
const :payments, T.nilable(T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability)), default: nil
|
|
36
|
+
const :payouts, T.nilable(T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability)), default: nil
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
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
|
+
# Typed representation of the capability requirement 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] code
|
|
19
|
+
# Stable public identifier for the requirement.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `code`.
|
|
22
|
+
# @return [String]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] description
|
|
25
|
+
# Public explanation of what must be completed.
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `description`.
|
|
28
|
+
# @return [String]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] due_at
|
|
31
|
+
# Requirement deadline, or null when no deadline applies.
|
|
32
|
+
#
|
|
33
|
+
# Required in the API payload. Wire name: `due_at`.
|
|
34
|
+
# @return [Time, nil]
|
|
35
|
+
class CapabilityRequirement < T::Struct
|
|
36
|
+
const :code, String
|
|
37
|
+
const :description, String
|
|
38
|
+
const :due_at, T.nilable(Time)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
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 "capability_requirement"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Application
|
|
11
|
+
# Typed representation of the capability requirements 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] currently_due
|
|
20
|
+
# Value of the `currently_due` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `currently_due`.
|
|
23
|
+
# @return [Array<Inttegro::Application::CapabilityRequirement>]
|
|
24
|
+
class CapabilityRequirements < T::Struct
|
|
25
|
+
const :currently_due, T::Array[Inttegro::Application::CapabilityRequirement]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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 "enabled_capability_status"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Application
|
|
11
|
+
# Typed representation of the enabled capability 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] status
|
|
20
|
+
# Value of the `status` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `status`.
|
|
23
|
+
# @return [Inttegro::Application::EnabledCapabilityStatus]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] status_changed_at
|
|
26
|
+
# Value of the `status_changed_at` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `status_changed_at`.
|
|
29
|
+
# @return [Time]
|
|
30
|
+
class EnabledCapability < T::Struct
|
|
31
|
+
const :status, Inttegro::Application::EnabledCapabilityStatus
|
|
32
|
+
const :status_changed_at, Time
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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::EnabledCapabilityStatus.
|
|
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 EnabledCapabilityStatus < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `enabled`.
|
|
20
|
+
# @return [Inttegro::Application::EnabledCapabilityStatus]
|
|
21
|
+
ENABLED = new("enabled")
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -4,6 +4,8 @@
|
|
|
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"
|
|
8
|
+
require_relative "looked_up_relationship"
|
|
7
9
|
|
|
8
10
|
module Inttegro
|
|
9
11
|
class Application
|
|
@@ -56,6 +58,20 @@ module Inttegro
|
|
|
56
58
|
#
|
|
57
59
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `archived_at`.
|
|
58
60
|
# @return [Time, nil]
|
|
61
|
+
#
|
|
62
|
+
# @!attribute [r] capabilities
|
|
63
|
+
# Public capability states currently available to the application. Newly created applications
|
|
64
|
+
# can return an empty object until capabilities become available. New capability keys may
|
|
65
|
+
# appear over time.
|
|
66
|
+
#
|
|
67
|
+
# Required in the API payload. Wire name: `capabilities`.
|
|
68
|
+
# @return [Inttegro::Application::CapabilityProjection]
|
|
69
|
+
#
|
|
70
|
+
# @!attribute [r] relationship
|
|
71
|
+
# Identifies the authenticated app's direct placement relationship. Omitted for root apps.
|
|
72
|
+
#
|
|
73
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `relationship`.
|
|
74
|
+
# @return [Inttegro::Application::LookedUpRelationship, nil]
|
|
59
75
|
class LookedUp < T::Struct
|
|
60
76
|
const :id, String
|
|
61
77
|
const :name, String
|
|
@@ -64,6 +80,8 @@ module Inttegro
|
|
|
64
80
|
const :created_at, Time
|
|
65
81
|
const :updated_at, T.nilable(Time), default: nil
|
|
66
82
|
const :archived_at, T.nilable(Time), default: nil
|
|
83
|
+
const :capabilities, Inttegro::Application::CapabilityProjection
|
|
84
|
+
const :relationship, T.nilable(Inttegro::Application::LookedUpRelationship), default: nil
|
|
67
85
|
end
|
|
68
86
|
end
|
|
69
87
|
end
|
|
@@ -0,0 +1,58 @@
|
|
|
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 "looked_up_relationship_parent"
|
|
8
|
+
require_relative "relationship_kind"
|
|
9
|
+
require_relative "relationship_status"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
class Application
|
|
13
|
+
# Identifies the authenticated app's direct placement relationship. Omitted for root apps.
|
|
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] id
|
|
22
|
+
# Value of the `id` field in the Inttegro API payload.
|
|
23
|
+
#
|
|
24
|
+
# Required in the API payload. Wire name: `id`.
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] kind
|
|
28
|
+
# Value of the `kind` field in the Inttegro API payload.
|
|
29
|
+
#
|
|
30
|
+
# Required in the API payload. Wire name: `kind`.
|
|
31
|
+
# @return [Inttegro::Application::RelationshipKind]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] parent
|
|
34
|
+
# Application that directly contains the authenticated app.
|
|
35
|
+
#
|
|
36
|
+
# Required in the API payload. Wire name: `parent`.
|
|
37
|
+
# @return [Inttegro::Application::LookedUpRelationshipParent]
|
|
38
|
+
#
|
|
39
|
+
# @!attribute [r] status
|
|
40
|
+
# Value of the `status` field in the Inttegro API payload.
|
|
41
|
+
#
|
|
42
|
+
# Required in the API payload. Wire name: `status`.
|
|
43
|
+
# @return [Inttegro::Application::RelationshipStatus]
|
|
44
|
+
#
|
|
45
|
+
# @!attribute [r] created_at
|
|
46
|
+
# Value of the `created_at` field in the Inttegro API payload.
|
|
47
|
+
#
|
|
48
|
+
# Required in the API payload. Wire name: `created_at`.
|
|
49
|
+
# @return [Time]
|
|
50
|
+
class LookedUpRelationship < T::Struct
|
|
51
|
+
const :id, String
|
|
52
|
+
const :kind, Inttegro::Application::RelationshipKind
|
|
53
|
+
const :parent, Inttegro::Application::LookedUpRelationshipParent
|
|
54
|
+
const :status, Inttegro::Application::RelationshipStatus
|
|
55
|
+
const :created_at, Time
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
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 authenticated 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 LookedUpRelationshipParent < T::Struct
|
|
36
|
+
const :id, String
|
|
37
|
+
const :name, String
|
|
38
|
+
const :alias, T.nilable(String), default: nil
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → app/lookup_capabilities_request.rb}
RENAMED
|
@@ -6,22 +6,16 @@
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
|
|
8
8
|
module Inttegro
|
|
9
|
-
|
|
10
|
-
# Typed representation of the
|
|
9
|
+
class Application
|
|
10
|
+
# Typed representation of the lookup capabilities request object in the Inttegro API.
|
|
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
|
|
14
14
|
# field names and serialized enum values.
|
|
15
15
|
#
|
|
16
16
|
# @api public
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# Value of the `url` field in the Inttegro API payload.
|
|
20
|
-
#
|
|
21
|
-
# Optional in the API payload; omitted values default to `nil`. Wire name: `url`.
|
|
22
|
-
# @return [String, nil]
|
|
23
|
-
class InvoiceViewFormatReceipt < T::Struct
|
|
24
|
-
const :url, T.nilable(String), default: nil
|
|
17
|
+
class LookupCapabilitiesRequest < T::Struct
|
|
18
|
+
# This object intentionally has no fields.
|
|
25
19
|
end
|
|
26
20
|
end
|
|
27
21
|
end
|
|
@@ -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 "pending_review_capability_status"
|
|
8
|
+
require_relative "pending_review_capability_status_reason"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
class Application
|
|
12
|
+
# Typed representation of the pending review capability 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] status
|
|
21
|
+
# Value of the `status` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `status`.
|
|
24
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatus]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] status_reason
|
|
27
|
+
# Value of the `status_reason` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Required in the API payload. Wire name: `status_reason`.
|
|
30
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] status_changed_at
|
|
33
|
+
# Value of the `status_changed_at` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Required in the API payload. Wire name: `status_changed_at`.
|
|
36
|
+
# @return [Time]
|
|
37
|
+
class PendingReviewCapability < T::Struct
|
|
38
|
+
const :status, Inttegro::Application::PendingReviewCapabilityStatus
|
|
39
|
+
const :status_reason, Inttegro::Application::PendingReviewCapabilityStatusReason
|
|
40
|
+
const :status_changed_at, Time
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
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::PendingReviewCapabilityStatus.
|
|
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 PendingReviewCapabilityStatus < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `pending_review`.
|
|
20
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatus]
|
|
21
|
+
PENDING_REVIEW = new("pending_review")
|
|
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::PendingReviewCapabilityStatusReason.
|
|
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 PendingReviewCapabilityStatusReason < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `setup_incomplete`.
|
|
20
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
21
|
+
SETUP_INCOMPLETE = new("setup_incomplete")
|
|
22
|
+
# Serialized wire value: `account_under_review`.
|
|
23
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
24
|
+
ACCOUNT_UNDER_REVIEW = new("account_under_review")
|
|
25
|
+
# Serialized wire value: `account_restricted`.
|
|
26
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
27
|
+
ACCOUNT_RESTRICTED = new("account_restricted")
|
|
28
|
+
# Serialized wire value: `account_inactive`.
|
|
29
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
30
|
+
ACCOUNT_INACTIVE = new("account_inactive")
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|