dodopayments 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/dodopayments/client.rb +0 -8
  5. data/lib/dodopayments/internal/util.rb +1 -2
  6. data/lib/dodopayments/models/customer_delete_payment_method_params.rb +26 -0
  7. data/lib/dodopayments/models/dispute.rb +9 -1
  8. data/lib/dodopayments/models/dispute_list_response.rb +9 -1
  9. data/lib/dodopayments/models/get_dispute.rb +9 -1
  10. data/lib/dodopayments/models.rb +2 -18
  11. data/lib/dodopayments/resources/customers.rb +25 -0
  12. data/lib/dodopayments/resources/invoices/payments.rb +0 -18
  13. data/lib/dodopayments/version.rb +1 -1
  14. data/lib/dodopayments.rb +4 -29
  15. data/rbi/dodopayments/client.rbi +0 -6
  16. data/rbi/dodopayments/models/credit_entitlement_cart_response.rbi +4 -4
  17. data/rbi/dodopayments/models/credit_entitlements/credit_ledger_entry.rbi +2 -2
  18. data/rbi/dodopayments/models/{your_webhook_url_create_params.rbi → customer_delete_payment_method_params.rbi} +9 -19
  19. data/rbi/dodopayments/models/dispute.rbi +12 -4
  20. data/rbi/dodopayments/models/dispute_list_response.rbi +11 -3
  21. data/rbi/dodopayments/models/get_dispute.rbi +12 -4
  22. data/rbi/dodopayments/models/license_key.rbi +2 -2
  23. data/rbi/dodopayments/models/meter_cart_response_item.rbi +2 -2
  24. data/rbi/dodopayments/models/payment.rbi +12 -10
  25. data/rbi/dodopayments/models/refund.rbi +4 -4
  26. data/rbi/dodopayments/models/refund_list_item.rbi +4 -4
  27. data/rbi/dodopayments/models/subscription.rbi +10 -8
  28. data/rbi/dodopayments/models.rbi +3 -25
  29. data/rbi/dodopayments/resources/customers.rbi +16 -0
  30. data/rbi/dodopayments/resources/invoices/payments.rbi +0 -9
  31. data/sig/dodopayments/client.rbs +0 -4
  32. data/sig/dodopayments/models/{product_collection_update_images_params.rbs → customer_delete_payment_method_params.rbs} +9 -9
  33. data/sig/dodopayments/models/dispute.rbs +5 -0
  34. data/sig/dodopayments/models/dispute_list_response.rbs +8 -3
  35. data/sig/dodopayments/models/get_dispute.rbs +5 -0
  36. data/sig/dodopayments/models.rbs +2 -18
  37. data/sig/dodopayments/resources/customers.rbs +6 -0
  38. data/sig/dodopayments/resources/invoices/payments.rbs +0 -5
  39. metadata +5 -80
  40. data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +0 -22
  41. data/lib/dodopayments/models/product_collection_create_params.rb +0 -98
  42. data/lib/dodopayments/models/product_collection_create_response.rb +0 -226
  43. data/lib/dodopayments/models/product_collection_delete_params.rb +0 -20
  44. data/lib/dodopayments/models/product_collection_list_params.rb +0 -46
  45. data/lib/dodopayments/models/product_collection_list_response.rb +0 -65
  46. data/lib/dodopayments/models/product_collection_retrieve_params.rb +0 -20
  47. data/lib/dodopayments/models/product_collection_retrieve_response.rb +0 -226
  48. data/lib/dodopayments/models/product_collection_unarchive_params.rb +0 -20
  49. data/lib/dodopayments/models/product_collection_unarchive_response.rb +0 -33
  50. data/lib/dodopayments/models/product_collection_update_images_params.rb +0 -29
  51. data/lib/dodopayments/models/product_collection_update_images_response.rb +0 -25
  52. data/lib/dodopayments/models/product_collection_update_params.rb +0 -61
  53. data/lib/dodopayments/models/product_collections/group_create_params.rb +0 -71
  54. data/lib/dodopayments/models/product_collections/group_create_response.rb +0 -160
  55. data/lib/dodopayments/models/product_collections/group_delete_params.rb +0 -28
  56. data/lib/dodopayments/models/product_collections/group_update_params.rb +0 -59
  57. data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +0 -60
  58. data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +0 -136
  59. data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +0 -36
  60. data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +0 -47
  61. data/lib/dodopayments/models/your_webhook_url_create_params.rb +0 -32
  62. data/lib/dodopayments/resources/product_collections/groups/items.rb +0 -111
  63. data/lib/dodopayments/resources/product_collections/groups.rb +0 -109
  64. data/lib/dodopayments/resources/product_collections.rb +0 -179
  65. data/lib/dodopayments/resources/your_webhook_url.rb +0 -56
  66. data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +0 -40
  67. data/rbi/dodopayments/models/product_collection_create_params.rbi +0 -180
  68. data/rbi/dodopayments/models/product_collection_create_response.rbi +0 -303
  69. data/rbi/dodopayments/models/product_collection_delete_params.rbi +0 -38
  70. data/rbi/dodopayments/models/product_collection_list_params.rbi +0 -82
  71. data/rbi/dodopayments/models/product_collection_list_response.rbi +0 -88
  72. data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +0 -38
  73. data/rbi/dodopayments/models/product_collection_retrieve_response.rbi +0 -305
  74. data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +0 -38
  75. data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +0 -56
  76. data/rbi/dodopayments/models/product_collection_update_images_params.rbi +0 -52
  77. data/rbi/dodopayments/models/product_collection_update_images_response.rbi +0 -40
  78. data/rbi/dodopayments/models/product_collection_update_params.rbi +0 -84
  79. data/rbi/dodopayments/models/product_collections/group_create_params.rbi +0 -123
  80. data/rbi/dodopayments/models/product_collections/group_create_response.rbi +0 -204
  81. data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +0 -48
  82. data/rbi/dodopayments/models/product_collections/group_update_params.rbi +0 -80
  83. data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +0 -113
  84. data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +0 -156
  85. data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +0 -55
  86. data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +0 -68
  87. data/rbi/dodopayments/resources/product_collections/groups/items.rbi +0 -83
  88. data/rbi/dodopayments/resources/product_collections/groups.rbi +0 -90
  89. data/rbi/dodopayments/resources/product_collections.rbi +0 -149
  90. data/rbi/dodopayments/resources/your_webhook_url.rbi +0 -53
  91. data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +0 -25
  92. data/sig/dodopayments/models/product_collection_create_params.rbs +0 -80
  93. data/sig/dodopayments/models/product_collection_create_response.rbs +0 -179
  94. data/sig/dodopayments/models/product_collection_delete_params.rbs +0 -23
  95. data/sig/dodopayments/models/product_collection_list_params.rbs +0 -49
  96. data/sig/dodopayments/models/product_collection_list_response.rbs +0 -50
  97. data/sig/dodopayments/models/product_collection_retrieve_params.rbs +0 -23
  98. data/sig/dodopayments/models/product_collection_retrieve_response.rbs +0 -179
  99. data/sig/dodopayments/models/product_collection_unarchive_params.rbs +0 -23
  100. data/sig/dodopayments/models/product_collection_unarchive_response.rbs +0 -30
  101. data/sig/dodopayments/models/product_collection_update_images_response.rbs +0 -16
  102. data/sig/dodopayments/models/product_collection_update_params.rbs +0 -51
  103. data/sig/dodopayments/models/product_collections/group_create_params.rbs +0 -55
  104. data/sig/dodopayments/models/product_collections/group_create_response.rbs +0 -129
  105. data/sig/dodopayments/models/product_collections/group_delete_params.rbs +0 -30
  106. data/sig/dodopayments/models/product_collections/group_update_params.rbs +0 -48
  107. data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +0 -52
  108. data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +0 -104
  109. data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +0 -36
  110. data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +0 -40
  111. data/sig/dodopayments/models/your_webhook_url_create_params.rbs +0 -42
  112. data/sig/dodopayments/resources/product_collections/groups/items.rbs +0 -33
  113. data/sig/dodopayments/resources/product_collections/groups.rbs +0 -34
  114. data/sig/dodopayments/resources/product_collections.rbs +0 -56
  115. data/sig/dodopayments/resources/your_webhook_url.rbs +0 -18
