dodopayments 1.18.1 → 1.18.3
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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/payment.rb +12 -1
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/lib/dodopayments/models/payment.rbi +12 -0
- data/sig/dodopayments/models/payment.rbs +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abe1b45633addd932eb1274291d91d2b7acf5b589bb4bf5a668019caa6679830
|
4
|
+
data.tar.gz: 45b91de05dcc52f26c61054f735f150df9093d891beb961a2b59cca1b65fc9f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf852de0565c8053f6b76e6edf34adb739d8cbdf288d7a96843fe3bfa2b5ab4526607e9981f614272051250e8243697bd2427b6769a3e9fa472e112997677b6e
|
7
|
+
data.tar.gz: 8b3b1f0dec7a7b334944d84c74f838b3e2ba9ac12744c7bcae57737fe7660ca441e5f43222b9931d0b15077c6d992accbde06650fbe87a855da90b2460e26c13
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.18.3 (2025-04-25)
|
4
|
+
|
5
|
+
Full Changelog: [v1.18.1...v1.18.3](https://github.com/dodopayments/dodopayments-ruby/compare/v1.18.1...v1.18.3)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** manual updates ([8b7a0e3](https://github.com/dodopayments/dodopayments-ruby/commit/8b7a0e39176cba466b53219cdb64a7ec6b3f6500))
|
10
|
+
|
3
11
|
## 1.18.1 (2025-04-25)
|
4
12
|
|
5
13
|
Full Changelog: [v1.18.0...v1.18.1](https://github.com/dodopayments/dodopayments-ruby/compare/v1.18.0...v1.18.1)
|
data/README.md
CHANGED
@@ -107,6 +107,14 @@ module Dodopayments
|
|
107
107
|
-> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::Models::Payment::ProductCart] },
|
108
108
|
nil?: true
|
109
109
|
|
110
|
+
# @!attribute settlement_tax
|
111
|
+
# This represents the portion of settlement_amount that corresponds to taxes
|
112
|
+
# collected. Especially relevant for adaptive pricing where the tax component must
|
113
|
+
# be tracked separately in your Dodo balance.
|
114
|
+
#
|
115
|
+
# @return [Integer, nil]
|
116
|
+
optional :settlement_tax, Integer, nil?: true
|
117
|
+
|
110
118
|
# @!attribute status
|
111
119
|
#
|
112
120
|
# @return [Symbol, Dodopayments::Models::IntentStatus, nil]
|
@@ -130,7 +138,7 @@ module Dodopayments
|
|
130
138
|
# @return [Time, nil]
|
131
139
|
optional :updated_at, Time, nil?: true
|
132
140
|
|
133
|
-
# @!method initialize(business_id:, created_at:, currency:, customer:, disputes:, metadata:, payment_id:, refunds:, settlement_amount:, settlement_currency:, total_amount:, discount_id: nil, error_message: nil, payment_link: nil, payment_method: nil, payment_method_type: nil, product_cart: nil, status: nil, subscription_id: nil, tax: nil, updated_at: nil)
|
141
|
+
# @!method initialize(business_id:, created_at:, currency:, customer:, disputes:, metadata:, payment_id:, refunds:, settlement_amount:, settlement_currency:, total_amount:, discount_id: nil, error_message: nil, payment_link: nil, payment_method: nil, payment_method_type: nil, product_cart: nil, settlement_tax: nil, status: nil, subscription_id: nil, tax: nil, updated_at: nil)
|
134
142
|
# Some parameter documentations has been truncated, see
|
135
143
|
# {Dodopayments::Models::Payment} for more details.
|
136
144
|
#
|
@@ -170,6 +178,9 @@ module Dodopayments
|
|
170
178
|
#
|
171
179
|
# @param product_cart [Array<Dodopayments::Models::Payment::ProductCart>, nil] List of products purchased in a one-time payment
|
172
180
|
#
|
181
|
+
# @param settlement_tax [Integer, nil] This represents the portion of settlement_amount that corresponds to taxes colle
|
182
|
+
# ...
|
183
|
+
#
|
173
184
|
# @param status [Symbol, Dodopayments::Models::IntentStatus, nil]
|
174
185
|
#
|
175
186
|
# @param subscription_id [String, nil] Identifier of the subscription if payment is part of a subscription
|
data/lib/dodopayments/version.rb
CHANGED
@@ -75,6 +75,12 @@ module Dodopayments
|
|
75
75
|
sig { returns(T.nilable(T::Array[Dodopayments::Models::Payment::ProductCart])) }
|
76
76
|
attr_accessor :product_cart
|
77
77
|
|
78
|
+
# This represents the portion of settlement_amount that corresponds to taxes
|
79
|
+
# collected. Especially relevant for adaptive pricing where the tax component must
|
80
|
+
# be tracked separately in your Dodo balance.
|
81
|
+
sig { returns(T.nilable(Integer)) }
|
82
|
+
attr_accessor :settlement_tax
|
83
|
+
|
78
84
|
sig { returns(T.nilable(Dodopayments::Models::IntentStatus::TaggedSymbol)) }
|
79
85
|
attr_accessor :status
|
80
86
|
|
@@ -109,6 +115,7 @@ module Dodopayments
|
|
109
115
|
payment_method: T.nilable(String),
|
110
116
|
payment_method_type: T.nilable(String),
|
111
117
|
product_cart: T.nilable(T::Array[T.any(Dodopayments::Models::Payment::ProductCart, Dodopayments::Internal::AnyHash)]),
|
118
|
+
settlement_tax: T.nilable(Integer),
|
112
119
|
status: T.nilable(Dodopayments::Models::IntentStatus::OrSymbol),
|
113
120
|
subscription_id: T.nilable(String),
|
114
121
|
tax: T.nilable(Integer),
|
@@ -150,6 +157,10 @@ module Dodopayments
|
|
150
157
|
payment_method_type: nil,
|
151
158
|
# List of products purchased in a one-time payment
|
152
159
|
product_cart: nil,
|
160
|
+
# This represents the portion of settlement_amount that corresponds to taxes
|
161
|
+
# collected. Especially relevant for adaptive pricing where the tax component must
|
162
|
+
# be tracked separately in your Dodo balance.
|
163
|
+
settlement_tax: nil,
|
153
164
|
status: nil,
|
154
165
|
# Identifier of the subscription if payment is part of a subscription
|
155
166
|
subscription_id: nil,
|
@@ -179,6 +190,7 @@ module Dodopayments
|
|
179
190
|
payment_method: T.nilable(String),
|
180
191
|
payment_method_type: T.nilable(String),
|
181
192
|
product_cart: T.nilable(T::Array[Dodopayments::Models::Payment::ProductCart]),
|
193
|
+
settlement_tax: T.nilable(Integer),
|
182
194
|
status: T.nilable(Dodopayments::Models::IntentStatus::TaggedSymbol),
|
183
195
|
subscription_id: T.nilable(String),
|
184
196
|
tax: T.nilable(Integer),
|
@@ -19,6 +19,7 @@ module Dodopayments
|
|
19
19
|
payment_method: String?,
|
20
20
|
payment_method_type: String?,
|
21
21
|
product_cart: ::Array[Dodopayments::Models::Payment::ProductCart]?,
|
22
|
+
settlement_tax: Integer?,
|
22
23
|
status: Dodopayments::Models::intent_status?,
|
23
24
|
subscription_id: String?,
|
24
25
|
tax: Integer?,
|
@@ -60,6 +61,8 @@ module Dodopayments
|
|
60
61
|
|
61
62
|
attr_accessor product_cart: ::Array[Dodopayments::Models::Payment::ProductCart]?
|
62
63
|
|
64
|
+
attr_accessor settlement_tax: Integer?
|
65
|
+
|
63
66
|
attr_accessor status: Dodopayments::Models::intent_status?
|
64
67
|
|
65
68
|
attr_accessor subscription_id: String?
|
@@ -86,6 +89,7 @@ module Dodopayments
|
|
86
89
|
?payment_method: String?,
|
87
90
|
?payment_method_type: String?,
|
88
91
|
?product_cart: ::Array[Dodopayments::Models::Payment::ProductCart]?,
|
92
|
+
?settlement_tax: Integer?,
|
89
93
|
?status: Dodopayments::Models::intent_status?,
|
90
94
|
?subscription_id: String?,
|
91
95
|
?tax: Integer?,
|