dodopayments 1.60.0 → 1.61.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a2542c87a868ce65838f0d44fddaae7c63261cf29ab503511e421c992669233
4
- data.tar.gz: e7b3e2c9cdb76c08f3f718f2b44996ccbdb12f2f8be38352be583f3bbf444ab7
3
+ metadata.gz: 84b50d70de55f74c1199d1aac9de0ffec719fadaeebe3b911ff9cd818e7a886e
4
+ data.tar.gz: 47fd55446620af48ba520be1043cfd2fa23556968ca1e31d7afd8e04574fe440
5
5
  SHA512:
6
- metadata.gz: 468530fb6f1a33332c0e5f3f7c16c3a012eb945291e2c3bc63739bbc4e2c9a5dfe09217e361c9c721157d4ff3f27edb16948e5af9f73fe52e7d43de0c57281b8
7
- data.tar.gz: e11e7e99dbf0c553ec5d96182684e2c27dbba593adb4736afeb4f5eedc35d30af1d7e8e797bc5641ff1ccc55b0445e1b15ac6c226131313864105b4a943bebd5
6
+ metadata.gz: d37605eddd2d912f7acda7253674a6e442799d6087fb145a43ca03c932db3cc6ff8503781280571db15ad605c93bb48d759bf763ae89c6a265e759570397954e
7
+ data.tar.gz: 3c88746c7e69d59780bf748361dc18d032019a5f56e1e8289a8844cb751c7a6fcda76b33854534020e8e95e70da40cae28eaa14654fd3ba524a7cdda151724ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.61.6 (2025-11-21)
4
+
5
+ Full Changelog: [v1.61.5...v1.61.6](https://github.com/dodopayments/dodopayments-ruby/compare/v1.61.5...v1.61.6)
6
+
7
+ ### Chores
8
+
9
+ * explicitly require "base64" gem ([0463bca](https://github.com/dodopayments/dodopayments-ruby/commit/0463bcabdf87e5e3e853c9322ab84592db77d352))
10
+
11
+ ## 1.61.5 (2025-11-17)
12
+
13
+ Full Changelog: [v1.60.0...v1.61.5](https://github.com/dodopayments/dodopayments-ruby/compare/v1.60.0...v1.61.5)
14
+
15
+ ### Features
16
+
17
+ * **api:** updated openapi spec to v1.61.5 ([a0dec2d](https://github.com/dodopayments/dodopayments-ruby/commit/a0dec2de23324bd4391bbdecab3d0c627f9c8faf))
18
+
3
19
  ## 1.60.0 (2025-11-14)
4
20
 
5
21
  Full Changelog: [v1.56.4...v1.60.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.56.4...v1.60.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "dodopayments", "~> 1.60.0"
20
+ gem "dodopayments", "~> 1.61.6"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -14,12 +14,6 @@ module Dodopayments
14
14
  # @param items [Array<Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item>]
15
15
 
16
16
  class Item < Dodopayments::Internal::Type::BaseModel
17
- # @!attribute connector_payment_methods
18
- #
19
- # @return [Hash{Symbol=>Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod}]
20
- required :connector_payment_methods,
21
- -> { Dodopayments::Internal::Type::HashOf[Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod] }
22
-
23
17
  # @!attribute payment_method
24
18
  # PaymentMethod enum from hyperswitch
25
19
  #
@@ -34,11 +28,6 @@ module Dodopayments
34
28
  # @return [String]
35
29
  required :payment_method_id, String
36
30
 
37
- # @!attribute profile_map
38
- #
39
- # @return [Hash{Symbol=>String}]
40
- required :profile_map, Dodopayments::Internal::Type::HashOf[String]
41
-
42
31
  # @!attribute card
43
32
  #
44
33
  # @return [Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card, nil]
@@ -51,58 +40,33 @@ module Dodopayments
51
40
  # @return [Time, nil]
52
41
  optional :last_used_at, Time, nil?: true
53
42
 
43
+ # @!attribute payment_method_type
44
+ #
45
+ # @return [Symbol, Dodopayments::Models::PaymentMethodTypes, nil]
46
+ optional :payment_method_type, enum: -> { Dodopayments::PaymentMethodTypes }, nil?: true
47
+
54
48
  # @!attribute recurring_enabled
55
49
  #
56
50
  # @return [Boolean, nil]
57
51
  optional :recurring_enabled, Dodopayments::Internal::Type::Boolean, nil?: true
58
52
 
59
- # @!method initialize(connector_payment_methods:, payment_method:, payment_method_id:, profile_map:, card: nil, last_used_at: nil, recurring_enabled: nil)
53
+ # @!method initialize(payment_method:, payment_method_id:, card: nil, last_used_at: nil, payment_method_type: nil, recurring_enabled: nil)
60
54
  # Some parameter documentations has been truncated, see
61
55
  # {Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item} for more
62
56
  # details.
63
57
  #
64
- # @param connector_payment_methods [Hash{Symbol=>Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod}]
65
- #
66
58
  # @param payment_method [Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod] PaymentMethod enum from hyperswitch
67
59
  #
68
60
  # @param payment_method_id [String]
69
61
  #
70
- # @param profile_map [Hash{Symbol=>String}]
71
- #
72
62
  # @param card [Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card, nil]
73
63
  #
74
64
  # @param last_used_at [Time, nil]
75
65
  #
66
+ # @param payment_method_type [Symbol, Dodopayments::Models::PaymentMethodTypes, nil]
67
+ #
76
68
  # @param recurring_enabled [Boolean, nil]
77
69
 
78
- class ConnectorPaymentMethod < Dodopayments::Internal::Type::BaseModel
79
- # @!attribute connector_mandate_id
80
- #
81
- # @return [String]
82
- required :connector_mandate_id, String
83
-
84
- # @!attribute original_payment_authorized_amount
85
- #
86
- # @return [Integer]
87
- required :original_payment_authorized_amount, Integer
88
-
89
- # @!attribute original_payment_authorized_currency
90
- #
91
- # @return [Symbol, Dodopayments::Models::Currency]
92
- required :original_payment_authorized_currency, enum: -> { Dodopayments::Currency }
93
-
94
- # @!attribute payment_method_type
95
- #
96
- # @return [Symbol, Dodopayments::Models::PaymentMethodTypes, nil]
97
- optional :payment_method_type, enum: -> { Dodopayments::PaymentMethodTypes }, nil?: true
98
-
99
- # @!method initialize(connector_mandate_id:, original_payment_authorized_amount:, original_payment_authorized_currency:, payment_method_type: nil)
100
- # @param connector_mandate_id [String]
101
- # @param original_payment_authorized_amount [Integer]
102
- # @param original_payment_authorized_currency [Symbol, Dodopayments::Models::Currency]
103
- # @param payment_method_type [Symbol, Dodopayments::Models::PaymentMethodTypes, nil]
104
- end
105
-
106
70
  # PaymentMethod enum from hyperswitch
107
71
  #
108
72
  # https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "1.60.0"
4
+ VERSION = "1.61.6"
5
5
  end
data/lib/dodopayments.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  # Standard libraries.
4
4
  # rubocop:disable Lint/RedundantRequireStatement
5
5
  require "English"
6
+ require "base64"
6
7
  require "cgi"
7
8
  require "date"
8
9
  require "erb"
data/manifest.yaml CHANGED
@@ -1,5 +1,6 @@
1
1
  dependencies:
2
2
  - English
3
+ - base64
3
4
  - cgi
4
5
  - date
5
6
  - erb
@@ -53,16 +53,6 @@ module Dodopayments
53
53
  )
54
54
  end
55
55
 
56
- sig do
57
- returns(
58
- T::Hash[
59
- Symbol,
60
- Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod
61
- ]
62
- )
63
- end
64
- attr_accessor :connector_payment_methods
65
-
66
56
  # PaymentMethod enum from hyperswitch
67
57
  #
68
58
  # https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
@@ -76,9 +66,6 @@ module Dodopayments
76
66
  sig { returns(String) }
77
67
  attr_accessor :payment_method_id
78
68
 
79
- sig { returns(T::Hash[Symbol, String]) }
80
- attr_accessor :profile_map
81
-
82
69
  sig do
83
70
  returns(
84
71
  T.nilable(
@@ -101,38 +88,38 @@ module Dodopayments
101
88
  sig { returns(T.nilable(Time)) }
102
89
  attr_accessor :last_used_at
103
90
 
91
+ sig do
92
+ returns(T.nilable(Dodopayments::PaymentMethodTypes::TaggedSymbol))
93
+ end
94
+ attr_accessor :payment_method_type
95
+
104
96
  sig { returns(T.nilable(T::Boolean)) }
105
97
  attr_accessor :recurring_enabled
106
98
 
107
99
  sig do
108
100
  params(
109
- connector_payment_methods:
110
- T::Hash[
111
- Symbol,
112
- Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod::OrHash
113
- ],
114
101
  payment_method:
115
102
  Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod::OrSymbol,
116
103
  payment_method_id: String,
117
- profile_map: T::Hash[Symbol, String],
118
104
  card:
119
105
  T.nilable(
120
106
  Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card::OrHash
121
107
  ),
122
108
  last_used_at: T.nilable(Time),
109
+ payment_method_type:
110
+ T.nilable(Dodopayments::PaymentMethodTypes::OrSymbol),
123
111
  recurring_enabled: T.nilable(T::Boolean)
124
112
  ).returns(T.attached_class)
125
113
  end
126
114
  def self.new(
127
- connector_payment_methods:,
128
115
  # PaymentMethod enum from hyperswitch
129
116
  #
130
117
  # https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
131
118
  payment_method:,
132
119
  payment_method_id:,
133
- profile_map:,
134
120
  card: nil,
135
121
  last_used_at: nil,
122
+ payment_method_type: nil,
136
123
  recurring_enabled: nil
137
124
  )
138
125
  end
@@ -140,20 +127,16 @@ module Dodopayments
140
127
  sig do
141
128
  override.returns(
142
129
  {
143
- connector_payment_methods:
144
- T::Hash[
145
- Symbol,
146
- Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod
147
- ],
148
130
  payment_method:
149
131
  Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod::TaggedSymbol,
150
132
  payment_method_id: String,
151
- profile_map: T::Hash[Symbol, String],
152
133
  card:
153
134
  T.nilable(
154
135
  Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card
155
136
  ),
156
137
  last_used_at: T.nilable(Time),
138
+ payment_method_type:
139
+ T.nilable(Dodopayments::PaymentMethodTypes::TaggedSymbol),
157
140
  recurring_enabled: T.nilable(T::Boolean)
158
141
  }
159
142
  )
@@ -161,63 +144,6 @@ module Dodopayments
161
144
  def to_hash
162
145
  end
163
146
 
164
- class ConnectorPaymentMethod < Dodopayments::Internal::Type::BaseModel
165
- OrHash =
166
- T.type_alias do
167
- T.any(
168
- Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod,
169
- Dodopayments::Internal::AnyHash
170
- )
171
- end
172
-
173
- sig { returns(String) }
174
- attr_accessor :connector_mandate_id
175
-
176
- sig { returns(Integer) }
177
- attr_accessor :original_payment_authorized_amount
178
-
179
- sig { returns(Dodopayments::Currency::TaggedSymbol) }
180
- attr_accessor :original_payment_authorized_currency
181
-
182
- sig do
183
- returns(T.nilable(Dodopayments::PaymentMethodTypes::TaggedSymbol))
184
- end
185
- attr_accessor :payment_method_type
186
-
187
- sig do
188
- params(
189
- connector_mandate_id: String,
190
- original_payment_authorized_amount: Integer,
191
- original_payment_authorized_currency:
192
- Dodopayments::Currency::OrSymbol,
193
- payment_method_type:
194
- T.nilable(Dodopayments::PaymentMethodTypes::OrSymbol)
195
- ).returns(T.attached_class)
196
- end
197
- def self.new(
198
- connector_mandate_id:,
199
- original_payment_authorized_amount:,
200
- original_payment_authorized_currency:,
201
- payment_method_type: nil
202
- )
203
- end
204
-
205
- sig do
206
- override.returns(
207
- {
208
- connector_mandate_id: String,
209
- original_payment_authorized_amount: Integer,
210
- original_payment_authorized_currency:
211
- Dodopayments::Currency::TaggedSymbol,
212
- payment_method_type:
213
- T.nilable(Dodopayments::PaymentMethodTypes::TaggedSymbol)
214
- }
215
- )
216
- end
217
- def to_hash
218
- end
219
- end
220
-
221
147
  # PaymentMethod enum from hyperswitch
222
148
  #
223
149
  # https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
@@ -18,82 +18,45 @@ module Dodopayments
18
18
 
19
19
  type item =
20
20
  {
21
- connector_payment_methods: ::Hash[Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod],
22
21
  payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method,
23
22
  payment_method_id: String,
24
- profile_map: ::Hash[Symbol, String],
25
23
  card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?,
26
24
  last_used_at: Time?,
25
+ payment_method_type: Dodopayments::Models::payment_method_types?,
27
26
  recurring_enabled: bool?
28
27
  }
29
28
 
30
29
  class Item < Dodopayments::Internal::Type::BaseModel
31
- attr_accessor connector_payment_methods: ::Hash[Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod]
32
-
33
30
  attr_accessor payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method
34
31
 
35
32
  attr_accessor payment_method_id: String
36
33
 
37
- attr_accessor profile_map: ::Hash[Symbol, String]
38
-
39
34
  attr_accessor card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?
40
35
 
41
36
  attr_accessor last_used_at: Time?
42
37
 
38
+ attr_accessor payment_method_type: Dodopayments::Models::payment_method_types?
39
+
43
40
  attr_accessor recurring_enabled: bool?
44
41
 
45
42
  def initialize: (
46
- connector_payment_methods: ::Hash[Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod],
47
43
  payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method,
48
44
  payment_method_id: String,
49
- profile_map: ::Hash[Symbol, String],
50
45
  ?card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?,
51
46
  ?last_used_at: Time?,
47
+ ?payment_method_type: Dodopayments::Models::payment_method_types?,
52
48
  ?recurring_enabled: bool?
53
49
  ) -> void
54
50
 
55
51
  def to_hash: -> {
56
- connector_payment_methods: ::Hash[Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::ConnectorPaymentMethod],
57
52
  payment_method: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::payment_method,
58
53
  payment_method_id: String,
59
- profile_map: ::Hash[Symbol, String],
60
54
  card: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?,
61
55
  last_used_at: Time?,
56
+ payment_method_type: Dodopayments::Models::payment_method_types?,
62
57
  recurring_enabled: bool?
63
58
  }
64
59
 
65
- type connector_payment_method =
66
- {
67
- connector_mandate_id: String,
68
- original_payment_authorized_amount: Integer,
69
- original_payment_authorized_currency: Dodopayments::Models::currency,
70
- payment_method_type: Dodopayments::Models::payment_method_types?
71
- }
72
-
73
- class ConnectorPaymentMethod < Dodopayments::Internal::Type::BaseModel
74
- attr_accessor connector_mandate_id: String
75
-
76
- attr_accessor original_payment_authorized_amount: Integer
77
-
78
- attr_accessor original_payment_authorized_currency: Dodopayments::Models::currency
79
-
80
- attr_accessor payment_method_type: Dodopayments::Models::payment_method_types?
81
-
82
- def initialize: (
83
- connector_mandate_id: String,
84
- original_payment_authorized_amount: Integer,
85
- original_payment_authorized_currency: Dodopayments::Models::currency,
86
- ?payment_method_type: Dodopayments::Models::payment_method_types?
87
- ) -> void
88
-
89
- def to_hash: -> {
90
- connector_mandate_id: String,
91
- original_payment_authorized_amount: Integer,
92
- original_payment_authorized_currency: Dodopayments::Models::currency,
93
- payment_method_type: Dodopayments::Models::payment_method_types?
94
- }
95
- end
96
-
97
60
  type payment_method =
98
61
  :card
99
62
  | :card_redirect
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dodopayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.60.0
4
+ version: 1.61.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dodo Payments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-14 00:00:00.000000000 Z
11
+ date: 2025-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool