dodopayments 2.18.0 → 2.19.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/README.md +1 -1
- data/lib/dodopayments/models/attach_addon.rb +3 -1
- data/lib/dodopayments/models/checkout_session_flags.rb +12 -1
- data/lib/dodopayments/models/checkout_session_request.rb +5 -3
- data/lib/dodopayments/models/credit_entitlement.rb +2 -1
- data/lib/dodopayments/models/credit_entitlement_cart_response.rb +2 -1
- data/lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb +5 -3
- data/lib/dodopayments/models/credit_entitlements/balance_list_grants_response.rb +24 -3
- data/lib/dodopayments/models/credit_entitlements/credit_ledger_entry.rb +3 -3
- data/lib/dodopayments/models/customer.rb +3 -3
- data/lib/dodopayments/models/customer_create_params.rb +3 -3
- data/lib/dodopayments/models/customer_limited_details.rb +3 -3
- data/lib/dodopayments/models/customer_list_entitlement_grants_params.rb +85 -0
- data/lib/dodopayments/models/customer_update_params.rb +5 -3
- data/lib/dodopayments/models/discount.rb +4 -3
- data/lib/dodopayments/models/discount_create_params.rb +3 -3
- data/lib/dodopayments/models/discount_detail.rb +3 -3
- data/lib/dodopayments/models/discount_update_params.rb +5 -3
- data/lib/dodopayments/models/entitlement.rb +5 -5
- data/lib/dodopayments/models/entitlement_create_params.rb +5 -5
- data/lib/dodopayments/models/entitlement_integration_type.rb +1 -0
- data/lib/dodopayments/models/entitlement_list_params.rb +1 -0
- data/lib/dodopayments/models/entitlement_update_params.rb +12 -5
- data/lib/dodopayments/models/entitlements/entitlement_grant.rb +13 -4
- data/lib/dodopayments/models/feature.rb +26 -0
- data/lib/dodopayments/models/feature_type.rb +15 -0
- data/lib/dodopayments/models/integration_config.rb +30 -1
- data/lib/dodopayments/models/integration_config_response.rb +22 -1
- data/lib/dodopayments/models/license_key_duration.rb +3 -1
- data/lib/dodopayments/models/metadata.rb +15 -1
- data/lib/dodopayments/models/payment.rb +5 -5
- data/lib/dodopayments/models/payment_create_params.rb +3 -3
- data/lib/dodopayments/models/payment_create_response.rb +3 -3
- data/lib/dodopayments/models/payment_list_response.rb +4 -3
- data/lib/dodopayments/models/product.rb +3 -3
- data/lib/dodopayments/models/product_create_params.rb +3 -3
- data/lib/dodopayments/models/product_entitlement_summary.rb +2 -2
- data/lib/dodopayments/models/product_list_response.rb +3 -3
- data/lib/dodopayments/models/product_update_params.rb +5 -3
- data/lib/dodopayments/models/refund.rb +3 -3
- data/lib/dodopayments/models/refund_create_params.rb +3 -3
- data/lib/dodopayments/models/subscription.rb +3 -3
- data/lib/dodopayments/models/subscription_charge_params.rb +5 -3
- data/lib/dodopayments/models/subscription_create_params.rb +3 -3
- data/lib/dodopayments/models/subscription_create_response.rb +3 -3
- data/lib/dodopayments/models/subscription_list_response.rb +3 -3
- data/lib/dodopayments/models/subscription_update_params.rb +18 -4
- data/lib/dodopayments/models/time_interval.rb +1 -0
- data/lib/dodopayments/models/update_subscription_plan_req.rb +5 -3
- data/lib/dodopayments/models.rb +8 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +2 -2
- data/lib/dodopayments/resources/credit_entitlements/balances.rb +1 -1
- data/lib/dodopayments/resources/customers.rb +35 -2
- data/lib/dodopayments/resources/discounts.rb +2 -2
- data/lib/dodopayments/resources/entitlements.rb +4 -4
- data/lib/dodopayments/resources/payments.rb +1 -1
- data/lib/dodopayments/resources/products.rb +2 -2
- data/lib/dodopayments/resources/refunds.rb +1 -1
- data/lib/dodopayments/resources/subscriptions.rb +5 -5
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +3 -0
- data/rbi/dodopayments/models/attach_addon.rbi +6 -1
- data/rbi/dodopayments/models/checkout_session_flags.rbi +17 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +9 -3
- data/rbi/dodopayments/models/credit_entitlement.rbi +2 -0
- data/rbi/dodopayments/models/credit_entitlement_cart_response.rbi +2 -0
- data/rbi/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rbi +11 -3
- data/rbi/dodopayments/models/credit_entitlements/balance_list_grants_response.rbi +13 -3
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +3 -3
- data/rbi/dodopayments/models/customer.rbi +12 -4
- data/rbi/dodopayments/models/customer_create_params.rbi +12 -4
- data/rbi/dodopayments/models/customer_limited_details.rbi +12 -4
- data/rbi/dodopayments/models/customer_list_entitlement_grants_params.rbi +229 -0
- data/rbi/dodopayments/models/customer_update_params.rbi +9 -3
- data/rbi/dodopayments/models/discount.rbi +5 -3
- data/rbi/dodopayments/models/discount_create_params.rbi +12 -4
- data/rbi/dodopayments/models/discount_detail.rbi +3 -3
- data/rbi/dodopayments/models/discount_update_params.rbi +9 -3
- data/rbi/dodopayments/models/entitlement.rbi +4 -3
- data/rbi/dodopayments/models/entitlement_create_params.rbi +15 -4
- data/rbi/dodopayments/models/entitlement_integration_type.rbi +5 -0
- data/rbi/dodopayments/models/entitlement_list_params.rbi +5 -0
- data/rbi/dodopayments/models/entitlement_update_params.rbi +22 -3
- data/rbi/dodopayments/models/entitlements/entitlement_grant.rbi +16 -3
- data/rbi/dodopayments/models/feature.rbi +46 -0
- data/rbi/dodopayments/models/feature_type.rbi +21 -0
- data/rbi/dodopayments/models/integration_config.rbi +50 -0
- data/rbi/dodopayments/models/integration_config_response.rbi +44 -0
- data/rbi/dodopayments/models/license_key_duration.rbi +6 -1
- data/rbi/dodopayments/models/metadata.rbi +12 -1
- data/rbi/dodopayments/models/payment.rbi +5 -5
- data/rbi/dodopayments/models/payment_create_params.rbi +12 -4
- data/rbi/dodopayments/models/payment_create_response.rbi +3 -3
- data/rbi/dodopayments/models/payment_list_response.rbi +5 -3
- data/rbi/dodopayments/models/product.rbi +3 -3
- data/rbi/dodopayments/models/product_create_params.rbi +12 -4
- data/rbi/dodopayments/models/product_entitlement_summary.rbi +1 -0
- data/rbi/dodopayments/models/product_list_response.rbi +3 -3
- data/rbi/dodopayments/models/product_update_params.rbi +9 -3
- data/rbi/dodopayments/models/refund.rbi +3 -3
- data/rbi/dodopayments/models/refund_create_params.rbi +12 -4
- data/rbi/dodopayments/models/subscription.rbi +3 -3
- data/rbi/dodopayments/models/subscription_charge_params.rbi +9 -3
- data/rbi/dodopayments/models/subscription_create_params.rbi +12 -4
- data/rbi/dodopayments/models/subscription_create_response.rbi +3 -3
- data/rbi/dodopayments/models/subscription_list_response.rbi +3 -3
- data/rbi/dodopayments/models/subscription_update_params.rbi +13 -3
- data/rbi/dodopayments/models/time_interval.rbi +1 -0
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +9 -3
- data/rbi/dodopayments/models.rbi +9 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +4 -2
- data/rbi/dodopayments/resources/credit_entitlements/balances.rbi +2 -1
- data/rbi/dodopayments/resources/customers.rbi +36 -2
- data/rbi/dodopayments/resources/discounts.rbi +3 -2
- data/rbi/dodopayments/resources/entitlements.rbi +10 -2
- data/rbi/dodopayments/resources/payments.rbi +1 -1
- data/rbi/dodopayments/resources/products.rbi +3 -2
- data/rbi/dodopayments/resources/refunds.rbi +1 -1
- data/rbi/dodopayments/resources/subscriptions.rbi +10 -5
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/customer_list_entitlement_grants_params.rbs +98 -0
- data/sig/dodopayments/models/entitlement_integration_type.rbs +2 -0
- data/sig/dodopayments/models/entitlement_list_params.rbs +2 -0
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +5 -0
- data/sig/dodopayments/models/feature.rbs +22 -0
- data/sig/dodopayments/models/feature_type.rbs +13 -0
- data/sig/dodopayments/models/integration_config.rbs +21 -1
- data/sig/dodopayments/models/integration_config_response.rbs +21 -1
- data/sig/dodopayments/models/metadata.rbs +9 -1
- data/sig/dodopayments/models.rbs +8 -0
- data/sig/dodopayments/resources/customers.rbs +9 -0
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a1c544a4176c7c0714185ca6adf9c37fb36def28490b0ab142787bc2b3adf84
|
|
4
|
+
data.tar.gz: 526d3979f72eb82772a3fdc05d77a8a083a720dc38346e492829e6343491df90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa2892ef06e81edaf152d83e460f117ba34c634984f4321240806f531f2a4f48bcea530b0478961afaa7b6c5e0ff0fe4da306abf55307350ae720cf280d700a2
|
|
7
|
+
data.tar.gz: e2523d71b90539c1919ea64fb6699e90e324bfdeef17567851a8d1e0fab41783f18095ecec460d02fde838c599f62ae6f633190b40e78a8a2bd819d1e3665b42
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.19.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.18.1...v2.19.0) (2026-07-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** register Feature/FeatureType models and expose customer entitlement-grants list endpoint ([e0a2559](https://github.com/dodopayments/dodopayments-ruby/commit/e0a2559136a4c577fd58c08445a6d54e5aa5036c))
|
|
9
|
+
* **api:** register Feature/FeatureType models and expose customer entitlement-grants list endpoint ([b4e6b71](https://github.com/dodopayments/dodopayments-ruby/commit/b4e6b7103d93dd44e282a3143a235f4ddc0b6068))
|
|
10
|
+
|
|
11
|
+
## [2.18.1](https://github.com/dodopayments/dodopayments-ruby/compare/v2.18.0...v2.18.1) (2026-06-27)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **api:** add allow_editing_addons checkout flag and refine schema descriptions ([bb29016](https://github.com/dodopayments/dodopayments-ruby/commit/bb29016fe5ae1b7d8cfca80131645f699f99f928))
|
|
17
|
+
* **api:** add allow_editing_addons checkout flag and refine schema descriptions ([c8bca49](https://github.com/dodopayments/dodopayments-ruby/commit/c8bca49c58066c378d071a2a353e24986d6c6134))
|
|
18
|
+
|
|
3
19
|
## [2.18.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.17.1...v2.18.0) (2026-06-23)
|
|
4
20
|
|
|
5
21
|
|
data/README.md
CHANGED
|
@@ -9,13 +9,15 @@ module Dodopayments
|
|
|
9
9
|
required :addon_id, String
|
|
10
10
|
|
|
11
11
|
# @!attribute quantity
|
|
12
|
+
# Number of units of this addon.
|
|
12
13
|
#
|
|
13
14
|
# @return [Integer]
|
|
14
15
|
required :quantity, Integer
|
|
15
16
|
|
|
16
17
|
# @!method initialize(addon_id:, quantity:)
|
|
17
18
|
# @param addon_id [String]
|
|
18
|
-
#
|
|
19
|
+
#
|
|
20
|
+
# @param quantity [Integer] Number of units of this addon.
|
|
19
21
|
end
|
|
20
22
|
end
|
|
21
23
|
end
|
|
@@ -71,6 +71,15 @@ module Dodopayments
|
|
|
71
71
|
# @return [Boolean, nil]
|
|
72
72
|
optional :allow_discount_code, Dodopayments::Internal::Type::Boolean
|
|
73
73
|
|
|
74
|
+
# @!attribute allow_editing_addons
|
|
75
|
+
# If true, the customer can add or remove addons on a subscription product during
|
|
76
|
+
# checkout.
|
|
77
|
+
#
|
|
78
|
+
# Default is false
|
|
79
|
+
#
|
|
80
|
+
# @return [Boolean, nil]
|
|
81
|
+
optional :allow_editing_addons, Dodopayments::Internal::Type::Boolean
|
|
82
|
+
|
|
74
83
|
# @!attribute allow_phone_number_collection
|
|
75
84
|
# If phone number is collected from customer, set it to rue
|
|
76
85
|
#
|
|
@@ -113,7 +122,7 @@ module Dodopayments
|
|
|
113
122
|
# @return [Boolean, nil]
|
|
114
123
|
optional :require_phone_number, Dodopayments::Internal::Type::Boolean
|
|
115
124
|
|
|
116
|
-
# @!method initialize(allow_currency_selection: nil, allow_customer_editing_business_name: nil, allow_customer_editing_city: nil, allow_customer_editing_country: nil, allow_customer_editing_email: nil, allow_customer_editing_name: nil, allow_customer_editing_state: nil, allow_customer_editing_street: nil, allow_customer_editing_tax_id: nil, allow_customer_editing_zipcode: nil, allow_discount_code: nil, allow_phone_number_collection: nil, allow_tax_id: nil, always_create_new_customer: nil, redirect_immediately: nil, require_phone_number: nil)
|
|
125
|
+
# @!method initialize(allow_currency_selection: nil, allow_customer_editing_business_name: nil, allow_customer_editing_city: nil, allow_customer_editing_country: nil, allow_customer_editing_email: nil, allow_customer_editing_name: nil, allow_customer_editing_state: nil, allow_customer_editing_street: nil, allow_customer_editing_tax_id: nil, allow_customer_editing_zipcode: nil, allow_discount_code: nil, allow_editing_addons: nil, allow_phone_number_collection: nil, allow_tax_id: nil, always_create_new_customer: nil, redirect_immediately: nil, require_phone_number: nil)
|
|
117
126
|
# Some parameter documentations has been truncated, see
|
|
118
127
|
# {Dodopayments::Models::CheckoutSessionFlags} for more details.
|
|
119
128
|
#
|
|
@@ -139,6 +148,8 @@ module Dodopayments
|
|
|
139
148
|
#
|
|
140
149
|
# @param allow_discount_code [Boolean] If the customer is allowed to apply discount code, set it to true.
|
|
141
150
|
#
|
|
151
|
+
# @param allow_editing_addons [Boolean] If true, the customer can add or remove addons on a subscription product
|
|
152
|
+
#
|
|
142
153
|
# @param allow_phone_number_collection [Boolean] If phone number is collected from customer, set it to rue
|
|
143
154
|
#
|
|
144
155
|
# @param allow_tax_id [Boolean] If the customer is allowed to add tax id, set it to true
|
|
@@ -117,8 +117,10 @@ module Dodopayments
|
|
|
117
117
|
# Additional metadata associated with the payment. Defaults to empty if not
|
|
118
118
|
# provided.
|
|
119
119
|
#
|
|
120
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
121
|
-
optional :metadata,
|
|
120
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
121
|
+
optional :metadata,
|
|
122
|
+
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
|
|
123
|
+
nil?: true
|
|
122
124
|
|
|
123
125
|
# @!attribute minimal_address
|
|
124
126
|
# If true, only zipcode is required when confirm is true; other address fields
|
|
@@ -204,7 +206,7 @@ module Dodopayments
|
|
|
204
206
|
#
|
|
205
207
|
# @param mandate_min_amount_inr_paise [Integer, nil] Override the merchant-level mandate floor (in INR paise) for INR
|
|
206
208
|
#
|
|
207
|
-
# @param metadata [Hash{Symbol=>String}, nil] Additional metadata associated with the payment. Defaults to empty if not provid
|
|
209
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}, nil] Additional metadata associated with the payment. Defaults to empty if not provid
|
|
208
210
|
#
|
|
209
211
|
# @param minimal_address [Boolean] If true, only zipcode is required when confirm is true; other address fields rem
|
|
210
212
|
#
|
|
@@ -97,6 +97,7 @@ module Dodopayments
|
|
|
97
97
|
optional :rollover_timeframe_count, Integer, nil?: true
|
|
98
98
|
|
|
99
99
|
# @!attribute rollover_timeframe_interval
|
|
100
|
+
# Unit of a duration count (e.g. license-key validity period).
|
|
100
101
|
#
|
|
101
102
|
# @return [Symbol, Dodopayments::Models::TimeInterval, nil]
|
|
102
103
|
optional :rollover_timeframe_interval, enum: -> { Dodopayments::TimeInterval }, nil?: true
|
|
@@ -138,7 +139,7 @@ module Dodopayments
|
|
|
138
139
|
#
|
|
139
140
|
# @param rollover_timeframe_count [Integer, nil]
|
|
140
141
|
#
|
|
141
|
-
# @param rollover_timeframe_interval [Symbol, Dodopayments::Models::TimeInterval, nil]
|
|
142
|
+
# @param rollover_timeframe_interval [Symbol, Dodopayments::Models::TimeInterval, nil] Unit of a duration count (e.g. license-key validity period).
|
|
142
143
|
end
|
|
143
144
|
end
|
|
144
145
|
end
|
|
@@ -95,6 +95,7 @@ module Dodopayments
|
|
|
95
95
|
optional :rollover_timeframe_count, Integer, nil?: true
|
|
96
96
|
|
|
97
97
|
# @!attribute rollover_timeframe_interval
|
|
98
|
+
# Unit of a duration count (e.g. license-key validity period).
|
|
98
99
|
#
|
|
99
100
|
# @return [Symbol, Dodopayments::Models::TimeInterval, nil]
|
|
100
101
|
optional :rollover_timeframe_interval, enum: -> { Dodopayments::TimeInterval }, nil?: true
|
|
@@ -137,7 +138,7 @@ module Dodopayments
|
|
|
137
138
|
#
|
|
138
139
|
# @param rollover_timeframe_count [Integer, nil]
|
|
139
140
|
#
|
|
140
|
-
# @param rollover_timeframe_interval [Symbol, Dodopayments::Models::TimeInterval, nil]
|
|
141
|
+
# @param rollover_timeframe_interval [Symbol, Dodopayments::Models::TimeInterval, nil] Unit of a duration count (e.g. license-key validity period).
|
|
141
142
|
end
|
|
142
143
|
end
|
|
143
144
|
end
|
|
@@ -46,8 +46,10 @@ module Dodopayments
|
|
|
46
46
|
# Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500
|
|
47
47
|
# chars)
|
|
48
48
|
#
|
|
49
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
50
|
-
optional :metadata,
|
|
49
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
50
|
+
optional :metadata,
|
|
51
|
+
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
|
|
52
|
+
nil?: true
|
|
51
53
|
|
|
52
54
|
# @!attribute reason
|
|
53
55
|
# Human-readable reason for the entry
|
|
@@ -72,7 +74,7 @@ module Dodopayments
|
|
|
72
74
|
#
|
|
73
75
|
# @param idempotency_key [String, nil] Idempotency key to prevent duplicate entries
|
|
74
76
|
#
|
|
75
|
-
# @param metadata [Hash{Symbol=>String}, nil] Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500 chars
|
|
77
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}, nil] Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500 chars
|
|
76
78
|
#
|
|
77
79
|
# @param reason [String, nil] Human-readable reason for the entry
|
|
78
80
|
#
|
|
@@ -67,9 +67,12 @@ module Dodopayments
|
|
|
67
67
|
optional :expires_at, Time, nil?: true
|
|
68
68
|
|
|
69
69
|
# @!attribute metadata
|
|
70
|
+
# Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
70
71
|
#
|
|
71
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
72
|
-
optional :metadata,
|
|
72
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
73
|
+
optional :metadata,
|
|
74
|
+
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
|
|
75
|
+
nil?: true
|
|
73
76
|
|
|
74
77
|
# @!attribute parent_grant_id
|
|
75
78
|
#
|
|
@@ -82,22 +85,40 @@ module Dodopayments
|
|
|
82
85
|
optional :source_id, String, nil?: true
|
|
83
86
|
|
|
84
87
|
# @!method initialize(id:, created_at:, credit_entitlement_id:, customer_id:, initial_amount:, is_expired:, is_rolled_over:, remaining_amount:, rollover_count:, source_type:, updated_at:, expires_at: nil, metadata: nil, parent_grant_id: nil, source_id: nil)
|
|
88
|
+
# Some parameter documentations has been truncated, see
|
|
89
|
+
# {Dodopayments::Models::CreditEntitlements::BalanceListGrantsResponse} for more
|
|
90
|
+
# details.
|
|
91
|
+
#
|
|
85
92
|
# Response for a credit grant
|
|
86
93
|
#
|
|
87
94
|
# @param id [String]
|
|
95
|
+
#
|
|
88
96
|
# @param created_at [Time]
|
|
97
|
+
#
|
|
89
98
|
# @param credit_entitlement_id [String]
|
|
99
|
+
#
|
|
90
100
|
# @param customer_id [String]
|
|
101
|
+
#
|
|
91
102
|
# @param initial_amount [String]
|
|
103
|
+
#
|
|
92
104
|
# @param is_expired [Boolean]
|
|
105
|
+
#
|
|
93
106
|
# @param is_rolled_over [Boolean]
|
|
107
|
+
#
|
|
94
108
|
# @param remaining_amount [String]
|
|
109
|
+
#
|
|
95
110
|
# @param rollover_count [Integer]
|
|
111
|
+
#
|
|
96
112
|
# @param source_type [Symbol, Dodopayments::Models::CreditEntitlements::BalanceListGrantsResponse::SourceType]
|
|
113
|
+
#
|
|
97
114
|
# @param updated_at [Time]
|
|
115
|
+
#
|
|
98
116
|
# @param expires_at [Time, nil]
|
|
99
|
-
#
|
|
117
|
+
#
|
|
118
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}, nil] Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
119
|
+
#
|
|
100
120
|
# @param parent_grant_id [String, nil]
|
|
121
|
+
#
|
|
101
122
|
# @param source_id [String, nil]
|
|
102
123
|
|
|
103
124
|
# @see Dodopayments::Models::CreditEntitlements::BalanceListGrantsResponse#source_type
|
|
@@ -61,8 +61,8 @@ module Dodopayments
|
|
|
61
61
|
# created at checkout). Empty when the grant has no resolvable source (e.g.
|
|
62
62
|
# credits granted directly via the API).
|
|
63
63
|
#
|
|
64
|
-
# @return [Hash{Symbol=>String}]
|
|
65
|
-
required :metadata, Dodopayments::Internal::Type::HashOf[
|
|
64
|
+
# @return [Hash{Symbol=>String, Float, Boolean}]
|
|
65
|
+
required :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
66
66
|
|
|
67
67
|
# @!attribute overage_after
|
|
68
68
|
#
|
|
@@ -126,7 +126,7 @@ module Dodopayments
|
|
|
126
126
|
#
|
|
127
127
|
# @param is_credit [Boolean]
|
|
128
128
|
#
|
|
129
|
-
# @param metadata [Hash{Symbol=>String}] Metadata associated with the credit grant's source (the subscription or
|
|
129
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Metadata associated with the credit grant's source (the subscription or
|
|
130
130
|
#
|
|
131
131
|
# @param overage_after [String]
|
|
132
132
|
#
|
|
@@ -32,8 +32,8 @@ module Dodopayments
|
|
|
32
32
|
# @!attribute metadata
|
|
33
33
|
# Additional metadata for the customer
|
|
34
34
|
#
|
|
35
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
36
|
-
optional :metadata, Dodopayments::Internal::Type::HashOf[
|
|
35
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
36
|
+
optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
37
37
|
|
|
38
38
|
# @!attribute phone_number
|
|
39
39
|
#
|
|
@@ -51,7 +51,7 @@ module Dodopayments
|
|
|
51
51
|
#
|
|
52
52
|
# @param name [String]
|
|
53
53
|
#
|
|
54
|
-
# @param metadata [Hash{Symbol=>String}] Additional metadata for the customer
|
|
54
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata for the customer
|
|
55
55
|
#
|
|
56
56
|
# @param phone_number [String, nil]
|
|
57
57
|
end
|
|
@@ -20,8 +20,8 @@ module Dodopayments
|
|
|
20
20
|
# @!attribute metadata
|
|
21
21
|
# Additional metadata for the customer
|
|
22
22
|
#
|
|
23
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
24
|
-
optional :metadata, Dodopayments::Internal::Type::HashOf[
|
|
23
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
24
|
+
optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
25
25
|
|
|
26
26
|
# @!attribute phone_number
|
|
27
27
|
#
|
|
@@ -33,7 +33,7 @@ module Dodopayments
|
|
|
33
33
|
#
|
|
34
34
|
# @param name [String]
|
|
35
35
|
#
|
|
36
|
-
# @param metadata [Hash{Symbol=>String}] Additional metadata for the customer
|
|
36
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata for the customer
|
|
37
37
|
#
|
|
38
38
|
# @param phone_number [String, nil]
|
|
39
39
|
#
|
|
@@ -24,8 +24,8 @@ module Dodopayments
|
|
|
24
24
|
# @!attribute metadata
|
|
25
25
|
# Additional metadata associated with the customer
|
|
26
26
|
#
|
|
27
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
28
|
-
optional :metadata, Dodopayments::Internal::Type::HashOf[
|
|
27
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
28
|
+
optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
29
29
|
|
|
30
30
|
# @!attribute phone_number
|
|
31
31
|
# Phone number of the customer
|
|
@@ -40,7 +40,7 @@ module Dodopayments
|
|
|
40
40
|
#
|
|
41
41
|
# @param name [String] Full name of the customer
|
|
42
42
|
#
|
|
43
|
-
# @param metadata [Hash{Symbol=>String}] Additional metadata associated with the customer
|
|
43
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata associated with the customer
|
|
44
44
|
#
|
|
45
45
|
# @param phone_number [String, nil] Phone number of the customer
|
|
46
46
|
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::Customers#list_entitlement_grants
|
|
6
|
+
class CustomerListEntitlementGrantsParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute customer_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :customer_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute integration_type
|
|
16
|
+
# Filter by integration type (e.g. `feature_flag`)
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, Dodopayments::Models::CustomerListEntitlementGrantsParams::IntegrationType, nil]
|
|
19
|
+
optional :integration_type,
|
|
20
|
+
enum: -> { Dodopayments::CustomerListEntitlementGrantsParams::IntegrationType }
|
|
21
|
+
|
|
22
|
+
# @!attribute page_number
|
|
23
|
+
# Page number (default 0)
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :page_number, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute page_size
|
|
29
|
+
# Page size (default 10, max 100)
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
optional :page_size, Integer
|
|
33
|
+
|
|
34
|
+
# @!attribute status
|
|
35
|
+
# Filter by grant status
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Dodopayments::Models::CustomerListEntitlementGrantsParams::Status, nil]
|
|
38
|
+
optional :status, enum: -> { Dodopayments::CustomerListEntitlementGrantsParams::Status }
|
|
39
|
+
|
|
40
|
+
# @!method initialize(customer_id:, integration_type: nil, page_number: nil, page_size: nil, status: nil, request_options: {})
|
|
41
|
+
# @param customer_id [String]
|
|
42
|
+
#
|
|
43
|
+
# @param integration_type [Symbol, Dodopayments::Models::CustomerListEntitlementGrantsParams::IntegrationType] Filter by integration type (e.g. `feature_flag`)
|
|
44
|
+
#
|
|
45
|
+
# @param page_number [Integer] Page number (default 0)
|
|
46
|
+
#
|
|
47
|
+
# @param page_size [Integer] Page size (default 10, max 100)
|
|
48
|
+
#
|
|
49
|
+
# @param status [Symbol, Dodopayments::Models::CustomerListEntitlementGrantsParams::Status] Filter by grant status
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
|
|
53
|
+
# Filter by integration type (e.g. `feature_flag`)
|
|
54
|
+
module IntegrationType
|
|
55
|
+
extend Dodopayments::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
DISCORD = :discord
|
|
58
|
+
TELEGRAM = :telegram
|
|
59
|
+
GITHUB = :github
|
|
60
|
+
FIGMA = :figma
|
|
61
|
+
FRAMER = :framer
|
|
62
|
+
NOTION = :notion
|
|
63
|
+
DIGITAL_FILES = :digital_files
|
|
64
|
+
LICENSE_KEY = :license_key
|
|
65
|
+
FEATURE_FLAG = :feature_flag
|
|
66
|
+
|
|
67
|
+
# @!method self.values
|
|
68
|
+
# @return [Array<Symbol>]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Filter by grant status
|
|
72
|
+
module Status
|
|
73
|
+
extend Dodopayments::Internal::Type::Enum
|
|
74
|
+
|
|
75
|
+
PENDING = :Pending
|
|
76
|
+
DELIVERED = :Delivered
|
|
77
|
+
FAILED = :Failed
|
|
78
|
+
REVOKED = :Revoked
|
|
79
|
+
|
|
80
|
+
# @!method self.values
|
|
81
|
+
# @return [Array<Symbol>]
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -20,8 +20,10 @@ module Dodopayments
|
|
|
20
20
|
# @!attribute metadata
|
|
21
21
|
# Additional metadata for the customer
|
|
22
22
|
#
|
|
23
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
24
|
-
optional :metadata,
|
|
23
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
24
|
+
optional :metadata,
|
|
25
|
+
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
|
|
26
|
+
nil?: true
|
|
25
27
|
|
|
26
28
|
# @!attribute name
|
|
27
29
|
#
|
|
@@ -38,7 +40,7 @@ module Dodopayments
|
|
|
38
40
|
#
|
|
39
41
|
# @param email [String, nil]
|
|
40
42
|
#
|
|
41
|
-
# @param metadata [Hash{Symbol=>String}, nil] Additional metadata for the customer
|
|
43
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}, nil] Additional metadata for the customer
|
|
42
44
|
#
|
|
43
45
|
# @param name [String, nil]
|
|
44
46
|
#
|
|
@@ -35,9 +35,10 @@ module Dodopayments
|
|
|
35
35
|
required :discount_id, String
|
|
36
36
|
|
|
37
37
|
# @!attribute metadata
|
|
38
|
+
# Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
38
39
|
#
|
|
39
|
-
# @return [Hash{Symbol=>String}]
|
|
40
|
-
required :metadata, Dodopayments::Internal::Type::HashOf[
|
|
40
|
+
# @return [Hash{Symbol=>String, Float, Boolean}]
|
|
41
|
+
required :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
41
42
|
|
|
42
43
|
# @!attribute preserve_on_plan_change
|
|
43
44
|
# Whether this discount should be preserved when a subscription changes plans.
|
|
@@ -104,7 +105,7 @@ module Dodopayments
|
|
|
104
105
|
#
|
|
105
106
|
# @param discount_id [String] The unique discount ID
|
|
106
107
|
#
|
|
107
|
-
# @param metadata [Hash{Symbol=>String}]
|
|
108
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
108
109
|
#
|
|
109
110
|
# @param preserve_on_plan_change [Boolean] Whether this discount should be preserved when a subscription changes plans.
|
|
110
111
|
#
|
|
@@ -40,8 +40,8 @@ module Dodopayments
|
|
|
40
40
|
# @!attribute metadata
|
|
41
41
|
# Additional metadata for the discount
|
|
42
42
|
#
|
|
43
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
44
|
-
optional :metadata, Dodopayments::Internal::Type::HashOf[
|
|
43
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
44
|
+
optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
45
45
|
|
|
46
46
|
# @!attribute name
|
|
47
47
|
#
|
|
@@ -87,7 +87,7 @@ module Dodopayments
|
|
|
87
87
|
#
|
|
88
88
|
# @param expires_at [Time, nil] When the discount expires, if ever.
|
|
89
89
|
#
|
|
90
|
-
# @param metadata [Hash{Symbol=>String}] Additional metadata for the discount
|
|
90
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata for the discount
|
|
91
91
|
#
|
|
92
92
|
# @param name [String, nil]
|
|
93
93
|
#
|
|
@@ -36,8 +36,8 @@ module Dodopayments
|
|
|
36
36
|
# @!attribute metadata
|
|
37
37
|
# Additional metadata
|
|
38
38
|
#
|
|
39
|
-
# @return [Hash{Symbol=>String}]
|
|
40
|
-
required :metadata, Dodopayments::Internal::Type::HashOf[
|
|
39
|
+
# @return [Hash{Symbol=>String, Float, Boolean}]
|
|
40
|
+
required :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
41
41
|
|
|
42
42
|
# @!attribute position
|
|
43
43
|
# Position of this discount in the stack (0-based)
|
|
@@ -117,7 +117,7 @@ module Dodopayments
|
|
|
117
117
|
#
|
|
118
118
|
# @param discount_id [String] The unique discount ID
|
|
119
119
|
#
|
|
120
|
-
# @param metadata [Hash{Symbol=>String}] Additional metadata
|
|
120
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata
|
|
121
121
|
#
|
|
122
122
|
# @param position [Integer] Position of this discount in the stack (0-based)
|
|
123
123
|
#
|
|
@@ -35,8 +35,10 @@ module Dodopayments
|
|
|
35
35
|
# @!attribute metadata
|
|
36
36
|
# Additional metadata for the discount
|
|
37
37
|
#
|
|
38
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
39
|
-
optional :metadata,
|
|
38
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
39
|
+
optional :metadata,
|
|
40
|
+
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
|
|
41
|
+
nil?: true
|
|
40
42
|
|
|
41
43
|
# @!attribute name
|
|
42
44
|
#
|
|
@@ -88,7 +90,7 @@ module Dodopayments
|
|
|
88
90
|
#
|
|
89
91
|
# @param expires_at [Time, nil]
|
|
90
92
|
#
|
|
91
|
-
# @param metadata [Hash{Symbol=>String}, nil] Additional metadata for the discount
|
|
93
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}, nil] Additional metadata for the discount
|
|
92
94
|
#
|
|
93
95
|
# @param name [String, nil]
|
|
94
96
|
#
|
|
@@ -26,7 +26,7 @@ module Dodopayments
|
|
|
26
26
|
# Integration-specific configuration. For `digital_files` entitlements this
|
|
27
27
|
# includes presigned download URLs for each attached file.
|
|
28
28
|
#
|
|
29
|
-
# @return [Dodopayments::Models::IntegrationConfigResponse::GitHubConfig, Dodopayments::Models::IntegrationConfigResponse::DiscordConfig, Dodopayments::Models::IntegrationConfigResponse::TelegramConfig, Dodopayments::Models::IntegrationConfigResponse::FigmaConfig, Dodopayments::Models::IntegrationConfigResponse::FramerConfig, Dodopayments::Models::IntegrationConfigResponse::NotionConfig, Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig, Dodopayments::Models::IntegrationConfigResponse::LicenseKeyConfig]
|
|
29
|
+
# @return [Dodopayments::Models::IntegrationConfigResponse::FeatureFlagConfig, Dodopayments::Models::IntegrationConfigResponse::GitHubConfig, Dodopayments::Models::IntegrationConfigResponse::DiscordConfig, Dodopayments::Models::IntegrationConfigResponse::TelegramConfig, Dodopayments::Models::IntegrationConfigResponse::FigmaConfig, Dodopayments::Models::IntegrationConfigResponse::FramerConfig, Dodopayments::Models::IntegrationConfigResponse::NotionConfig, Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig, Dodopayments::Models::IntegrationConfigResponse::LicenseKeyConfig]
|
|
30
30
|
required :integration_config, union: -> { Dodopayments::IntegrationConfigResponse }
|
|
31
31
|
|
|
32
32
|
# @!attribute integration_type
|
|
@@ -45,8 +45,8 @@ module Dodopayments
|
|
|
45
45
|
# @!attribute metadata
|
|
46
46
|
# Arbitrary key-value metadata supplied at creation or via PATCH.
|
|
47
47
|
#
|
|
48
|
-
# @return [Hash{Symbol=>String}]
|
|
49
|
-
required :metadata, Dodopayments::Internal::Type::HashOf[
|
|
48
|
+
# @return [Hash{Symbol=>String, Float, Boolean}]
|
|
49
|
+
required :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
50
50
|
|
|
51
51
|
# @!attribute name
|
|
52
52
|
# Display name supplied at creation.
|
|
@@ -79,13 +79,13 @@ module Dodopayments
|
|
|
79
79
|
#
|
|
80
80
|
# @param created_at [Time] Timestamp when the entitlement was created.
|
|
81
81
|
#
|
|
82
|
-
# @param integration_config [Dodopayments::Models::IntegrationConfigResponse::GitHubConfig, Dodopayments::Models::IntegrationConfigResponse::DiscordConfig, Dodopayments::Models::IntegrationConfigResponse::TelegramConfig, Dodopayments::Models::IntegrationConfigResponse::FigmaConfig, Dodopayments::Models::IntegrationConfigResponse::FramerConfig, Dodopayments::Models::IntegrationConfigResponse::NotionConfig, Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig, Dodopayments::Models::IntegrationConfigResponse::LicenseKeyConfig] Integration-specific configuration. For `digital_files` entitlements
|
|
82
|
+
# @param integration_config [Dodopayments::Models::IntegrationConfigResponse::FeatureFlagConfig, Dodopayments::Models::IntegrationConfigResponse::GitHubConfig, Dodopayments::Models::IntegrationConfigResponse::DiscordConfig, Dodopayments::Models::IntegrationConfigResponse::TelegramConfig, Dodopayments::Models::IntegrationConfigResponse::FigmaConfig, Dodopayments::Models::IntegrationConfigResponse::FramerConfig, Dodopayments::Models::IntegrationConfigResponse::NotionConfig, Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig, Dodopayments::Models::IntegrationConfigResponse::LicenseKeyConfig] Integration-specific configuration. For `digital_files` entitlements
|
|
83
83
|
#
|
|
84
84
|
# @param integration_type [Symbol, Dodopayments::Models::EntitlementIntegrationType] Platform integration this entitlement uses.
|
|
85
85
|
#
|
|
86
86
|
# @param is_active [Boolean] Always `true` for entitlements returned by the public API;
|
|
87
87
|
#
|
|
88
|
-
# @param metadata [Hash{Symbol=>String}] Arbitrary key-value metadata supplied at creation or via PATCH.
|
|
88
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Arbitrary key-value metadata supplied at creation or via PATCH.
|
|
89
89
|
#
|
|
90
90
|
# @param name [String] Display name supplied at creation.
|
|
91
91
|
#
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
# @!attribute integration_config
|
|
11
11
|
# Platform-specific configuration (validated per integration_type)
|
|
12
12
|
#
|
|
13
|
-
# @return [Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig]
|
|
13
|
+
# @return [Dodopayments::Models::IntegrationConfig::FeatureFlagConfig, Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig]
|
|
14
14
|
required :integration_config, union: -> { Dodopayments::IntegrationConfig }
|
|
15
15
|
|
|
16
16
|
# @!attribute integration_type
|
|
@@ -34,11 +34,11 @@ module Dodopayments
|
|
|
34
34
|
# @!attribute metadata
|
|
35
35
|
# Additional metadata for the entitlement
|
|
36
36
|
#
|
|
37
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
38
|
-
optional :metadata, Dodopayments::Internal::Type::HashOf[
|
|
37
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
38
|
+
optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }
|
|
39
39
|
|
|
40
40
|
# @!method initialize(integration_config:, integration_type:, name:, description: nil, metadata: nil, request_options: {})
|
|
41
|
-
# @param integration_config [Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig] Platform-specific configuration (validated per integration_type)
|
|
41
|
+
# @param integration_config [Dodopayments::Models::IntegrationConfig::FeatureFlagConfig, Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig] Platform-specific configuration (validated per integration_type)
|
|
42
42
|
#
|
|
43
43
|
# @param integration_type [Symbol, Dodopayments::Models::EntitlementIntegrationType] Which platform integration this entitlement uses
|
|
44
44
|
#
|
|
@@ -46,7 +46,7 @@ module Dodopayments
|
|
|
46
46
|
#
|
|
47
47
|
# @param description [String, nil] Optional description
|
|
48
48
|
#
|
|
49
|
-
# @param metadata [Hash{Symbol=>String}] Additional metadata for the entitlement
|
|
49
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata for the entitlement
|
|
50
50
|
#
|
|
51
51
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
52
52
|
end
|
|
@@ -21,13 +21,20 @@ module Dodopayments
|
|
|
21
21
|
# Integration-specific configuration supplied when creating or updating an
|
|
22
22
|
# entitlement. The shape required matches the entitlement's `integration_type`.
|
|
23
23
|
#
|
|
24
|
-
#
|
|
24
|
+
# Untagged enum: variants are matched in order. `FeatureFlag` must precede
|
|
25
|
+
# `LicenseKey`, whose fields are all optional and would otherwise match a
|
|
26
|
+
# `feature_flag` config.
|
|
27
|
+
#
|
|
28
|
+
# @return [Dodopayments::Models::IntegrationConfig::FeatureFlagConfig, Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig, nil]
|
|
25
29
|
optional :integration_config, union: -> { Dodopayments::IntegrationConfig }, nil?: true
|
|
26
30
|
|
|
27
31
|
# @!attribute metadata
|
|
32
|
+
# Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
28
33
|
#
|
|
29
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
30
|
-
optional :metadata,
|
|
34
|
+
# @return [Hash{Symbol=>String, Float, Boolean}, nil]
|
|
35
|
+
optional :metadata,
|
|
36
|
+
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
|
|
37
|
+
nil?: true
|
|
31
38
|
|
|
32
39
|
# @!attribute name
|
|
33
40
|
#
|
|
@@ -42,9 +49,9 @@ module Dodopayments
|
|
|
42
49
|
#
|
|
43
50
|
# @param description [String, nil]
|
|
44
51
|
#
|
|
45
|
-
# @param integration_config [Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig, nil] Integration-specific configuration supplied when creating or updating
|
|
52
|
+
# @param integration_config [Dodopayments::Models::IntegrationConfig::FeatureFlagConfig, Dodopayments::Models::IntegrationConfig::GitHubConfig, Dodopayments::Models::IntegrationConfig::DiscordConfig, Dodopayments::Models::IntegrationConfig::TelegramConfig, Dodopayments::Models::IntegrationConfig::FigmaConfig, Dodopayments::Models::IntegrationConfig::FramerConfig, Dodopayments::Models::IntegrationConfig::NotionConfig, Dodopayments::Models::IntegrationConfig::DigitalFilesConfig, Dodopayments::Models::IntegrationConfig::LicenseKeyConfig, nil] Integration-specific configuration supplied when creating or updating
|
|
46
53
|
#
|
|
47
|
-
# @param metadata [Hash{Symbol=>String}, nil]
|
|
54
|
+
# @param metadata [Hash{Symbol=>String, Float, Boolean}, nil] Arbitrary key-value metadata. Values can be string, integer, number, or boolean.
|
|
48
55
|
#
|
|
49
56
|
# @param name [String, nil]
|
|
50
57
|
#
|