dub 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16c23f65dff97941455ad65a1033c9a2e313a3e13d2c542de4759e69ceaa0e8d
|
4
|
+
data.tar.gz: 897e1cd3c5ebcc1a3419e22e8b42957b43ac3a4cd8378ed4eb459b46149bbbd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 557f6f210fdad5f89c679350ab5a7563f4760e2bf1656b0428afa3e174303848c16f5a59aa33afaaf6302ca14a453a3d2facf83d78453ea8b800130c663c5b15
|
7
|
+
data.tar.gz: cbbe0712ced025ef24a4bce0737dbad16a62d666ed32acff73424ab3c25b2c7ac0c5d7df2a8a78790631870e7bc52c227521df3f449656048319be69c9784999
|
@@ -19,18 +19,21 @@ module OpenApiSDK
|
|
19
19
|
field :payment_processor, ::OpenApiSDK::Operations::PaymentProcessor, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::PaymentProcessor, false) } }
|
20
20
|
# The currency of the sale. Accepts ISO 4217 currency codes.
|
21
21
|
field :currency, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('currency') } }
|
22
|
+
# The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', 'Payment', etc.
|
23
|
+
field :event_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('eventName') } }
|
22
24
|
# The invoice ID of the sale.
|
23
25
|
field :invoice_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
|
24
26
|
# Additional metadata to be stored with the sale event.
|
25
27
|
field :metadata, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('metadata') } }
|
26
28
|
|
27
29
|
|
28
|
-
sig { params(amount: ::Integer, customer_id: ::String, payment_processor: ::OpenApiSDK::Operations::PaymentProcessor, currency: T.nilable(::String), invoice_id: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::Object])).void }
|
29
|
-
def initialize(amount: nil, customer_id: nil, payment_processor: nil, currency: nil, invoice_id: nil, metadata: nil)
|
30
|
+
sig { params(amount: ::Integer, customer_id: ::String, payment_processor: ::OpenApiSDK::Operations::PaymentProcessor, currency: T.nilable(::String), event_name: T.nilable(::String), invoice_id: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::Object])).void }
|
31
|
+
def initialize(amount: nil, customer_id: nil, payment_processor: nil, currency: nil, event_name: nil, invoice_id: nil, metadata: nil)
|
30
32
|
@amount = amount
|
31
33
|
@customer_id = customer_id
|
32
34
|
@payment_processor = payment_processor
|
33
35
|
@currency = currency
|
36
|
+
@event_name = event_name
|
34
37
|
@invoice_id = invoice_id
|
35
38
|
@metadata = metadata
|
36
39
|
end
|
@@ -18,6 +18,8 @@ module OpenApiSDK
|
|
18
18
|
|
19
19
|
field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } }
|
20
20
|
|
21
|
+
field :event_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('eventName') } }
|
22
|
+
|
21
23
|
field :invoice_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
|
22
24
|
|
23
25
|
field :metadata, T::Hash[Symbol, ::Object], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('metadata') } }
|
@@ -25,11 +27,12 @@ module OpenApiSDK
|
|
25
27
|
field :payment_processor, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor') } }
|
26
28
|
|
27
29
|
|
28
|
-
sig { params(amount: ::Float, currency: ::String, customer_id: ::String, invoice_id: ::String, metadata: T::Hash[Symbol, ::Object], payment_processor: ::String).void }
|
29
|
-
def initialize(amount: nil, currency: nil, customer_id: nil, invoice_id: nil, metadata: nil, payment_processor: nil)
|
30
|
+
sig { params(amount: ::Float, currency: ::String, customer_id: ::String, event_name: ::String, invoice_id: ::String, metadata: T::Hash[Symbol, ::Object], payment_processor: ::String).void }
|
31
|
+
def initialize(amount: nil, currency: nil, customer_id: nil, event_name: nil, invoice_id: nil, metadata: nil, payment_processor: nil)
|
30
32
|
@amount = amount
|
31
33
|
@currency = currency
|
32
34
|
@customer_id = customer_id
|
35
|
+
@event_name = event_name
|
33
36
|
@invoice_id = invoice_id
|
34
37
|
@metadata = metadata
|
35
38
|
@payment_processor = payment_processor
|
@@ -40,9 +40,9 @@ module OpenApiSDK
|
|
40
40
|
@globals = globals.nil? ? {} : globals
|
41
41
|
@language = 'ruby'
|
42
42
|
@openapi_doc_version = '0.0.1'
|
43
|
-
@sdk_version = '0.0.
|
43
|
+
@sdk_version = '0.0.5'
|
44
44
|
@gen_version = '2.339.1'
|
45
|
-
@user_agent = 'speakeasy-sdk/ruby 0.0.
|
45
|
+
@user_agent = 'speakeasy-sdk/ruby 0.0.5 2.339.1 0.0.1 dub'
|
46
46
|
end
|
47
47
|
|
48
48
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|