moov_ruby 0.3.10 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33855815ef7a3cf6e55fc0cf7128debcbe602587d676603bad008a8d399c0798
4
- data.tar.gz: 9a1b7cbf1706e8575841d04e3f820a77365af660a30f070fa59c72ab2f47755e
3
+ metadata.gz: d6965acd4b3b3d66d2a3f2292c745bd7b87dc7e6ed7ad46199535cf3723dabbb
4
+ data.tar.gz: c258465695e9c5cdc74afab51a6497bff190b742d74936d37a5464699ebe02f6
5
5
  SHA512:
6
- metadata.gz: 05545fa37883be73535f6413fbb1a4e6642c4a6fe361156a02664670a0c863ac67180ad6ff0a0a06ab583c76c95630070e8e2f6db0a71480106e4e71ed0e919c
7
- data.tar.gz: 135f48a88fb72e7ea88f0acc52055e7ca4dc55a4f4d83061e1ad2e93a316923c6ab9c836d430f9cc6f42da9c54d63cb65d2b68a7a5f6ff614cb28cb6c0ac27e4
6
+ metadata.gz: f21fcc521fcb9ec820e9a62459c4e3e8cfba5774c33d81a6bb14b82c403b0fb911007057db236e3534385207103eca4ad5845294a9c94c9ad354e8673979606a
7
+ data.tar.gz: 5eea33e38c3d4c75c83608630435ee140560196dfcf3ae39ce740667543025b38d7346b72fdc20f1c2296868426ce6ba728b19d851107bf8a80de8fc3cab01e0
data/lib/moov/branding.rb CHANGED
@@ -486,169 +486,5 @@ module Moov
486
486
 
487
487
  end
488
488
  end
489
-
490
-
491
- sig { params(update_brand: Models::Components::UpdateBrand, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateBrandResponse) }
492
- def update(update_brand:, account_id:, x_moov_version: nil, timeout_ms: nil)
493
- # update - Updates the brand properties for the specified account.
494
- #
495
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
496
- # you'll need to specify the `/accounts/{accountID}/branding.write` scope.
497
- request = Models::Operations::UpdateBrandRequest.new(
498
- account_id: account_id,
499
- update_brand: update_brand,
500
- x_moov_version: x_moov_version
501
- )
502
- url, params = @sdk_configuration.get_server_details
503
- base_url = Utils.template_url(url, params)
504
- url = Utils.generate_url(
505
- Models::Operations::UpdateBrandRequest,
506
- base_url,
507
- '/accounts/{accountID}/branding',
508
- request,
509
- @sdk_configuration.globals
510
- )
511
- headers = Utils.get_headers(request, @sdk_configuration.globals)
512
- headers = T.cast(headers, T::Hash[String, String])
513
- req_content_type, data, form = Utils.serialize_request_body(request, false, false, :update_brand, :json)
514
- headers['content-type'] = req_content_type
515
- raise StandardError, 'request body is required' if data.nil? && form.nil?
516
-
517
- if form
518
- body = Utils.encode_form(form)
519
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
520
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
521
- else
522
- body = data
523
- end
524
- headers['Accept'] = 'application/json'
525
- headers['user-agent'] = @sdk_configuration.user_agent
526
-
527
- security = @sdk_configuration.security_source&.call
528
-
529
- timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
530
- timeout ||= @sdk_configuration.timeout
531
-
532
-
533
- connection = @sdk_configuration.client
534
-
535
- hook_ctx = SDKHooks::HookContext.new(
536
- config: @sdk_configuration,
537
- base_url: base_url,
538
- oauth2_scopes: nil,
539
- operation_id: 'updateBrand',
540
- security_source: @sdk_configuration.security_source
541
- )
542
-
543
- error = T.let(nil, T.nilable(StandardError))
544
- http_response = T.let(nil, T.nilable(Faraday::Response))
545
-
546
-
547
- begin
548
- http_response = T.must(connection).patch(url) do |req|
549
- req.body = body
550
- req.headers.merge!(headers)
551
- req.options.timeout = timeout unless timeout.nil?
552
- Utils.configure_request_security(req, security)
553
-
554
- @sdk_configuration.hooks.before_request(
555
- hook_ctx: SDKHooks::BeforeRequestHookContext.new(
556
- hook_ctx: hook_ctx
557
- ),
558
- request: req
559
- )
560
- end
561
- rescue StandardError => e
562
- error = e
563
- ensure
564
- if http_response.nil? || Utils.error_status?(http_response.status)
565
- http_response = @sdk_configuration.hooks.after_error(
566
- error: error,
567
- hook_ctx: SDKHooks::AfterErrorHookContext.new(
568
- hook_ctx: hook_ctx
569
- ),
570
- response: http_response
571
- )
572
- else
573
- http_response = @sdk_configuration.hooks.after_success(
574
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
575
- hook_ctx: hook_ctx
576
- ),
577
- response: http_response
578
- )
579
- end
580
-
581
- if http_response.nil?
582
- raise error if !error.nil?
583
- raise 'no response'
584
- end
585
- end
586
-
587
- content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
588
- if Utils.match_status_code(http_response.status, ['200'])
589
- if Utils.match_content_type(content_type, 'application/json')
590
- http_response = @sdk_configuration.hooks.after_success(
591
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
592
- hook_ctx: hook_ctx
593
- ),
594
- response: http_response
595
- )
596
- response_data = http_response.env.response_body
597
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BrandProperties)
598
- response = Models::Operations::UpdateBrandResponse.new(
599
- status_code: http_response.status,
600
- content_type: content_type,
601
- raw_response: http_response,
602
- headers: http_response.headers,
603
- brand_properties: T.unsafe(obj)
604
- )
605
-
606
- return response
607
- else
608
- 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'
609
- end
610
- elsif Utils.match_status_code(http_response.status, ['400', '409'])
611
- if Utils.match_content_type(content_type, 'application/json')
612
- http_response = @sdk_configuration.hooks.after_success(
613
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
614
- hook_ctx: hook_ctx
615
- ),
616
- response: http_response
617
- )
618
- response_data = http_response.env.response_body
619
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
620
- obj.raw_response = http_response
621
- raise obj
622
- else
623
- 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'
624
- end
625
- elsif Utils.match_status_code(http_response.status, ['422'])
626
- if Utils.match_content_type(content_type, 'application/json')
627
- http_response = @sdk_configuration.hooks.after_success(
628
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
629
- hook_ctx: hook_ctx
630
- ),
631
- response: http_response
632
- )
633
- response_data = http_response.env.response_body
634
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BrandValidationError)
635
- obj.raw_response = http_response
636
- raise obj
637
- else
638
- 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'
639
- end
640
- elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
641
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
642
- elsif Utils.match_status_code(http_response.status, ['500', '504'])
643
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
644
- elsif Utils.match_status_code(http_response.status, ['4XX'])
645
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
646
- elsif Utils.match_status_code(http_response.status, ['5XX'])
647
- raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
648
- else
649
- 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'
650
-
651
- end
652
- end
653
489
  end
654
490
  end
@@ -495,12 +495,9 @@ module Moov
495
495
  autoload :Underwriting, 'moov/models/components/underwriting.rb'
496
496
  autoload :UnderwritingStatus, 'moov/models/components/underwritingstatus.rb'
497
497
  autoload :UpdateApplePayMerchantDomains, 'moov/models/components/updateapplepaymerchantdomains.rb'
498
- autoload :UpdateBrand, 'moov/models/components/updatebrand.rb'
499
498
  autoload :UpdateCard, 'moov/models/components/updatecard.rb'
500
499
  autoload :UpdateCardAddress, 'moov/models/components/updatecardaddress.rb'
501
500
  autoload :UpdateCardExpiration, 'moov/models/components/updatecardexpiration.rb'
502
- autoload :UpdateColor, 'moov/models/components/updatecolor.rb'
503
- autoload :UpdateColors, 'moov/models/components/updatecolors.rb'
504
501
  autoload :UpdateEvidence, 'moov/models/components/updateevidence.rb'
505
502
  autoload :UpdateInvoice, 'moov/models/components/updateinvoice.rb'
506
503
  autoload :UpdateIssuedCard, 'moov/models/components/updateissuedcard.rb'
@@ -302,8 +302,6 @@ module Moov
302
302
  autoload :UpdateAccountResponse, 'moov/models/operations/updateaccount_response.rb'
303
303
  autoload :UpdateApplePayMerchantDomainsRequest, 'moov/models/operations/updateapplepaymerchantdomains_request.rb'
304
304
  autoload :UpdateApplePayMerchantDomainsResponse, 'moov/models/operations/updateapplepaymerchantdomains_response.rb'
305
- autoload :UpdateBrandRequest, 'moov/models/operations/updatebrand_request.rb'
306
- autoload :UpdateBrandResponse, 'moov/models/operations/updatebrand_response.rb'
307
305
  autoload :UpdateCardRequest, 'moov/models/operations/updatecard_request.rb'
308
306
  autoload :UpdateCardResponse, 'moov/models/operations/updatecard_response.rb'
309
307
  autoload :UpdateDisputeEvidenceRequest, 'moov/models/operations/updatedisputeevidence_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.10'
99
- @gen_version = '2.772.0'
100
- @user_agent = 'speakeasy-sdk/ruby 0.3.10 2.772.0 latest moov_ruby'
98
+ @sdk_version = '0.3.11'
99
+ @gen_version = '2.774.0'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.3.11 2.774.0 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.10
4
+ version: 0.3.11
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-06 00:00:00.000000000 Z
11
+ date: 2025-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64