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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/new_customer.rb +14 -5
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/new_customer.rbi +20 -4
- data/sig/dodopayments/models/new_customer.rbs +4 -4
- 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: 527ad5aeb2718d8afaa8ae3837961c0ed70bc42216cfaf907b9cf9991ab96173
|
|
4
|
+
data.tar.gz: a38f8279d3110c349c5ca3ea8dd8250c85041d19ffbd0ac7d999a5c01eb32c11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
-
|
|
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
|
|
22
|
-
#
|
|
23
|
-
#
|
|
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
|
data/lib/dodopayments/version.rb
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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
|
-
{
|
|
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
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2025-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|