@@ -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::OrSymbol) }
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::OrSymbol) }
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::OrSymbol,
113
- dispute_status: Dodopayments::DisputeStatus::OrSymbol,
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
  }
@@ -41,7 +41,7 @@ module Dodopayments
41
41
  attr_accessor :product_id
42
42
 
43
43
  # The current status of the license key (e.g., active, inactive, expired).
44
- sig { returns(Dodopayments::LicenseKeyStatus::OrSymbol) }
44
+ sig { returns(Dodopayments::LicenseKeyStatus::TaggedSymbol) }
45
45
  attr_accessor :status
46
46
 
47
47
  # The maximum number of activations allowed for this license key.
@@ -113,7 +113,7 @@ module Dodopayments
113
113
  key: String,
114
114
  payment_id: String,
115
115
  product_id: String,
116
- status: Dodopayments::LicenseKeyStatus::OrSymbol,
116
+ status: Dodopayments::LicenseKeyStatus::TaggedSymbol,
117
117
  activations_limit: T.nilable(Integer),
118
118
  expires_at: T.nilable(Time),
119
119
  subscription_id: T.nilable(String)
@@ -11,7 +11,7 @@ module Dodopayments
11
11
  )
12
12
  end
13
13
 
14
- sig { returns(Dodopayments::Currency::OrSymbol) }
14
+ sig { returns(Dodopayments::Currency::TaggedSymbol) }
15
15
  attr_accessor :currency
