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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 859b4f352bb368d1c45bcf9c468fc849f3d213e659f93b123ba2fd975fb94e07
4
- data.tar.gz: 3aa9a93177e74a14f36beb7759c753d2239d8297d5b35264f93555f7fceb891d
3
+ metadata.gz: b5b5a813ef0dcfa859ff2aef7c2fe213ed446a40f808ae369754480072fd7b42
4
+ data.tar.gz: 8a37693a349b715e35b0219f1e59e5485e5b048bdc30ccbbd0f24f8a1e0922cc
5
5
  SHA512:
6
- metadata.gz: a9c9220210e23c46484dc703c1422dd13f95d8f88b48dc2aee7d732f216d75217d118a17f9b2b068bcfe9134be1e3d183243437b20b6858398a29e1b52efb359
7
- data.tar.gz: 3af74e8fbbb75d8d848a81ad44261b929fb783125626892a96a757da27e9ef7ce53df59375c98125245e025c25272a7834150355000b85b166d0dc971335bfd8
6
+ metadata.gz: 4243e3ff21a36c427911b9e18d5bda3646827ccdf553dd356ba6993a8a2573e57e876bb3e066bf02c21e467cbcfffc74ffa4598feb228bfce6bac173439e699b
7
+ data.tar.gz: 3f9f0f4bf6052a08b2a5ae4ee451d64870201154548a63a9028a98f2fd1f6c09e1c4137be1f6d326cc467ee0c49e36d4d7eb696b0e6020c63c877817b711c6ec
data/CHANGELOG.md CHANGED
@@ -1,12 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## [2.16.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.15.0...v2.16.0) (2026-06-13)
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
- * **spec:** update OpenAPI to 1.105.0 localized prices ([182e314](https://github.com/dodopayments/dodopayments-ruby/commit/182e31497aff19f43624a0daa471a19e4b560c24))
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
@@ -23,7 +23,7 @@ To use this gem, install via Bundler by adding the following to your application
23
23
  <!-- x-release-please-start-version -->
24
24
 
25
25
  ```ruby
26
- gem "dodopayments", "~> 2.16.0"
26
+ gem "dodopayments", "~> 2.17.0"
27
27
  ```
28
28
 
29
29
  <!-- x-release-please-end -->
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "2.16.0"
4
+ VERSION = "2.17.0"
5
5
  end
@@ -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.16.0
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-13 00:00:00.000000000 Z
11
+ date: 2026-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi