dodopayments 2.17.1 → 2.18.1
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/credit_entitlement.rb +2 -1
- data/lib/dodopayments/models/credit_entitlement_cart_response.rb +2 -1
- data/lib/dodopayments/models/credit_entitlements/credit_ledger_entry.rb +14 -1
- data/lib/dodopayments/models/entitlements/grant_fulfill_license_key_params.rb +53 -0
- data/lib/dodopayments/models/license_key_duration.rb +3 -1
- data/lib/dodopayments/models/metadata.rb +8 -0
- data/lib/dodopayments/models/payment.rb +2 -2
- data/lib/dodopayments/models/payment_method_types.rb +1 -0
- data/lib/dodopayments/models/product.rb +3 -17
- data/lib/dodopayments/models/product_create_params.rb +3 -16
- data/lib/dodopayments/models/product_list_response.rb +3 -17
- data/lib/dodopayments/models/product_update_params.rb +3 -16
- data/lib/dodopayments/models/products/list_localized_prices_response.rb +18 -0
- data/lib/dodopayments/models/products/localized_price.rb +75 -0
- data/lib/dodopayments/models/products/localized_price_archive_params.rb +28 -0
- data/lib/dodopayments/models/products/localized_price_create_params.rb +51 -0
- data/lib/dodopayments/models/products/localized_price_list_params.rb +22 -0
- data/lib/dodopayments/models/products/localized_price_retrieve_params.rb +28 -0
- data/lib/dodopayments/models/products/localized_price_update_params.rb +42 -0
- data/lib/dodopayments/models/products/pricing_mode.rb +17 -0
- data/lib/dodopayments/models/subscription_update_params.rb +12 -1
- data/lib/dodopayments/models/time_interval.rb +1 -0
- data/lib/dodopayments/models.rb +3 -0
- data/lib/dodopayments/resources/entitlements/grants.rb +35 -0
- data/lib/dodopayments/resources/products/localized_prices.rb +144 -0
- data/lib/dodopayments/resources/products.rb +6 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +11 -0
- data/rbi/dodopayments/models/attach_addon.rbi +6 -1
- data/rbi/dodopayments/models/checkout_session_flags.rbi +17 -0
- 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/credit_ledger_entry.rbi +12 -0
- data/rbi/dodopayments/models/entitlements/grant_fulfill_license_key_params.rbi +74 -0
- data/rbi/dodopayments/models/license_key_duration.rbi +6 -1
- data/rbi/dodopayments/models/metadata.rbi +11 -0
- data/rbi/dodopayments/models/payment.rbi +2 -2
- data/rbi/dodopayments/models/payment_method_types.rbi +2 -0
- data/rbi/dodopayments/models/product.rbi +4 -26
- data/rbi/dodopayments/models/product_create_params.rbi +3 -43
- data/rbi/dodopayments/models/product_list_response.rbi +3 -47
- data/rbi/dodopayments/models/product_update_params.rbi +3 -43
- data/rbi/dodopayments/models/products/list_localized_prices_response.rbi +36 -0
- data/rbi/dodopayments/models/products/localized_price.rbi +98 -0
- data/rbi/dodopayments/models/products/localized_price_archive_params.rbi +48 -0
- data/rbi/dodopayments/models/products/localized_price_create_params.rbi +72 -0
- data/rbi/dodopayments/models/products/localized_price_list_params.rbi +43 -0
- data/rbi/dodopayments/models/products/localized_price_retrieve_params.rbi +48 -0
- data/rbi/dodopayments/models/products/localized_price_update_params.rbi +62 -0
- data/rbi/dodopayments/models/products/pricing_mode.rbi +28 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +2 -0
- data/rbi/dodopayments/models/time_interval.rbi +1 -0
- data/rbi/dodopayments/models.rbi +6 -0
- data/rbi/dodopayments/resources/entitlements/grants.rbi +28 -0
- data/rbi/dodopayments/resources/products/localized_prices.rbi +103 -0
- data/rbi/dodopayments/resources/products.rbi +5 -2
- data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +4 -4
- data/sig/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rbs +4 -4
- data/sig/dodopayments/models/credit_entitlements/balance_list_grants_response.rbs +4 -4
- data/sig/dodopayments/models/credit_entitlements/credit_ledger_entry.rbs +5 -0
- data/sig/dodopayments/models/customer.rbs +7 -5
- data/sig/dodopayments/models/customer_create_params.rbs +7 -5
- data/sig/dodopayments/models/customer_limited_details.rbs +7 -5
- data/sig/dodopayments/models/customer_update_params.rbs +4 -4
- data/sig/dodopayments/models/discount.rbs +4 -4
- data/sig/dodopayments/models/discount_create_params.rbs +7 -5
- data/sig/dodopayments/models/discount_detail.rbs +4 -4
- data/sig/dodopayments/models/discount_update_params.rbs +4 -4
- data/sig/dodopayments/models/entitlement.rbs +4 -4
- data/sig/dodopayments/models/entitlement_create_params.rbs +7 -5
- data/sig/dodopayments/models/entitlement_update_params.rbs +4 -4
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +4 -4
- data/sig/dodopayments/models/entitlements/grant_fulfill_license_key_params.rbs +43 -0
- data/sig/dodopayments/models/metadata.rbs +7 -0
- data/sig/dodopayments/models/payment.rbs +4 -4
- data/sig/dodopayments/models/payment_create_params.rbs +7 -5
- data/sig/dodopayments/models/payment_create_response.rbs +4 -4
- data/sig/dodopayments/models/payment_list_response.rbs +4 -4
- data/sig/dodopayments/models/payment_method_types.rbs +2 -0
- data/sig/dodopayments/models/product.rbs +8 -19
- data/sig/dodopayments/models/product_create_params.rbs +11 -20
- data/sig/dodopayments/models/product_list_response.rbs +8 -19
- data/sig/dodopayments/models/product_update_params.rbs +8 -19
- data/sig/dodopayments/models/products/list_localized_prices_response.rbs +20 -0
- data/sig/dodopayments/models/products/localized_price.rbs +57 -0
- data/sig/dodopayments/models/products/localized_price_archive_params.rbs +30 -0
- data/sig/dodopayments/models/products/localized_price_create_params.rbs +43 -0
- data/sig/dodopayments/models/products/localized_price_list_params.rbs +26 -0
- data/sig/dodopayments/models/products/localized_price_retrieve_params.rbs +30 -0
- data/sig/dodopayments/models/products/localized_price_update_params.rbs +34 -0
- data/sig/dodopayments/models/products/pricing_mode.rbs +16 -0
- data/sig/dodopayments/models/refund.rbs +4 -4
- data/sig/dodopayments/models/refund_create_params.rbs +7 -5
- data/sig/dodopayments/models/subscription.rbs +4 -4
- data/sig/dodopayments/models/subscription_charge_params.rbs +4 -4
- data/sig/dodopayments/models/subscription_create_params.rbs +7 -5
- data/sig/dodopayments/models/subscription_create_response.rbs +4 -4
- data/sig/dodopayments/models/subscription_list_response.rbs +4 -4
- data/sig/dodopayments/models/subscription_update_params.rbs +4 -4
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +4 -4
- data/sig/dodopayments/models.rbs +2 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -2
- data/sig/dodopayments/resources/credit_entitlements/balances.rbs +1 -1
- data/sig/dodopayments/resources/customers.rbs +2 -2
- data/sig/dodopayments/resources/discounts.rbs +2 -2
- data/sig/dodopayments/resources/entitlements/grants.rbs +8 -0
- data/sig/dodopayments/resources/entitlements.rbs +2 -2
- data/sig/dodopayments/resources/payments.rbs +1 -1
- data/sig/dodopayments/resources/products/localized_prices.rbs +41 -0
- data/sig/dodopayments/resources/products.rbs +6 -4
- data/sig/dodopayments/resources/refunds.rbs +1 -1
- data/sig/dodopayments/resources/subscriptions.rbs +5 -5
- metadata +35 -2
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
amount: Integer?,
|
|
7
7
|
code: String?,
|
|
8
8
|
expires_at: Time?,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata?,
|
|
10
10
|
name: String?,
|
|
11
11
|
preserve_on_plan_change: bool?,
|
|
12
12
|
restricted_to: ::Array[String]?,
|
|
@@ -28,7 +28,7 @@ module Dodopayments
|
|
|
28
28
|
|
|
29
29
|
attr_accessor expires_at: Time?
|
|
30
30
|
|
|
31
|
-
attr_accessor metadata: ::
|
|
31
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
32
32
|
|
|
33
33
|
attr_accessor name: String?
|
|
34
34
|
|
|
@@ -47,7 +47,7 @@ module Dodopayments
|
|
|
47
47
|
?amount: Integer?,
|
|
48
48
|
?code: String?,
|
|
49
49
|
?expires_at: Time?,
|
|
50
|
-
?metadata: ::
|
|
50
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
51
51
|
?name: String?,
|
|
52
52
|
?preserve_on_plan_change: bool?,
|
|
53
53
|
?restricted_to: ::Array[String]?,
|
|
@@ -62,7 +62,7 @@ module Dodopayments
|
|
|
62
62
|
amount: Integer?,
|
|
63
63
|
code: String?,
|
|
64
64
|
expires_at: Time?,
|
|
65
|
-
metadata: ::
|
|
65
|
+
metadata: Dodopayments::Models::metadata?,
|
|
66
66
|
name: String?,
|
|
67
67
|
preserve_on_plan_change: bool?,
|
|
68
68
|
restricted_to: ::Array[String]?,
|
|
@@ -8,7 +8,7 @@ module Dodopayments
|
|
|
8
8
|
integration_config: Dodopayments::Models::integration_config_response,
|
|
9
9
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
10
10
|
is_active: bool,
|
|
11
|
-
metadata: ::
|
|
11
|
+
metadata: Dodopayments::Models::metadata,
|
|
12
12
|
name: String,
|
|
13
13
|
updated_at: Time,
|
|
14
14
|
description: String?
|
|
@@ -27,7 +27,7 @@ module Dodopayments
|
|
|
27
27
|
|
|
28
28
|
attr_accessor is_active: bool
|
|
29
29
|
|
|
30
|
-
attr_accessor metadata: ::
|
|
30
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
31
31
|
|
|
32
32
|
attr_accessor name: String
|
|
33
33
|
|
|
@@ -42,7 +42,7 @@ module Dodopayments
|
|
|
42
42
|
integration_config: Dodopayments::Models::integration_config_response,
|
|
43
43
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
44
44
|
is_active: bool,
|
|
45
|
-
metadata: ::
|
|
45
|
+
metadata: Dodopayments::Models::metadata,
|
|
46
46
|
name: String,
|
|
47
47
|
updated_at: Time,
|
|
48
48
|
?description: String?
|
|
@@ -55,7 +55,7 @@ module Dodopayments
|
|
|
55
55
|
integration_config: Dodopayments::Models::integration_config_response,
|
|
56
56
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
57
57
|
is_active: bool,
|
|
58
|
-
metadata: ::
|
|
58
|
+
metadata: Dodopayments::Models::metadata,
|
|
59
59
|
name: String,
|
|
60
60
|
updated_at: Time,
|
|
61
61
|
description: String?
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
7
7
|
name: String,
|
|
8
8
|
description: String?,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata
|
|
10
10
|
}
|
|
11
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
12
12
|
|
|
@@ -22,16 +22,18 @@ module Dodopayments
|
|
|
22
22
|
|
|
23
23
|
attr_accessor description: String?
|
|
24
24
|
|
|
25
|
-
attr_reader metadata: ::
|
|
25
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
26
26
|
|
|
27
|
-
def metadata=: (
|
|
27
|
+
def metadata=: (
|
|
28
|
+
Dodopayments::Models::metadata
|
|
29
|
+
) -> Dodopayments::Models::metadata
|
|
28
30
|
|
|
29
31
|
def initialize: (
|
|
30
32
|
integration_config: Dodopayments::Models::integration_config,
|
|
31
33
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
32
34
|
name: String,
|
|
33
35
|
?description: String?,
|
|
34
|
-
?metadata: ::
|
|
36
|
+
?metadata: Dodopayments::Models::metadata,
|
|
35
37
|
?request_options: Dodopayments::request_opts
|
|
36
38
|
) -> void
|
|
37
39
|
|
|
@@ -40,7 +42,7 @@ module Dodopayments
|
|
|
40
42
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
41
43
|
name: String,
|
|
42
44
|
description: String?,
|
|
43
|
-
metadata: ::
|
|
45
|
+
metadata: Dodopayments::Models::metadata,
|
|
44
46
|
request_options: Dodopayments::RequestOptions
|
|
45
47
|
}
|
|
46
48
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
id: String,
|
|
6
6
|
description: String?,
|
|
7
7
|
integration_config: Dodopayments::Models::integration_config?,
|
|
8
|
-
metadata: ::
|
|
8
|
+
metadata: Dodopayments::Models::metadata?,
|
|
9
9
|
name: String?
|
|
10
10
|
}
|
|
11
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
@@ -20,7 +20,7 @@ module Dodopayments
|
|
|
20
20
|
|
|
21
21
|
attr_accessor integration_config: Dodopayments::Models::integration_config?
|
|
22
22
|
|
|
23
|
-
attr_accessor metadata: ::
|
|
23
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
24
24
|
|
|
25
25
|
attr_accessor name: String?
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ module Dodopayments
|
|
|
28
28
|
id: String,
|
|
29
29
|
?description: String?,
|
|
30
30
|
?integration_config: Dodopayments::Models::integration_config?,
|
|
31
|
-
?metadata: ::
|
|
31
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
32
32
|
?name: String?,
|
|
33
33
|
?request_options: Dodopayments::request_opts
|
|
34
34
|
) -> void
|
|
@@ -37,7 +37,7 @@ module Dodopayments
|
|
|
37
37
|
id: String,
|
|
38
38
|
description: String?,
|
|
39
39
|
integration_config: Dodopayments::Models::integration_config?,
|
|
40
|
-
metadata: ::
|
|
40
|
+
metadata: Dodopayments::Models::metadata?,
|
|
41
41
|
name: String?,
|
|
42
42
|
request_options: Dodopayments::RequestOptions
|
|
43
43
|
}
|
|
@@ -12,7 +12,7 @@ module Dodopayments
|
|
|
12
12
|
customer_id: String,
|
|
13
13
|
entitlement_id: String,
|
|
14
14
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
15
|
-
metadata: ::
|
|
15
|
+
metadata: Dodopayments::Models::metadata,
|
|
16
16
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
17
17
|
updated_at: Time,
|
|
18
18
|
delivered_at: Time?,
|
|
@@ -43,7 +43,7 @@ module Dodopayments
|
|
|
43
43
|
|
|
44
44
|
attr_accessor integration_type: Dodopayments::Models::entitlement_integration_type
|
|
45
45
|
|
|
46
|
-
attr_accessor metadata: ::
|
|
46
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
47
47
|
|
|
48
48
|
attr_accessor status: Dodopayments::Models::Entitlements::EntitlementGrant::status
|
|
49
49
|
|
|
@@ -79,7 +79,7 @@ module Dodopayments
|
|
|
79
79
|
customer_id: String,
|
|
80
80
|
entitlement_id: String,
|
|
81
81
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
82
|
-
metadata: ::
|
|
82
|
+
metadata: Dodopayments::Models::metadata,
|
|
83
83
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
84
84
|
updated_at: Time,
|
|
85
85
|
?delivered_at: Time?,
|
|
@@ -103,7 +103,7 @@ module Dodopayments
|
|
|
103
103
|
customer_id: String,
|
|
104
104
|
entitlement_id: String,
|
|
105
105
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
106
|
-
metadata: ::
|
|
106
|
+
metadata: Dodopayments::Models::metadata,
|
|
107
107
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
108
108
|
updated_at: Time,
|
|
109
109
|
delivered_at: Time?,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
module Entitlements
|
|
4
|
+
type grant_fulfill_license_key_params =
|
|
5
|
+
{
|
|
6
|
+
grant_id: String,
|
|
7
|
+
key: String,
|
|
8
|
+
activations_limit: Integer?,
|
|
9
|
+
expires_at: Time?
|
|
10
|
+
}
|
|
11
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class GrantFulfillLicenseKeyParams < Dodopayments::Internal::Type::BaseModel
|
|
14
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor grant_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor key: String
|
|
20
|
+
|
|
21
|
+
attr_accessor activations_limit: Integer?
|
|
22
|
+
|
|
23
|
+
attr_accessor expires_at: Time?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
grant_id: String,
|
|
27
|
+
key: String,
|
|
28
|
+
?activations_limit: Integer?,
|
|
29
|
+
?expires_at: Time?,
|
|
30
|
+
?request_options: Dodopayments::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
grant_id: String,
|
|
35
|
+
key: String,
|
|
36
|
+
activations_limit: Integer?,
|
|
37
|
+
expires_at: Time?,
|
|
38
|
+
request_options: Dodopayments::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
11
11
|
digital_products_delivered: bool,
|
|
12
12
|
disputes: ::Array[Dodopayments::Dispute],
|
|
13
|
-
metadata: ::
|
|
13
|
+
metadata: Dodopayments::Models::metadata,
|
|
14
14
|
payment_id: String,
|
|
15
15
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
16
16
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
@@ -60,7 +60,7 @@ module Dodopayments
|
|
|
60
60
|
|
|
61
61
|
attr_accessor disputes: ::Array[Dodopayments::Dispute]
|
|
62
62
|
|
|
63
|
-
attr_accessor metadata: ::
|
|
63
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
64
64
|
|
|
65
65
|
attr_accessor payment_id: String
|
|
66
66
|
|
|
@@ -131,7 +131,7 @@ module Dodopayments
|
|
|
131
131
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
132
132
|
digital_products_delivered: bool,
|
|
133
133
|
disputes: ::Array[Dodopayments::Dispute],
|
|
134
|
-
metadata: ::
|
|
134
|
+
metadata: Dodopayments::Models::metadata,
|
|
135
135
|
payment_id: String,
|
|
136
136
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
137
137
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
@@ -173,7 +173,7 @@ module Dodopayments
|
|
|
173
173
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
174
174
|
digital_products_delivered: bool,
|
|
175
175
|
disputes: ::Array[Dodopayments::Dispute],
|
|
176
|
-
metadata: ::
|
|
176
|
+
metadata: Dodopayments::Models::metadata,
|
|
177
177
|
payment_id: String,
|
|
178
178
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
179
179
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
@@ -12,7 +12,7 @@ module Dodopayments
|
|
|
12
12
|
discount_code: String?,
|
|
13
13
|
discount_codes: ::Array[String]?,
|
|
14
14
|
:force_3ds => bool?,
|
|
15
|
-
metadata: ::
|
|
15
|
+
metadata: Dodopayments::Models::metadata,
|
|
16
16
|
payment_link: bool?,
|
|
17
17
|
payment_method_id: String?,
|
|
18
18
|
redirect_immediately: bool,
|
|
@@ -48,9 +48,11 @@ module Dodopayments
|
|
|
48
48
|
|
|
49
49
|
attr_accessor force_3ds: bool?
|
|
50
50
|
|
|
51
|
-
attr_reader metadata: ::
|
|
51
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
52
52
|
|
|
53
|
-
def metadata=: (
|
|
53
|
+
def metadata=: (
|
|
54
|
+
Dodopayments::Models::metadata
|
|
55
|
+
) -> Dodopayments::Models::metadata
|
|
54
56
|
|
|
55
57
|
attr_accessor payment_link: bool?
|
|
56
58
|
|
|
@@ -85,7 +87,7 @@ module Dodopayments
|
|
|
85
87
|
?discount_code: String?,
|
|
86
88
|
?discount_codes: ::Array[String]?,
|
|
87
89
|
?force_3ds: bool?,
|
|
88
|
-
?metadata: ::
|
|
90
|
+
?metadata: Dodopayments::Models::metadata,
|
|
89
91
|
?payment_link: bool?,
|
|
90
92
|
?payment_method_id: String?,
|
|
91
93
|
?redirect_immediately: bool,
|
|
@@ -108,7 +110,7 @@ module Dodopayments
|
|
|
108
110
|
discount_code: String?,
|
|
109
111
|
discount_codes: ::Array[String]?,
|
|
110
112
|
:force_3ds => bool?,
|
|
111
|
-
metadata: ::
|
|
113
|
+
metadata: Dodopayments::Models::metadata,
|
|
112
114
|
payment_link: bool?,
|
|
113
115
|
payment_method_id: String?,
|
|
114
116
|
redirect_immediately: bool,
|
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
client_secret: String,
|
|
6
6
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
7
|
-
metadata: ::
|
|
7
|
+
metadata: Dodopayments::Models::metadata,
|
|
8
8
|
payment_id: String,
|
|
9
9
|
total_amount: Integer,
|
|
10
10
|
discount_id: String?,
|
|
@@ -19,7 +19,7 @@ module Dodopayments
|
|
|
19
19
|
|
|
20
20
|
attr_accessor customer: Dodopayments::CustomerLimitedDetails
|
|
21
21
|
|
|
22
|
-
attr_accessor metadata: ::
|
|
22
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
23
23
|
|
|
24
24
|
attr_accessor payment_id: String
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ module Dodopayments
|
|
|
38
38
|
def initialize: (
|
|
39
39
|
client_secret: String,
|
|
40
40
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
41
|
-
metadata: ::
|
|
41
|
+
metadata: Dodopayments::Models::metadata,
|
|
42
42
|
payment_id: String,
|
|
43
43
|
total_amount: Integer,
|
|
44
44
|
?discount_id: String?,
|
|
@@ -51,7 +51,7 @@ module Dodopayments
|
|
|
51
51
|
def to_hash: -> {
|
|
52
52
|
client_secret: String,
|
|
53
53
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
54
|
-
metadata: ::
|
|
54
|
+
metadata: Dodopayments::Models::metadata,
|
|
55
55
|
payment_id: String,
|
|
56
56
|
total_amount: Integer,
|
|
57
57
|
discount_id: String?,
|
|
@@ -8,7 +8,7 @@ module Dodopayments
|
|
|
8
8
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
9
9
|
digital_products_delivered: bool,
|
|
10
10
|
has_license_key: bool,
|
|
11
|
-
metadata: ::
|
|
11
|
+
metadata: Dodopayments::Models::metadata,
|
|
12
12
|
payment_id: String,
|
|
13
13
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
14
14
|
total_amount: Integer,
|
|
@@ -37,7 +37,7 @@ module Dodopayments
|
|
|
37
37
|
|
|
38
38
|
attr_accessor has_license_key: bool
|
|
39
39
|
|
|
40
|
-
attr_accessor metadata: ::
|
|
40
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
41
41
|
|
|
42
42
|
attr_accessor payment_id: String
|
|
43
43
|
|
|
@@ -72,7 +72,7 @@ module Dodopayments
|
|
|
72
72
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
73
73
|
digital_products_delivered: bool,
|
|
74
74
|
has_license_key: bool,
|
|
75
|
-
metadata: ::
|
|
75
|
+
metadata: Dodopayments::Models::metadata,
|
|
76
76
|
payment_id: String,
|
|
77
77
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
78
78
|
total_amount: Integer,
|
|
@@ -95,7 +95,7 @@ module Dodopayments
|
|
|
95
95
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
96
96
|
digital_products_delivered: bool,
|
|
97
97
|
has_license_key: bool,
|
|
98
|
-
metadata: ::
|
|
98
|
+
metadata: Dodopayments::Models::metadata,
|
|
99
99
|
payment_id: String,
|
|
100
100
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
101
101
|
total_amount: Integer,
|
|
@@ -106,6 +106,7 @@ module Dodopayments
|
|
|
106
106
|
| :revolut_pay
|
|
107
107
|
| :naver_pay
|
|
108
108
|
| :payco
|
|
109
|
+
| :satispay
|
|
109
110
|
|
|
110
111
|
module PaymentMethodTypes
|
|
111
112
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -215,6 +216,7 @@ module Dodopayments
|
|
|
215
216
|
REVOLUT_PAY: :revolut_pay
|
|
216
217
|
NAVER_PAY: :naver_pay
|
|
217
218
|
PAYCO: :payco
|
|
219
|
+
SATISPAY: :satispay
|
|
218
220
|
|
|
219
221
|
def self?.values: -> ::Array[Dodopayments::Models::payment_method_types]
|
|
220
222
|
end
|
|
@@ -9,7 +9,7 @@ module Dodopayments
|
|
|
9
9
|
entitlements: ::Array[Dodopayments::ProductEntitlementSummary],
|
|
10
10
|
is_recurring: bool,
|
|
11
11
|
license_key_enabled: bool,
|
|
12
|
-
metadata: ::
|
|
12
|
+
metadata: Dodopayments::Models::metadata,
|
|
13
13
|
price: Dodopayments::Models::price,
|
|
14
14
|
product_id: String,
|
|
15
15
|
tax_category: Dodopayments::Models::tax_category,
|
|
@@ -22,7 +22,7 @@ module Dodopayments
|
|
|
22
22
|
license_key_activations_limit: Integer?,
|
|
23
23
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
24
24
|
name: String?,
|
|
25
|
-
pricing_mode: Dodopayments::Models::
|
|
25
|
+
pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
26
26
|
product_collection_id: String?
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -41,7 +41,7 @@ module Dodopayments
|
|
|
41
41
|
|
|
42
42
|
attr_accessor license_key_enabled: bool
|
|
43
43
|
|
|
44
|
-
attr_accessor metadata: ::
|
|
44
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
45
45
|
|
|
46
46
|
attr_accessor price: Dodopayments::Models::price
|
|
47
47
|
|
|
@@ -67,7 +67,7 @@ module Dodopayments
|
|
|
67
67
|
|
|
68
68
|
attr_accessor name: String?
|
|
69
69
|
|
|
70
|
-
attr_accessor pricing_mode: Dodopayments::Models::
|
|
70
|
+
attr_accessor pricing_mode: Dodopayments::Models::Products::pricing_mode?
|
|
71
71
|
|
|
72
72
|
attr_accessor product_collection_id: String?
|
|
73
73
|
|
|
@@ -79,7 +79,7 @@ module Dodopayments
|
|
|
79
79
|
entitlements: ::Array[Dodopayments::ProductEntitlementSummary],
|
|
80
80
|
is_recurring: bool,
|
|
81
81
|
license_key_enabled: bool,
|
|
82
|
-
metadata: ::
|
|
82
|
+
metadata: Dodopayments::Models::metadata,
|
|
83
83
|
price: Dodopayments::Models::price,
|
|
84
84
|
product_id: String,
|
|
85
85
|
tax_category: Dodopayments::Models::tax_category,
|
|
@@ -92,7 +92,7 @@ module Dodopayments
|
|
|
92
92
|
?license_key_activations_limit: Integer?,
|
|
93
93
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
94
94
|
?name: String?,
|
|
95
|
-
?pricing_mode: Dodopayments::Models::
|
|
95
|
+
?pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
96
96
|
?product_collection_id: String?
|
|
97
97
|
) -> void
|
|
98
98
|
|
|
@@ -104,7 +104,7 @@ module Dodopayments
|
|
|
104
104
|
entitlements: ::Array[Dodopayments::ProductEntitlementSummary],
|
|
105
105
|
is_recurring: bool,
|
|
106
106
|
license_key_enabled: bool,
|
|
107
|
-
metadata: ::
|
|
107
|
+
metadata: Dodopayments::Models::metadata,
|
|
108
108
|
price: Dodopayments::Models::price,
|
|
109
109
|
product_id: String,
|
|
110
110
|
tax_category: Dodopayments::Models::tax_category,
|
|
@@ -117,20 +117,9 @@ module Dodopayments
|
|
|
117
117
|
license_key_activations_limit: Integer?,
|
|
118
118
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
119
119
|
name: String?,
|
|
120
|
-
pricing_mode: Dodopayments::Models::
|
|
120
|
+
pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
121
121
|
product_collection_id: String?
|
|
122
122
|
}
|
|
123
|
-
|
|
124
|
-
type pricing_mode = :by_currency | :by_country
|
|
125
|
-
|
|
126
|
-
module PricingMode
|
|
127
|
-
extend Dodopayments::Internal::Type::Enum
|
|
128
|
-
|
|
129
|
-
BY_CURRENCY: :by_currency
|
|
130
|
-
BY_COUNTRY: :by_country
|
|
131
|
-
|
|
132
|
-
def self?.values: -> ::Array[Dodopayments::Models::Product::pricing_mode]
|
|
133
|
-
end
|
|
134
123
|
end
|
|
135
124
|
end
|
|
136
125
|
end
|
|
@@ -15,8 +15,8 @@ module Dodopayments
|
|
|
15
15
|
license_key_activations_limit: Integer?,
|
|
16
16
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
17
17
|
license_key_enabled: bool?,
|
|
18
|
-
metadata: ::
|
|
19
|
-
pricing_mode: Dodopayments::Models::
|
|
18
|
+
metadata: Dodopayments::Models::metadata,
|
|
19
|
+
pricing_mode: Dodopayments::Models::Products::pricing_mode?
|
|
20
20
|
}
|
|
21
21
|
& Dodopayments::Internal::Type::request_parameters
|
|
22
22
|
|
|
@@ -50,11 +50,13 @@ module Dodopayments
|
|
|
50
50
|
|
|
51
51
|
attr_accessor license_key_enabled: bool?
|
|
52
52
|
|
|
53
|
-
attr_reader metadata: ::
|
|
53
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
54
54
|
|
|
55
|
-
def metadata=: (
|
|
55
|
+
def metadata=: (
|
|
56
|
+
Dodopayments::Models::metadata
|
|
57
|
+
) -> Dodopayments::Models::metadata
|
|
56
58
|
|
|
57
|
-
attr_accessor pricing_mode: Dodopayments::Models::
|
|
59
|
+
attr_accessor pricing_mode: Dodopayments::Models::Products::pricing_mode?
|
|
58
60
|
|
|
59
61
|
def initialize: (
|
|
60
62
|
name: String,
|
|
@@ -70,8 +72,8 @@ module Dodopayments
|
|
|
70
72
|
?license_key_activations_limit: Integer?,
|
|
71
73
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
72
74
|
?license_key_enabled: bool?,
|
|
73
|
-
?metadata: ::
|
|
74
|
-
?pricing_mode: Dodopayments::Models::
|
|
75
|
+
?metadata: Dodopayments::Models::metadata,
|
|
76
|
+
?pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
75
77
|
?request_options: Dodopayments::request_opts
|
|
76
78
|
) -> void
|
|
77
79
|
|
|
@@ -89,8 +91,8 @@ module Dodopayments
|
|
|
89
91
|
license_key_activations_limit: Integer?,
|
|
90
92
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
91
93
|
license_key_enabled: bool?,
|
|
92
|
-
metadata: ::
|
|
93
|
-
pricing_mode: Dodopayments::Models::
|
|
94
|
+
metadata: Dodopayments::Models::metadata,
|
|
95
|
+
pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
94
96
|
request_options: Dodopayments::RequestOptions
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -106,17 +108,6 @@ module Dodopayments
|
|
|
106
108
|
|
|
107
109
|
def to_hash: -> { external_url: String?, instructions: String? }
|
|
108
110
|
end
|
|
109
|
-
|
|
110
|
-
type pricing_mode = :by_currency | :by_country
|
|
111
|
-
|
|
112
|
-
module PricingMode
|
|
113
|
-
extend Dodopayments::Internal::Type::Enum
|
|
114
|
-
|
|
115
|
-
BY_CURRENCY: :by_currency
|
|
116
|
-
BY_COUNTRY: :by_country
|
|
117
|
-
|
|
118
|
-
def self?.values: -> ::Array[Dodopayments::Models::ProductCreateParams::pricing_mode]
|
|
119
|
-
end
|
|
120
111
|
end
|
|
121
112
|
end
|
|
122
113
|
end
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
created_at: Time,
|
|
7
7
|
entitlements: ::Array[Dodopayments::ProductEntitlementSummary],
|
|
8
8
|
is_recurring: bool,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata,
|
|
10
10
|
product_id: String,
|
|
11
11
|
tax_category: Dodopayments::Models::tax_category,
|
|
12
12
|
updated_at: Time,
|
|
@@ -16,7 +16,7 @@ module Dodopayments
|
|
|
16
16
|
name: String?,
|
|
17
17
|
price: Integer?,
|
|
18
18
|
price_detail: Dodopayments::Models::price?,
|
|
19
|
-
pricing_mode: Dodopayments::Models::
|
|
19
|
+
pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
20
20
|
tax_inclusive: bool?
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -29,7 +29,7 @@ module Dodopayments
|
|
|
29
29
|
|
|
30
30
|
attr_accessor is_recurring: bool
|
|
31
31
|
|
|
32
|
-
attr_accessor metadata: ::
|
|
32
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
33
33
|
|
|
34
34
|
attr_accessor product_id: String
|
|
35
35
|
|
|
@@ -49,7 +49,7 @@ module Dodopayments
|
|
|
49
49
|
|
|
50
50
|
attr_accessor price_detail: Dodopayments::Models::price?
|
|
51
51
|
|
|
52
|
-
attr_accessor pricing_mode: Dodopayments::Models::
|
|
52
|
+
attr_accessor pricing_mode: Dodopayments::Models::Products::pricing_mode?
|
|
53
53
|
|
|
54
54
|
attr_accessor tax_inclusive: bool?
|
|
55
55
|
|
|
@@ -58,7 +58,7 @@ module Dodopayments
|
|
|
58
58
|
created_at: Time,
|
|
59
59
|
entitlements: ::Array[Dodopayments::ProductEntitlementSummary],
|
|
60
60
|
is_recurring: bool,
|
|
61
|
-
metadata: ::
|
|
61
|
+
metadata: Dodopayments::Models::metadata,
|
|
62
62
|
product_id: String,
|
|
63
63
|
tax_category: Dodopayments::Models::tax_category,
|
|
64
64
|
updated_at: Time,
|
|
@@ -68,7 +68,7 @@ module Dodopayments
|
|
|
68
68
|
?name: String?,
|
|
69
69
|
?price: Integer?,
|
|
70
70
|
?price_detail: Dodopayments::Models::price?,
|
|
71
|
-
?pricing_mode: Dodopayments::Models::
|
|
71
|
+
?pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
72
72
|
?tax_inclusive: bool?
|
|
73
73
|
) -> void
|
|
74
74
|
|
|
@@ -77,7 +77,7 @@ module Dodopayments
|
|
|
77
77
|
created_at: Time,
|
|
78
78
|
entitlements: ::Array[Dodopayments::ProductEntitlementSummary],
|
|
79
79
|
is_recurring: bool,
|
|
80
|
-
metadata: ::
|
|
80
|
+
metadata: Dodopayments::Models::metadata,
|
|
81
81
|
product_id: String,
|
|
82
82
|
tax_category: Dodopayments::Models::tax_category,
|
|
83
83
|
updated_at: Time,
|
|
@@ -87,20 +87,9 @@ module Dodopayments
|
|
|
87
87
|
name: String?,
|
|
88
88
|
price: Integer?,
|
|
89
89
|
price_detail: Dodopayments::Models::price?,
|
|
90
|
-
pricing_mode: Dodopayments::Models::
|
|
90
|
+
pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
91
91
|
tax_inclusive: bool?
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
type pricing_mode = :by_currency | :by_country
|
|
95
|
-
|
|
96
|
-
module PricingMode
|
|
97
|
-
extend Dodopayments::Internal::Type::Enum
|
|
98
|
-
|
|
99
|
-
BY_CURRENCY: :by_currency
|
|
100
|
-
BY_COUNTRY: :by_country
|
|
101
|
-
|
|
102
|
-
def self?.values: -> ::Array[Dodopayments::Models::ProductListResponse::pricing_mode]
|
|
103
|
-
end
|
|
104
93
|
end
|
|
105
94
|
end
|
|
106
95
|
end
|