dodopayments 1.54.0 → 1.55.7

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: 632ee24b75862fb42d76c1f2eb5d8a5acf117210188d9ce7f95a0a02b7c55424
4
- data.tar.gz: 39ff2d906db19493491c65906463eb8c181ad0c09cc07740fbd531e4c81d7010
3
+ metadata.gz: 527ad5aeb2718d8afaa8ae3837961c0ed70bc42216cfaf907b9cf9991ab96173
4
+ data.tar.gz: a38f8279d3110c349c5ca3ea8dd8250c85041d19ffbd0ac7d999a5c01eb32c11
5
5
  SHA512:
6
- metadata.gz: 699acbcea634f1bb3cc3a132ebacc51cb1b9e8fe415df6d13f12ffd35f32c9a5d181d8dcf3eeebc78de33661d61bd3f461d3c49d96b4d006f831b5c50e7b22d5
7
- data.tar.gz: 3345a6f54e2618138d74713806b28cd215d0187ae2fbce4e78e0f32b82a6ed679d7c44c57218b90ccea338dcf5149b2e966a3861de65450b0054a14e307bbaff
6
+ metadata.gz: 3335d1888e20925cc00b3f18e8bfc95f6a981837429ef7189746bd95243410bf8ba05f125163ef7a5075c480fe1d33e9626a8db1e67e163531a7f3dfde9f46f0
7
+ data.tar.gz: b79506359e274395e1b26ddf11185a829904526e92403aa4646654323ebf08c39740a0a6a70c11f20850e51cb912659011b3068a7b2e403357af4a2aeb105982
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.55.7 (2025-10-17)
4
+
5
+ Full Changelog: [v1.54.0...v1.55.7](https://github.com/dodopayments/dodopayments-ruby/compare/v1.54.0...v1.55.7)
6
+
7
+ ### Features
8
+
9
+ * **api:** updates for openapi spec v1.55.7 ([7bcc59e](https://github.com/dodopayments/dodopayments-ruby/commit/7bcc59eeedcb804bd8e83205e78c04c785089f63))
10
+
3
11
  ## 1.54.0 (2025-10-16)
4
12
 
5
13
  Full Changelog: [v1.53.5...v1.54.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.53.5...v1.54.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.54.0"
20
+ gem "dodopayments", "~> 1.55.7"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -4,23 +4,32 @@ module Dodopayments
4
4
  module Models
5
5
  class NewCustomer < Dodopayments::Internal::Type::BaseModel
6
6
  # @!attribute email
7
+ # Email is required for creating a new customer
7
8
  #
8
9
  # @return [String]
9
10
  required :email, String
10
11
 
11
12
  # @!attribute name
13
+ # Optional full name of the customer. If provided during session creation, it is
14
+ # persisted and becomes immutable for the session. If omitted here, it can be
15
+ # provided later via the confirm API.
12
16
  #
13
- # @return [String]
14
- required :name, String
17
+ # @return [String, nil]
18
+ optional :name, String, nil?: true
15
19
 
16
20
  # @!attribute phone_number
17
21
  #
18
22
  # @return [String, nil]
19
23
  optional :phone_number, String, nil?: true
20
24
 
21
- # @!method initialize(email:, name:, phone_number: nil)
22
- # @param email [String]
23
- # @param name [String]
25
+ # @!method initialize(email:, name: nil, phone_number: nil)
26
+ # Some parameter documentations has been truncated, see
27
+ # {Dodopayments::Models::NewCustomer} for more details.
28
+ #
29
+ # @param email [String] Email is required for creating a new customer
30
+ #
31
+ # @param name [String, nil] Optional full name of the customer. If provided during session creation,
32
+ #
24
33
  # @param phone_number [String, nil]
25
34
  end
26
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "1.54.0"
4
+ VERSION = "1.55.7"
5
5
  end
@@ -8,10 +8,14 @@ module Dodopayments
8
8
  T.any(Dodopayments::NewCustomer, Dodopayments::Internal::AnyHash)
9
9
  end
10
10
 
11
+ # Email is required for creating a new customer
11
12
  sig { returns(String) }
12
13
  attr_accessor :email
13
14
 
14
- sig { returns(String) }
15
+ # Optional full name of the customer. If provided during session creation, it is
16
+ # persisted and becomes immutable for the session. If omitted here, it can be
17
+ # provided later via the confirm API.
18
+ sig { returns(T.nilable(String)) }
15
19
  attr_accessor :name
16
20
 
17
21
  sig { returns(T.nilable(String)) }
@@ -20,16 +24,28 @@ module Dodopayments
20
24
  sig do
21
25
  params(
22
26
  email: String,
23
- name: String,
27
+ name: T.nilable(String),
24
28
  phone_number: T.nilable(String)
25
29
  ).returns(T.attached_class)
26
30
  end
27
- def self.new(email:, name:, phone_number: nil)
31
+ def self.new(
32
+ # Email is required for creating a new customer
33
+ email:,
34
+ # Optional full name of the customer. If provided during session creation, it is
35
+ # persisted and becomes immutable for the session. If omitted here, it can be
36
+ # provided later via the confirm API.
37
+ name: nil,
38
+ phone_number: nil
39
+ )
28
40
  end
29
41
 
30
42
  sig do
31
43
  override.returns(
32
- { email: String, name: String, phone_number: T.nilable(String) }
44
+ {
45
+ email: String,
46
+ name: T.nilable(String),
47
+ phone_number: T.nilable(String)
48
+ }
33
49
  )
34
50
  end
35
51
  def to_hash
@@ -1,21 +1,21 @@
1
1
  module Dodopayments
2
2
  module Models
3
- type new_customer = { email: String, name: String, phone_number: String? }
3
+ type new_customer = { email: String, name: String?, phone_number: String? }
4
4
 
5
5
  class NewCustomer < Dodopayments::Internal::Type::BaseModel
6
6
  attr_accessor email: String
7
7
 
8
- attr_accessor name: String
8
+ attr_accessor name: String?
9
9
 
10
10
  attr_accessor phone_number: String?
11
11
 
12
12
  def initialize: (
13
13
  email: String,
14
- name: String,
14
+ ?name: String?,
15
15
  ?phone_number: String?
16
16
  ) -> void
17
17
 
18
- def to_hash: -> { email: String, name: String, phone_number: String? }
18
+ def to_hash: -> { email: String, name: String?, phone_number: String? }
19
19
  end
20
20
  end
21
21
  end
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.54.0
4
+ version: 1.55.7
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-10-16 00:00:00.000000000 Z
11
+ date: 2025-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool