moov_ruby 0.3.19 → 0.3.20
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/images.rb +4 -1
- data/lib/moov/invoices.rb +0 -166
- data/lib/moov/models/components/imagemetadata.rb +6 -2
- data/lib/moov/models/components/imagemetadata.rbi +2 -0
- data/lib/moov/models/components.rb +0 -1
- data/lib/moov/models/errors.rb +0 -1
- data/lib/moov/models/operations.rb +0 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- metadata +2 -10
- data/lib/moov/models/components/markinvoicepaid.rb +0 -41
- data/lib/moov/models/components/markinvoicepaid.rbi +0 -17
- data/lib/moov/models/errors/markinvoicepaiderror.rb +0 -45
- data/lib/moov/models/errors/markinvoicepaiderror.rbi +0 -19
- data/lib/moov/models/operations/markpaidinvoice_request.rb +0 -54
- data/lib/moov/models/operations/markpaidinvoice_request.rbi +0 -19
- data/lib/moov/models/operations/markpaidinvoice_response.rb +0 -49
- data/lib/moov/models/operations/markpaidinvoice_response.rbi +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4851832f2945c8c6bd1248f91ec513cdebedf035786f2804f308ff78c8cae994
|
|
4
|
+
data.tar.gz: 642348c732c78146f8f3ed746f4fa6b6cbbd26ff8c60e7e7d5328846c5fe908f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ec904930442ff25f0f37da4d6509186bcb1205440da34be61345e201619e02897e95b83c15e49d3f994f5644acb98ade7bd66cf06ac7b0456ab384825d9ae07
|
|
7
|
+
data.tar.gz: 6bfc3b404b2a0d2ada0af2a9b5f7266988a3a89a0af792a8468f15ae30ff487ee7b23b85c29274509629da90d3d1525afd4ff90586548e02ff9ad3c88fdb4904
|
data/lib/moov/images.rb
CHANGED
|
@@ -609,7 +609,10 @@ module Moov
|
|
|
609
609
|
|
|
610
610
|
sig { params(account_id: ::String, image_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteImageResponse) }
|
|
611
611
|
def delete(account_id:, image_id:, x_moov_version: nil, timeout_ms: nil)
|
|
612
|
-
# delete -
|
|
612
|
+
# delete - Disable an image by its ID.
|
|
613
|
+
#
|
|
614
|
+
# Disabled images are still be accessible via their public URL, and cannot be assigned
|
|
615
|
+
# to products or line-items.
|
|
613
616
|
request = Models::Operations::DeleteImageRequest.new(
|
|
614
617
|
account_id: account_id,
|
|
615
618
|
image_id: image_id,
|
data/lib/moov/invoices.rb
CHANGED
|
@@ -622,171 +622,5 @@ module Moov
|
|
|
622
622
|
|
|
623
623
|
end
|
|
624
624
|
end
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
sig { params(mark_invoice_paid: Models::Components::MarkInvoicePaid, account_id: ::String, invoice_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::MarkPaidInvoiceResponse) }
|
|
628
|
-
def mark_paid_invoice(mark_invoice_paid:, account_id:, invoice_id:, x_moov_version: nil, timeout_ms: nil)
|
|
629
|
-
# mark_paid_invoice - Marks an invoice as paid outside of the Moov platform.
|
|
630
|
-
# If a payment link was created, the corresponding payment link is canceled, but a receipt is still sent.
|
|
631
|
-
#
|
|
632
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
633
|
-
# you'll need to specify the `/accounts/{accountID}/invoices.write` scope.
|
|
634
|
-
request = Models::Operations::MarkPaidInvoiceRequest.new(
|
|
635
|
-
account_id: account_id,
|
|
636
|
-
invoice_id: invoice_id,
|
|
637
|
-
mark_invoice_paid: mark_invoice_paid,
|
|
638
|
-
x_moov_version: x_moov_version
|
|
639
|
-
)
|
|
640
|
-
url, params = @sdk_configuration.get_server_details
|
|
641
|
-
base_url = Utils.template_url(url, params)
|
|
642
|
-
url = Utils.generate_url(
|
|
643
|
-
Models::Operations::MarkPaidInvoiceRequest,
|
|
644
|
-
base_url,
|
|
645
|
-
'/accounts/{accountID}/invoices/{invoiceID}/mark-paid',
|
|
646
|
-
request,
|
|
647
|
-
@sdk_configuration.globals
|
|
648
|
-
)
|
|
649
|
-
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
|
650
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
651
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :mark_invoice_paid, :json)
|
|
652
|
-
headers['content-type'] = req_content_type
|
|
653
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
654
|
-
|
|
655
|
-
if form
|
|
656
|
-
body = Utils.encode_form(form)
|
|
657
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
658
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
659
|
-
else
|
|
660
|
-
body = data
|
|
661
|
-
end
|
|
662
|
-
headers['Accept'] = 'application/json'
|
|
663
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
|
664
|
-
|
|
665
|
-
security = @sdk_configuration.security_source&.call
|
|
666
|
-
|
|
667
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
668
|
-
timeout ||= @sdk_configuration.timeout
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
connection = @sdk_configuration.client
|
|
672
|
-
|
|
673
|
-
hook_ctx = SDKHooks::HookContext.new(
|
|
674
|
-
config: @sdk_configuration,
|
|
675
|
-
base_url: base_url,
|
|
676
|
-
oauth2_scopes: nil,
|
|
677
|
-
operation_id: 'markPaidInvoice',
|
|
678
|
-
security_source: @sdk_configuration.security_source
|
|
679
|
-
)
|
|
680
|
-
|
|
681
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
682
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
begin
|
|
686
|
-
http_response = T.must(connection).post(url) do |req|
|
|
687
|
-
req.body = body
|
|
688
|
-
req.headers.merge!(headers)
|
|
689
|
-
req.options.timeout = timeout unless timeout.nil?
|
|
690
|
-
Utils.configure_request_security(req, security)
|
|
691
|
-
|
|
692
|
-
@sdk_configuration.hooks.before_request(
|
|
693
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
694
|
-
hook_ctx: hook_ctx
|
|
695
|
-
),
|
|
696
|
-
request: req
|
|
697
|
-
)
|
|
698
|
-
end
|
|
699
|
-
rescue StandardError => e
|
|
700
|
-
error = e
|
|
701
|
-
ensure
|
|
702
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
703
|
-
http_response = @sdk_configuration.hooks.after_error(
|
|
704
|
-
error: error,
|
|
705
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
706
|
-
hook_ctx: hook_ctx
|
|
707
|
-
),
|
|
708
|
-
response: http_response
|
|
709
|
-
)
|
|
710
|
-
else
|
|
711
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
712
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
713
|
-
hook_ctx: hook_ctx
|
|
714
|
-
),
|
|
715
|
-
response: http_response
|
|
716
|
-
)
|
|
717
|
-
end
|
|
718
|
-
|
|
719
|
-
if http_response.nil?
|
|
720
|
-
raise error if !error.nil?
|
|
721
|
-
raise 'no response'
|
|
722
|
-
end
|
|
723
|
-
end
|
|
724
|
-
|
|
725
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
726
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
|
727
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
728
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
729
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
730
|
-
hook_ctx: hook_ctx
|
|
731
|
-
),
|
|
732
|
-
response: http_response
|
|
733
|
-
)
|
|
734
|
-
response_data = http_response.env.response_body
|
|
735
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
|
|
736
|
-
response = Models::Operations::MarkPaidInvoiceResponse.new(
|
|
737
|
-
status_code: http_response.status,
|
|
738
|
-
content_type: content_type,
|
|
739
|
-
raw_response: http_response,
|
|
740
|
-
headers: http_response.headers,
|
|
741
|
-
invoice: T.unsafe(obj)
|
|
742
|
-
)
|
|
743
|
-
|
|
744
|
-
return response
|
|
745
|
-
else
|
|
746
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
747
|
-
end
|
|
748
|
-
elsif Utils.match_status_code(http_response.status, ['400', '409'])
|
|
749
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
750
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
751
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
752
|
-
hook_ctx: hook_ctx
|
|
753
|
-
),
|
|
754
|
-
response: http_response
|
|
755
|
-
)
|
|
756
|
-
response_data = http_response.env.response_body
|
|
757
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
758
|
-
obj.raw_response = http_response
|
|
759
|
-
raise obj
|
|
760
|
-
else
|
|
761
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
762
|
-
end
|
|
763
|
-
elsif Utils.match_status_code(http_response.status, ['422'])
|
|
764
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
765
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
766
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
767
|
-
hook_ctx: hook_ctx
|
|
768
|
-
),
|
|
769
|
-
response: http_response
|
|
770
|
-
)
|
|
771
|
-
response_data = http_response.env.response_body
|
|
772
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::MarkInvoicePaidError)
|
|
773
|
-
obj.raw_response = http_response
|
|
774
|
-
raise obj
|
|
775
|
-
else
|
|
776
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
777
|
-
end
|
|
778
|
-
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
|
779
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
780
|
-
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
781
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
782
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
783
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
784
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
785
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
786
|
-
else
|
|
787
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
788
|
-
|
|
789
|
-
end
|
|
790
|
-
end
|
|
791
625
|
end
|
|
792
626
|
end
|
|
@@ -27,14 +27,17 @@ module Moov
|
|
|
27
27
|
# Alternative text for the image.
|
|
28
28
|
field :alt_text, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('altText') } }
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
field :disabled_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('disabledOn'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
|
31
|
+
|
|
32
|
+
sig { params(image_id: ::String, public_id: ::String, link: ::String, created_on: ::DateTime, updated_on: ::DateTime, alt_text: T.nilable(::String), disabled_on: T.nilable(::DateTime)).void }
|
|
33
|
+
def initialize(image_id:, public_id:, link:, created_on:, updated_on:, alt_text: nil, disabled_on: nil)
|
|
32
34
|
@image_id = image_id
|
|
33
35
|
@public_id = public_id
|
|
34
36
|
@link = link
|
|
35
37
|
@created_on = created_on
|
|
36
38
|
@updated_on = updated_on
|
|
37
39
|
@alt_text = alt_text
|
|
40
|
+
@disabled_on = disabled_on
|
|
38
41
|
end
|
|
39
42
|
|
|
40
43
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -46,6 +49,7 @@ module Moov
|
|
|
46
49
|
return false unless @created_on == other.created_on
|
|
47
50
|
return false unless @updated_on == other.updated_on
|
|
48
51
|
return false unless @alt_text == other.alt_text
|
|
52
|
+
return false unless @disabled_on == other.disabled_on
|
|
49
53
|
true
|
|
50
54
|
end
|
|
51
55
|
end
|
|
@@ -328,7 +328,6 @@ module Moov
|
|
|
328
328
|
autoload :MXAuthorizationCode, 'moov/models/components/mxauthorizationcode.rb'
|
|
329
329
|
autoload :ManualTermsOfService, 'moov/models/components/manualtermsofservice.rb'
|
|
330
330
|
autoload :ManualTermsOfServiceUpdate, 'moov/models/components/manualtermsofserviceupdate.rb'
|
|
331
|
-
autoload :MarkInvoicePaid, 'moov/models/components/markinvoicepaid.rb'
|
|
332
331
|
autoload :MicroDepositStatus, 'moov/models/components/microdepositstatus.rb'
|
|
333
332
|
autoload :MinimumCommitment, 'moov/models/components/minimumcommitment.rb'
|
|
334
333
|
autoload :Mode, 'moov/models/components/mode.rb'
|
data/lib/moov/models/errors.rb
CHANGED
|
@@ -33,7 +33,6 @@ module Moov
|
|
|
33
33
|
autoload :ListTransfersValidationError, 'moov/models/errors/listtransfersvalidationerror.rb'
|
|
34
34
|
autoload :ListWalletTransactionsValidationError, 'moov/models/errors/listwallettransactionsvalidationerror.rb'
|
|
35
35
|
autoload :ListWalletsValidationError, 'moov/models/errors/listwalletsvalidationerror.rb'
|
|
36
|
-
autoload :MarkInvoicePaidError, 'moov/models/errors/markinvoicepaiderror.rb'
|
|
37
36
|
autoload :MicroDepositValidationError, 'moov/models/errors/microdepositvalidationerror.rb'
|
|
38
37
|
autoload :OnboardingInviteError, 'moov/models/errors/onboardinginviteerror.rb'
|
|
39
38
|
autoload :PatchAccountError, 'moov/models/errors/patchaccounterror.rb'
|
|
@@ -278,8 +278,6 @@ module Moov
|
|
|
278
278
|
autoload :ListWalletTransactionsResponse, 'moov/models/operations/listwallettransactions_response.rb'
|
|
279
279
|
autoload :ListWalletsRequest, 'moov/models/operations/listwallets_request.rb'
|
|
280
280
|
autoload :ListWalletsResponse, 'moov/models/operations/listwallets_response.rb'
|
|
281
|
-
autoload :MarkPaidInvoiceRequest, 'moov/models/operations/markpaidinvoice_request.rb'
|
|
282
|
-
autoload :MarkPaidInvoiceResponse, 'moov/models/operations/markpaidinvoice_response.rb'
|
|
283
281
|
autoload :PingRequest, 'moov/models/operations/ping_request.rb'
|
|
284
282
|
autoload :PingResponse, 'moov/models/operations/ping_response.rb'
|
|
285
283
|
autoload :RegisterApplePayMerchantDomainsRequest, 'moov/models/operations/registerapplepaymerchantdomains_request.rb'
|
|
@@ -95,9 +95,9 @@ module Moov
|
|
|
95
95
|
@globals = globals.nil? ? {} : globals
|
|
96
96
|
@language = 'ruby'
|
|
97
97
|
@openapi_doc_version = 'latest'
|
|
98
|
-
@sdk_version = '0.3.
|
|
99
|
-
@gen_version = '2.788.
|
|
100
|
-
@user_agent = 'speakeasy-sdk/ruby 0.3.
|
|
98
|
+
@sdk_version = '0.3.20'
|
|
99
|
+
@gen_version = '2.788.7'
|
|
100
|
+
@user_agent = 'speakeasy-sdk/ruby 0.3.20 2.788.7 latest moov_ruby'
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moov_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -882,8 +882,6 @@ files:
|
|
|
882
882
|
- lib/moov/models/components/manualtermsofservice.rbi
|
|
883
883
|
- lib/moov/models/components/manualtermsofserviceupdate.rb
|
|
884
884
|
- lib/moov/models/components/manualtermsofserviceupdate.rbi
|
|
885
|
-
- lib/moov/models/components/markinvoicepaid.rb
|
|
886
|
-
- lib/moov/models/components/markinvoicepaid.rbi
|
|
887
885
|
- lib/moov/models/components/microdepositstatus.rb
|
|
888
886
|
- lib/moov/models/components/microdepositstatus.rbi
|
|
889
887
|
- lib/moov/models/components/minimumcommitment.rb
|
|
@@ -1473,8 +1471,6 @@ files:
|
|
|
1473
1471
|
- lib/moov/models/errors/listwalletsvalidationerror.rbi
|
|
1474
1472
|
- lib/moov/models/errors/listwallettransactionsvalidationerror.rb
|
|
1475
1473
|
- lib/moov/models/errors/listwallettransactionsvalidationerror.rbi
|
|
1476
|
-
- lib/moov/models/errors/markinvoicepaiderror.rb
|
|
1477
|
-
- lib/moov/models/errors/markinvoicepaiderror.rbi
|
|
1478
1474
|
- lib/moov/models/errors/microdepositvalidationerror.rb
|
|
1479
1475
|
- lib/moov/models/errors/microdepositvalidationerror.rbi
|
|
1480
1476
|
- lib/moov/models/errors/onboardinginviteerror.rb
|
|
@@ -2068,10 +2064,6 @@ files:
|
|
|
2068
2064
|
- lib/moov/models/operations/listwallettransactions_request.rbi
|
|
2069
2065
|
- lib/moov/models/operations/listwallettransactions_response.rb
|
|
2070
2066
|
- lib/moov/models/operations/listwallettransactions_response.rbi
|
|
2071
|
-
- lib/moov/models/operations/markpaidinvoice_request.rb
|
|
2072
|
-
- lib/moov/models/operations/markpaidinvoice_request.rbi
|
|
2073
|
-
- lib/moov/models/operations/markpaidinvoice_response.rb
|
|
2074
|
-
- lib/moov/models/operations/markpaidinvoice_response.rbi
|
|
2075
2067
|
- lib/moov/models/operations/ping_request.rb
|
|
2076
2068
|
- lib/moov/models/operations/ping_request.rbi
|
|
2077
2069
|
- lib/moov/models/operations/ping_response.rb
|
|
@@ -1,41 +0,0 @@
|
|
|
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 Components
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class MarkInvoicePaid
|
|
13
|
-
extend T::Sig
|
|
14
|
-
include Crystalline::MetadataFields
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
field :foreign_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('foreignID') } }
|
|
18
|
-
|
|
19
|
-
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
20
|
-
|
|
21
|
-
field :payment_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentDate'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
|
22
|
-
|
|
23
|
-
sig { params(foreign_id: T.nilable(::String), description: T.nilable(::String), payment_date: T.nilable(::DateTime)).void }
|
|
24
|
-
def initialize(foreign_id: nil, description: nil, payment_date: nil)
|
|
25
|
-
@foreign_id = foreign_id
|
|
26
|
-
@description = description
|
|
27
|
-
@payment_date = payment_date
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
31
|
-
def ==(other)
|
|
32
|
-
return false unless other.is_a? self.class
|
|
33
|
-
return false unless @foreign_id == other.foreign_id
|
|
34
|
-
return false unless @description == other.description
|
|
35
|
-
return false unless @payment_date == other.payment_date
|
|
36
|
-
true
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Components::MarkInvoicePaid
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Components::MarkInvoicePaid
|
|
11
|
-
def foreign_id(); end
|
|
12
|
-
def foreign_id=(str_); end
|
|
13
|
-
def description(); end
|
|
14
|
-
def description=(str_); end
|
|
15
|
-
def payment_date(); end
|
|
16
|
-
def payment_date=(str_); end
|
|
17
|
-
end
|
|
@@ -1,45 +0,0 @@
|
|
|
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 MarkInvoicePaidError < StandardError
|
|
13
|
-
extend T::Sig
|
|
14
|
-
include Crystalline::MetadataFields
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
field :foreign_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('foreignID') } }
|
|
18
|
-
|
|
19
|
-
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
20
|
-
|
|
21
|
-
field :payment_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentDate') } }
|
|
22
|
-
# Raw HTTP response; suitable for custom response parsing
|
|
23
|
-
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
24
|
-
|
|
25
|
-
sig { params(foreign_id: T.nilable(::String), description: T.nilable(::String), payment_date: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
26
|
-
def initialize(foreign_id: nil, description: nil, payment_date: nil, raw_response: nil)
|
|
27
|
-
@foreign_id = foreign_id
|
|
28
|
-
@description = description
|
|
29
|
-
@payment_date = payment_date
|
|
30
|
-
@raw_response = raw_response
|
|
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 @foreign_id == other.foreign_id
|
|
37
|
-
return false unless @description == other.description
|
|
38
|
-
return false unless @payment_date == other.payment_date
|
|
39
|
-
return false unless @raw_response == other.raw_response
|
|
40
|
-
true
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Errors::MarkInvoicePaidError
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Errors::MarkInvoicePaidError
|
|
11
|
-
def foreign_id(); end
|
|
12
|
-
def foreign_id=(str_); end
|
|
13
|
-
def description(); end
|
|
14
|
-
def description=(str_); end
|
|
15
|
-
def payment_date(); end
|
|
16
|
-
def payment_date=(str_); end
|
|
17
|
-
def raw_response(); end
|
|
18
|
-
def raw_response=(str_); end
|
|
19
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
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 MarkPaidInvoiceRequest
|
|
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 :mark_invoice_paid, Models::Components::MarkInvoicePaid, { '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, mark_invoice_paid: Models::Components::MarkInvoicePaid, x_moov_version: T.nilable(::String)).void }
|
|
35
|
-
def initialize(account_id:, invoice_id:, mark_invoice_paid:, x_moov_version: nil)
|
|
36
|
-
@account_id = account_id
|
|
37
|
-
@invoice_id = invoice_id
|
|
38
|
-
@mark_invoice_paid = mark_invoice_paid
|
|
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 @mark_invoice_paid == other.mark_invoice_paid
|
|
48
|
-
return false unless @x_moov_version == other.x_moov_version
|
|
49
|
-
true
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Operations::MarkPaidInvoiceRequest
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Operations::MarkPaidInvoiceRequest
|
|
11
|
-
def account_id(); end
|
|
12
|
-
def account_id=(str_); end
|
|
13
|
-
def invoice_id(); end
|
|
14
|
-
def invoice_id=(str_); end
|
|
15
|
-
def mark_invoice_paid(); end
|
|
16
|
-
def mark_invoice_paid=(str_); end
|
|
17
|
-
def x_moov_version(); end
|
|
18
|
-
def x_moov_version=(str_); end
|
|
19
|
-
end
|
|
@@ -1,49 +0,0 @@
|
|
|
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 MarkPaidInvoiceResponse
|
|
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, Crystalline::Nilable.new(Models::Components::Invoice)
|
|
26
|
-
|
|
27
|
-
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], invoice: T.nilable(Models::Components::Invoice)).void }
|
|
28
|
-
def initialize(content_type:, status_code:, raw_response:, headers:, invoice: nil)
|
|
29
|
-
@content_type = content_type
|
|
30
|
-
@status_code = status_code
|
|
31
|
-
@raw_response = raw_response
|
|
32
|
-
@headers = headers
|
|
33
|
-
@invoice = invoice
|
|
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 == other.invoice
|
|
44
|
-
true
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Operations::MarkPaidInvoiceResponse
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Operations::MarkPaidInvoiceResponse
|
|
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(); end
|
|
20
|
-
def invoice=(str_); end
|
|
21
|
-
end
|