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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faa49e494933cd4c99fe0aabf206b9265ef8f78ad00bb290d8bfbfb17479c055
4
- data.tar.gz: 655d18ea3f74079e16381502bad83a559e9febab0b309b513b1d5d21b463cdce
3
+ metadata.gz: abe1b45633addd932eb1274291d91d2b7acf5b589bb4bf5a668019caa6679830
4
+ data.tar.gz: 45b91de05dcc52f26c61054f735f150df9093d891beb961a2b59cca1b65fc9f7
5
5
  SHA512:
6
- metadata.gz: e6ae05ae801c276d4ddf672bde0c31e0101cbf0dcca5378b2147cf3b8bba6635e1eb46073e672d957ecaa4f5ea576a6d10deb1c78b70da6ee1c20811c8a9e03e
7
- data.tar.gz: f30f1c50f072dc1af5ad05cb3248c4958139f514e9abc83d8fbd9e1746a66b26e3943c0311d54edf7e2ce9550a40a3302445d16094aa33f92a69f1095db66090
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
@@ -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.18.1"
20
+ gem "dodopayments", "~> 1.18.3"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "1.18.1"
4
+ VERSION = "1.18.3"
5
5
  end
@@ -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?,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dodopayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.1
4
+ version: 1.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dodo Payments