moov_ruby 0.3.22 → 0.3.23
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/lib/moov/client.rb +2 -1
- data/lib/moov/invoices.rb +288 -0
- data/lib/moov/models/components/createinvoicepayment.rb +41 -0
- data/lib/moov/models/components/createinvoicepayment.rbi +17 -0
- data/lib/moov/models/components/createwebhook.rb +45 -0
- data/lib/moov/models/components/createwebhook.rbi +19 -0
- data/lib/moov/models/components/eventtype.rb +41 -0
- data/lib/moov/models/components/eventtype.rbi +17 -0
- data/lib/moov/models/components/invoiceexternalpayment.rb +2 -6
- data/lib/moov/models/components/invoiceexternalpayment.rbi +0 -2
- data/lib/moov/models/components/invoicepayment.rb +9 -5
- data/lib/moov/models/components/invoicepayment.rbi +4 -2
- data/lib/moov/models/components/invoicetransferpayment.rb +2 -6
- data/lib/moov/models/components/invoicetransferpayment.rbi +0 -2
- data/lib/moov/models/components/pingresponse.rb +41 -0
- data/lib/moov/models/components/pingresponse.rbi +17 -0
- data/lib/moov/models/components/updatewebhook.rb +45 -0
- data/lib/moov/models/components/updatewebhook.rbi +19 -0
- data/lib/moov/models/components/webhook.rb +61 -0
- data/lib/moov/models/components/webhook.rbi +27 -0
- data/lib/moov/models/components/webhooksecret.rb +33 -0
- data/lib/moov/models/components/webhooksecret.rbi +13 -0
- data/lib/moov/models/components/{invoiceexternalpayment_paymenttype.rb → webhookstatus.rb} +4 -3
- data/lib/moov/models/components/webhookstatus.rbi +11 -0
- data/lib/moov/models/components.rb +8 -2
- data/lib/moov/models/errors/createinvoicepaymenterror.rb +45 -0
- data/lib/moov/models/errors/createinvoicepaymenterror.rbi +19 -0
- data/lib/moov/models/errors/createwebhookvalidationerror.rb +49 -0
- data/lib/moov/models/errors/createwebhookvalidationerror.rbi +21 -0
- data/lib/moov/models/errors/updatewebhookvalidationerror.rb +49 -0
- data/lib/moov/models/errors/updatewebhookvalidationerror.rbi +21 -0
- data/lib/moov/models/errors.rb +3 -0
- data/lib/moov/models/operations/createinvoicepayment_request.rb +54 -0
- data/lib/moov/models/operations/createinvoicepayment_request.rbi +19 -0
- data/lib/moov/models/operations/createinvoicepayment_response.rb +49 -0
- data/lib/moov/models/operations/createinvoicepayment_response.rbi +21 -0
- data/lib/moov/models/operations/createwebhook_request.rb +46 -0
- data/lib/moov/models/operations/createwebhook_request.rbi +15 -0
- data/lib/moov/models/operations/createwebhook_response.rb +49 -0
- data/lib/moov/models/operations/createwebhook_response.rbi +21 -0
- data/lib/moov/models/operations/disablewebhook_request.rb +46 -0
- data/lib/moov/models/operations/disablewebhook_request.rbi +15 -0
- data/lib/moov/models/operations/disablewebhook_response.rb +45 -0
- data/lib/moov/models/operations/disablewebhook_response.rbi +19 -0
- data/lib/moov/models/operations/getwebhook_request.rb +46 -0
- data/lib/moov/models/operations/getwebhook_request.rbi +15 -0
- data/lib/moov/models/operations/getwebhook_response.rb +49 -0
- data/lib/moov/models/operations/getwebhook_response.rbi +21 -0
- data/lib/moov/models/operations/getwebhooksecret_request.rb +46 -0
- data/lib/moov/models/operations/getwebhooksecret_request.rbi +15 -0
- data/lib/moov/models/operations/getwebhooksecret_response.rb +49 -0
- data/lib/moov/models/operations/getwebhooksecret_response.rbi +21 -0
- data/lib/moov/models/operations/listeventtypes_request.rb +42 -0
- data/lib/moov/models/operations/listeventtypes_request.rbi +13 -0
- data/lib/moov/models/operations/listeventtypes_response.rb +49 -0
- data/lib/moov/models/operations/listeventtypes_response.rbi +21 -0
- data/lib/moov/models/operations/listinvoicepayments_request.rb +50 -0
- data/lib/moov/models/operations/listinvoicepayments_request.rbi +17 -0
- data/lib/moov/models/operations/listinvoicepayments_response.rb +49 -0
- data/lib/moov/models/operations/listinvoicepayments_response.rbi +21 -0
- data/lib/moov/models/operations/listwebhooks_request.rb +42 -0
- data/lib/moov/models/operations/listwebhooks_request.rbi +13 -0
- data/lib/moov/models/operations/listwebhooks_response.rb +49 -0
- data/lib/moov/models/operations/listwebhooks_response.rbi +21 -0
- data/lib/moov/models/operations/pingwebhook_request.rb +46 -0
- data/lib/moov/models/operations/pingwebhook_request.rbi +15 -0
- data/lib/moov/models/operations/pingwebhook_response.rb +49 -0
- data/lib/moov/models/operations/pingwebhook_response.rbi +21 -0
- data/lib/moov/models/operations/updatewebhook_request.rb +50 -0
- data/lib/moov/models/operations/updatewebhook_request.rbi +17 -0
- data/lib/moov/models/operations/updatewebhook_response.rb +49 -0
- data/lib/moov/models/operations/updatewebhook_response.rbi +21 -0
- data/lib/moov/models/operations.rb +20 -0
- data/lib/moov/sdkconfiguration.rb +2 -2
- data/lib/moov/webhooks.rb +1056 -0
- data/lib/moov_ruby.rb +1 -0
- metadata +65 -6
- data/lib/moov/models/components/invoiceexternalpayment_paymenttype.rbi +0 -11
- data/lib/moov/models/components/invoicetransferpayment_paymenttype.rb +0 -21
- data/lib/moov/models/components/invoicetransferpayment_paymenttype.rbi +0 -11
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListEventTypesRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListEventTypesRequest
|
|
11
|
+
def x_moov_version(); end
|
|
12
|
+
def x_moov_version=(str_); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListEventTypesResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :event_types, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::EventType))
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], event_types: T.nilable(T::Array[Models::Components::EventType])).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, event_types: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@event_types = event_types
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @event_types == other.event_types
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListEventTypesResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListEventTypesResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def event_types(); end
|
|
20
|
+
def event_types=(str_); end
|
|
21
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListInvoicePaymentsRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
field :invoice_id, ::String, { 'path_param': { 'field_name': 'invoiceID', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# Specify an API version.
|
|
21
|
+
#
|
|
22
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
23
|
+
# - `YYYY` is the year
|
|
24
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
25
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
26
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
27
|
+
#
|
|
28
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
29
|
+
# When no version is specified, the API defaults to `v2024.01.00`.
|
|
30
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
31
|
+
|
|
32
|
+
sig { params(account_id: ::String, invoice_id: ::String, x_moov_version: T.nilable(::String)).void }
|
|
33
|
+
def initialize(account_id:, invoice_id:, x_moov_version: nil)
|
|
34
|
+
@account_id = account_id
|
|
35
|
+
@invoice_id = invoice_id
|
|
36
|
+
@x_moov_version = x_moov_version
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
40
|
+
def ==(other)
|
|
41
|
+
return false unless other.is_a? self.class
|
|
42
|
+
return false unless @account_id == other.account_id
|
|
43
|
+
return false unless @invoice_id == other.invoice_id
|
|
44
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
45
|
+
true
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListInvoicePaymentsRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListInvoicePaymentsRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def invoice_id(); end
|
|
14
|
+
def invoice_id=(str_); end
|
|
15
|
+
def x_moov_version(); end
|
|
16
|
+
def x_moov_version=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListInvoicePaymentsResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :invoice_payments, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoicePayment))
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], invoice_payments: T.nilable(T::Array[Models::Components::InvoicePayment])).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, invoice_payments: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@invoice_payments = invoice_payments
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @invoice_payments == other.invoice_payments
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListInvoicePaymentsResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListInvoicePaymentsResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def invoice_payments(); end
|
|
20
|
+
def invoice_payments=(str_); end
|
|
21
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListWebhooksRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# Specify an API version.
|
|
17
|
+
#
|
|
18
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
# - `YYYY` is the year
|
|
20
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
#
|
|
24
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
# When no version is specified, the API defaults to `v2024.01.00`.
|
|
26
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
27
|
+
|
|
28
|
+
sig { params(x_moov_version: T.nilable(::String)).void }
|
|
29
|
+
def initialize(x_moov_version: nil)
|
|
30
|
+
@x_moov_version = x_moov_version
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
34
|
+
def ==(other)
|
|
35
|
+
return false unless other.is_a? self.class
|
|
36
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
37
|
+
true
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListWebhooksRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListWebhooksRequest
|
|
11
|
+
def x_moov_version(); end
|
|
12
|
+
def x_moov_version=(str_); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListWebhooksResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :webhooks, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::Webhook))
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], webhooks: T.nilable(T::Array[Models::Components::Webhook])).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, webhooks: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@webhooks = webhooks
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @webhooks == other.webhooks
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListWebhooksResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListWebhooksResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def webhooks(); end
|
|
20
|
+
def webhooks=(str_); end
|
|
21
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PingWebhookRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :webhook_id, ::String, { 'path_param': { 'field_name': 'webhookID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# Specify an API version.
|
|
19
|
+
#
|
|
20
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
21
|
+
# - `YYYY` is the year
|
|
22
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
23
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
24
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
25
|
+
#
|
|
26
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
27
|
+
# When no version is specified, the API defaults to `v2024.01.00`.
|
|
28
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
29
|
+
|
|
30
|
+
sig { params(webhook_id: ::String, x_moov_version: T.nilable(::String)).void }
|
|
31
|
+
def initialize(webhook_id:, x_moov_version: nil)
|
|
32
|
+
@webhook_id = webhook_id
|
|
33
|
+
@x_moov_version = x_moov_version
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @webhook_id == other.webhook_id
|
|
40
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
41
|
+
true
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::PingWebhookRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::PingWebhookRequest
|
|
11
|
+
def webhook_id(); end
|
|
12
|
+
def webhook_id=(str_); end
|
|
13
|
+
def x_moov_version(); end
|
|
14
|
+
def x_moov_version=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PingWebhookResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :ping_response, Crystalline::Nilable.new(Models::Components::PingResponse)
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], ping_response: T.nilable(Models::Components::PingResponse)).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, ping_response: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@ping_response = ping_response
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @ping_response == other.ping_response
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::PingWebhookResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::PingWebhookResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def ping_response(); end
|
|
20
|
+
def ping_response=(str_); end
|
|
21
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateWebhookRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :webhook_id, ::String, { 'path_param': { 'field_name': 'webhookID', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
field :update_webhook, Models::Components::UpdateWebhook, { 'request': { 'media_type': 'application/json' } }
|
|
20
|
+
# Specify an API version.
|
|
21
|
+
#
|
|
22
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
23
|
+
# - `YYYY` is the year
|
|
24
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
25
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
26
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
27
|
+
#
|
|
28
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
29
|
+
# When no version is specified, the API defaults to `v2024.01.00`.
|
|
30
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
31
|
+
|
|
32
|
+
sig { params(webhook_id: ::String, update_webhook: Models::Components::UpdateWebhook, x_moov_version: T.nilable(::String)).void }
|
|
33
|
+
def initialize(webhook_id:, update_webhook:, x_moov_version: nil)
|
|
34
|
+
@webhook_id = webhook_id
|
|
35
|
+
@update_webhook = update_webhook
|
|
36
|
+
@x_moov_version = x_moov_version
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
40
|
+
def ==(other)
|
|
41
|
+
return false unless other.is_a? self.class
|
|
42
|
+
return false unless @webhook_id == other.webhook_id
|
|
43
|
+
return false unless @update_webhook == other.update_webhook
|
|
44
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
45
|
+
true
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::UpdateWebhookRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::UpdateWebhookRequest
|
|
11
|
+
def webhook_id(); end
|
|
12
|
+
def webhook_id=(str_); end
|
|
13
|
+
def update_webhook(); end
|
|
14
|
+
def update_webhook=(str_); end
|
|
15
|
+
def x_moov_version(); end
|
|
16
|
+
def x_moov_version=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateWebhookResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# HTTP response content type for this operation
|
|
17
|
+
field :content_type, ::String
|
|
18
|
+
# HTTP response status code for this operation
|
|
19
|
+
field :status_code, ::Integer
|
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
21
|
+
field :raw_response, ::Faraday::Response
|
|
22
|
+
|
|
23
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
24
|
+
# The request completed successfully.
|
|
25
|
+
field :webhook, Crystalline::Nilable.new(Models::Components::Webhook)
|
|
26
|
+
|
|
27
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], webhook: T.nilable(Models::Components::Webhook)).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, webhook: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@webhook = webhook
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a? self.class
|
|
39
|
+
return false unless @content_type == other.content_type
|
|
40
|
+
return false unless @status_code == other.status_code
|
|
41
|
+
return false unless @raw_response == other.raw_response
|
|
42
|
+
return false unless @headers == other.headers
|
|
43
|
+
return false unless @webhook == other.webhook
|
|
44
|
+
true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::UpdateWebhookResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::UpdateWebhookResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def webhook(); end
|
|
20
|
+
def webhook=(str_); end
|
|
21
|
+
end
|