dodopayments 1.20.0 → 1.22.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 +32 -0
- data/README.md +2 -2
- data/lib/dodopayments/client.rb +9 -8
- data/lib/dodopayments/internal/default_page_number_pagination.rb +2 -2
- data/lib/dodopayments/internal/transport/base_client.rb +2 -2
- data/lib/dodopayments/internal/type/base_model.rb +1 -9
- data/lib/dodopayments/internal/type/request_parameters.rb +2 -8
- data/lib/dodopayments/internal/util.rb +17 -1
- data/lib/dodopayments/models/dispute.rb +9 -2
- data/lib/dodopayments/models/dispute_list_response.rb +76 -0
- data/lib/dodopayments/models/dispute_retrieve_response.rb +99 -0
- data/lib/dodopayments/models/payment.rb +33 -1
- data/lib/dodopayments/models/subscription_change_plan_params.rb +31 -1
- data/lib/dodopayments/models.rb +167 -0
- data/lib/dodopayments/resources/disputes.rb +4 -4
- data/lib/dodopayments/resources/invoices/payments.rb +3 -2
- data/lib/dodopayments/resources/subscriptions.rb +6 -1
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +2 -0
- data/rbi/dodopayments/client.rbi +5 -4
- data/rbi/dodopayments/internal/util.rbi +5 -1
- data/rbi/dodopayments/models/dispute.rbi +11 -3
- data/rbi/dodopayments/models/dispute_list_response.rbi +85 -0
- data/rbi/dodopayments/models/dispute_retrieve_response.rbi +112 -0
- data/rbi/dodopayments/models/payment.rbi +32 -0
- data/rbi/dodopayments/models/subscription_change_plan_params.rbi +26 -0
- data/rbi/dodopayments/models.rbi +167 -0
- data/rbi/dodopayments/resources/disputes.rbi +2 -2
- data/rbi/dodopayments/resources/invoices/payments.rbi +1 -1
- data/rbi/dodopayments/resources/subscriptions.rbi +6 -0
- data/sig/dodopayments/client.rbs +2 -2
- data/sig/dodopayments/internal/util.rbs +2 -0
- data/sig/dodopayments/models/dispute.rbs +6 -2
- data/sig/dodopayments/models/dispute_list_response.rbs +46 -0
- data/sig/dodopayments/models/dispute_retrieve_response.rbs +58 -0
- data/sig/dodopayments/models/payment.rbs +16 -0
- data/sig/dodopayments/models/subscription_change_plan_params.rbs +17 -1
- data/sig/dodopayments/models.rbs +165 -0
- data/sig/dodopayments/resources/disputes.rbs +2 -2
- data/sig/dodopayments/resources/invoices/payments.rbs +1 -1
- data/sig/dodopayments/resources/subscriptions.rbs +1 -0
- metadata +11 -2
@@ -0,0 +1,167 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
AddonCartResponseItem = Dodopayments::Models::AddonCartResponseItem
|
5
|
+
|
6
|
+
AddonCreateParams = Dodopayments::Models::AddonCreateParams
|
7
|
+
|
8
|
+
AddonListParams = Dodopayments::Models::AddonListParams
|
9
|
+
|
10
|
+
AddonResponse = Dodopayments::Models::AddonResponse
|
11
|
+
|
12
|
+
AddonRetrieveParams = Dodopayments::Models::AddonRetrieveParams
|
13
|
+
|
14
|
+
AddonUpdateImagesParams = Dodopayments::Models::AddonUpdateImagesParams
|
15
|
+
|
16
|
+
AddonUpdateParams = Dodopayments::Models::AddonUpdateParams
|
17
|
+
|
18
|
+
AttachExistingCustomer = Dodopayments::Models::AttachExistingCustomer
|
19
|
+
|
20
|
+
BillingAddress = Dodopayments::Models::BillingAddress
|
21
|
+
|
22
|
+
CountryCode = Dodopayments::Models::CountryCode
|
23
|
+
|
24
|
+
CreateNewCustomer = Dodopayments::Models::CreateNewCustomer
|
25
|
+
|
26
|
+
Currency = Dodopayments::Models::Currency
|
27
|
+
|
28
|
+
Customer = Dodopayments::Models::Customer
|
29
|
+
|
30
|
+
CustomerCreateParams = Dodopayments::Models::CustomerCreateParams
|
31
|
+
|
32
|
+
CustomerLimitedDetails = Dodopayments::Models::CustomerLimitedDetails
|
33
|
+
|
34
|
+
CustomerListParams = Dodopayments::Models::CustomerListParams
|
35
|
+
|
36
|
+
CustomerPortalSession = Dodopayments::Models::CustomerPortalSession
|
37
|
+
|
38
|
+
CustomerRequest = Dodopayments::Models::CustomerRequest
|
39
|
+
|
40
|
+
CustomerRetrieveParams = Dodopayments::Models::CustomerRetrieveParams
|
41
|
+
|
42
|
+
Customers = Dodopayments::Models::Customers
|
43
|
+
|
44
|
+
CustomerUpdateParams = Dodopayments::Models::CustomerUpdateParams
|
45
|
+
|
46
|
+
Discount = Dodopayments::Models::Discount
|
47
|
+
|
48
|
+
DiscountCreateParams = Dodopayments::Models::DiscountCreateParams
|
49
|
+
|
50
|
+
DiscountDeleteParams = Dodopayments::Models::DiscountDeleteParams
|
51
|
+
|
52
|
+
DiscountListParams = Dodopayments::Models::DiscountListParams
|
53
|
+
|
54
|
+
DiscountRetrieveParams = Dodopayments::Models::DiscountRetrieveParams
|
55
|
+
|
56
|
+
DiscountType = Dodopayments::Models::DiscountType
|
57
|
+
|
58
|
+
DiscountUpdateParams = Dodopayments::Models::DiscountUpdateParams
|
59
|
+
|
60
|
+
Dispute = Dodopayments::Models::Dispute
|
61
|
+
|
62
|
+
DisputeListParams = Dodopayments::Models::DisputeListParams
|
63
|
+
|
64
|
+
DisputeRetrieveParams = Dodopayments::Models::DisputeRetrieveParams
|
65
|
+
|
66
|
+
DisputeStage = Dodopayments::Models::DisputeStage
|
67
|
+
|
68
|
+
DisputeStatus = Dodopayments::Models::DisputeStatus
|
69
|
+
|
70
|
+
IntentStatus = Dodopayments::Models::IntentStatus
|
71
|
+
|
72
|
+
Invoices = Dodopayments::Models::Invoices
|
73
|
+
|
74
|
+
LicenseActivateParams = Dodopayments::Models::LicenseActivateParams
|
75
|
+
|
76
|
+
LicenseDeactivateParams = Dodopayments::Models::LicenseDeactivateParams
|
77
|
+
|
78
|
+
LicenseKey = Dodopayments::Models::LicenseKey
|
79
|
+
|
80
|
+
LicenseKeyDuration = Dodopayments::Models::LicenseKeyDuration
|
81
|
+
|
82
|
+
LicenseKeyInstance = Dodopayments::Models::LicenseKeyInstance
|
83
|
+
|
84
|
+
LicenseKeyInstanceListParams = Dodopayments::Models::LicenseKeyInstanceListParams
|
85
|
+
|
86
|
+
LicenseKeyInstanceRetrieveParams = Dodopayments::Models::LicenseKeyInstanceRetrieveParams
|
87
|
+
|
88
|
+
LicenseKeyInstanceUpdateParams = Dodopayments::Models::LicenseKeyInstanceUpdateParams
|
89
|
+
|
90
|
+
LicenseKeyListParams = Dodopayments::Models::LicenseKeyListParams
|
91
|
+
|
92
|
+
LicenseKeyRetrieveParams = Dodopayments::Models::LicenseKeyRetrieveParams
|
93
|
+
|
94
|
+
LicenseKeyStatus = Dodopayments::Models::LicenseKeyStatus
|
95
|
+
|
96
|
+
LicenseKeyUpdateParams = Dodopayments::Models::LicenseKeyUpdateParams
|
97
|
+
|
98
|
+
LicenseValidateParams = Dodopayments::Models::LicenseValidateParams
|
99
|
+
|
100
|
+
MiscListSupportedCountriesParams = Dodopayments::Models::MiscListSupportedCountriesParams
|
101
|
+
|
102
|
+
OneTimeProductCartItem = Dodopayments::Models::OneTimeProductCartItem
|
103
|
+
|
104
|
+
Payment = Dodopayments::Models::Payment
|
105
|
+
|
106
|
+
PaymentCreateParams = Dodopayments::Models::PaymentCreateParams
|
107
|
+
|
108
|
+
PaymentListParams = Dodopayments::Models::PaymentListParams
|
109
|
+
|
110
|
+
PaymentRetrieveParams = Dodopayments::Models::PaymentRetrieveParams
|
111
|
+
|
112
|
+
PayoutListParams = Dodopayments::Models::PayoutListParams
|
113
|
+
|
114
|
+
Price = Dodopayments::Models::Price
|
115
|
+
|
116
|
+
Product = Dodopayments::Models::Product
|
117
|
+
|
118
|
+
ProductCreateParams = Dodopayments::Models::ProductCreateParams
|
119
|
+
|
120
|
+
ProductDeleteParams = Dodopayments::Models::ProductDeleteParams
|
121
|
+
|
122
|
+
ProductListParams = Dodopayments::Models::ProductListParams
|
123
|
+
|
124
|
+
ProductRetrieveParams = Dodopayments::Models::ProductRetrieveParams
|
125
|
+
|
126
|
+
Products = Dodopayments::Models::Products
|
127
|
+
|
128
|
+
ProductUnarchiveParams = Dodopayments::Models::ProductUnarchiveParams
|
129
|
+
|
130
|
+
ProductUpdateParams = Dodopayments::Models::ProductUpdateParams
|
131
|
+
|
132
|
+
Refund = Dodopayments::Models::Refund
|
133
|
+
|
134
|
+
RefundCreateParams = Dodopayments::Models::RefundCreateParams
|
135
|
+
|
136
|
+
RefundListParams = Dodopayments::Models::RefundListParams
|
137
|
+
|
138
|
+
RefundRetrieveParams = Dodopayments::Models::RefundRetrieveParams
|
139
|
+
|
140
|
+
RefundStatus = Dodopayments::Models::RefundStatus
|
141
|
+
|
142
|
+
Subscription = Dodopayments::Models::Subscription
|
143
|
+
|
144
|
+
SubscriptionChangePlanParams = Dodopayments::Models::SubscriptionChangePlanParams
|
145
|
+
|
146
|
+
SubscriptionChargeParams = Dodopayments::Models::SubscriptionChargeParams
|
147
|
+
|
148
|
+
SubscriptionCreateParams = Dodopayments::Models::SubscriptionCreateParams
|
149
|
+
|
150
|
+
SubscriptionListParams = Dodopayments::Models::SubscriptionListParams
|
151
|
+
|
152
|
+
SubscriptionRetrieveParams = Dodopayments::Models::SubscriptionRetrieveParams
|
153
|
+
|
154
|
+
SubscriptionStatus = Dodopayments::Models::SubscriptionStatus
|
155
|
+
|
156
|
+
SubscriptionUpdateParams = Dodopayments::Models::SubscriptionUpdateParams
|
157
|
+
|
158
|
+
TaxCategory = Dodopayments::Models::TaxCategory
|
159
|
+
|
160
|
+
TimeInterval = Dodopayments::Models::TimeInterval
|
161
|
+
|
162
|
+
WebhookEvent = Dodopayments::Models::WebhookEvent
|
163
|
+
|
164
|
+
WebhookEventListParams = Dodopayments::Models::WebhookEventListParams
|
165
|
+
|
166
|
+
WebhookEventRetrieveParams = Dodopayments::Models::WebhookEventRetrieveParams
|
167
|
+
end
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
5
5
|
class Disputes
|
6
6
|
sig do
|
7
7
|
params(dispute_id: String, request_options: Dodopayments::RequestOpts)
|
8
|
-
.returns(Dodopayments::Models::
|
8
|
+
.returns(Dodopayments::Models::DisputeRetrieveResponse)
|
9
9
|
end
|
10
10
|
def retrieve(
|
11
11
|
# Dispute Id
|
@@ -23,7 +23,7 @@ module Dodopayments
|
|
23
23
|
page_size: T.nilable(Integer),
|
24
24
|
request_options: Dodopayments::RequestOpts
|
25
25
|
)
|
26
|
-
.returns(Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Models::
|
26
|
+
.returns(Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Models::DisputeListResponse])
|
27
27
|
end
|
28
28
|
def list(
|
29
29
|
# Get events after this created time
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
4
4
|
module Resources
|
5
5
|
class Invoices
|
6
6
|
class Payments
|
7
|
-
sig { params(payment_id: String, request_options: Dodopayments::RequestOpts).
|
7
|
+
sig { params(payment_id: String, request_options: Dodopayments::RequestOpts).returns(StringIO) }
|
8
8
|
def retrieve(payment_id, request_options: {}); end
|
9
9
|
|
10
10
|
# @api private
|
@@ -135,6 +135,9 @@ module Dodopayments
|
|
135
135
|
product_id: String,
|
136
136
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::ProrationBillingMode::OrSymbol,
|
137
137
|
quantity: Integer,
|
138
|
+
addons: T.nilable(
|
139
|
+
T::Array[T.any(Dodopayments::Models::SubscriptionChangePlanParams::Addon, Dodopayments::Internal::AnyHash)]
|
140
|
+
),
|
138
141
|
request_options: Dodopayments::RequestOpts
|
139
142
|
)
|
140
143
|
.void
|
@@ -147,6 +150,9 @@ module Dodopayments
|
|
147
150
|
proration_billing_mode:,
|
148
151
|
# Number of units to subscribe for. Must be at least 1.
|
149
152
|
quantity:,
|
153
|
+
# Addons for the new plan. Note : Leaving this empty would remove any existing
|
154
|
+
# addons
|
155
|
+
addons: nil,
|
150
156
|
request_options: {}
|
151
157
|
); end
|
152
158
|
sig do
|
data/sig/dodopayments/client.rbs
CHANGED
@@ -13,7 +13,7 @@ module Dodopayments
|
|
13
13
|
test_mode: "https://test.dodopayments.com"
|
14
14
|
}
|
15
15
|
|
16
|
-
attr_reader
|
16
|
+
attr_reader bearer_token: String
|
17
17
|
|
18
18
|
attr_reader payments: Dodopayments::Resources::Payments
|
19
19
|
|
@@ -48,7 +48,7 @@ module Dodopayments
|
|
48
48
|
private def auth_headers: -> ::Hash[String, String]
|
49
49
|
|
50
50
|
def initialize: (
|
51
|
-
?
|
51
|
+
?bearer_token: String?,
|
52
52
|
?environment: :live_mode | :test_mode | nil,
|
53
53
|
?base_url: String?,
|
54
54
|
?max_retries: Integer,
|
@@ -9,7 +9,8 @@ module Dodopayments
|
|
9
9
|
dispute_id: String,
|
10
10
|
dispute_stage: Dodopayments::Models::dispute_stage,
|
11
11
|
dispute_status: Dodopayments::Models::dispute_status,
|
12
|
-
payment_id: String
|
12
|
+
payment_id: String,
|
13
|
+
remarks: String?
|
13
14
|
}
|
14
15
|
|
15
16
|
class Dispute < Dodopayments::Internal::Type::BaseModel
|
@@ -29,6 +30,8 @@ module Dodopayments
|
|
29
30
|
|
30
31
|
attr_accessor payment_id: String
|
31
32
|
|
33
|
+
attr_accessor remarks: String?
|
34
|
+
|
32
35
|
def initialize: (
|
33
36
|
amount: String,
|
34
37
|
business_id: String,
|
@@ -37,7 +40,8 @@ module Dodopayments
|
|
37
40
|
dispute_id: String,
|
38
41
|
dispute_stage: Dodopayments::Models::dispute_stage,
|
39
42
|
dispute_status: Dodopayments::Models::dispute_status,
|
40
|
-
payment_id: String
|
43
|
+
payment_id: String,
|
44
|
+
?remarks: String?
|
41
45
|
) -> void
|
42
46
|
|
43
47
|
def to_hash: -> Dodopayments::Models::dispute
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Dodopayments
|
2
|
+
module Models
|
3
|
+
type dispute_list_response =
|
4
|
+
{
|
5
|
+
amount: String,
|
6
|
+
business_id: String,
|
7
|
+
created_at: Time,
|
8
|
+
currency: String,
|
9
|
+
dispute_id: String,
|
10
|
+
dispute_stage: Dodopayments::Models::dispute_stage,
|
11
|
+
dispute_status: Dodopayments::Models::dispute_status,
|
12
|
+
payment_id: String
|
13
|
+
}
|
14
|
+
|
15
|
+
class DisputeListResponse < Dodopayments::Internal::Type::BaseModel
|
16
|
+
attr_accessor amount: String
|
17
|
+
|
18
|
+
attr_accessor business_id: String
|
19
|
+
|
20
|
+
attr_accessor created_at: Time
|
21
|
+
|
22
|
+
attr_accessor currency: String
|
23
|
+
|
24
|
+
attr_accessor dispute_id: String
|
25
|
+
|
26
|
+
attr_accessor dispute_stage: Dodopayments::Models::dispute_stage
|
27
|
+
|
28
|
+
attr_accessor dispute_status: Dodopayments::Models::dispute_status
|
29
|
+
|
30
|
+
attr_accessor payment_id: String
|
31
|
+
|
32
|
+
def initialize: (
|
33
|
+
amount: String,
|
34
|
+
business_id: String,
|
35
|
+
created_at: Time,
|
36
|
+
currency: String,
|
37
|
+
dispute_id: String,
|
38
|
+
dispute_stage: Dodopayments::Models::dispute_stage,
|
39
|
+
dispute_status: Dodopayments::Models::dispute_status,
|
40
|
+
payment_id: String
|
41
|
+
) -> void
|
42
|
+
|
43
|
+
def to_hash: -> Dodopayments::Models::dispute_list_response
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Dodopayments
|
2
|
+
module Models
|
3
|
+
type dispute_retrieve_response =
|
4
|
+
{
|
5
|
+
amount: String,
|
6
|
+
business_id: String,
|
7
|
+
created_at: Time,
|
8
|
+
currency: String,
|
9
|
+
customer: Dodopayments::Models::CustomerLimitedDetails,
|
10
|
+
dispute_id: String,
|
11
|
+
dispute_stage: Dodopayments::Models::dispute_stage,
|
12
|
+
dispute_status: Dodopayments::Models::dispute_status,
|
13
|
+
payment_id: String,
|
14
|
+
reason: String?,
|
15
|
+
remarks: String?
|
16
|
+
}
|
17
|
+
|
18
|
+
class DisputeRetrieveResponse < Dodopayments::Internal::Type::BaseModel
|
19
|
+
attr_accessor amount: String
|
20
|
+
|
21
|
+
attr_accessor business_id: String
|
22
|
+
|
23
|
+
attr_accessor created_at: Time
|
24
|
+
|
25
|
+
attr_accessor currency: String
|
26
|
+
|
27
|
+
attr_accessor customer: Dodopayments::Models::CustomerLimitedDetails
|
28
|
+
|
29
|
+
attr_accessor dispute_id: String
|
30
|
+
|
31
|
+
attr_accessor dispute_stage: Dodopayments::Models::dispute_stage
|
32
|
+
|
33
|
+
attr_accessor dispute_status: Dodopayments::Models::dispute_status
|
34
|
+
|
35
|
+
attr_accessor payment_id: String
|
36
|
+
|
37
|
+
attr_accessor reason: String?
|
38
|
+
|
39
|
+
attr_accessor remarks: String?
|
40
|
+
|
41
|
+
def initialize: (
|
42
|
+
amount: String,
|
43
|
+
business_id: String,
|
44
|
+
created_at: Time,
|
45
|
+
currency: String,
|
46
|
+
customer: Dodopayments::Models::CustomerLimitedDetails,
|
47
|
+
dispute_id: String,
|
48
|
+
dispute_stage: Dodopayments::Models::dispute_stage,
|
49
|
+
dispute_status: Dodopayments::Models::dispute_status,
|
50
|
+
payment_id: String,
|
51
|
+
?reason: String?,
|
52
|
+
?remarks: String?
|
53
|
+
) -> void
|
54
|
+
|
55
|
+
def to_hash: -> Dodopayments::Models::dispute_retrieve_response
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -14,6 +14,10 @@ module Dodopayments
|
|
14
14
|
settlement_amount: Integer,
|
15
15
|
settlement_currency: Dodopayments::Models::currency,
|
16
16
|
total_amount: Integer,
|
17
|
+
card_issuing_country: Dodopayments::Models::country_code?,
|
18
|
+
card_last_four: String?,
|
19
|
+
card_network: String?,
|
20
|
+
card_type: String?,
|
17
21
|
discount_id: String?,
|
18
22
|
error_message: String?,
|
19
23
|
payment_link: String?,
|
@@ -52,6 +56,14 @@ module Dodopayments
|
|
52
56
|
|
53
57
|
attr_accessor total_amount: Integer
|
54
58
|
|
59
|
+
attr_accessor card_issuing_country: Dodopayments::Models::country_code?
|
60
|
+
|
61
|
+
attr_accessor card_last_four: String?
|
62
|
+
|
63
|
+
attr_accessor card_network: String?
|
64
|
+
|
65
|
+
attr_accessor card_type: String?
|
66
|
+
|
55
67
|
attr_accessor discount_id: String?
|
56
68
|
|
57
69
|
attr_accessor error_message: String?
|
@@ -87,6 +99,10 @@ module Dodopayments
|
|
87
99
|
settlement_amount: Integer,
|
88
100
|
settlement_currency: Dodopayments::Models::currency,
|
89
101
|
total_amount: Integer,
|
102
|
+
?card_issuing_country: Dodopayments::Models::country_code?,
|
103
|
+
?card_last_four: String?,
|
104
|
+
?card_network: String?,
|
105
|
+
?card_type: String?,
|
90
106
|
?discount_id: String?,
|
91
107
|
?error_message: String?,
|
92
108
|
?payment_link: String?,
|
@@ -4,7 +4,8 @@ module Dodopayments
|
|
4
4
|
{
|
5
5
|
product_id: String,
|
6
6
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
7
|
-
quantity: Integer
|
7
|
+
quantity: Integer,
|
8
|
+
addons: ::Array[Dodopayments::Models::SubscriptionChangePlanParams::Addon]?
|
8
9
|
}
|
9
10
|
& Dodopayments::Internal::Type::request_parameters
|
10
11
|
|
@@ -18,10 +19,13 @@ module Dodopayments
|
|
18
19
|
|
19
20
|
attr_accessor quantity: Integer
|
20
21
|
|
22
|
+
attr_accessor addons: ::Array[Dodopayments::Models::SubscriptionChangePlanParams::Addon]?
|
23
|
+
|
21
24
|
def initialize: (
|
22
25
|
product_id: String,
|
23
26
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
24
27
|
quantity: Integer,
|
28
|
+
?addons: ::Array[Dodopayments::Models::SubscriptionChangePlanParams::Addon]?,
|
25
29
|
?request_options: Dodopayments::request_opts
|
26
30
|
) -> void
|
27
31
|
|
@@ -36,6 +40,18 @@ module Dodopayments
|
|
36
40
|
|
37
41
|
def self?.values: -> ::Array[Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode]
|
38
42
|
end
|
43
|
+
|
44
|
+
type addon = { addon_id: String, quantity: Integer }
|
45
|
+
|
46
|
+
class Addon < Dodopayments::Internal::Type::BaseModel
|
47
|
+
attr_accessor addon_id: String
|
48
|
+
|
49
|
+
attr_accessor quantity: Integer
|
50
|
+
|
51
|
+
def initialize: (addon_id: String, quantity: Integer) -> void
|
52
|
+
|
53
|
+
def to_hash: -> Dodopayments::Models::SubscriptionChangePlanParams::addon
|
54
|
+
end
|
39
55
|
end
|
40
56
|
end
|
41
57
|
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
module Dodopayments
|
2
|
+
class AddonCartResponseItem = Dodopayments::Models::AddonCartResponseItem
|
3
|
+
|
4
|
+
class AddonCreateParams = Dodopayments::Models::AddonCreateParams
|
5
|
+
|
6
|
+
class AddonListParams = Dodopayments::Models::AddonListParams
|
7
|
+
|
8
|
+
class AddonResponse = Dodopayments::Models::AddonResponse
|
9
|
+
|
10
|
+
class AddonRetrieveParams = Dodopayments::Models::AddonRetrieveParams
|
11
|
+
|
12
|
+
class AddonUpdateImagesParams = Dodopayments::Models::AddonUpdateImagesParams
|
13
|
+
|
14
|
+
class AddonUpdateParams = Dodopayments::Models::AddonUpdateParams
|
15
|
+
|
16
|
+
class AttachExistingCustomer = Dodopayments::Models::AttachExistingCustomer
|
17
|
+
|
18
|
+
class BillingAddress = Dodopayments::Models::BillingAddress
|
19
|
+
|
20
|
+
module CountryCode = Dodopayments::Models::CountryCode
|
21
|
+
|
22
|
+
class CreateNewCustomer = Dodopayments::Models::CreateNewCustomer
|
23
|
+
|
24
|
+
module Currency = Dodopayments::Models::Currency
|
25
|
+
|
26
|
+
class Customer = Dodopayments::Models::Customer
|
27
|
+
|
28
|
+
class CustomerCreateParams = Dodopayments::Models::CustomerCreateParams
|
29
|
+
|
30
|
+
class CustomerLimitedDetails = Dodopayments::Models::CustomerLimitedDetails
|
31
|
+
|
32
|
+
class CustomerListParams = Dodopayments::Models::CustomerListParams
|
33
|
+
|
34
|
+
class CustomerPortalSession = Dodopayments::Models::CustomerPortalSession
|
35
|
+
|
36
|
+
module CustomerRequest = Dodopayments::Models::CustomerRequest
|
37
|
+
|
38
|
+
class CustomerRetrieveParams = Dodopayments::Models::CustomerRetrieveParams
|
39
|
+
|
40
|
+
module Customers = Dodopayments::Models::Customers
|
41
|
+
|
42
|
+
class CustomerUpdateParams = Dodopayments::Models::CustomerUpdateParams
|
43
|
+
|
44
|
+
class Discount = Dodopayments::Models::Discount
|
45
|
+
|
46
|
+
class DiscountCreateParams = Dodopayments::Models::DiscountCreateParams
|
47
|
+
|
48
|
+
class DiscountDeleteParams = Dodopayments::Models::DiscountDeleteParams
|
49
|
+
|
50
|
+
class DiscountListParams = Dodopayments::Models::DiscountListParams
|
51
|
+
|
52
|
+
class DiscountRetrieveParams = Dodopayments::Models::DiscountRetrieveParams
|
53
|
+
|
54
|
+
module DiscountType = Dodopayments::Models::DiscountType
|
55
|
+
|
56
|
+
class DiscountUpdateParams = Dodopayments::Models::DiscountUpdateParams
|
57
|
+
|
58
|
+
class Dispute = Dodopayments::Models::Dispute
|
59
|
+
|
60
|
+
class DisputeListParams = Dodopayments::Models::DisputeListParams
|
61
|
+
|
62
|
+
class DisputeRetrieveParams = Dodopayments::Models::DisputeRetrieveParams
|
63
|
+
|
64
|
+
module DisputeStage = Dodopayments::Models::DisputeStage
|
65
|
+
|
66
|
+
module DisputeStatus = Dodopayments::Models::DisputeStatus
|
67
|
+
|
68
|
+
module IntentStatus = Dodopayments::Models::IntentStatus
|
69
|
+
|
70
|
+
module Invoices = Dodopayments::Models::Invoices
|
71
|
+
|
72
|
+
class LicenseActivateParams = Dodopayments::Models::LicenseActivateParams
|
73
|
+
|
74
|
+
class LicenseDeactivateParams = Dodopayments::Models::LicenseDeactivateParams
|
75
|
+
|
76
|
+
class LicenseKey = Dodopayments::Models::LicenseKey
|
77
|
+
|
78
|
+
class LicenseKeyDuration = Dodopayments::Models::LicenseKeyDuration
|
79
|
+
|
80
|
+
class LicenseKeyInstance = Dodopayments::Models::LicenseKeyInstance
|
81
|
+
|
82
|
+
class LicenseKeyInstanceListParams = Dodopayments::Models::LicenseKeyInstanceListParams
|
83
|
+
|
84
|
+
class LicenseKeyInstanceRetrieveParams = Dodopayments::Models::LicenseKeyInstanceRetrieveParams
|
85
|
+
|
86
|
+
class LicenseKeyInstanceUpdateParams = Dodopayments::Models::LicenseKeyInstanceUpdateParams
|
87
|
+
|
88
|
+
class LicenseKeyListParams = Dodopayments::Models::LicenseKeyListParams
|
89
|
+
|
90
|
+
class LicenseKeyRetrieveParams = Dodopayments::Models::LicenseKeyRetrieveParams
|
91
|
+
|
92
|
+
module LicenseKeyStatus = Dodopayments::Models::LicenseKeyStatus
|
93
|
+
|
94
|
+
class LicenseKeyUpdateParams = Dodopayments::Models::LicenseKeyUpdateParams
|
95
|
+
|
96
|
+
class LicenseValidateParams = Dodopayments::Models::LicenseValidateParams
|
97
|
+
|
98
|
+
class MiscListSupportedCountriesParams = Dodopayments::Models::MiscListSupportedCountriesParams
|
99
|
+
|
100
|
+
class OneTimeProductCartItem = Dodopayments::Models::OneTimeProductCartItem
|
101
|
+
|
102
|
+
class Payment = Dodopayments::Models::Payment
|
103
|
+
|
104
|
+
class PaymentCreateParams = Dodopayments::Models::PaymentCreateParams
|
105
|
+
|
106
|
+
class PaymentListParams = Dodopayments::Models::PaymentListParams
|
107
|
+
|
108
|
+
class PaymentRetrieveParams = Dodopayments::Models::PaymentRetrieveParams
|
109
|
+
|
110
|
+
class PayoutListParams = Dodopayments::Models::PayoutListParams
|
111
|
+
|
112
|
+
module Price = Dodopayments::Models::Price
|
113
|
+
|
114
|
+
class Product = Dodopayments::Models::Product
|
115
|
+
|
116
|
+
class ProductCreateParams = Dodopayments::Models::ProductCreateParams
|
117
|
+
|
118
|
+
class ProductDeleteParams = Dodopayments::Models::ProductDeleteParams
|
119
|
+
|
120
|
+
class ProductListParams = Dodopayments::Models::ProductListParams
|
121
|
+
|
122
|
+
class ProductRetrieveParams = Dodopayments::Models::ProductRetrieveParams
|
123
|
+
|
124
|
+
module Products = Dodopayments::Models::Products
|
125
|
+
|
126
|
+
class ProductUnarchiveParams = Dodopayments::Models::ProductUnarchiveParams
|
127
|
+
|
128
|
+
class ProductUpdateParams = Dodopayments::Models::ProductUpdateParams
|
129
|
+
|
130
|
+
class Refund = Dodopayments::Models::Refund
|
131
|
+
|
132
|
+
class RefundCreateParams = Dodopayments::Models::RefundCreateParams
|
133
|
+
|
134
|
+
class RefundListParams = Dodopayments::Models::RefundListParams
|
135
|
+
|
136
|
+
class RefundRetrieveParams = Dodopayments::Models::RefundRetrieveParams
|
137
|
+
|
138
|
+
module RefundStatus = Dodopayments::Models::RefundStatus
|
139
|
+
|
140
|
+
class Subscription = Dodopayments::Models::Subscription
|
141
|
+
|
142
|
+
class SubscriptionChangePlanParams = Dodopayments::Models::SubscriptionChangePlanParams
|
143
|
+
|
144
|
+
class SubscriptionChargeParams = Dodopayments::Models::SubscriptionChargeParams
|
145
|
+
|
146
|
+
class SubscriptionCreateParams = Dodopayments::Models::SubscriptionCreateParams
|
147
|
+
|
148
|
+
class SubscriptionListParams = Dodopayments::Models::SubscriptionListParams
|
149
|
+
|
150
|
+
class SubscriptionRetrieveParams = Dodopayments::Models::SubscriptionRetrieveParams
|
151
|
+
|
152
|
+
module SubscriptionStatus = Dodopayments::Models::SubscriptionStatus
|
153
|
+
|
154
|
+
class SubscriptionUpdateParams = Dodopayments::Models::SubscriptionUpdateParams
|
155
|
+
|
156
|
+
module TaxCategory = Dodopayments::Models::TaxCategory
|
157
|
+
|
158
|
+
module TimeInterval = Dodopayments::Models::TimeInterval
|
159
|
+
|
160
|
+
class WebhookEvent = Dodopayments::Models::WebhookEvent
|
161
|
+
|
162
|
+
class WebhookEventListParams = Dodopayments::Models::WebhookEventListParams
|
163
|
+
|
164
|
+
class WebhookEventRetrieveParams = Dodopayments::Models::WebhookEventRetrieveParams
|
165
|
+
end
|
@@ -4,7 +4,7 @@ module Dodopayments
|
|
4
4
|
def retrieve: (
|
5
5
|
String dispute_id,
|
6
6
|
?request_options: Dodopayments::request_opts
|
7
|
-
) -> Dodopayments::Models::
|
7
|
+
) -> Dodopayments::Models::DisputeRetrieveResponse
|
8
8
|
|
9
9
|
def list: (
|
10
10
|
?created_at_gte: Time?,
|
@@ -15,7 +15,7 @@ module Dodopayments
|
|
15
15
|
?page_number: Integer?,
|
16
16
|
?page_size: Integer?,
|
17
17
|
?request_options: Dodopayments::request_opts
|
18
|
-
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Models::
|
18
|
+
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Models::DisputeListResponse]
|
19
19
|
|
20
20
|
def initialize: (client: Dodopayments::Client) -> void
|
21
21
|
end
|
@@ -50,6 +50,7 @@ module Dodopayments
|
|
50
50
|
product_id: String,
|
51
51
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
52
52
|
quantity: Integer,
|
53
|
+
?addons: ::Array[Dodopayments::Models::SubscriptionChangePlanParams::Addon]?,
|
53
54
|
?request_options: Dodopayments::request_opts
|
54
55
|
) -> nil
|
55
56
|
|