16
16
 
17
17
  sig { returns(Integer) }
@@ -58,7 +58,7 @@ module Dodopayments
58
58
  sig do
59
59
  override.returns(
60
60
  {
61
- currency: Dodopayments::Currency::OrSymbol,
61
+ currency: Dodopayments::Currency::TaggedSymbol,
62
62
  free_threshold: Integer,
63
63
  measurement_unit: String,
64
64
  meter_id: String,
@@ -28,7 +28,7 @@ module Dodopayments
28
28
  attr_accessor :created_at
29
29
 
30
30
  # Currency used for the payment
31
- sig { returns(Dodopayments::Currency::OrSymbol) }
31
+ sig { returns(Dodopayments::Currency::TaggedSymbol) }
32
32
  attr_accessor :currency
33
33
 
34
34
  # Details about the customer who made the payment
@@ -69,7 +69,7 @@ module Dodopayments
69
69
  # The currency in which the settlement_amount will be credited to your Dodo
70
70
  # balance. This may differ from the customer's payment currency in adaptive
71
71
  # pricing scenarios.
72
- sig { returns(Dodopayments::Currency::OrSymbol) }
72
+ sig { returns(Dodopayments::Currency::TaggedSymbol) }
73
73
  attr_accessor :settlement_currency
74
74
 
75
75
  # Total amount charged to the customer including tax, in smallest currency unit
@@ -82,7 +82,7 @@ module Dodopayments
82
82
  attr_accessor :card_holder_name
83
83
 
84
84
  # ISO2 country code of the card
85
- sig { returns(T.nilable(Dodopayments::CountryCode::OrSymbol)) }
85
+ sig { returns(T.nilable(Dodopayments::CountryCode::TaggedSymbol)) }
86
86
  attr_accessor :card_issuing_country
87
87
 
88
88
  # The last four digits of the card
@@ -144,7 +144,9 @@ module Dodopayments
144
144
 
145
145
  # Summary of the refund status for this payment. None if no succeeded refunds
146
146
  # exist.
147
- sig { returns(T.nilable(Dodopayments::PaymentRefundStatus::OrSymbol)) }
147
+ sig do
148
+ returns(T.nilable(Dodopayments::PaymentRefundStatus::TaggedSymbol))
149
+ end
148
150
  attr_accessor :refund_status
149
151
 
150
152
  # This represents the portion of settlement_amount that corresponds to taxes
@@ -154,7 +156,7 @@ module Dodopayments
154
156
  attr_accessor :settlement_tax
155
157
 
156
158
  # Current status of the payment intent
157
- sig { returns(T.nilable(Dodopayments::IntentStatus::OrSymbol)) }
159
+ sig { returns(T.nilable(Dodopayments::IntentStatus::TaggedSymbol)) }
158
160
  attr_accessor :status
159
161
 
160
162
  # Identifier of the subscription if payment is part of a subscription
@@ -303,7 +305,7 @@ module Dodopayments
303
305
  brand_id: String,
304
306
  business_id: String,
305
307
  created_at: Time,
306
- currency: Dodopayments::Currency::OrSymbol,
308
+ currency: Dodopayments::Currency::TaggedSymbol,
307
309
  customer: Dodopayments::CustomerLimitedDetails,
308
310
  digital_products_delivered: T::Boolean,
309
311
  disputes: T::Array[Dodopayments::Dispute],
@@ -311,11 +313,11 @@ module Dodopayments
311
313
  payment_id: String,
312
314
  refunds: T::Array[Dodopayments::RefundListItem],
313
315
  settlement_amount: Integer,
314
- settlement_currency: Dodopayments::Currency::OrSymbol,
316
+ settlement_currency: Dodopayments::Currency::TaggedSymbol,
315
317
  total_amount: Integer,
316
318
  card_holder_name: T.nilable(String),
317
319
  card_issuing_country:
318
- T.nilable(Dodopayments::CountryCode::OrSymbol),
320
+ T.nilable(Dodopayments::CountryCode::TaggedSymbol),
319
321
  card_last_four: T.nilable(String),
320
322
  card_network: T.nilable(String),
321
323
  card_type: T.nilable(String),
@@ -333,9 +335,9 @@ module Dodopayments
333
335
  product_cart:
334
336
  T.nilable(T::Array[Dodopayments::OneTimeProductCartItem]),
335
337
  refund_status:
336
- T.nilable(Dodopayments::PaymentRefundStatus::OrSymbol),
338
+ T.nilable(Dodopayments::PaymentRefundStatus::TaggedSymbol),
337
339
  settlement_tax: T.nilable(Integer),
338
- status: T.nilable(Dodopayments::IntentStatus::OrSymbol),
340
+ status: T.nilable(Dodopayments::IntentStatus::TaggedSymbol),
339
341
  subscription_id: T.nilable(String),
340
342
  tax: T.nilable(Integer),
341
343
  updated_at: T.nilable(Time)
@@ -42,7 +42,7 @@ module Dodopayments
42
42
  attr_accessor :refund_id
43
43
 
44
44
  # The current status of the refund.
45
- sig { returns(Dodopayments::RefundStatus::OrSymbol) }
45
+ sig { returns(Dodopayments::RefundStatus::TaggedSymbol) }
46
46
  attr_accessor :status
47
47
 
48
48
  # The refunded amount.
@@ -50,7 +50,7 @@ module Dodopayments
50
50
  attr_accessor :amount
51
51
 
52
52
  # The currency of the refund, represented as an ISO 4217 currency code.
53
- sig { returns(T.nilable(Dodopayments::Currency::OrSymbol)) }
53
+ sig { returns(T.nilable(Dodopayments::Currency::TaggedSymbol)) }
54
54
  attr_accessor :currency
55
55
 
56
56
  # The reason provided for the refund, if any. Optional.
@@ -108,9 +108,9 @@ module Dodopayments
108
108
  metadata: T::Hash[Symbol, String],
109
109
  payment_id: String,
110
110
  refund_id: String,
111
- status: Dodopayments::RefundStatus::OrSymbol,
111
+ status: Dodopayments::RefundStatus::TaggedSymbol,
112
112
  amount: T.nilable(Integer),
113
- currency: T.nilable(Dodopayments::Currency::OrSymbol),
113
+ currency: T.nilable(Dodopayments::Currency::TaggedSymbol),
114
114
  reason: T.nilable(String)
115
115
  }
116
116
  )
