dodopayments 1.56.4 → 1.61.5
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/checkout_session_request.rb +50 -1
- data/lib/dodopayments/models/customer.rb +14 -1
- data/lib/dodopayments/models/customer_create_params.rb +12 -1
- data/lib/dodopayments/models/customer_limited_details.rb +9 -1
- data/lib/dodopayments/models/customer_retrieve_payment_methods_params.rb +14 -0
- data/lib/dodopayments/models/customer_retrieve_payment_methods_response.rb +147 -0
- data/lib/dodopayments/models/customer_update_params.rb +11 -1
- data/lib/dodopayments/models/product_create_params.rb +9 -9
- data/lib/dodopayments/models/subscription.rb +9 -1
- data/lib/dodopayments/models/subscription_list_response.rb +9 -1
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +41 -0
- data/lib/dodopayments/models/subscription_update_payment_method_response.rb +34 -0
- data/lib/dodopayments/models.rb +4 -0
- data/lib/dodopayments/resources/customers.rb +27 -2
- data/lib/dodopayments/resources/products.rb +3 -3
- data/lib/dodopayments/resources/subscriptions.rb +26 -0
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +4 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +63 -0
- data/rbi/dodopayments/models/customer.rbi +11 -0
- data/rbi/dodopayments/models/customer_create_params.rbi +17 -1
- data/rbi/dodopayments/models/customer_limited_details.rbi +11 -0
- data/rbi/dodopayments/models/customer_retrieve_payment_methods_params.rbi +32 -0
- data/rbi/dodopayments/models/customer_retrieve_payment_methods_response.rbi +318 -0
- data/rbi/dodopayments/models/customer_update_params.rbi +13 -1
- data/rbi/dodopayments/models/product_create_params.rbi +8 -8
- data/rbi/dodopayments/models/subscription.rbi +8 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +8 -0
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +91 -0
- data/rbi/dodopayments/models/subscription_update_payment_method_response.rbi +56 -0
- data/rbi/dodopayments/models.rbi +6 -0
- data/rbi/dodopayments/resources/customers.rbi +25 -1
- data/rbi/dodopayments/resources/products.rbi +3 -3
- data/rbi/dodopayments/resources/subscriptions.rbi +20 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +49 -0
- data/sig/dodopayments/models/customer.rbs +7 -0
- data/sig/dodopayments/models/customer_create_params.rbs +12 -1
- data/sig/dodopayments/models/customer_limited_details.rbs +7 -0
- data/sig/dodopayments/models/customer_retrieve_payment_methods_params.rbs +15 -0
- data/sig/dodopayments/models/customer_retrieve_payment_methods_response.rbs +143 -0
- data/sig/dodopayments/models/customer_update_params.rbs +9 -1
- data/sig/dodopayments/models/product_create_params.rbs +6 -6
- data/sig/dodopayments/models/subscription.rbs +5 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +46 -0
- data/sig/dodopayments/models/subscription_update_payment_method_response.rbs +35 -0
- data/sig/dodopayments/models.rbs +4 -0
- data/sig/dodopayments/resources/customers.rbs +7 -0
- data/sig/dodopayments/resources/products.rbs +1 -1
- data/sig/dodopayments/resources/subscriptions.rbs +8 -0
- metadata +14 -2
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type customer_retrieve_payment_methods_response =
|
|
4
|
+
{
|
|
5
|
+
items: ::Array[Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
class CustomerRetrievePaymentMethodsResponse < Dodopayments::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor items: ::Array[Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item]
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
items: ::Array[Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item]
|
|
13
|
+
) -> void
|
|
14
|
+
|
|
15
|
+
def to_hash: -> {
|
|
16
|
+
items: ::Array[Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item]
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type item =
|
|
20
|
+
{
|
|
21
|
+
payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method,
|
|
22
|
+
payment_method_id: String,
|
|
23
|
+
card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?,
|
|
24
|
+
last_used_at: Time?,
|
|
25
|
+
payment_method_type: Dodopayments::Models::payment_method_types?,
|
|
26
|
+
recurring_enabled: bool?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class Item < Dodopayments::Internal::Type::BaseModel
|
|
30
|
+
attr_accessor payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method
|
|
31
|
+
|
|
32
|
+
attr_accessor payment_method_id: String
|
|
33
|
+
|
|
34
|
+
attr_accessor card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?
|
|
35
|
+
|
|
36
|
+
attr_accessor last_used_at: Time?
|
|
37
|
+
|
|
38
|
+
attr_accessor payment_method_type: Dodopayments::Models::payment_method_types?
|
|
39
|
+
|
|
40
|
+
attr_accessor recurring_enabled: bool?
|
|
41
|
+
|
|
42
|
+
def initialize: (
|
|
43
|
+
payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method,
|
|
44
|
+
payment_method_id: String,
|
|
45
|
+
?card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?,
|
|
46
|
+
?last_used_at: Time?,
|
|
47
|
+
?payment_method_type: Dodopayments::Models::payment_method_types?,
|
|
48
|
+
?recurring_enabled: bool?
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method,
|
|
53
|
+
payment_method_id: String,
|
|
54
|
+
card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?,
|
|
55
|
+
last_used_at: Time?,
|
|
56
|
+
payment_method_type: Dodopayments::Models::payment_method_types?,
|
|
57
|
+
recurring_enabled: bool?
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type payment_method =
|
|
61
|
+
:card
|
|
62
|
+
| :card_redirect
|
|
63
|
+
| :pay_later
|
|
64
|
+
| :wallet
|
|
65
|
+
| :bank_redirect
|
|
66
|
+
| :bank_transfer
|
|
67
|
+
| :crypto
|
|
68
|
+
| :bank_debit
|
|
69
|
+
| :reward
|
|
70
|
+
| :real_time_payment
|
|
71
|
+
| :upi
|
|
72
|
+
| :voucher
|
|
73
|
+
| :gift_card
|
|
74
|
+
| :open_banking
|
|
75
|
+
| :mobile_payment
|
|
76
|
+
|
|
77
|
+
module PaymentMethod
|
|
78
|
+
extend Dodopayments::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
CARD: :card
|
|
81
|
+
CARD_REDIRECT: :card_redirect
|
|
82
|
+
PAY_LATER: :pay_later
|
|
83
|
+
WALLET: :wallet
|
|
84
|
+
BANK_REDIRECT: :bank_redirect
|
|
85
|
+
BANK_TRANSFER: :bank_transfer
|
|
86
|
+
CRYPTO: :crypto
|
|
87
|
+
BANK_DEBIT: :bank_debit
|
|
88
|
+
REWARD: :reward
|
|
89
|
+
REAL_TIME_PAYMENT: :real_time_payment
|
|
90
|
+
UPI: :upi
|
|
91
|
+
VOUCHER: :voucher
|
|
92
|
+
GIFT_CARD: :gift_card
|
|
93
|
+
OPEN_BANKING: :open_banking
|
|
94
|
+
MOBILE_PAYMENT: :mobile_payment
|
|
95
|
+
|
|
96
|
+
def self?.values: -> ::Array[Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method]
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
type card =
|
|
100
|
+
{
|
|
101
|
+
card_issuing_country: Dodopayments::Models::country_code?,
|
|
102
|
+
card_network: String?,
|
|
103
|
+
card_type: String?,
|
|
104
|
+
expiry_month: String?,
|
|
105
|
+
expiry_year: String?,
|
|
106
|
+
:last4_digits => String?
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
class Card < Dodopayments::Internal::Type::BaseModel
|
|
110
|
+
attr_accessor card_issuing_country: Dodopayments::Models::country_code?
|
|
111
|
+
|
|
112
|
+
attr_accessor card_network: String?
|
|
113
|
+
|
|
114
|
+
attr_accessor card_type: String?
|
|
115
|
+
|
|
116
|
+
attr_accessor expiry_month: String?
|
|
117
|
+
|
|
118
|
+
attr_accessor expiry_year: String?
|
|
119
|
+
|
|
120
|
+
attr_accessor last4_digits: String?
|
|
121
|
+
|
|
122
|
+
def initialize: (
|
|
123
|
+
?card_issuing_country: Dodopayments::Models::country_code?,
|
|
124
|
+
?card_network: String?,
|
|
125
|
+
?card_type: String?,
|
|
126
|
+
?expiry_month: String?,
|
|
127
|
+
?expiry_year: String?,
|
|
128
|
+
?last4_digits: String?
|
|
129
|
+
) -> void
|
|
130
|
+
|
|
131
|
+
def to_hash: -> {
|
|
132
|
+
card_issuing_country: Dodopayments::Models::country_code?,
|
|
133
|
+
card_network: String?,
|
|
134
|
+
card_type: String?,
|
|
135
|
+
expiry_month: String?,
|
|
136
|
+
expiry_year: String?,
|
|
137
|
+
:last4_digits => String?
|
|
138
|
+
}
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_update_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
metadata: ::Hash[Symbol, String]?,
|
|
6
|
+
name: String?,
|
|
7
|
+
phone_number: String?
|
|
8
|
+
}
|
|
5
9
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
10
|
|
|
7
11
|
class CustomerUpdateParams < Dodopayments::Internal::Type::BaseModel
|
|
8
12
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
13
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
14
|
|
|
15
|
+
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
16
|
+
|
|
11
17
|
attr_accessor name: String?
|
|
12
18
|
|
|
13
19
|
attr_accessor phone_number: String?
|
|
14
20
|
|
|
15
21
|
def initialize: (
|
|
22
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
16
23
|
?name: String?,
|
|
17
24
|
?phone_number: String?,
|
|
18
25
|
?request_options: Dodopayments::request_opts
|
|
19
26
|
) -> void
|
|
20
27
|
|
|
21
28
|
def to_hash: -> {
|
|
29
|
+
metadata: ::Hash[Symbol, String]?,
|
|
22
30
|
name: String?,
|
|
23
31
|
phone_number: String?,
|
|
24
32
|
request_options: Dodopayments::RequestOptions
|
|
@@ -2,6 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type product_create_params =
|
|
4
4
|
{
|
|
5
|
+
name: String,
|
|
5
6
|
price: Dodopayments::Models::price,
|
|
6
7
|
tax_category: Dodopayments::Models::tax_category,
|
|
7
8
|
addons: ::Array[String]?,
|
|
@@ -12,8 +13,7 @@ module Dodopayments
|
|
|
12
13
|
license_key_activations_limit: Integer?,
|
|
13
14
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
14
15
|
license_key_enabled: bool?,
|
|
15
|
-
metadata: ::Hash[Symbol, String]
|
|
16
|
-
name: String?
|
|
16
|
+
metadata: ::Hash[Symbol, String]
|
|
17
17
|
}
|
|
18
18
|
& Dodopayments::Internal::Type::request_parameters
|
|
19
19
|
|
|
@@ -21,6 +21,8 @@ module Dodopayments
|
|
|
21
21
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
22
22
|
include Dodopayments::Internal::Type::RequestParameters
|
|
23
23
|
|
|
24
|
+
attr_accessor name: String
|
|
25
|
+
|
|
24
26
|
attr_accessor price: Dodopayments::Models::price
|
|
25
27
|
|
|
26
28
|
attr_accessor tax_category: Dodopayments::Models::tax_category
|
|
@@ -45,9 +47,8 @@ module Dodopayments
|
|
|
45
47
|
|
|
46
48
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
47
49
|
|
|
48
|
-
attr_accessor name: String?
|
|
49
|
-
|
|
50
50
|
def initialize: (
|
|
51
|
+
name: String,
|
|
51
52
|
price: Dodopayments::Models::price,
|
|
52
53
|
tax_category: Dodopayments::Models::tax_category,
|
|
53
54
|
?addons: ::Array[String]?,
|
|
@@ -59,11 +60,11 @@ module Dodopayments
|
|
|
59
60
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
60
61
|
?license_key_enabled: bool?,
|
|
61
62
|
?metadata: ::Hash[Symbol, String],
|
|
62
|
-
?name: String?,
|
|
63
63
|
?request_options: Dodopayments::request_opts
|
|
64
64
|
) -> void
|
|
65
65
|
|
|
66
66
|
def to_hash: -> {
|
|
67
|
+
name: String,
|
|
67
68
|
price: Dodopayments::Models::price,
|
|
68
69
|
tax_category: Dodopayments::Models::tax_category,
|
|
69
70
|
addons: ::Array[String]?,
|
|
@@ -75,7 +76,6 @@ module Dodopayments
|
|
|
75
76
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
76
77
|
license_key_enabled: bool?,
|
|
77
78
|
metadata: ::Hash[Symbol, String],
|
|
78
|
-
name: String?,
|
|
79
79
|
request_options: Dodopayments::RequestOptions
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -28,6 +28,7 @@ module Dodopayments
|
|
|
28
28
|
discount_cycles_remaining: Integer?,
|
|
29
29
|
discount_id: String?,
|
|
30
30
|
expires_at: Time?,
|
|
31
|
+
payment_method_id: String?,
|
|
31
32
|
tax_id: String?
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -84,6 +85,8 @@ module Dodopayments
|
|
|
84
85
|
|
|
85
86
|
attr_accessor expires_at: Time?
|
|
86
87
|
|
|
88
|
+
attr_accessor payment_method_id: String?
|
|
89
|
+
|
|
87
90
|
attr_accessor tax_id: String?
|
|
88
91
|
|
|
89
92
|
def initialize: (
|
|
@@ -113,6 +116,7 @@ module Dodopayments
|
|
|
113
116
|
?discount_cycles_remaining: Integer?,
|
|
114
117
|
?discount_id: String?,
|
|
115
118
|
?expires_at: Time?,
|
|
119
|
+
?payment_method_id: String?,
|
|
116
120
|
?tax_id: String?
|
|
117
121
|
) -> void
|
|
118
122
|
|
|
@@ -143,6 +147,7 @@ module Dodopayments
|
|
|
143
147
|
discount_cycles_remaining: Integer?,
|
|
144
148
|
discount_id: String?,
|
|
145
149
|
expires_at: Time?,
|
|
150
|
+
payment_method_id: String?,
|
|
146
151
|
tax_id: String?
|
|
147
152
|
}
|
|
148
153
|
|
|
@@ -25,6 +25,7 @@ module Dodopayments
|
|
|
25
25
|
cancelled_at: Time?,
|
|
26
26
|
discount_cycles_remaining: Integer?,
|
|
27
27
|
discount_id: String?,
|
|
28
|
+
payment_method_id: String?,
|
|
28
29
|
tax_id: String?
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -75,6 +76,8 @@ module Dodopayments
|
|
|
75
76
|
|
|
76
77
|
attr_accessor discount_id: String?
|
|
77
78
|
|
|
79
|
+
attr_accessor payment_method_id: String?
|
|
80
|
+
|
|
78
81
|
attr_accessor tax_id: String?
|
|
79
82
|
|
|
80
83
|
def initialize: (
|
|
@@ -101,6 +104,7 @@ module Dodopayments
|
|
|
101
104
|
?cancelled_at: Time?,
|
|
102
105
|
?discount_cycles_remaining: Integer?,
|
|
103
106
|
?discount_id: String?,
|
|
107
|
+
?payment_method_id: String?,
|
|
104
108
|
?tax_id: String?
|
|
105
109
|
) -> void
|
|
106
110
|
|
|
@@ -128,6 +132,7 @@ module Dodopayments
|
|
|
128
132
|
cancelled_at: Time?,
|
|
129
133
|
discount_cycles_remaining: Integer?,
|
|
130
134
|
discount_id: String?,
|
|
135
|
+
payment_method_id: String?,
|
|
131
136
|
tax_id: String?
|
|
132
137
|
}
|
|
133
138
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_update_payment_method_params =
|
|
4
|
+
{
|
|
5
|
+
type: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::type_,
|
|
6
|
+
return_url: String?,
|
|
7
|
+
payment_method_id: String
|
|
8
|
+
}
|
|
9
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class SubscriptionUpdatePaymentMethodParams < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor type: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::type_
|
|
16
|
+
|
|
17
|
+
attr_accessor return_url: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor payment_method_id: String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
type: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::type_,
|
|
23
|
+
payment_method_id: String,
|
|
24
|
+
?return_url: String?,
|
|
25
|
+
?request_options: Dodopayments::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
type: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::type_,
|
|
30
|
+
return_url: String?,
|
|
31
|
+
payment_method_id: String,
|
|
32
|
+
request_options: Dodopayments::RequestOptions
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type type_ = :existing
|
|
36
|
+
|
|
37
|
+
module Type
|
|
38
|
+
extend Dodopayments::Internal::Type::Enum
|
|
39
|
+
|
|
40
|
+
EXISTING: :existing
|
|
41
|
+
|
|
42
|
+
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::type_]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_update_payment_method_response =
|
|
4
|
+
{
|
|
5
|
+
client_secret: String?,
|
|
6
|
+
expires_on: Time?,
|
|
7
|
+
payment_id: String?,
|
|
8
|
+
payment_link: String?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SubscriptionUpdatePaymentMethodResponse < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor client_secret: String?
|
|
13
|
+
|
|
14
|
+
attr_accessor expires_on: Time?
|
|
15
|
+
|
|
16
|
+
attr_accessor payment_id: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor payment_link: String?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?client_secret: String?,
|
|
22
|
+
?expires_on: Time?,
|
|
23
|
+
?payment_id: String?,
|
|
24
|
+
?payment_link: String?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
client_secret: String?,
|
|
29
|
+
expires_on: Time?,
|
|
30
|
+
payment_id: String?,
|
|
31
|
+
payment_link: String?
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -63,6 +63,8 @@ module Dodopayments
|
|
|
63
63
|
|
|
64
64
|
class CustomerRetrieveParams = Dodopayments::Models::CustomerRetrieveParams
|
|
65
65
|
|
|
66
|
+
class CustomerRetrievePaymentMethodsParams = Dodopayments::Models::CustomerRetrievePaymentMethodsParams
|
|
67
|
+
|
|
66
68
|
module Customers = Dodopayments::Models::Customers
|
|
67
69
|
|
|
68
70
|
class CustomerUpdateParams = Dodopayments::Models::CustomerUpdateParams
|
|
@@ -255,6 +257,8 @@ module Dodopayments
|
|
|
255
257
|
|
|
256
258
|
class SubscriptionUpdateParams = Dodopayments::Models::SubscriptionUpdateParams
|
|
257
259
|
|
|
260
|
+
class SubscriptionUpdatePaymentMethodParams = Dodopayments::Models::SubscriptionUpdatePaymentMethodParams
|
|
261
|
+
|
|
258
262
|
module TaxCategory = Dodopayments::Models::TaxCategory
|
|
259
263
|
|
|
260
264
|
module TimeInterval = Dodopayments::Models::TimeInterval
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
def create: (
|
|
9
9
|
email: String,
|
|
10
10
|
name: String,
|
|
11
|
+
?metadata: ::Hash[Symbol, String],
|
|
11
12
|
?phone_number: String?,
|
|
12
13
|
?request_options: Dodopayments::request_opts
|
|
13
14
|
) -> Dodopayments::Customer
|
|
@@ -19,6 +20,7 @@ module Dodopayments
|
|
|
19
20
|
|
|
20
21
|
def update: (
|
|
21
22
|
String customer_id,
|
|
23
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
22
24
|
?name: String?,
|
|
23
25
|
?phone_number: String?,
|
|
24
26
|
?request_options: Dodopayments::request_opts
|
|
@@ -31,6 +33,11 @@ module Dodopayments
|
|
|
31
33
|
?request_options: Dodopayments::request_opts
|
|
32
34
|
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Customer]
|
|
33
35
|
|
|
36
|
+
def retrieve_payment_methods: (
|
|
37
|
+
String customer_id,
|
|
38
|
+
?request_options: Dodopayments::request_opts
|
|
39
|
+
) -> Dodopayments::Models::CustomerRetrievePaymentMethodsResponse
|
|
40
|
+
|
|
34
41
|
def initialize: (client: Dodopayments::Client) -> void
|
|
35
42
|
end
|
|
36
43
|
end
|
|
@@ -4,6 +4,7 @@ module Dodopayments
|
|
|
4
4
|
attr_reader images: Dodopayments::Resources::Products::Images
|
|
5
5
|
|
|
6
6
|
def create: (
|
|
7
|
+
name: String,
|
|
7
8
|
price: Dodopayments::Models::price,
|
|
8
9
|
tax_category: Dodopayments::Models::tax_category,
|
|
9
10
|
?addons: ::Array[String]?,
|
|
@@ -15,7 +16,6 @@ module Dodopayments
|
|
|
15
16
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
16
17
|
?license_key_enabled: bool?,
|
|
17
18
|
?metadata: ::Hash[Symbol, String],
|
|
18
|
-
?name: String?,
|
|
19
19
|
?request_options: Dodopayments::request_opts
|
|
20
20
|
) -> Dodopayments::Product
|
|
21
21
|
|
|
@@ -80,6 +80,14 @@ module Dodopayments
|
|
|
80
80
|
?request_options: Dodopayments::request_opts
|
|
81
81
|
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Models::SubscriptionRetrieveUsageHistoryResponse]
|
|
82
82
|
|
|
83
|
+
def update_payment_method: (
|
|
84
|
+
String subscription_id,
|
|
85
|
+
type: Dodopayments::Models::SubscriptionUpdatePaymentMethodParams::type_,
|
|
86
|
+
payment_method_id: String,
|
|
87
|
+
?return_url: String?,
|
|
88
|
+
?request_options: Dodopayments::request_opts
|
|
89
|
+
) -> Dodopayments::Models::SubscriptionUpdatePaymentMethodResponse
|
|
90
|
+
|
|
83
91
|
def initialize: (client: Dodopayments::Client) -> void
|
|
84
92
|
end
|
|
85
93
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dodopayments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.61.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dodo Payments
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -92,6 +92,8 @@ files:
|
|
|
92
92
|
- lib/dodopayments/models/customer_portal_session.rb
|
|
93
93
|
- lib/dodopayments/models/customer_request.rb
|
|
94
94
|
- lib/dodopayments/models/customer_retrieve_params.rb
|
|
95
|
+
- lib/dodopayments/models/customer_retrieve_payment_methods_params.rb
|
|
96
|
+
- lib/dodopayments/models/customer_retrieve_payment_methods_response.rb
|
|
95
97
|
- lib/dodopayments/models/customer_update_params.rb
|
|
96
98
|
- lib/dodopayments/models/customers/customer_portal_create_params.rb
|
|
97
99
|
- lib/dodopayments/models/customers/customer_wallet.rb
|
|
@@ -211,6 +213,8 @@ files:
|
|
|
211
213
|
- lib/dodopayments/models/subscription_retrieve_usage_history_response.rb
|
|
212
214
|
- lib/dodopayments/models/subscription_status.rb
|
|
213
215
|
- lib/dodopayments/models/subscription_update_params.rb
|
|
216
|
+
- lib/dodopayments/models/subscription_update_payment_method_params.rb
|
|
217
|
+
- lib/dodopayments/models/subscription_update_payment_method_response.rb
|
|
214
218
|
- lib/dodopayments/models/tax_category.rb
|
|
215
219
|
- lib/dodopayments/models/time_interval.rb
|
|
216
220
|
- lib/dodopayments/models/unsafe_unwrap_webhook_event.rb
|
|
@@ -319,6 +323,8 @@ files:
|
|
|
319
323
|
- rbi/dodopayments/models/customer_portal_session.rbi
|
|
320
324
|
- rbi/dodopayments/models/customer_request.rbi
|
|
321
325
|
- rbi/dodopayments/models/customer_retrieve_params.rbi
|
|
326
|
+
- rbi/dodopayments/models/customer_retrieve_payment_methods_params.rbi
|
|
327
|
+
- rbi/dodopayments/models/customer_retrieve_payment_methods_response.rbi
|
|
322
328
|
- rbi/dodopayments/models/customer_update_params.rbi
|
|
323
329
|
- rbi/dodopayments/models/customers/customer_portal_create_params.rbi
|
|
324
330
|
- rbi/dodopayments/models/customers/customer_wallet.rbi
|
|
@@ -438,6 +444,8 @@ files:
|
|
|
438
444
|
- rbi/dodopayments/models/subscription_retrieve_usage_history_response.rbi
|
|
439
445
|
- rbi/dodopayments/models/subscription_status.rbi
|
|
440
446
|
- rbi/dodopayments/models/subscription_update_params.rbi
|
|
447
|
+
- rbi/dodopayments/models/subscription_update_payment_method_params.rbi
|
|
448
|
+
- rbi/dodopayments/models/subscription_update_payment_method_response.rbi
|
|
441
449
|
- rbi/dodopayments/models/tax_category.rbi
|
|
442
450
|
- rbi/dodopayments/models/time_interval.rbi
|
|
443
451
|
- rbi/dodopayments/models/unsafe_unwrap_webhook_event.rbi
|
|
@@ -545,6 +553,8 @@ files:
|
|
|
545
553
|
- sig/dodopayments/models/customer_portal_session.rbs
|
|
546
554
|
- sig/dodopayments/models/customer_request.rbs
|
|
547
555
|
- sig/dodopayments/models/customer_retrieve_params.rbs
|
|
556
|
+
- sig/dodopayments/models/customer_retrieve_payment_methods_params.rbs
|
|
557
|
+
- sig/dodopayments/models/customer_retrieve_payment_methods_response.rbs
|
|
548
558
|
- sig/dodopayments/models/customer_update_params.rbs
|
|
549
559
|
- sig/dodopayments/models/customers/customer_portal_create_params.rbs
|
|
550
560
|
- sig/dodopayments/models/customers/customer_wallet.rbs
|
|
@@ -664,6 +674,8 @@ files:
|
|
|
664
674
|
- sig/dodopayments/models/subscription_retrieve_usage_history_response.rbs
|
|
665
675
|
- sig/dodopayments/models/subscription_status.rbs
|
|
666
676
|
- sig/dodopayments/models/subscription_update_params.rbs
|
|
677
|
+
- sig/dodopayments/models/subscription_update_payment_method_params.rbs
|
|
678
|
+
- sig/dodopayments/models/subscription_update_payment_method_response.rbs
|
|
667
679
|
- sig/dodopayments/models/tax_category.rbs
|
|
668
680
|
- sig/dodopayments/models/time_interval.rbs
|
|
669
681
|
- sig/dodopayments/models/unsafe_unwrap_webhook_event.rbs
|