moov_ruby 0.3.22 → 0.3.24
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/createinvoice.rb +6 -6
- data/lib/moov/models/components/createinvoice.rbi +2 -2
- data/lib/moov/models/components/createinvoicepayment.rb +45 -0
- data/lib/moov/models/components/createinvoicepayment.rbi +19 -0
- data/lib/moov/models/components/createruntransfer.rb +58 -0
- data/lib/moov/models/components/createruntransfer.rbi +25 -0
- data/lib/moov/models/components/createscheduledtransferlineitem.rb +53 -0
- data/lib/moov/models/components/createscheduledtransferlineitem.rbi +23 -0
- data/lib/moov/models/components/createscheduledtransferlineitemoption.rb +49 -0
- data/lib/moov/models/components/createscheduledtransferlineitemoption.rbi +21 -0
- data/lib/moov/models/components/createscheduledtransferlineitems.rb +34 -0
- data/lib/moov/models/components/createscheduledtransferlineitems.rbi +13 -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/incurredfee.rb +6 -2
- data/lib/moov/models/components/incurredfee.rbi +2 -0
- data/lib/moov/models/components/invoice.rb +9 -9
- data/lib/moov/models/components/invoice.rbi +4 -4
- data/lib/moov/models/components/invoiceexternalpayment.rb +3 -11
- data/lib/moov/models/components/invoiceexternalpayment.rbi +0 -4
- data/lib/moov/models/components/invoicepayment.rb +13 -5
- data/lib/moov/models/components/invoicepayment.rbi +6 -2
- data/lib/moov/models/components/invoicetransferpayment.rb +2 -6
- data/lib/moov/models/components/invoicetransferpayment.rbi +0 -2
- data/lib/moov/models/components/occurrence.rb +2 -2
- data/lib/moov/models/components/occurrencesresponse.rb +1 -1
- data/lib/moov/models/components/pingresponse.rb +41 -0
- data/lib/moov/models/components/pingresponse.rbi +17 -0
- data/lib/moov/models/components/recur.rb +2 -2
- data/lib/moov/models/components/recurresponse.rb +46 -0
- data/lib/moov/models/components/recurresponse.rbi +19 -0
- data/lib/moov/models/components/runtransfer.rb +2 -3
- data/lib/moov/models/components/scheduledtransferimagemetadata.rb +45 -0
- data/lib/moov/models/components/scheduledtransferimagemetadata.rbi +19 -0
- data/lib/moov/models/components/scheduledtransferlineitem.rb +6 -2
- data/lib/moov/models/components/scheduledtransferlineitem.rbi +2 -0
- data/lib/moov/models/components/scheduledtransferlineitemoption.rb +6 -2
- data/lib/moov/models/components/scheduledtransferlineitemoption.rbi +2 -0
- data/lib/moov/models/components/scheduledtransferlineitems.rb +1 -2
- data/lib/moov/models/components/schedulelistresponse.rb +3 -3
- data/lib/moov/models/components/scheduleresponse.rb +3 -3
- 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 +14 -2
- data/lib/moov/models/errors/createinvoicepaymenterror.rb +49 -0
- data/lib/moov/models/errors/createinvoicepaymenterror.rbi +21 -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/listfeerevenue_request.rb +14 -2
- data/lib/moov/models/operations/listfeerevenue_request.rbi +6 -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/retrievefees_request.rb +6 -2
- data/lib/moov/models/operations/retrievefees_request.rbi +2 -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 +77 -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,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 Errors
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateWebhookValidationError < StandardError
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# Details about the URL validation error.
|
|
17
|
+
field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('url') } }
|
|
18
|
+
# Details about the status validation error.
|
|
19
|
+
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status') } }
|
|
20
|
+
# Details about the event types validation error.
|
|
21
|
+
field :event_types, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('eventTypes') } }
|
|
22
|
+
# Details about the description validation error.
|
|
23
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
24
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
25
|
+
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
26
|
+
|
|
27
|
+
sig { params(url: T.nilable(::String), status: T.nilable(::String), event_types: T.nilable(::String), description: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
28
|
+
def initialize(url: nil, status: nil, event_types: nil, description: nil, raw_response: nil)
|
|
29
|
+
@url = url
|
|
30
|
+
@status = status
|
|
31
|
+
@event_types = event_types
|
|
32
|
+
@description = description
|
|
33
|
+
@raw_response = raw_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 @url == other.url
|
|
40
|
+
return false unless @status == other.status
|
|
41
|
+
return false unless @event_types == other.event_types
|
|
42
|
+
return false unless @description == other.description
|
|
43
|
+
return false unless @raw_response == other.raw_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::Errors::CreateWebhookValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Errors::CreateWebhookValidationError
|
|
11
|
+
def url(); end
|
|
12
|
+
def url=(str_); end
|
|
13
|
+
def status(); end
|
|
14
|
+
def status=(str_); end
|
|
15
|
+
def event_types(); end
|
|
16
|
+
def event_types=(str_); end
|
|
17
|
+
def description(); end
|
|
18
|
+
def description=(str_); end
|
|
19
|
+
def raw_response(); end
|
|
20
|
+
def raw_response=(str_); end
|
|
21
|
+
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 Errors
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateWebhookValidationError < StandardError
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# Details about the URL validation error.
|
|
17
|
+
field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('url') } }
|
|
18
|
+
# Details about the status validation error.
|
|
19
|
+
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status') } }
|
|
20
|
+
# Details about the event types validation error.
|
|
21
|
+
field :event_types, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('eventTypes') } }
|
|
22
|
+
# Details about the description validation error.
|
|
23
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
24
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
25
|
+
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
26
|
+
|
|
27
|
+
sig { params(url: T.nilable(::String), status: T.nilable(::String), event_types: T.nilable(::String), description: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
28
|
+
def initialize(url: nil, status: nil, event_types: nil, description: nil, raw_response: nil)
|
|
29
|
+
@url = url
|
|
30
|
+
@status = status
|
|
31
|
+
@event_types = event_types
|
|
32
|
+
@description = description
|
|
33
|
+
@raw_response = raw_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 @url == other.url
|
|
40
|
+
return false unless @status == other.status
|
|
41
|
+
return false unless @event_types == other.event_types
|
|
42
|
+
return false unless @description == other.description
|
|
43
|
+
return false unless @raw_response == other.raw_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::Errors::UpdateWebhookValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Errors::UpdateWebhookValidationError
|
|
11
|
+
def url(); end
|
|
12
|
+
def url=(str_); end
|
|
13
|
+
def status(); end
|
|
14
|
+
def status=(str_); end
|
|
15
|
+
def event_types(); end
|
|
16
|
+
def event_types=(str_); end
|
|
17
|
+
def description(); end
|
|
18
|
+
def description=(str_); end
|
|
19
|
+
def raw_response(); end
|
|
20
|
+
def raw_response=(str_); end
|
|
21
|
+
end
|
data/lib/moov/models/errors.rb
CHANGED
|
@@ -17,10 +17,12 @@ module Moov
|
|
|
17
17
|
autoload :ConnectAccountRequestValidationError, 'moov/models/errors/connectaccountrequestvalidationerror.rb'
|
|
18
18
|
autoload :CreateAccountError, 'moov/models/errors/createaccounterror.rb'
|
|
19
19
|
autoload :CreateInvoiceError, 'moov/models/errors/createinvoiceerror.rb'
|
|
20
|
+
autoload :CreateInvoicePaymentError, 'moov/models/errors/createinvoicepaymenterror.rb'
|
|
20
21
|
autoload :CreatePaymentLinkError, 'moov/models/errors/createpaymentlinkerror.rb'
|
|
21
22
|
autoload :CreateSweepConfigError, 'moov/models/errors/createsweepconfigerror.rb'
|
|
22
23
|
autoload :CreateTicketError, 'moov/models/errors/createticketerror.rb'
|
|
23
24
|
autoload :CreateWalletValidationError, 'moov/models/errors/createwalletvalidationerror.rb'
|
|
25
|
+
autoload :CreateWebhookValidationError, 'moov/models/errors/createwebhookvalidationerror.rb'
|
|
24
26
|
autoload :FeePlanAgreementError, 'moov/models/errors/feeplanagreementerror.rb'
|
|
25
27
|
autoload :FileUploadValidationError, 'moov/models/errors/fileuploadvalidationerror.rb'
|
|
26
28
|
autoload :FileValidationError, 'moov/models/errors/filevalidationerror.rb'
|
|
@@ -56,6 +58,7 @@ module Moov
|
|
|
56
58
|
autoload :UpdatePaymentLinkError, 'moov/models/errors/updatepaymentlinkerror.rb'
|
|
57
59
|
autoload :UpdateTicketError, 'moov/models/errors/updateticketerror.rb'
|
|
58
60
|
autoload :UpdateUnderwritingError, 'moov/models/errors/updateunderwritingerror.rb'
|
|
61
|
+
autoload :UpdateWebhookValidationError, 'moov/models/errors/updatewebhookvalidationerror.rb'
|
|
59
62
|
autoload :UpsertUnderwritingError, 'moov/models/errors/upsertunderwritingerror.rb'
|
|
60
63
|
end
|
|
61
64
|
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CreateInvoicePaymentRequest
|
|
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
|
+
|
|
21
|
+
field :create_invoice_payment, Models::Components::CreateInvoicePayment, { 'request': { 'media_type': 'application/json' } }
|
|
22
|
+
# Specify an API version.
|
|
23
|
+
#
|
|
24
|
+
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
25
|
+
# - `YYYY` is the year
|
|
26
|
+
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
27
|
+
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
28
|
+
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
29
|
+
#
|
|
30
|
+
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
31
|
+
# When no version is specified, the API defaults to `v2024.01.00`.
|
|
32
|
+
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
33
|
+
|
|
34
|
+
sig { params(account_id: ::String, invoice_id: ::String, create_invoice_payment: Models::Components::CreateInvoicePayment, x_moov_version: T.nilable(::String)).void }
|
|
35
|
+
def initialize(account_id:, invoice_id:, create_invoice_payment:, x_moov_version: nil)
|
|
36
|
+
@account_id = account_id
|
|
37
|
+
@invoice_id = invoice_id
|
|
38
|
+
@create_invoice_payment = create_invoice_payment
|
|
39
|
+
@x_moov_version = x_moov_version
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
43
|
+
def ==(other)
|
|
44
|
+
return false unless other.is_a? self.class
|
|
45
|
+
return false unless @account_id == other.account_id
|
|
46
|
+
return false unless @invoice_id == other.invoice_id
|
|
47
|
+
return false unless @create_invoice_payment == other.create_invoice_payment
|
|
48
|
+
return false unless @x_moov_version == other.x_moov_version
|
|
49
|
+
true
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::CreateInvoicePaymentRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateInvoicePaymentRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def invoice_id(); end
|
|
14
|
+
def invoice_id=(str_); end
|
|
15
|
+
def create_invoice_payment(); end
|
|
16
|
+
def create_invoice_payment=(str_); end
|
|
17
|
+
def x_moov_version(); end
|
|
18
|
+
def x_moov_version=(str_); end
|
|
19
|
+
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 CreateInvoicePaymentResponse
|
|
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_payment, Crystalline::Nilable.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_payment: T.nilable(Models::Components::InvoicePayment)).void }
|
|
28
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, invoice_payment: nil)
|
|
29
|
+
@content_type = content_type
|
|
30
|
+
@status_code = status_code
|
|
31
|
+
@raw_response = raw_response
|
|
32
|
+
@headers = headers
|
|
33
|
+
@invoice_payment = invoice_payment
|
|
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_payment == other.invoice_payment
|
|
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::CreateInvoicePaymentResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateInvoicePaymentResponse
|
|
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_payment(); end
|
|
20
|
+
def invoice_payment=(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 CreateWebhookRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :create_webhook, Models::Components::CreateWebhook, { 'request': { 'media_type': 'application/json' } }
|
|
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(create_webhook: Models::Components::CreateWebhook, x_moov_version: T.nilable(::String)).void }
|
|
31
|
+
def initialize(create_webhook:, x_moov_version: nil)
|
|
32
|
+
@create_webhook = create_webhook
|
|
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 @create_webhook == other.create_webhook
|
|
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::CreateWebhookRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateWebhookRequest
|
|
11
|
+
def create_webhook(); end
|
|
12
|
+
def create_webhook=(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 CreateWebhookResponse
|
|
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 resource was successfully created.
|
|
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::CreateWebhookResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateWebhookResponse
|
|
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
|
|
@@ -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 DisableWebhookRequest
|
|
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::DisableWebhookRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::DisableWebhookRequest
|
|
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,45 @@
|
|
|
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 DisableWebhookResponse
|
|
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
|
+
|
|
25
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]]).void }
|
|
26
|
+
def initialize(content_type:, status_code:, raw_response:, headers:)
|
|
27
|
+
@content_type = content_type
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@raw_response = raw_response
|
|
30
|
+
@headers = headers
|
|
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 @content_type == other.content_type
|
|
37
|
+
return false unless @status_code == other.status_code
|
|
38
|
+
return false unless @raw_response == other.raw_response
|
|
39
|
+
return false unless @headers == other.headers
|
|
40
|
+
true
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::DisableWebhookResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::DisableWebhookResponse
|
|
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
|
+
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 GetWebhookRequest
|
|
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::GetWebhookRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::GetWebhookRequest
|
|
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
|