@@ -29,7 +29,7 @@ module Dodopayments
29
29
  attr_accessor :refund_id
30
30
 
31
31
  # The current status of the refund.
32
- sig { returns(Dodopayments::RefundStatus::OrSymbol) }
32
+ sig { returns(Dodopayments::RefundStatus::TaggedSymbol) }
33
33
  attr_accessor :status
34
34
 
35
35
  # The refunded amount.
@@ -37,7 +37,7 @@ module Dodopayments
37
37
  attr_accessor :amount
38
38
 
39
39
  # The currency of the refund, represented as an ISO 4217 currency code.
40
- sig { returns(T.nilable(Dodopayments::Currency::OrSymbol)) }
40
+ sig { returns(T.nilable(Dodopayments::Currency::TaggedSymbol)) }
41
41
  attr_accessor :currency
42
42
 
43
43
  # The reason provided for the refund, if any. Optional.
@@ -87,9 +87,9 @@ module Dodopayments
87
87
  is_partial: T::Boolean,
88
88
  payment_id: String,
89
89
  refund_id: String,
90
- status: Dodopayments::RefundStatus::OrSymbol,
90
+ status: Dodopayments::RefundStatus::TaggedSymbol,
91
91
  amount: T.nilable(Integer),
92
- currency: T.nilable(Dodopayments::Currency::OrSymbol),
92
+ currency: T.nilable(Dodopayments::Currency::TaggedSymbol),
93
93
  reason: T.nilable(String)
