dodopayments 2.3.0 → 2.4.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 +9 -0
- data/README.md +1 -1
- data/lib/dodopayments/client.rb +0 -8
- data/lib/dodopayments/models/customer_delete_payment_method_params.rb +26 -0
- data/lib/dodopayments/models/dispute.rb +9 -1
- data/lib/dodopayments/models/dispute_list_response.rb +9 -1
- data/lib/dodopayments/models/get_dispute.rb +9 -1
- data/lib/dodopayments/models.rb +2 -18
- data/lib/dodopayments/resources/customers.rb +25 -0
- data/lib/dodopayments/resources/invoices/payments.rb +0 -18
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +4 -29
- data/rbi/dodopayments/client.rbi +0 -6
- data/rbi/dodopayments/models/credit_entitlement_cart_response.rbi +4 -4
- data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +2 -2
- data/rbi/dodopayments/models/{your_webhook_url_create_params.rbi → customer_delete_payment_method_params.rbi} +9 -19
- data/rbi/dodopayments/models/dispute.rbi +12 -4
- data/rbi/dodopayments/models/dispute_list_response.rbi +11 -3
- data/rbi/dodopayments/models/get_dispute.rbi +12 -4
- data/rbi/dodopayments/models/license_key.rbi +2 -2
- data/rbi/dodopayments/models/meter_cart_response_item.rbi +2 -2
- data/rbi/dodopayments/models/payment.rbi +12 -10
- data/rbi/dodopayments/models/refund.rbi +4 -4
- data/rbi/dodopayments/models/refund_list_item.rbi +4 -4
- data/rbi/dodopayments/models/subscription.rbi +10 -8
- data/rbi/dodopayments/models.rbi +3 -25
- data/rbi/dodopayments/resources/customers.rbi +16 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +0 -9
- data/sig/dodopayments/client.rbs +0 -4
- data/sig/dodopayments/models/{product_collection_update_images_params.rbs → customer_delete_payment_method_params.rbs} +9 -9
- data/sig/dodopayments/models/dispute.rbs +5 -0
- data/sig/dodopayments/models/dispute_list_response.rbs +8 -3
- data/sig/dodopayments/models/get_dispute.rbs +5 -0
- data/sig/dodopayments/models.rbs +2 -18
- data/sig/dodopayments/resources/customers.rbs +6 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +0 -5
- metadata +4 -79
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +0 -22
- data/lib/dodopayments/models/product_collection_create_params.rb +0 -98
- data/lib/dodopayments/models/product_collection_create_response.rb +0 -226
- data/lib/dodopayments/models/product_collection_delete_params.rb +0 -20
- data/lib/dodopayments/models/product_collection_list_params.rb +0 -46
- data/lib/dodopayments/models/product_collection_list_response.rb +0 -65
- data/lib/dodopayments/models/product_collection_retrieve_params.rb +0 -20
- data/lib/dodopayments/models/product_collection_retrieve_response.rb +0 -226
- data/lib/dodopayments/models/product_collection_unarchive_params.rb +0 -20
- data/lib/dodopayments/models/product_collection_unarchive_response.rb +0 -33
- data/lib/dodopayments/models/product_collection_update_images_params.rb +0 -29
- data/lib/dodopayments/models/product_collection_update_images_response.rb +0 -25
- data/lib/dodopayments/models/product_collection_update_params.rb +0 -61
- data/lib/dodopayments/models/product_collections/group_create_params.rb +0 -71
- data/lib/dodopayments/models/product_collections/group_create_response.rb +0 -160
- data/lib/dodopayments/models/product_collections/group_delete_params.rb +0 -28
- data/lib/dodopayments/models/product_collections/group_update_params.rb +0 -59
- data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +0 -60
- data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +0 -136
- data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +0 -36
- data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +0 -47
- data/lib/dodopayments/models/your_webhook_url_create_params.rb +0 -32
- data/lib/dodopayments/resources/product_collections/groups/items.rb +0 -111
- data/lib/dodopayments/resources/product_collections/groups.rb +0 -109
- data/lib/dodopayments/resources/product_collections.rb +0 -179
- data/lib/dodopayments/resources/your_webhook_url.rb +0 -56
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +0 -40
- data/rbi/dodopayments/models/product_collection_create_params.rbi +0 -180
- data/rbi/dodopayments/models/product_collection_create_response.rbi +0 -303
- data/rbi/dodopayments/models/product_collection_delete_params.rbi +0 -38
- data/rbi/dodopayments/models/product_collection_list_params.rbi +0 -82
- data/rbi/dodopayments/models/product_collection_list_response.rbi +0 -88
- data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +0 -38
- data/rbi/dodopayments/models/product_collection_retrieve_response.rbi +0 -305
- data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +0 -38
- data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +0 -56
- data/rbi/dodopayments/models/product_collection_update_images_params.rbi +0 -52
- data/rbi/dodopayments/models/product_collection_update_images_response.rbi +0 -40
- data/rbi/dodopayments/models/product_collection_update_params.rbi +0 -84
- data/rbi/dodopayments/models/product_collections/group_create_params.rbi +0 -123
- data/rbi/dodopayments/models/product_collections/group_create_response.rbi +0 -204
- data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +0 -48
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +0 -80
- data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +0 -113
- data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +0 -156
- data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +0 -55
- data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +0 -68
- data/rbi/dodopayments/resources/product_collections/groups/items.rbi +0 -83
- data/rbi/dodopayments/resources/product_collections/groups.rbi +0 -90
- data/rbi/dodopayments/resources/product_collections.rbi +0 -149
- data/rbi/dodopayments/resources/your_webhook_url.rbi +0 -53
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +0 -25
- data/sig/dodopayments/models/product_collection_create_params.rbs +0 -80
- data/sig/dodopayments/models/product_collection_create_response.rbs +0 -179
- data/sig/dodopayments/models/product_collection_delete_params.rbs +0 -23
- data/sig/dodopayments/models/product_collection_list_params.rbs +0 -49
- data/sig/dodopayments/models/product_collection_list_response.rbs +0 -50
- data/sig/dodopayments/models/product_collection_retrieve_params.rbs +0 -23
- data/sig/dodopayments/models/product_collection_retrieve_response.rbs +0 -179
- data/sig/dodopayments/models/product_collection_unarchive_params.rbs +0 -23
- data/sig/dodopayments/models/product_collection_unarchive_response.rbs +0 -30
- data/sig/dodopayments/models/product_collection_update_images_response.rbs +0 -16
- data/sig/dodopayments/models/product_collection_update_params.rbs +0 -51
- data/sig/dodopayments/models/product_collections/group_create_params.rbs +0 -55
- data/sig/dodopayments/models/product_collections/group_create_response.rbs +0 -129
- data/sig/dodopayments/models/product_collections/group_delete_params.rbs +0 -30
- data/sig/dodopayments/models/product_collections/group_update_params.rbs +0 -48
- data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +0 -52
- data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +0 -104
- data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +0 -36
- data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +0 -40
- data/sig/dodopayments/models/your_webhook_url_create_params.rbs +0 -42
- data/sig/dodopayments/resources/product_collections/groups/items.rbs +0 -33
- data/sig/dodopayments/resources/product_collections/groups.rbs +0 -34
- data/sig/dodopayments/resources/product_collections.rbs +0 -56
- data/sig/dodopayments/resources/your_webhook_url.rbs +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4536f0effec2845cc577e915e513fd707212965ba56cbdca4009f8eb8113bccf
|
|
4
|
+
data.tar.gz: 2e195536a171409b4e8a774a6e94df7f10e132338c7c6676309a4fb9cde72bc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c71eea5a3f83802121f9c7f52630085f4d32ed676da3d1d7d92f0db4787f5ee77adb3208b685c13f727caa11b1af6936c55dd8b6b600b21bd1d40e18ad79223
|
|
7
|
+
data.tar.gz: dd9b81433d09525d736470774a900aefc2234b935db545f95d0c1a0bb3f8826b7f1f1c3adc5383bf0703264c46e5403dcb16a15b60bf3c7680d1fe85539b33c4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.4.0 (2026-03-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.3.0...v2.4.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.3.0...v2.4.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([63ef98e](https://github.com/dodopayments/dodopayments-ruby/commit/63ef98ecd320d35628d2e1e3a7d494708023c55e))
|
|
10
|
+
* **api:** updated openapi spec to v1.92.3 ([e827af5](https://github.com/dodopayments/dodopayments-ruby/commit/e827af5ba14c9af4f6bf8cc911f4160f4a6ead93))
|
|
11
|
+
|
|
3
12
|
## 2.3.0 (2026-03-25)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v2.2.0...v2.3.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.2.0...v2.3.0)
|
data/README.md
CHANGED
data/lib/dodopayments/client.rb
CHANGED
|
@@ -93,12 +93,6 @@ module Dodopayments
|
|
|
93
93
|
# @return [Dodopayments::Resources::CreditEntitlements]
|
|
94
94
|
attr_reader :credit_entitlements
|
|
95
95
|
|
|
96
|
-
# @return [Dodopayments::Resources::ProductCollections]
|
|
97
|
-
attr_reader :product_collections
|
|
98
|
-
|
|
99
|
-
# @return [Dodopayments::Resources::YourWebhookURL]
|
|
100
|
-
attr_reader :your_webhook_url
|
|
101
|
-
|
|
102
96
|
# @api private
|
|
103
97
|
#
|
|
104
98
|
# @return [Hash{String=>String}]
|
|
@@ -183,8 +177,6 @@ module Dodopayments
|
|
|
183
177
|
@meters = Dodopayments::Resources::Meters.new(client: self)
|
|
184
178
|
@balances = Dodopayments::Resources::Balances.new(client: self)
|
|
185
179
|
@credit_entitlements = Dodopayments::Resources::CreditEntitlements.new(client: self)
|
|
186
|
-
@product_collections = Dodopayments::Resources::ProductCollections.new(client: self)
|
|
187
|
-
@your_webhook_url = Dodopayments::Resources::YourWebhookURL.new(client: self)
|
|
188
180
|
end
|
|
189
181
|
end
|
|
190
182
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::Customers#delete_payment_method
|
|
6
|
+
class CustomerDeletePaymentMethodParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute customer_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :customer_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute payment_method_id
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :payment_method_id, String
|
|
19
|
+
|
|
20
|
+
# @!method initialize(customer_id:, payment_method_id:, request_options: {})
|
|
21
|
+
# @param customer_id [String]
|
|
22
|
+
# @param payment_method_id [String]
|
|
23
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -52,13 +52,19 @@ module Dodopayments
|
|
|
52
52
|
# @return [String]
|
|
53
53
|
required :payment_id, String
|
|
54
54
|
|
|
55
|
+
# @!attribute is_resolved_by_rdr
|
|
56
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
57
|
+
#
|
|
58
|
+
# @return [Boolean, nil]
|
|
59
|
+
optional :is_resolved_by_rdr, Dodopayments::Internal::Type::Boolean, nil?: true
|
|
60
|
+
|
|
55
61
|
# @!attribute remarks
|
|
56
62
|
# Remarks
|
|
57
63
|
#
|
|
58
64
|
# @return [String, nil]
|
|
59
65
|
optional :remarks, String, nil?: true
|
|
60
66
|
|
|
61
|
-
# @!method initialize(amount:, business_id:, created_at:, currency:, dispute_id:, dispute_stage:, dispute_status:, payment_id:, remarks: nil)
|
|
67
|
+
# @!method initialize(amount:, business_id:, created_at:, currency:, dispute_id:, dispute_stage:, dispute_status:, payment_id:, is_resolved_by_rdr: nil, remarks: nil)
|
|
62
68
|
# Some parameter documentations has been truncated, see
|
|
63
69
|
# {Dodopayments::Models::Dispute} for more details.
|
|
64
70
|
#
|
|
@@ -78,6 +84,8 @@ module Dodopayments
|
|
|
78
84
|
#
|
|
79
85
|
# @param payment_id [String] The unique identifier of the payment associated with the dispute.
|
|
80
86
|
#
|
|
87
|
+
# @param is_resolved_by_rdr [Boolean, nil] Whether the dispute was resolved by Rapid Dispute Resolution
|
|
88
|
+
#
|
|
81
89
|
# @param remarks [String, nil] Remarks
|
|
82
90
|
end
|
|
83
91
|
end
|
|
@@ -53,7 +53,13 @@ module Dodopayments
|
|
|
53
53
|
# @return [String]
|
|
54
54
|
required :payment_id, String
|
|
55
55
|
|
|
56
|
-
# @!
|
|
56
|
+
# @!attribute is_resolved_by_rdr
|
|
57
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
58
|
+
#
|
|
59
|
+
# @return [Boolean, nil]
|
|
60
|
+
optional :is_resolved_by_rdr, Dodopayments::Internal::Type::Boolean, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!method initialize(amount:, business_id:, created_at:, currency:, dispute_id:, dispute_stage:, dispute_status:, payment_id:, is_resolved_by_rdr: nil)
|
|
57
63
|
# Some parameter documentations has been truncated, see
|
|
58
64
|
# {Dodopayments::Models::DisputeListResponse} for more details.
|
|
59
65
|
#
|
|
@@ -72,6 +78,8 @@ module Dodopayments
|
|
|
72
78
|
# @param dispute_status [Symbol, Dodopayments::Models::DisputeStatus] The current status of the dispute.
|
|
73
79
|
#
|
|
74
80
|
# @param payment_id [String] The unique identifier of the payment associated with the dispute.
|
|
81
|
+
#
|
|
82
|
+
# @param is_resolved_by_rdr [Boolean, nil] Whether the dispute was resolved by Rapid Dispute Resolution
|
|
75
83
|
end
|
|
76
84
|
end
|
|
77
85
|
end
|
|
@@ -59,6 +59,12 @@ module Dodopayments
|
|
|
59
59
|
# @return [String]
|
|
60
60
|
required :payment_id, String
|
|
61
61
|
|
|
62
|
+
# @!attribute is_resolved_by_rdr
|
|
63
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
64
|
+
#
|
|
65
|
+
# @return [Boolean, nil]
|
|
66
|
+
optional :is_resolved_by_rdr, Dodopayments::Internal::Type::Boolean, nil?: true
|
|
67
|
+
|
|
62
68
|
# @!attribute reason
|
|
63
69
|
# Reason for the dispute
|
|
64
70
|
#
|
|
@@ -71,7 +77,7 @@ module Dodopayments
|
|
|
71
77
|
# @return [String, nil]
|
|
72
78
|
optional :remarks, String, nil?: true
|
|
73
79
|
|
|
74
|
-
# @!method initialize(amount:, business_id:, created_at:, currency:, customer:, dispute_id:, dispute_stage:, dispute_status:, payment_id:, reason: nil, remarks: nil)
|
|
80
|
+
# @!method initialize(amount:, business_id:, created_at:, currency:, customer:, dispute_id:, dispute_stage:, dispute_status:, payment_id:, is_resolved_by_rdr: nil, reason: nil, remarks: nil)
|
|
75
81
|
# Some parameter documentations has been truncated, see
|
|
76
82
|
# {Dodopayments::Models::GetDispute} for more details.
|
|
77
83
|
#
|
|
@@ -93,6 +99,8 @@ module Dodopayments
|
|
|
93
99
|
#
|
|
94
100
|
# @param payment_id [String] The unique identifier of the payment associated with the dispute.
|
|
95
101
|
#
|
|
102
|
+
# @param is_resolved_by_rdr [Boolean, nil] Whether the dispute was resolved by Rapid Dispute Resolution
|
|
103
|
+
#
|
|
96
104
|
# @param reason [String, nil] Reason for the dispute
|
|
97
105
|
#
|
|
98
106
|
# @param remarks [String, nil] Remarks
|
data/lib/dodopayments/models.rb
CHANGED
|
@@ -149,6 +149,8 @@ module Dodopayments
|
|
|
149
149
|
|
|
150
150
|
CustomerCreateParams = Dodopayments::Models::CustomerCreateParams
|
|
151
151
|
|
|
152
|
+
CustomerDeletePaymentMethodParams = Dodopayments::Models::CustomerDeletePaymentMethodParams
|
|
153
|
+
|
|
152
154
|
CustomerLimitedDetails = Dodopayments::Models::CustomerLimitedDetails
|
|
153
155
|
|
|
154
156
|
CustomerListCreditEntitlementsParams = Dodopayments::Models::CustomerListCreditEntitlementsParams
|
|
@@ -313,22 +315,6 @@ module Dodopayments
|
|
|
313
315
|
|
|
314
316
|
ProductArchiveParams = Dodopayments::Models::ProductArchiveParams
|
|
315
317
|
|
|
316
|
-
ProductCollectionCreateParams = Dodopayments::Models::ProductCollectionCreateParams
|
|
317
|
-
|
|
318
|
-
ProductCollectionDeleteParams = Dodopayments::Models::ProductCollectionDeleteParams
|
|
319
|
-
|
|
320
|
-
ProductCollectionListParams = Dodopayments::Models::ProductCollectionListParams
|
|
321
|
-
|
|
322
|
-
ProductCollectionRetrieveParams = Dodopayments::Models::ProductCollectionRetrieveParams
|
|
323
|
-
|
|
324
|
-
ProductCollections = Dodopayments::Models::ProductCollections
|
|
325
|
-
|
|
326
|
-
ProductCollectionUnarchiveParams = Dodopayments::Models::ProductCollectionUnarchiveParams
|
|
327
|
-
|
|
328
|
-
ProductCollectionUpdateImagesParams = Dodopayments::Models::ProductCollectionUpdateImagesParams
|
|
329
|
-
|
|
330
|
-
ProductCollectionUpdateParams = Dodopayments::Models::ProductCollectionUpdateParams
|
|
331
|
-
|
|
332
318
|
ProductCreateParams = Dodopayments::Models::ProductCreateParams
|
|
333
319
|
|
|
334
320
|
ProductItemReq = Dodopayments::Models::ProductItemReq
|
|
@@ -448,6 +434,4 @@ module Dodopayments
|
|
|
448
434
|
WebhookUnwrapParams = Dodopayments::Models::WebhookUnwrapParams
|
|
449
435
|
|
|
450
436
|
WebhookUpdateParams = Dodopayments::Models::WebhookUpdateParams
|
|
451
|
-
|
|
452
|
-
YourWebhookURLCreateParams = Dodopayments::Models::YourWebhookURLCreateParams
|
|
453
437
|
end
|
|
@@ -113,6 +113,31 @@ module Dodopayments
|
|
|
113
113
|
)
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
# @overload delete_payment_method(payment_method_id, customer_id:, request_options: {})
|
|
117
|
+
#
|
|
118
|
+
# @param payment_method_id [String] Payment Method Id
|
|
119
|
+
#
|
|
120
|
+
# @param customer_id [String] Customer Id
|
|
121
|
+
#
|
|
122
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
123
|
+
#
|
|
124
|
+
# @return [nil]
|
|
125
|
+
#
|
|
126
|
+
# @see Dodopayments::Models::CustomerDeletePaymentMethodParams
|
|
127
|
+
def delete_payment_method(payment_method_id, params)
|
|
128
|
+
parsed, options = Dodopayments::CustomerDeletePaymentMethodParams.dump_request(params)
|
|
129
|
+
customer_id =
|
|
130
|
+
parsed.delete(:customer_id) do
|
|
131
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
132
|
+
end
|
|
133
|
+
@client.request(
|
|
134
|
+
method: :delete,
|
|
135
|
+
path: ["customers/%1$s/payment-methods/%2$s", customer_id, payment_method_id],
|
|
136
|
+
model: NilClass,
|
|
137
|
+
options: options
|
|
138
|
+
)
|
|
139
|
+
end
|
|
140
|
+
|
|
116
141
|
# List all credit entitlements for a customer with their current balances
|
|
117
142
|
#
|
|
118
143
|
# @overload list_credit_entitlements(customer_id, request_options: {})
|
|
@@ -22,24 +22,6 @@ module Dodopayments
|
|
|
22
22
|
)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
# @overload retrieve_payout(payout_id, request_options: {})
|
|
26
|
-
#
|
|
27
|
-
# @param payout_id [String]
|
|
28
|
-
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
29
|
-
#
|
|
30
|
-
# @return [StringIO]
|
|
31
|
-
#
|
|
32
|
-
# @see Dodopayments::Models::Invoices::PaymentRetrievePayoutParams
|
|
33
|
-
def retrieve_payout(payout_id, params = {})
|
|
34
|
-
@client.request(
|
|
35
|
-
method: :get,
|
|
36
|
-
path: ["invoices/payouts/%1$s", payout_id],
|
|
37
|
-
headers: {"accept" => "application/pdf"},
|
|
38
|
-
model: StringIO,
|
|
39
|
-
options: params[:request_options]
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
25
|
# @overload retrieve_refund(refund_id, request_options: {})
|
|
44
26
|
#
|
|
45
27
|
# @param refund_id [String]
|
data/lib/dodopayments/version.rb
CHANGED
data/lib/dodopayments.rb
CHANGED
|
@@ -55,15 +55,14 @@ require_relative "dodopayments/internal/transport/pooled_net_requester"
|
|
|
55
55
|
require_relative "dodopayments/client"
|
|
56
56
|
require_relative "dodopayments/internal/cursor_page_pagination"
|
|
57
57
|
require_relative "dodopayments/internal/default_page_number_pagination"
|
|
58
|
+
require_relative "dodopayments/models/checkout_session_request"
|
|
59
|
+
require_relative "dodopayments/models/update_subscription_plan_req"
|
|
58
60
|
require_relative "dodopayments/models/credit_entitlements/credit_ledger_entry"
|
|
59
61
|
require_relative "dodopayments/models/license_key"
|
|
60
62
|
require_relative "dodopayments/models/get_dispute"
|
|
61
63
|
require_relative "dodopayments/models/refund"
|
|
62
64
|
require_relative "dodopayments/models/subscription"
|
|
63
65
|
require_relative "dodopayments/models/payment"
|
|
64
|
-
require_relative "dodopayments/models/checkout_session_request"
|
|
65
|
-
require_relative "dodopayments/models/update_subscription_plan_req"
|
|
66
|
-
require_relative "dodopayments/models/webhook_payload"
|
|
67
66
|
require_relative "dodopayments/models/add_meter_to_price"
|
|
68
67
|
require_relative "dodopayments/models/addon_cart_response_item"
|
|
69
68
|
require_relative "dodopayments/models/addon_create_params"
|
|
@@ -130,6 +129,7 @@ require_relative "dodopayments/models/credit_rollover_forfeited_webhook_event"
|
|
|
130
129
|
require_relative "dodopayments/models/currency"
|
|
131
130
|
require_relative "dodopayments/models/customer"
|
|
132
131
|
require_relative "dodopayments/models/customer_create_params"
|
|
132
|
+
require_relative "dodopayments/models/customer_delete_payment_method_params"
|
|
133
133
|
require_relative "dodopayments/models/customer_limited_details"
|
|
134
134
|
require_relative "dodopayments/models/customer_list_credit_entitlements_params"
|
|
135
135
|
require_relative "dodopayments/models/customer_list_credit_entitlements_response"
|
|
@@ -177,7 +177,6 @@ require_relative "dodopayments/models/event_input"
|
|
|
177
177
|
require_relative "dodopayments/models/filter_operator"
|
|
178
178
|
require_relative "dodopayments/models/intent_status"
|
|
179
179
|
require_relative "dodopayments/models/invoices/payment_retrieve_params"
|
|
180
|
-
require_relative "dodopayments/models/invoices/payment_retrieve_payout_params"
|
|
181
180
|
require_relative "dodopayments/models/invoices/payment_retrieve_refund_params"
|
|
182
181
|
require_relative "dodopayments/models/license_activate_params"
|
|
183
182
|
require_relative "dodopayments/models/license_activate_response"
|
|
@@ -227,26 +226,6 @@ require_relative "dodopayments/models/payout_list_response"
|
|
|
227
226
|
require_relative "dodopayments/models/price"
|
|
228
227
|
require_relative "dodopayments/models/product"
|
|
229
228
|
require_relative "dodopayments/models/product_archive_params"
|
|
230
|
-
require_relative "dodopayments/models/product_collection_create_params"
|
|
231
|
-
require_relative "dodopayments/models/product_collection_create_response"
|
|
232
|
-
require_relative "dodopayments/models/product_collection_delete_params"
|
|
233
|
-
require_relative "dodopayments/models/product_collection_list_params"
|
|
234
|
-
require_relative "dodopayments/models/product_collection_list_response"
|
|
235
|
-
require_relative "dodopayments/models/product_collection_retrieve_params"
|
|
236
|
-
require_relative "dodopayments/models/product_collection_retrieve_response"
|
|
237
|
-
require_relative "dodopayments/models/product_collections/group_create_params"
|
|
238
|
-
require_relative "dodopayments/models/product_collections/group_create_response"
|
|
239
|
-
require_relative "dodopayments/models/product_collections/group_delete_params"
|
|
240
|
-
require_relative "dodopayments/models/product_collections/groups/item_create_params"
|
|
241
|
-
require_relative "dodopayments/models/product_collections/groups/item_create_response"
|
|
242
|
-
require_relative "dodopayments/models/product_collections/groups/item_delete_params"
|
|
243
|
-
require_relative "dodopayments/models/product_collections/groups/item_update_params"
|
|
244
|
-
require_relative "dodopayments/models/product_collections/group_update_params"
|
|
245
|
-
require_relative "dodopayments/models/product_collection_unarchive_params"
|
|
246
|
-
require_relative "dodopayments/models/product_collection_unarchive_response"
|
|
247
|
-
require_relative "dodopayments/models/product_collection_update_images_params"
|
|
248
|
-
require_relative "dodopayments/models/product_collection_update_images_response"
|
|
249
|
-
require_relative "dodopayments/models/product_collection_update_params"
|
|
250
229
|
require_relative "dodopayments/models/product_create_params"
|
|
251
230
|
require_relative "dodopayments/models/product_item_req"
|
|
252
231
|
require_relative "dodopayments/models/product_list_params"
|
|
@@ -312,6 +291,7 @@ require_relative "dodopayments/models/webhook_delete_params"
|
|
|
312
291
|
require_relative "dodopayments/models/webhook_details"
|
|
313
292
|
require_relative "dodopayments/models/webhook_event_type"
|
|
314
293
|
require_relative "dodopayments/models/webhook_list_params"
|
|
294
|
+
require_relative "dodopayments/models/webhook_payload"
|
|
315
295
|
require_relative "dodopayments/models/webhook_retrieve_params"
|
|
316
296
|
require_relative "dodopayments/models/webhook_retrieve_secret_params"
|
|
317
297
|
require_relative "dodopayments/models/webhook_retrieve_secret_response"
|
|
@@ -321,7 +301,6 @@ require_relative "dodopayments/models/webhooks/header_update_params"
|
|
|
321
301
|
require_relative "dodopayments/models/webhook_unsafe_unwrap_params"
|
|
322
302
|
require_relative "dodopayments/models/webhook_unwrap_params"
|
|
323
303
|
require_relative "dodopayments/models/webhook_update_params"
|
|
324
|
-
require_relative "dodopayments/models/your_webhook_url_create_params"
|
|
325
304
|
require_relative "dodopayments/models"
|
|
326
305
|
require_relative "dodopayments/resources/addons"
|
|
327
306
|
require_relative "dodopayments/resources/balances"
|
|
@@ -344,9 +323,6 @@ require_relative "dodopayments/resources/meters"
|
|
|
344
323
|
require_relative "dodopayments/resources/misc"
|
|
345
324
|
require_relative "dodopayments/resources/payments"
|
|
346
325
|
require_relative "dodopayments/resources/payouts"
|
|
347
|
-
require_relative "dodopayments/resources/product_collections"
|
|
348
|
-
require_relative "dodopayments/resources/product_collections/groups"
|
|
349
|
-
require_relative "dodopayments/resources/product_collections/groups/items"
|
|
350
326
|
require_relative "dodopayments/resources/products"
|
|
351
327
|
require_relative "dodopayments/resources/products/images"
|
|
352
328
|
require_relative "dodopayments/resources/products/short_links"
|
|
@@ -356,4 +332,3 @@ require_relative "dodopayments/resources/usage_events"
|
|
|
356
332
|
require_relative "dodopayments/resources/webhook_events"
|
|
357
333
|
require_relative "dodopayments/resources/webhooks"
|
|
358
334
|
require_relative "dodopayments/resources/webhooks/headers"
|
|
359
|
-
require_relative "dodopayments/resources/your_webhook_url"
|
data/rbi/dodopayments/client.rbi
CHANGED
|
@@ -92,12 +92,6 @@ module Dodopayments
|
|
|
92
92
|
sig { returns(Dodopayments::Resources::CreditEntitlements) }
|
|
93
93
|
attr_reader :credit_entitlements
|
|
94
94
|
|
|
95
|
-
sig { returns(Dodopayments::Resources::ProductCollections) }
|
|
96
|
-
attr_reader :product_collections
|
|
97
|
-
|
|
98
|
-
sig { returns(Dodopayments::Resources::YourWebhookURL) }
|
|
99
|
-
attr_reader :your_webhook_url
|
|
100
|
-
|
|
101
95
|
# @api private
|
|
102
96
|
sig { override.returns(T::Hash[String, String]) }
|
|
103
97
|
private def auth_headers
|
|
@@ -32,7 +32,7 @@ module Dodopayments
|
|
|
32
32
|
# | `invoice_at_billing` | Yes | No | No |
|
|
33
33
|
# | `carry_deficit` | No | No | Yes |
|
|
34
34
|
# | `carry_deficit_auto_repay` | No | Yes | Yes |
|
|
35
|
-
sig { returns(Dodopayments::CbbOverageBehavior::
|
|
35
|
+
sig { returns(Dodopayments::CbbOverageBehavior::TaggedSymbol) }
|
|
36
36
|
attr_accessor :overage_behavior
|
|
37
37
|
|
|
38
38
|
sig { returns(T::Boolean) }
|
|
@@ -70,7 +70,7 @@ module Dodopayments
|
|
|
70
70
|
sig { returns(T.nilable(Integer)) }
|
|
71
71
|
attr_accessor :rollover_timeframe_count
|
|
72
72
|
|
|
73
|
-
sig { returns(T.nilable(Dodopayments::TimeInterval::
|
|
73
|
+
sig { returns(T.nilable(Dodopayments::TimeInterval::TaggedSymbol)) }
|
|
74
74
|
attr_accessor :rollover_timeframe_interval
|
|
75
75
|
|
|
76
76
|
# Response struct representing credit entitlement cart details for a subscription
|
|
@@ -135,7 +135,7 @@ module Dodopayments
|
|
|
135
135
|
credit_entitlement_name: String,
|
|
136
136
|
credits_amount: String,
|
|
137
137
|
overage_balance: String,
|
|
138
|
-
overage_behavior: Dodopayments::CbbOverageBehavior::
|
|
138
|
+
overage_behavior: Dodopayments::CbbOverageBehavior::TaggedSymbol,
|
|
139
139
|
overage_enabled: T::Boolean,
|
|
140
140
|
product_id: String,
|
|
141
141
|
remaining_balance: String,
|
|
@@ -148,7 +148,7 @@ module Dodopayments
|
|
|
148
148
|
rollover_percentage: T.nilable(Integer),
|
|
149
149
|
rollover_timeframe_count: T.nilable(Integer),
|
|
150
150
|
rollover_timeframe_interval:
|
|
151
|
-
T.nilable(Dodopayments::TimeInterval::
|
|
151
|
+
T.nilable(Dodopayments::TimeInterval::TaggedSymbol)
|
|
152
152
|
}
|
|
153
153
|
)
|
|
154
154
|
end
|
|
@@ -47,7 +47,7 @@ module Dodopayments
|
|
|
47
47
|
|
|
48
48
|
sig do
|
|
49
49
|
returns(
|
|
50
|
-
Dodopayments::CreditEntitlements::CreditLedgerEntry::TransactionType::
|
|
50
|
+
Dodopayments::CreditEntitlements::CreditLedgerEntry::TransactionType::TaggedSymbol
|
|
51
51
|
)
|
|
52
52
|
end
|
|
53
53
|
attr_accessor :transaction_type
|
|
@@ -121,7 +121,7 @@ module Dodopayments
|
|
|
121
121
|
overage_after: String,
|
|
122
122
|
overage_before: String,
|
|
123
123
|
transaction_type:
|
|
124
|
-
Dodopayments::CreditEntitlements::CreditLedgerEntry::TransactionType::
|
|
124
|
+
Dodopayments::CreditEntitlements::CreditLedgerEntry::TransactionType::TaggedSymbol,
|
|
125
125
|
description: T.nilable(String),
|
|
126
126
|
grant_id: T.nilable(String),
|
|
127
127
|
reference_id: T.nilable(String),
|
|
@@ -2,49 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
module Dodopayments
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class CustomerDeletePaymentMethodParams < Dodopayments::Internal::Type::BaseModel
|
|
6
6
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
7
7
|
include Dodopayments::Internal::Type::RequestParameters
|
|
8
8
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias do
|
|
11
11
|
T.any(
|
|
12
|
-
Dodopayments::
|
|
12
|
+
Dodopayments::CustomerDeletePaymentMethodParams,
|
|
13
13
|
Dodopayments::Internal::AnyHash
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
sig { returns(String) }
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :customer_id
|
|
19
19
|
|
|
20
20
|
sig { returns(String) }
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
sig { returns(String) }
|
|
24
|
-
attr_accessor :webhook_timestamp
|
|
21
|
+
attr_accessor :payment_method_id
|
|
25
22
|
|
|
26
23
|
sig do
|
|
27
24
|
params(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
webhook_timestamp: String,
|
|
25
|
+
customer_id: String,
|
|
26
|
+
payment_method_id: String,
|
|
31
27
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
32
28
|
).returns(T.attached_class)
|
|
33
29
|
end
|
|
34
|
-
def self.new(
|
|
35
|
-
webhook_id:,
|
|
36
|
-
webhook_signature:,
|
|
37
|
-
webhook_timestamp:,
|
|
38
|
-
request_options: {}
|
|
39
|
-
)
|
|
30
|
+
def self.new(customer_id:, payment_method_id:, request_options: {})
|
|
40
31
|
end
|
|
41
32
|
|
|
42
33
|
sig do
|
|
43
34
|
override.returns(
|
|
44
35
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
webhook_timestamp: String,
|
|
36
|
+
customer_id: String,
|
|
37
|
+
payment_method_id: String,
|
|
48
38
|
request_options: Dodopayments::RequestOptions
|
|
49
39
|
}
|
|
50
40
|
)
|
|
@@ -30,17 +30,21 @@ module Dodopayments
|
|
|
30
30
|
attr_accessor :dispute_id
|
|
31
31
|
|
|
32
32
|
# The current stage of the dispute process.
|
|
33
|
-
sig { returns(Dodopayments::DisputeStage::
|
|
33
|
+
sig { returns(Dodopayments::DisputeStage::TaggedSymbol) }
|
|
34
34
|
attr_accessor :dispute_stage
|
|
35
35
|
|
|
36
36
|
# The current status of the dispute.
|
|
37
|
-
sig { returns(Dodopayments::DisputeStatus::
|
|
37
|
+
sig { returns(Dodopayments::DisputeStatus::TaggedSymbol) }
|
|
38
38
|
attr_accessor :dispute_status
|
|
39
39
|
|
|
40
40
|
# The unique identifier of the payment associated with the dispute.
|
|
41
41
|
sig { returns(String) }
|
|
42
42
|
attr_accessor :payment_id
|
|
43
43
|
|
|
44
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
45
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
46
|
+
attr_accessor :is_resolved_by_rdr
|
|
47
|
+
|
|
44
48
|
# Remarks
|
|
45
49
|
sig { returns(T.nilable(String)) }
|
|
46
50
|
attr_accessor :remarks
|
|
@@ -55,6 +59,7 @@ module Dodopayments
|
|
|
55
59
|
dispute_stage: Dodopayments::DisputeStage::OrSymbol,
|
|
56
60
|
dispute_status: Dodopayments::DisputeStatus::OrSymbol,
|
|
57
61
|
payment_id: String,
|
|
62
|
+
is_resolved_by_rdr: T.nilable(T::Boolean),
|
|
58
63
|
remarks: T.nilable(String)
|
|
59
64
|
).returns(T.attached_class)
|
|
60
65
|
end
|
|
@@ -76,6 +81,8 @@ module Dodopayments
|
|
|
76
81
|
dispute_status:,
|
|
77
82
|
# The unique identifier of the payment associated with the dispute.
|
|
78
83
|
payment_id:,
|
|
84
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
85
|
+
is_resolved_by_rdr: nil,
|
|
79
86
|
# Remarks
|
|
80
87
|
remarks: nil
|
|
81
88
|
)
|
|
@@ -89,9 +96,10 @@ module Dodopayments
|
|
|
89
96
|
created_at: Time,
|
|
90
97
|
currency: String,
|
|
91
98
|
dispute_id: String,
|
|
92
|
-
dispute_stage: Dodopayments::DisputeStage::
|
|
93
|
-
dispute_status: Dodopayments::DisputeStatus::
|
|
99
|
+
dispute_stage: Dodopayments::DisputeStage::TaggedSymbol,
|
|
100
|
+
dispute_status: Dodopayments::DisputeStatus::TaggedSymbol,
|
|
94
101
|
payment_id: String,
|
|
102
|
+
is_resolved_by_rdr: T.nilable(T::Boolean),
|
|
95
103
|
remarks: T.nilable(String)
|
|
96
104
|
}
|
|
97
105
|
)
|
|
@@ -44,6 +44,10 @@ module Dodopayments
|
|
|
44
44
|
sig { returns(String) }
|
|
45
45
|
attr_accessor :payment_id
|
|
46
46
|
|
|
47
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
48
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
49
|
+
attr_accessor :is_resolved_by_rdr
|
|
50
|
+
|
|
47
51
|
sig do
|
|
48
52
|
params(
|
|
49
53
|
amount: String,
|
|
@@ -53,7 +57,8 @@ module Dodopayments
|
|
|
53
57
|
dispute_id: String,
|
|
54
58
|
dispute_stage: Dodopayments::DisputeStage::OrSymbol,
|
|
55
59
|
dispute_status: Dodopayments::DisputeStatus::OrSymbol,
|
|
56
|
-
payment_id: String
|
|
60
|
+
payment_id: String,
|
|
61
|
+
is_resolved_by_rdr: T.nilable(T::Boolean)
|
|
57
62
|
).returns(T.attached_class)
|
|
58
63
|
end
|
|
59
64
|
def self.new(
|
|
@@ -73,7 +78,9 @@ module Dodopayments
|
|
|
73
78
|
# The current status of the dispute.
|
|
74
79
|
dispute_status:,
|
|
75
80
|
# The unique identifier of the payment associated with the dispute.
|
|
76
|
-
payment_id
|
|
81
|
+
payment_id:,
|
|
82
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
83
|
+
is_resolved_by_rdr: nil
|
|
77
84
|
)
|
|
78
85
|
end
|
|
79
86
|
|
|
@@ -87,7 +94,8 @@ module Dodopayments
|
|
|
87
94
|
dispute_id: String,
|
|
88
95
|
dispute_stage: Dodopayments::DisputeStage::TaggedSymbol,
|
|
89
96
|
dispute_status: Dodopayments::DisputeStatus::TaggedSymbol,
|
|
90
|
-
payment_id: String
|
|
97
|
+
payment_id: String,
|
|
98
|
+
is_resolved_by_rdr: T.nilable(T::Boolean)
|
|
91
99
|
}
|
|
92
100
|
)
|
|
93
101
|
end
|
|
@@ -39,17 +39,21 @@ module Dodopayments
|
|
|
39
39
|
attr_accessor :dispute_id
|
|
40
40
|
|
|
41
41
|
# The current stage of the dispute process.
|
|
42
|
-
sig { returns(Dodopayments::DisputeStage::
|
|
42
|
+
sig { returns(Dodopayments::DisputeStage::TaggedSymbol) }
|
|
43
43
|
attr_accessor :dispute_stage
|
|
44
44
|
|
|
45
45
|
# The current status of the dispute.
|
|
46
|
-
sig { returns(Dodopayments::DisputeStatus::
|
|
46
|
+
sig { returns(Dodopayments::DisputeStatus::TaggedSymbol) }
|
|
47
47
|
attr_accessor :dispute_status
|
|
48
48
|
|
|
49
49
|
# The unique identifier of the payment associated with the dispute.
|
|
50
50
|
sig { returns(String) }
|
|
51
51
|
attr_accessor :payment_id
|
|
52
52
|
|
|
53
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
54
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
55
|
+
attr_accessor :is_resolved_by_rdr
|
|
56
|
+
|
|
53
57
|
# Reason for the dispute
|
|
54
58
|
sig { returns(T.nilable(String)) }
|
|
55
59
|
attr_accessor :reason
|
|
@@ -69,6 +73,7 @@ module Dodopayments
|
|
|
69
73
|
dispute_stage: Dodopayments::DisputeStage::OrSymbol,
|
|
70
74
|
dispute_status: Dodopayments::DisputeStatus::OrSymbol,
|
|
71
75
|
payment_id: String,
|
|
76
|
+
is_resolved_by_rdr: T.nilable(T::Boolean),
|
|
72
77
|
reason: T.nilable(String),
|
|
73
78
|
remarks: T.nilable(String)
|
|
74
79
|
).returns(T.attached_class)
|
|
@@ -93,6 +98,8 @@ module Dodopayments
|
|
|
93
98
|
dispute_status:,
|
|
94
99
|
# The unique identifier of the payment associated with the dispute.
|
|
95
100
|
payment_id:,
|
|
101
|
+
# Whether the dispute was resolved by Rapid Dispute Resolution
|
|
102
|
+
is_resolved_by_rdr: nil,
|
|
96
103
|
# Reason for the dispute
|
|
97
104
|
reason: nil,
|
|
98
105
|
# Remarks
|
|
@@ -109,9 +116,10 @@ module Dodopayments
|
|
|
109
116
|
currency: String,
|
|
110
117
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
111
118
|
dispute_id: String,
|
|
112
|
-
dispute_stage: Dodopayments::DisputeStage::
|
|
113
|
-
dispute_status: Dodopayments::DisputeStatus::
|
|
119
|
+
dispute_stage: Dodopayments::DisputeStage::TaggedSymbol,
|
|
120
|
+
dispute_status: Dodopayments::DisputeStatus::TaggedSymbol,
|
|
114
121
|
payment_id: String,
|
|
122
|
+
is_resolved_by_rdr: T.nilable(T::Boolean),
|
|
115
123
|
reason: T.nilable(String),
|
|
116
124
|
remarks: T.nilable(String)
|
|
117
125
|
}
|