dodopayments 2.17.1 → 2.18.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 +8 -0
- data/README.md +1 -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/metadata.rb +8 -0
- 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.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/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/metadata.rbi +11 -0
- 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.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_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
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
payment_id: String,
|
|
6
6
|
items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
7
|
-
metadata: ::
|
|
7
|
+
metadata: Dodopayments::Models::metadata,
|
|
8
8
|
reason: String?
|
|
9
9
|
}
|
|
10
10
|
& Dodopayments::Internal::Type::request_parameters
|
|
@@ -17,16 +17,18 @@ module Dodopayments
|
|
|
17
17
|
|
|
18
18
|
attr_accessor items: ::Array[Dodopayments::RefundCreateParams::Item]?
|
|
19
19
|
|
|
20
|
-
attr_reader metadata: ::
|
|
20
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
21
21
|
|
|
22
|
-
def metadata=: (
|
|
22
|
+
def metadata=: (
|
|
23
|
+
Dodopayments::Models::metadata
|
|
24
|
+
) -> Dodopayments::Models::metadata
|
|
23
25
|
|
|
24
26
|
attr_accessor reason: String?
|
|
25
27
|
|
|
26
28
|
def initialize: (
|
|
27
29
|
payment_id: String,
|
|
28
30
|
?items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
29
|
-
?metadata: ::
|
|
31
|
+
?metadata: Dodopayments::Models::metadata,
|
|
30
32
|
?reason: String?,
|
|
31
33
|
?request_options: Dodopayments::request_opts
|
|
32
34
|
) -> void
|
|
@@ -34,7 +36,7 @@ module Dodopayments
|
|
|
34
36
|
def to_hash: -> {
|
|
35
37
|
payment_id: String,
|
|
36
38
|
items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
37
|
-
metadata: ::
|
|
39
|
+
metadata: Dodopayments::Models::metadata,
|
|
38
40
|
reason: String?,
|
|
39
41
|
request_options: Dodopayments::RequestOptions
|
|
40
42
|
}
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
credit_entitlement_cart: ::Array[Dodopayments::CreditEntitlementCartResponse],
|
|
11
11
|
currency: Dodopayments::Models::currency,
|
|
12
12
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
13
|
-
metadata: ::
|
|
13
|
+
metadata: Dodopayments::Models::metadata,
|
|
14
14
|
meter_credit_entitlement_cart: ::Array[Dodopayments::MeterCreditEntitlementCartResponse],
|
|
15
15
|
meters: ::Array[Dodopayments::MeterCartResponseItem],
|
|
16
16
|
next_billing_date: Time,
|
|
@@ -58,7 +58,7 @@ module Dodopayments
|
|
|
58
58
|
|
|
59
59
|
attr_accessor customer: Dodopayments::CustomerLimitedDetails
|
|
60
60
|
|
|
61
|
-
attr_accessor metadata: ::
|
|
61
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
62
62
|
|
|
63
63
|
attr_accessor meter_credit_entitlement_cart: ::Array[Dodopayments::MeterCreditEntitlementCartResponse]
|
|
64
64
|
|
|
@@ -125,7 +125,7 @@ module Dodopayments
|
|
|
125
125
|
credit_entitlement_cart: ::Array[Dodopayments::CreditEntitlementCartResponse],
|
|
126
126
|
currency: Dodopayments::Models::currency,
|
|
127
127
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
128
|
-
metadata: ::
|
|
128
|
+
metadata: Dodopayments::Models::metadata,
|
|
129
129
|
meter_credit_entitlement_cart: ::Array[Dodopayments::MeterCreditEntitlementCartResponse],
|
|
130
130
|
meters: ::Array[Dodopayments::MeterCartResponseItem],
|
|
131
131
|
next_billing_date: Time,
|
|
@@ -165,7 +165,7 @@ module Dodopayments
|
|
|
165
165
|
credit_entitlement_cart: ::Array[Dodopayments::CreditEntitlementCartResponse],
|
|
166
166
|
currency: Dodopayments::Models::currency,
|
|
167
167
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
168
|
-
metadata: ::
|
|
168
|
+
metadata: Dodopayments::Models::metadata,
|
|
169
169
|
meter_credit_entitlement_cart: ::Array[Dodopayments::MeterCreditEntitlementCartResponse],
|
|
170
170
|
meters: ::Array[Dodopayments::MeterCartResponseItem],
|
|
171
171
|
next_billing_date: Time,
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
product_price: Integer,
|
|
7
7
|
adaptive_currency_fees_inclusive: bool?,
|
|
8
8
|
customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
9
|
-
metadata: ::
|
|
9
|
+
metadata: Dodopayments::Models::metadata?,
|
|
10
10
|
product_currency: Dodopayments::Models::currency?,
|
|
11
11
|
product_description: String?
|
|
12
12
|
}
|
|
@@ -24,7 +24,7 @@ module Dodopayments
|
|
|
24
24
|
|
|
25
25
|
attr_accessor customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?
|
|
26
26
|
|
|
27
|
-
attr_accessor metadata: ::
|
|
27
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
28
28
|
|
|
29
29
|
attr_accessor product_currency: Dodopayments::Models::currency?
|
|
30
30
|
|
|
@@ -35,7 +35,7 @@ module Dodopayments
|
|
|
35
35
|
product_price: Integer,
|
|
36
36
|
?adaptive_currency_fees_inclusive: bool?,
|
|
37
37
|
?customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
38
|
-
?metadata: ::
|
|
38
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
39
39
|
?product_currency: Dodopayments::Models::currency?,
|
|
40
40
|
?product_description: String?,
|
|
41
41
|
?request_options: Dodopayments::request_opts
|
|
@@ -46,7 +46,7 @@ module Dodopayments
|
|
|
46
46
|
product_price: Integer,
|
|
47
47
|
adaptive_currency_fees_inclusive: bool?,
|
|
48
48
|
customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
49
|
-
metadata: ::
|
|
49
|
+
metadata: Dodopayments::Models::metadata?,
|
|
50
50
|
product_currency: Dodopayments::Models::currency?,
|
|
51
51
|
product_description: String?,
|
|
52
52
|
request_options: Dodopayments::RequestOptions
|
|
@@ -14,7 +14,7 @@ module Dodopayments
|
|
|
14
14
|
discount_codes: ::Array[String]?,
|
|
15
15
|
:force_3ds => bool?,
|
|
16
16
|
mandate_min_amount_inr_paise: Integer?,
|
|
17
|
-
metadata: ::
|
|
17
|
+
metadata: Dodopayments::Models::metadata,
|
|
18
18
|
on_demand: Dodopayments::OnDemandSubscription?,
|
|
19
19
|
one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
20
20
|
payment_link: bool?,
|
|
@@ -57,9 +57,11 @@ module Dodopayments
|
|
|
57
57
|
|
|
58
58
|
attr_accessor mandate_min_amount_inr_paise: Integer?
|
|
59
59
|
|
|
60
|
-
attr_reader metadata: ::
|
|
60
|
+
attr_reader metadata: Dodopayments::Models::metadata?
|
|
61
61
|
|
|
62
|
-
def metadata=: (
|
|
62
|
+
def metadata=: (
|
|
63
|
+
Dodopayments::Models::metadata
|
|
64
|
+
) -> Dodopayments::Models::metadata
|
|
63
65
|
|
|
64
66
|
attr_accessor on_demand: Dodopayments::OnDemandSubscription?
|
|
65
67
|
|
|
@@ -102,7 +104,7 @@ module Dodopayments
|
|
|
102
104
|
?discount_codes: ::Array[String]?,
|
|
103
105
|
?force_3ds: bool?,
|
|
104
106
|
?mandate_min_amount_inr_paise: Integer?,
|
|
105
|
-
?metadata: ::
|
|
107
|
+
?metadata: Dodopayments::Models::metadata,
|
|
106
108
|
?on_demand: Dodopayments::OnDemandSubscription?,
|
|
107
109
|
?one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
108
110
|
?payment_link: bool?,
|
|
@@ -130,7 +132,7 @@ module Dodopayments
|
|
|
130
132
|
discount_codes: ::Array[String]?,
|
|
131
133
|
:force_3ds => bool?,
|
|
132
134
|
mandate_min_amount_inr_paise: Integer?,
|
|
133
|
-
metadata: ::
|
|
135
|
+
metadata: Dodopayments::Models::metadata,
|
|
134
136
|
on_demand: Dodopayments::OnDemandSubscription?,
|
|
135
137
|
one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
136
138
|
payment_link: bool?,
|
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
{
|
|
5
5
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
6
6
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
7
|
-
metadata: ::
|
|
7
|
+
metadata: Dodopayments::Models::metadata,
|
|
8
8
|
payment_id: String,
|
|
9
9
|
recurring_pre_tax_amount: Integer,
|
|
10
10
|
subscription_id: String,
|
|
@@ -21,7 +21,7 @@ module Dodopayments
|
|
|
21
21
|
|
|
22
22
|
attr_accessor customer: Dodopayments::CustomerLimitedDetails
|
|
23
23
|
|
|
24
|
-
attr_accessor metadata: ::
|
|
24
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
25
25
|
|
|
26
26
|
attr_accessor payment_id: String
|
|
27
27
|
|
|
@@ -44,7 +44,7 @@ module Dodopayments
|
|
|
44
44
|
def initialize: (
|
|
45
45
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
46
46
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
47
|
-
metadata: ::
|
|
47
|
+
metadata: Dodopayments::Models::metadata,
|
|
48
48
|
payment_id: String,
|
|
49
49
|
recurring_pre_tax_amount: Integer,
|
|
50
50
|
subscription_id: String,
|
|
@@ -59,7 +59,7 @@ module Dodopayments
|
|
|
59
59
|
def to_hash: -> {
|
|
60
60
|
addons: ::Array[Dodopayments::AddonCartResponseItem],
|
|
61
61
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
62
|
-
metadata: ::
|
|
62
|
+
metadata: Dodopayments::Models::metadata,
|
|
63
63
|
payment_id: String,
|
|
64
64
|
recurring_pre_tax_amount: Integer,
|
|
65
65
|
subscription_id: String,
|
|
@@ -8,7 +8,7 @@ module Dodopayments
|
|
|
8
8
|
currency: Dodopayments::Models::currency,
|
|
9
9
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
10
10
|
discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount],
|
|
11
|
-
metadata: ::
|
|
11
|
+
metadata: Dodopayments::Models::metadata,
|
|
12
12
|
next_billing_date: Time,
|
|
13
13
|
on_demand: bool,
|
|
14
14
|
payment_frequency_count: Integer,
|
|
@@ -46,7 +46,7 @@ module Dodopayments
|
|
|
46
46
|
|
|
47
47
|
attr_accessor discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount]
|
|
48
48
|
|
|
49
|
-
attr_accessor metadata: ::
|
|
49
|
+
attr_accessor metadata: Dodopayments::Models::metadata
|
|
50
50
|
|
|
51
51
|
attr_accessor next_billing_date: Time
|
|
52
52
|
|
|
@@ -99,7 +99,7 @@ module Dodopayments
|
|
|
99
99
|
currency: Dodopayments::Models::currency,
|
|
100
100
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
101
101
|
discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount],
|
|
102
|
-
metadata: ::
|
|
102
|
+
metadata: Dodopayments::Models::metadata,
|
|
103
103
|
next_billing_date: Time,
|
|
104
104
|
on_demand: bool,
|
|
105
105
|
payment_frequency_count: Integer,
|
|
@@ -131,7 +131,7 @@ module Dodopayments
|
|
|
131
131
|
currency: Dodopayments::Models::currency,
|
|
132
132
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
133
133
|
discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount],
|
|
134
|
-
metadata: ::
|
|
134
|
+
metadata: Dodopayments::Models::metadata,
|
|
135
135
|
next_billing_date: Time,
|
|
136
136
|
on_demand: bool,
|
|
137
137
|
payment_frequency_count: Integer,
|
|
@@ -12,7 +12,7 @@ module Dodopayments
|
|
|
12
12
|
customer_business_name: String?,
|
|
13
13
|
customer_name: String?,
|
|
14
14
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
15
|
-
metadata: ::
|
|
15
|
+
metadata: Dodopayments::Models::metadata?,
|
|
16
16
|
next_billing_date: Time?,
|
|
17
17
|
status: Dodopayments::Models::subscription_status?,
|
|
18
18
|
tax_id: String?
|
|
@@ -43,7 +43,7 @@ module Dodopayments
|
|
|
43
43
|
|
|
44
44
|
attr_accessor disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?
|
|
45
45
|
|
|
46
|
-
attr_accessor metadata: ::
|
|
46
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
47
47
|
|
|
48
48
|
attr_accessor next_billing_date: Time?
|
|
49
49
|
|
|
@@ -62,7 +62,7 @@ module Dodopayments
|
|
|
62
62
|
?customer_business_name: String?,
|
|
63
63
|
?customer_name: String?,
|
|
64
64
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
65
|
-
?metadata: ::
|
|
65
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
66
66
|
?next_billing_date: Time?,
|
|
67
67
|
?status: Dodopayments::Models::subscription_status?,
|
|
68
68
|
?tax_id: String?,
|
|
@@ -80,7 +80,7 @@ module Dodopayments
|
|
|
80
80
|
customer_business_name: String?,
|
|
81
81
|
customer_name: String?,
|
|
82
82
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
83
|
-
metadata: ::
|
|
83
|
+
metadata: Dodopayments::Models::metadata?,
|
|
84
84
|
next_billing_date: Time?,
|
|
85
85
|
status: Dodopayments::Models::subscription_status?,
|
|
86
86
|
tax_id: String?,
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
discount_code: String?,
|
|
11
11
|
discount_codes: ::Array[String]?,
|
|
12
12
|
effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
13
|
-
metadata: ::
|
|
13
|
+
metadata: Dodopayments::Models::metadata?,
|
|
14
14
|
on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -35,7 +35,7 @@ module Dodopayments
|
|
|
35
35
|
Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at
|
|
36
36
|
) -> Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at
|
|
37
37
|
|
|
38
|
-
attr_accessor metadata: ::
|
|
38
|
+
attr_accessor metadata: Dodopayments::Models::metadata?
|
|
39
39
|
|
|
40
40
|
attr_accessor on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?
|
|
41
41
|
|
|
@@ -48,7 +48,7 @@ module Dodopayments
|
|
|
48
48
|
?discount_code: String?,
|
|
49
49
|
?discount_codes: ::Array[String]?,
|
|
50
50
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
51
|
-
?metadata: ::
|
|
51
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
52
52
|
?on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?
|
|
53
53
|
) -> void
|
|
54
54
|
|
|
@@ -61,7 +61,7 @@ module Dodopayments
|
|
|
61
61
|
discount_code: String?,
|
|
62
62
|
discount_codes: ::Array[String]?,
|
|
63
63
|
effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
64
|
-
metadata: ::
|
|
64
|
+
metadata: Dodopayments::Models::metadata?,
|
|
65
65
|
on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?
|
|
66
66
|
}
|
|
67
67
|
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -269,6 +269,8 @@ module Dodopayments
|
|
|
269
269
|
|
|
270
270
|
class LicenseValidateParams = Dodopayments::Models::LicenseValidateParams
|
|
271
271
|
|
|
272
|
+
Metadata: Dodopayments::Internal::Type::Converter
|
|
273
|
+
|
|
272
274
|
class Meter = Dodopayments::Models::Meter
|
|
273
275
|
|
|
274
276
|
class MeterAggregation = Dodopayments::Models::MeterAggregation
|
|
@@ -17,7 +17,7 @@ module Dodopayments
|
|
|
17
17
|
?feature_flags: Dodopayments::CheckoutSessionFlags,
|
|
18
18
|
?force_3ds: bool?,
|
|
19
19
|
?mandate_min_amount_inr_paise: Integer?,
|
|
20
|
-
?metadata: ::
|
|
20
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
21
21
|
?minimal_address: bool,
|
|
22
22
|
?payment_method_id: String?,
|
|
23
23
|
?product_collection_id: String?,
|
|
@@ -50,7 +50,7 @@ module Dodopayments
|
|
|
50
50
|
?feature_flags: Dodopayments::CheckoutSessionFlags,
|
|
51
51
|
?force_3ds: bool?,
|
|
52
52
|
?mandate_min_amount_inr_paise: Integer?,
|
|
53
|
-
?metadata: ::
|
|
53
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
54
54
|
?minimal_address: bool,
|
|
55
55
|
?payment_method_id: String?,
|
|
56
56
|
?product_collection_id: String?,
|
|
@@ -23,7 +23,7 @@ module Dodopayments
|
|
|
23
23
|
entry_type: Dodopayments::Models::CreditEntitlements::ledger_entry_type,
|
|
24
24
|
?expires_at: Time?,
|
|
25
25
|
?idempotency_key: String?,
|
|
26
|
-
?metadata: ::
|
|
26
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
27
27
|
?reason: String?,
|
|
28
28
|
?request_options: Dodopayments::request_opts
|
|
29
29
|
) -> Dodopayments::Models::CreditEntitlements::BalanceCreateLedgerEntryResponse
|
|
@@ -8,7 +8,7 @@ module Dodopayments
|
|
|
8
8
|
def create: (
|
|
9
9
|
email: String,
|
|
10
10
|
name: String,
|
|
11
|
-
?metadata: ::
|
|
11
|
+
?metadata: Dodopayments::Models::metadata,
|
|
12
12
|
?phone_number: String?,
|
|
13
13
|
?request_options: Dodopayments::request_opts
|
|
14
14
|
) -> Dodopayments::Customer
|
|
@@ -21,7 +21,7 @@ module Dodopayments
|
|
|
21
21
|
def update: (
|
|
22
22
|
String customer_id,
|
|
23
23
|
?email: String?,
|
|
24
|
-
?metadata: ::
|
|
24
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
25
25
|
?name: String?,
|
|
26
26
|
?phone_number: String?,
|
|
27
27
|
?request_options: Dodopayments::request_opts
|
|
@@ -6,7 +6,7 @@ module Dodopayments
|
|
|
6
6
|
type: Dodopayments::Models::discount_type,
|
|
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]?,
|
|
@@ -25,7 +25,7 @@ module Dodopayments
|
|
|
25
25
|
?amount: Integer?,
|
|
26
26
|
?code: String?,
|
|
27
27
|
?expires_at: Time?,
|
|
28
|
-
?metadata: ::
|
|
28
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
29
29
|
?name: String?,
|
|
30
30
|
?preserve_on_plan_change: bool?,
|
|
31
31
|
?restricted_to: ::Array[String]?,
|
|
@@ -11,6 +11,14 @@ module Dodopayments
|
|
|
11
11
|
?request_options: Dodopayments::request_opts
|
|
12
12
|
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Entitlements::EntitlementGrant]
|
|
13
13
|
|
|
14
|
+
def fulfill_license_key: (
|
|
15
|
+
String grant_id,
|
|
16
|
+
key: String,
|
|
17
|
+
?activations_limit: Integer?,
|
|
18
|
+
?expires_at: Time?,
|
|
19
|
+
?request_options: Dodopayments::request_opts
|
|
20
|
+
) -> Dodopayments::Entitlements::EntitlementGrant
|
|
21
|
+
|
|
14
22
|
def revoke: (
|
|
15
23
|
String grant_id,
|
|
16
24
|
id: String,
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
11
11
|
name: String,
|
|
12
12
|
?description: String?,
|
|
13
|
-
?metadata: ::
|
|
13
|
+
?metadata: Dodopayments::Models::metadata,
|
|
14
14
|
?request_options: Dodopayments::request_opts
|
|
15
15
|
) -> Dodopayments::Entitlement
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@ module Dodopayments
|
|
|
23
23
|
String id,
|
|
24
24
|
?description: String?,
|
|
25
25
|
?integration_config: Dodopayments::Models::integration_config?,
|
|
26
|
-
?metadata: ::
|
|
26
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
27
27
|
?name: String?,
|
|
28
28
|
?request_options: Dodopayments::request_opts
|
|
29
29
|
) -> Dodopayments::Entitlement
|
|
@@ -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,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Resources
|
|
3
|
+
class Products
|
|
4
|
+
class LocalizedPrices
|
|
5
|
+
def create: (
|
|
6
|
+
String product_id,
|
|
7
|
+
amount: Integer,
|
|
8
|
+
currency: Dodopayments::Models::currency,
|
|
9
|
+
?country_code: Dodopayments::Models::country_code?,
|
|
10
|
+
?request_options: Dodopayments::request_opts
|
|
11
|
+
) -> Dodopayments::Products::LocalizedPrice
|
|
12
|
+
|
|
13
|
+
def retrieve: (
|
|
14
|
+
String id,
|
|
15
|
+
product_id: String,
|
|
16
|
+
?request_options: Dodopayments::request_opts
|
|
17
|
+
) -> Dodopayments::Products::LocalizedPrice
|
|
18
|
+
|
|
19
|
+
def update: (
|
|
20
|
+
String id,
|
|
21
|
+
product_id: String,
|
|
22
|
+
?amount: Integer?,
|
|
23
|
+
?request_options: Dodopayments::request_opts
|
|
24
|
+
) -> Dodopayments::Products::LocalizedPrice
|
|
25
|
+
|
|
26
|
+
def list: (
|
|
27
|
+
String product_id,
|
|
28
|
+
?request_options: Dodopayments::request_opts
|
|
29
|
+
) -> Dodopayments::Products::ListLocalizedPricesResponse
|
|
30
|
+
|
|
31
|
+
def archive: (
|
|
32
|
+
String id,
|
|
33
|
+
product_id: String,
|
|
34
|
+
?request_options: Dodopayments::request_opts
|
|
35
|
+
) -> nil
|
|
36
|
+
|
|
37
|
+
def initialize: (client: Dodopayments::Client) -> void
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -5,6 +5,8 @@ module Dodopayments
|
|
|
5
5
|
|
|
6
6
|
attr_reader short_links: Dodopayments::Resources::Products::ShortLinks
|
|
7
7
|
|
|
8
|
+
attr_reader localized_prices: Dodopayments::Resources::Products::LocalizedPrices
|
|
9
|
+
|
|
8
10
|
def create: (
|
|
9
11
|
name: String,
|
|
10
12
|
price: Dodopayments::Models::price,
|
|
@@ -19,8 +21,8 @@ module Dodopayments
|
|
|
19
21
|
?license_key_activations_limit: Integer?,
|
|
20
22
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
21
23
|
?license_key_enabled: bool?,
|
|
22
|
-
?metadata: ::
|
|
23
|
-
?pricing_mode: Dodopayments::Models::
|
|
24
|
+
?metadata: Dodopayments::Models::metadata,
|
|
25
|
+
?pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
24
26
|
?request_options: Dodopayments::request_opts
|
|
25
27
|
) -> Dodopayments::Product
|
|
26
28
|
|
|
@@ -42,10 +44,10 @@ module Dodopayments
|
|
|
42
44
|
?license_key_activations_limit: Integer?,
|
|
43
45
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
44
46
|
?license_key_enabled: bool?,
|
|
45
|
-
?metadata: ::
|
|
47
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
46
48
|
?name: String?,
|
|
47
49
|
?price: Dodopayments::Models::price?,
|
|
48
|
-
?pricing_mode: Dodopayments::Models::
|
|
50
|
+
?pricing_mode: Dodopayments::Models::Products::pricing_mode?,
|
|
49
51
|
?tax_category: Dodopayments::Models::tax_category?,
|
|
50
52
|
?request_options: Dodopayments::request_opts
|
|
51
53
|
) -> nil
|
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
|
4
4
|
def create: (
|
|
5
5
|
payment_id: String,
|
|
6
6
|
?items: ::Array[Dodopayments::RefundCreateParams::Item]?,
|
|
7
|
-
?metadata: ::
|
|
7
|
+
?metadata: Dodopayments::Models::metadata,
|
|
8
8
|
?reason: String?,
|
|
9
9
|
?request_options: Dodopayments::request_opts
|
|
10
10
|
) -> Dodopayments::Refund
|
|
@@ -14,7 +14,7 @@ module Dodopayments
|
|
|
14
14
|
?discount_codes: ::Array[String]?,
|
|
15
15
|
?force_3ds: bool?,
|
|
16
16
|
?mandate_min_amount_inr_paise: Integer?,
|
|
17
|
-
?metadata: ::
|
|
17
|
+
?metadata: Dodopayments::Models::metadata,
|
|
18
18
|
?on_demand: Dodopayments::OnDemandSubscription?,
|
|
19
19
|
?one_time_product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?,
|
|
20
20
|
?payment_link: bool?,
|
|
@@ -45,7 +45,7 @@ module Dodopayments
|
|
|
45
45
|
?customer_business_name: String?,
|
|
46
46
|
?customer_name: String?,
|
|
47
47
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
|
48
|
-
?metadata: ::
|
|
48
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
49
49
|
?next_billing_date: Time?,
|
|
50
50
|
?status: Dodopayments::Models::subscription_status?,
|
|
51
51
|
?tax_id: String?,
|
|
@@ -79,7 +79,7 @@ module Dodopayments
|
|
|
79
79
|
?discount_code: String?,
|
|
80
80
|
?discount_codes: ::Array[String]?,
|
|
81
81
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
82
|
-
?metadata: ::
|
|
82
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
83
83
|
?on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?,
|
|
84
84
|
?request_options: Dodopayments::request_opts
|
|
85
85
|
) -> nil
|
|
@@ -89,7 +89,7 @@ module Dodopayments
|
|
|
89
89
|
product_price: Integer,
|
|
90
90
|
?adaptive_currency_fees_inclusive: bool?,
|
|
91
91
|
?customer_balance_config: Dodopayments::SubscriptionChargeParams::CustomerBalanceConfig?,
|
|
92
|
-
?metadata: ::
|
|
92
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
93
93
|
?product_currency: Dodopayments::Models::currency?,
|
|
94
94
|
?product_description: String?,
|
|
95
95
|
?request_options: Dodopayments::request_opts
|
|
@@ -105,7 +105,7 @@ module Dodopayments
|
|
|
105
105
|
?discount_code: String?,
|
|
106
106
|
?discount_codes: ::Array[String]?,
|
|
107
107
|
?effective_at: Dodopayments::Models::UpdateSubscriptionPlanReq::effective_at,
|
|
108
|
-
?metadata: ::
|
|
108
|
+
?metadata: Dodopayments::Models::metadata?,
|
|
109
109
|
?on_payment_failure: Dodopayments::Models::UpdateSubscriptionPlanReq::on_payment_failure?,
|
|
110
110
|
?request_options: Dodopayments::request_opts
|
|
111
111
|
) -> Dodopayments::Models::SubscriptionPreviewChangePlanResponse
|