94
94
  }
95
95
  )
@@ -32,7 +32,7 @@ module Dodopayments
32
32
  attr_accessor :credit_entitlement_cart
33
33
 
34
34
  # Currency used for the subscription payments
35
- sig { returns(Dodopayments::Currency::OrSymbol) }
35
+ sig { returns(Dodopayments::Currency::TaggedSymbol) }
36
36
  attr_accessor :currency
37
37
 
38
38
  # Customer details associated with the subscription
@@ -72,7 +72,7 @@ module Dodopayments
72
72
  attr_accessor :payment_frequency_count
73
73
 
74
74
  # Time interval for payment frequency (e.g. month, year)
75
- sig { returns(Dodopayments::TimeInterval::OrSymbol) }
75
+ sig { returns(Dodopayments::TimeInterval::TaggedSymbol) }
76
76
  attr_accessor :payment_frequency_interval
77
77
 
78
78
  # Timestamp of the last payment. Indicates the start of current billing period
@@ -93,7 +93,7 @@ module Dodopayments
93
93
  attr_accessor :recurring_pre_tax_amount
94
94
 
95
95
  # Current status of the subscription
96
- sig { returns(Dodopayments::SubscriptionStatus::OrSymbol) }
96
+ sig { returns(Dodopayments::SubscriptionStatus::TaggedSymbol) }
97
97
  attr_accessor :status
98
98
 
99
99
  # Unique identifier for the subscription
@@ -105,7 +105,7 @@ module Dodopayments
105
105
  attr_accessor :subscription_period_count
106
106
 
107
107
  # Time interval for the subscription period (e.g. month, year)
108
- sig { returns(Dodopayments::TimeInterval::OrSymbol) }
108
+ sig { returns(Dodopayments::TimeInterval::TaggedSymbol) }
109
109
  attr_accessor :subscription_period_interval
110
110
 
111
111
  # Indicates if the recurring_pre_tax_amount is tax inclusive
@@ -276,7 +276,7 @@ module Dodopayments
276
276
  created_at: Time,
277
277
  credit_entitlement_cart:
278
278
  T::Array[Dodopayments::CreditEntitlementCartResponse],
279
- currency: Dodopayments::Currency::OrSymbol,
279
+ currency: Dodopayments::Currency::TaggedSymbol,
280
280
  customer: Dodopayments::CustomerLimitedDetails,
281
281
  metadata: T::Hash[Symbol, String],
282
282
  meter_credit_entitlement_cart:
@@ -285,15 +285,17 @@ module Dodopayments
285
285
  next_billing_date: Time,
286
286
  on_demand: T::Boolean,
287
287
  payment_frequency_count: Integer,
288
- payment_frequency_interval: Dodopayments::TimeInterval::OrSymbol,
288
+ payment_frequency_interval:
289
+ Dodopayments::TimeInterval::TaggedSymbol,
289
290
  previous_billing_date: Time,
290
291
  product_id: String,
291
292
  quantity: Integer,
292
293
  recurring_pre_tax_amount: Integer,
293
- status: Dodopayments::SubscriptionStatus::OrSymbol,
294
+ status: Dodopayments::SubscriptionStatus::TaggedSymbol,
294
295
  subscription_id: String,
