dodopayments 2.16.0 → 2.17.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 +2 -3
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_preview_response.rb +17 -1
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +16 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5b5a813ef0dcfa859ff2aef7c2fe213ed446a40f808ae369754480072fd7b42
|
|
4
|
+
data.tar.gz: 8a37693a349b715e35b0219f1e59e5485e5b048bdc30ccbbd0f24f8a1e0922cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4243e3ff21a36c427911b9e18d5bda3646827ccdf553dd356ba6993a8a2573e57e876bb3e066bf02c21e467cbcfffc74ffa4598feb228bfce6bac173439e699b
|
|
7
|
+
data.tar.gz: 3f9f0f4bf6052a08b2a5ae4ee451d64870201154548a63a9028a98f2fd1f6c09e1c4137be1f6d326cc467ee0c49e36d4d7eb696b0e6020c63c877817b711c6ec
|
data/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [2.
|
|
3
|
+
## [2.17.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.16.0...v2.17.0) (2026-06-16)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
* **
|
|
9
|
-
* **spec:** update OpenAPI to 1.105.0 — localized prices ([805944a](https://github.com/dodopayments/dodopayments-ruby/commit/805944a87ef7448264953dca7ec6be701c77cb5e))
|
|
8
|
+
* **api:** regenerate SDK from latest OpenAPI spec ([170e2a0](https://github.com/dodopayments/dodopayments-ruby/commit/170e2a0460dd322252dee5ba0ec6912e9005ac06))
|
|
10
9
|
|
|
11
10
|
## [2.15.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.14.0...v2.15.0) (2026-06-13)
|
|
12
11
|
|
data/README.md
CHANGED
|
@@ -52,19 +52,31 @@ module Dodopayments
|
|
|
52
52
|
-> { Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup },
|
|
53
53
|
nil?: true
|
|
54
54
|
|
|
55
|
+
# @!attribute tax_id_business_name
|
|
56
|
+
# Registered business name from the official registry (EU/GB/AU) when found
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
optional :tax_id_business_name, String, nil?: true
|
|
60
|
+
|
|
55
61
|
# @!attribute tax_id_err_msg
|
|
56
62
|
# Error message if tax ID validation failed
|
|
57
63
|
#
|
|
58
64
|
# @return [String, nil]
|
|
59
65
|
optional :tax_id_err_msg, String, nil?: true
|
|
60
66
|
|
|
67
|
+
# @!attribute tax_id_format_name
|
|
68
|
+
# The matched tax ID notation (e.g. "VAT Number", "GSTIN") when valid
|
|
69
|
+
#
|
|
70
|
+
# @return [String, nil]
|
|
71
|
+
optional :tax_id_format_name, String, nil?: true
|
|
72
|
+
|
|
61
73
|
# @!attribute total_tax
|
|
62
74
|
# Total tax
|
|
63
75
|
#
|
|
64
76
|
# @return [Integer, nil]
|
|
65
77
|
optional :total_tax, Integer, nil?: true
|
|
66
78
|
|
|
67
|
-
# @!method initialize(billing_country:, currency:, current_breakup:, is_byop:, product_cart:, total_price:, recurring_breakup: nil, tax_id_err_msg: nil, total_tax: nil)
|
|
79
|
+
# @!method initialize(billing_country:, currency:, current_breakup:, is_byop:, product_cart:, total_price:, recurring_breakup: nil, tax_id_business_name: nil, tax_id_err_msg: nil, tax_id_format_name: nil, total_tax: nil)
|
|
68
80
|
# Some parameter documentations has been truncated, see
|
|
69
81
|
# {Dodopayments::Models::CheckoutSessionPreviewResponse} for more details.
|
|
70
82
|
#
|
|
@@ -84,8 +96,12 @@ module Dodopayments
|
|
|
84
96
|
#
|
|
85
97
|
# @param recurring_breakup [Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup, nil] Breakup of recurring payments (None for one-time only)
|
|
86
98
|
#
|
|
99
|
+
# @param tax_id_business_name [String, nil] Registered business name from the official registry (EU/GB/AU) when found
|
|
100
|
+
#
|
|
87
101
|
# @param tax_id_err_msg [String, nil] Error message if tax ID validation failed
|
|
88
102
|
#
|
|
103
|
+
# @param tax_id_format_name [String, nil] The matched tax ID notation (e.g. "VAT Number", "GSTIN") when valid
|
|
104
|
+
#
|
|
89
105
|
# @param total_tax [Integer, nil] Total tax
|
|
90
106
|
|
|
91
107
|
# @see Dodopayments::Models::CheckoutSessionPreviewResponse#current_breakup
|
data/lib/dodopayments/version.rb
CHANGED
|
@@ -76,10 +76,18 @@ module Dodopayments
|
|
|
76
76
|
end
|
|
77
77
|
attr_writer :recurring_breakup
|
|
78
78
|
|
|
79
|
+
# Registered business name from the official registry (EU/GB/AU) when found
|
|
80
|
+
sig { returns(T.nilable(String)) }
|
|
81
|
+
attr_accessor :tax_id_business_name
|
|
82
|
+
|
|
79
83
|
# Error message if tax ID validation failed
|
|
80
84
|
sig { returns(T.nilable(String)) }
|
|
81
85
|
attr_accessor :tax_id_err_msg
|
|
82
86
|
|
|
87
|
+
# The matched tax ID notation (e.g. "VAT Number", "GSTIN") when valid
|
|
88
|
+
sig { returns(T.nilable(String)) }
|
|
89
|
+
attr_accessor :tax_id_format_name
|
|
90
|
+
|
|
83
91
|
# Total tax
|
|
84
92
|
sig { returns(T.nilable(Integer)) }
|
|
85
93
|
attr_accessor :total_tax
|
|
@@ -101,7 +109,9 @@ module Dodopayments
|
|
|
101
109
|
T.nilable(
|
|
102
110
|
Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup::OrHash
|
|
103
111
|
),
|
|
112
|
+
tax_id_business_name: T.nilable(String),
|
|
104
113
|
tax_id_err_msg: T.nilable(String),
|
|
114
|
+
tax_id_format_name: T.nilable(String),
|
|
105
115
|
total_tax: T.nilable(Integer)
|
|
106
116
|
).returns(T.attached_class)
|
|
107
117
|
end
|
|
@@ -123,8 +133,12 @@ module Dodopayments
|
|
|
123
133
|
total_price:,
|
|
124
134
|
# Breakup of recurring payments (None for one-time only)
|
|
125
135
|
recurring_breakup: nil,
|
|
136
|
+
# Registered business name from the official registry (EU/GB/AU) when found
|
|
137
|
+
tax_id_business_name: nil,
|
|
126
138
|
# Error message if tax ID validation failed
|
|
127
139
|
tax_id_err_msg: nil,
|
|
140
|
+
# The matched tax ID notation (e.g. "VAT Number", "GSTIN") when valid
|
|
141
|
+
tax_id_format_name: nil,
|
|
128
142
|
# Total tax
|
|
129
143
|
total_tax: nil
|
|
130
144
|
)
|
|
@@ -147,7 +161,9 @@ module Dodopayments
|
|
|
147
161
|
T.nilable(
|
|
148
162
|
Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup
|
|
149
163
|
),
|
|
164
|
+
tax_id_business_name: T.nilable(String),
|
|
150
165
|
tax_id_err_msg: T.nilable(String),
|
|
166
|
+
tax_id_format_name: T.nilable(String),
|
|
151
167
|
total_tax: T.nilable(Integer)
|
|
152
168
|
}
|
|
153
169
|
)
|
|
@@ -9,7 +9,9 @@ module Dodopayments
|
|
|
9
9
|
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
10
10
|
total_price: Integer,
|
|
11
11
|
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
12
|
+
tax_id_business_name: String?,
|
|
12
13
|
tax_id_err_msg: String?,
|
|
14
|
+
tax_id_format_name: String?,
|
|
13
15
|
total_tax: Integer?
|
|
14
16
|
}
|
|
15
17
|
|
|
@@ -28,8 +30,12 @@ module Dodopayments
|
|
|
28
30
|
|
|
29
31
|
attr_accessor recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?
|
|
30
32
|
|
|
33
|
+
attr_accessor tax_id_business_name: String?
|
|
34
|
+
|
|
31
35
|
attr_accessor tax_id_err_msg: String?
|
|
32
36
|
|
|
37
|
+
attr_accessor tax_id_format_name: String?
|
|
38
|
+
|
|
33
39
|
attr_accessor total_tax: Integer?
|
|
34
40
|
|
|
35
41
|
def initialize: (
|
|
@@ -40,7 +46,9 @@ module Dodopayments
|
|
|
40
46
|
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
41
47
|
total_price: Integer,
|
|
42
48
|
?recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
49
|
+
?tax_id_business_name: String?,
|
|
43
50
|
?tax_id_err_msg: String?,
|
|
51
|
+
?tax_id_format_name: String?,
|
|
44
52
|
?total_tax: Integer?
|
|
45
53
|
) -> void
|
|
46
54
|
|
|
@@ -52,7 +60,9 @@ module Dodopayments
|
|
|
52
60
|
product_cart: ::Array[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart],
|
|
53
61
|
total_price: Integer,
|
|
54
62
|
recurring_breakup: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?,
|
|
63
|
+
tax_id_business_name: String?,
|
|
55
64
|
tax_id_err_msg: String?,
|
|
65
|
+
tax_id_format_name: String?,
|
|
56
66
|
total_tax: Integer?
|
|
57
67
|
}
|
|
58
68
|
|
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: 2.
|
|
4
|
+
version: 2.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dodo Payments
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|