295
296
  subscription_period_count: Integer,
296
- subscription_period_interval: Dodopayments::TimeInterval::OrSymbol,
297
+ subscription_period_interval:
298
+ Dodopayments::TimeInterval::TaggedSymbol,
297
299
  tax_inclusive: T::Boolean,
298
300
  trial_period_days: Integer,
299
301
  cancelled_at: T.nilable(Time),
@@ -130,6 +130,9 @@ module Dodopayments
130
130
 
131
131
  CustomerCreateParams = Dodopayments::Models::CustomerCreateParams
132
132
 
133
+ CustomerDeletePaymentMethodParams =
134
+ Dodopayments::Models::CustomerDeletePaymentMethodParams
135
+
133
136
  CustomerLimitedDetails = Dodopayments::Models::CustomerLimitedDetails
134
137
 
135
138
  CustomerListCreditEntitlementsParams =
@@ -310,29 +313,6 @@ module Dodopayments
310
313
 
311
314
  ProductArchiveParams = Dodopayments::Models::ProductArchiveParams
312
315
 
313
- ProductCollectionCreateParams =
314
- Dodopayments::Models::ProductCollectionCreateParams
315
-
316
- ProductCollectionDeleteParams =
317
- Dodopayments::Models::ProductCollectionDeleteParams
318
-
319
- ProductCollectionListParams =
320
- Dodopayments::Models::ProductCollectionListParams
321
-
322
- ProductCollectionRetrieveParams =
323
- Dodopayments::Models::ProductCollectionRetrieveParams
324
-
325
- ProductCollections = Dodopayments::Models::ProductCollections
326
-
327
- ProductCollectionUnarchiveParams =
328
- Dodopayments::Models::ProductCollectionUnarchiveParams
329
-
330
- ProductCollectionUpdateImagesParams =
331
- Dodopayments::Models::ProductCollectionUpdateImagesParams
332
-
333
- ProductCollectionUpdateParams =
334
- Dodopayments::Models::ProductCollectionUpdateParams
335
-
336
316
  ProductCreateParams = Dodopayments::Models::ProductCreateParams
337
317
 
338
318
  ProductItemReq = Dodopayments::Models::ProductItemReq
@@ -468,6 +448,4 @@ module Dodopayments
468
448
  WebhookUnwrapParams = Dodopayments::Models::WebhookUnwrapParams
469
449
 
470
450
  WebhookUpdateParams = Dodopayments::Models::WebhookUpdateParams
471
-
472
- YourWebhookURLCreateParams = Dodopayments::Models::YourWebhookURLCreateParams
473
451
  end
@@ -95,6 +95,22 @@ module Dodopayments
95
95
  )
96
96
  end
97
97
 
98
+ sig do
99
+ params(
100
+ payment_method_id: String,
101
+ customer_id: String,
102
+ request_options: Dodopayments::RequestOptions::OrHash
103
+ ).void
104
+ end
105
+ def delete_payment_method(
106
+ # Payment Method Id
107
+ payment_method_id,
108
+ # Customer Id
109
+ customer_id:,
110
+ request_options: {}
111
+ )
112
+ end
113
+
98
114
  # List all credit entitlements for a customer with their current balances
99
115
  sig do
100
116
  params(
@@ -13,15 +13,6 @@ module Dodopayments
13
13
  def retrieve(payment_id, request_options: {})
14
14
  end
15
15
 
16
- sig do
17
- params(
18
- payout_id: String,
19
- request_options: Dodopayments::RequestOptions::OrHash
20
- ).returns(StringIO)
21
- end
22
- def retrieve_payout(payout_id, request_options: {})
23
- end
24
-
25
16
  sig do
26
17
  params(
27
18
  refund_id: String,
@@ -61,10 +61,6 @@ module Dodopayments
61
61
 
62
62
  attr_reader credit_entitlements: Dodopayments::Resources::CreditEntitlements
63
63
 
64
- attr_reader product_collections: Dodopayments::Resources::ProductCollections
65
-
66
- attr_reader your_webhook_url: Dodopayments::Resources::YourWebhookURL
67
-
68
64
  private def auth_headers: -> ::Hash[String, String]
69
65
 
70
66
  def initialize: (
@@ -1,26 +1,26 @@
1
1
  module Dodopayments
2
2
  module Models
3
- type product_collection_update_images_params =
4
- { id: String, force_update: bool? }
3
+ type customer_delete_payment_method_params =
4
+ { customer_id: String, payment_method_id: String }
5
5
  & Dodopayments::Internal::Type::request_parameters
6
6
 
7
- class ProductCollectionUpdateImagesParams < Dodopayments::Internal::Type::BaseModel
7
+ class CustomerDeletePaymentMethodParams < Dodopayments::Internal::Type::BaseModel
8
8
  extend Dodopayments::Internal::Type::RequestParameters::Converter
9
9
  include Dodopayments::Internal::Type::RequestParameters
10
10
 
11
- attr_accessor id: String
11
+ attr_accessor customer_id: String
12
12
 
13
- attr_accessor force_update: bool?
13
+ attr_accessor payment_method_id: String
14
14
 
15
15
  def initialize: (
16
- id: String,
17
- ?force_update: bool?,
16
+ customer_id: String,
17
+ payment_method_id: String,
18
18
  ?request_options: Dodopayments::request_opts
19
19
  ) -> void
20
20
 
21
21
  def to_hash: -> {
22
- id: String,
23
- force_update: bool?,
22
+ customer_id: String,
23
+ payment_method_id: String,
24
24
  request_options: Dodopayments::RequestOptions
25
25
  }
26
26
  end
@@ -10,6 +10,7 @@ module Dodopayments
10
10
  dispute_stage: Dodopayments::Models::dispute_stage,
11
11
  dispute_status: Dodopayments::Models::dispute_status,
12
12
  payment_id: String,
13
+ is_resolved_by_rdr: bool?,
13
14
  remarks: String?
14
15
  }
15
16
 
@@ -30,6 +31,8 @@ module Dodopayments
30
31
 
31
32
  attr_accessor payment_id: String
32
33
 
34
+ attr_accessor is_resolved_by_rdr: bool?
35
+
33
36
  attr_accessor remarks: String?
34
37
 
35
38
  def initialize: (
@@ -41,6 +44,7 @@ module Dodopayments
41
44
  dispute_stage: Dodopayments::Models::dispute_stage,
42
45
  dispute_status: Dodopayments::Models::dispute_status,
43
46
  payment_id: String,
47
+ ?is_resolved_by_rdr: bool?,
44
48
  ?remarks: String?
45
49
  ) -> void
46
50
 
@@ -53,6 +57,7 @@ module Dodopayments
53
57
  dispute_stage: Dodopayments::Models::dispute_stage,
54
58
  dispute_status: Dodopayments::Models::dispute_status,
55
59
  payment_id: String,
60
+ is_resolved_by_rdr: bool?,
56
61
  remarks: String?
57
62
  }
58
63
  end
@@ -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
+ is_resolved_by_rdr: bool?
13
14
  }
14
15
 
15
16
  class DisputeListResponse < Dodopayments::Internal::Type::BaseModel
@@ -29,6 +30,8 @@ module Dodopayments
29
30
 
30
31
  attr_accessor payment_id: String
31
32
 
33
+ attr_accessor is_resolved_by_rdr: bool?
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
+ ?is_resolved_by_rdr: bool?
41
45
  ) -> void
42
46
 
43
47
  def to_hash: -> {
@@ -48,7 +52,8 @@ module Dodopayments
48
52
  dispute_id: String,
49
53
  dispute_stage: Dodopayments::Models::dispute_stage,
50
54
  dispute_status: Dodopayments::Models::dispute_status,
51
- payment_id: String
55
+ payment_id: String,
56
+ is_resolved_by_rdr: bool?
52
57
  }
53
58
  end
54
59
  end
@@ -11,6 +11,7 @@ module Dodopayments
11
11
  dispute_stage: Dodopayments::Models::dispute_stage,
12
12
  dispute_status: Dodopayments::Models::dispute_status,
13
13
  payment_id: String,
14
+ is_resolved_by_rdr: bool?,
14
15
  reason: String?,
15
16
  remarks: String?
16
17
  }
@@ -34,6 +35,8 @@ module Dodopayments
34
35
 
35
36
  attr_accessor payment_id: String
36
37
 
38
+ attr_accessor is_resolved_by_rdr: bool?
39
+
37
40
  attr_accessor reason: String?
38
41
 
39
42
  attr_accessor remarks: String?
@@ -48,6 +51,7 @@ module Dodopayments
48
51
  dispute_stage: Dodopayments::Models::dispute_stage,
49
52
  dispute_status: Dodopayments::Models::dispute_status,
50
53
  payment_id: String,
54
+ ?is_resolved_by_rdr: bool?,
51
55
  ?reason: String?,
52
56
  ?remarks: String?
53
57
  ) -> void
@@ -62,6 +66,7 @@ module Dodopayments
62
66
  dispute_stage: Dodopayments::Models::dispute_stage,
63
67
  dispute_status: Dodopayments::Models::dispute_status,
64
68
  payment_id: String,
69
+ is_resolved_by_rdr: bool?,
65
70
  reason: String?,
66
71
  remarks: String?
67
72
  }
@@ -109,6 +109,8 @@ module Dodopayments
109
109
 
110
110
  class CustomerCreateParams = Dodopayments::Models::CustomerCreateParams
111
111
 
112
+ class CustomerDeletePaymentMethodParams = Dodopayments::Models::CustomerDeletePaymentMethodParams
113
+
112
114
  class CustomerLimitedDetails = Dodopayments::Models::CustomerLimitedDetails
113
115
 
114
116
  class CustomerListCreditEntitlementsParams = Dodopayments::Models::CustomerListCreditEntitlementsParams
@@ -273,22 +275,6 @@ module Dodopayments
273
275
 
274
276
  class ProductArchiveParams = Dodopayments::Models::ProductArchiveParams
275
277
 
276
- class ProductCollectionCreateParams = Dodopayments::Models::ProductCollectionCreateParams
277
-
278
- class ProductCollectionDeleteParams = Dodopayments::Models::ProductCollectionDeleteParams
279
-
280
- class ProductCollectionListParams = Dodopayments::Models::ProductCollectionListParams
281
-
282
- class ProductCollectionRetrieveParams = Dodopayments::Models::ProductCollectionRetrieveParams
283
-
284
- module ProductCollections = Dodopayments::Models::ProductCollections
285
-
286
- class ProductCollectionUnarchiveParams = Dodopayments::Models::ProductCollectionUnarchiveParams
287
-
288
- class ProductCollectionUpdateImagesParams = Dodopayments::Models::ProductCollectionUpdateImagesParams
289
-
290
- class ProductCollectionUpdateParams = Dodopayments::Models::ProductCollectionUpdateParams
291
-
292
278
  class ProductCreateParams = Dodopayments::Models::ProductCreateParams
293
279
 
294
280
  class ProductItemReq = Dodopayments::Models::ProductItemReq
@@ -408,6 +394,4 @@ module Dodopayments
408
394
  class WebhookUnwrapParams = Dodopayments::Models::WebhookUnwrapParams
409
395
 
410
396
  class WebhookUpdateParams = Dodopayments::Models::WebhookUpdateParams
411
-
412
- class YourWebhookURLCreateParams = Dodopayments::Models::YourWebhookURLCreateParams
413
397
  end
@@ -37,6 +37,12 @@ module Dodopayments
37
37
  ?request_options: Dodopayments::request_opts
38
38
  ) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Customer]
39
39
 
40
+ def delete_payment_method: (
41
+ String payment_method_id,
42
+ customer_id: String,
43
+ ?request_options: Dodopayments::request_opts
44
+ ) -> nil
45
+
40
46
  def list_credit_entitlements: (
41
47
  String customer_id,
42
48
  ?request_options: Dodopayments::request_opts
@@ -7,11 +7,6 @@ module Dodopayments
7
7
  ?request_options: Dodopayments::request_opts
8
8
  ) -> StringIO
9
9
 
10
- def retrieve_payout: (
11
- String payout_id,
12
- ?request_options: Dodopayments::request_opts
13
- ) -> StringIO
14
-
15
10
  def retrieve_refund: (
16
11
  String refund_id,
17
12
  ?request_options: Dodopayments::request_opts