moov_ruby 0.3.32 → 0.3.33
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/fee_plans.rb +0 -124
- data/lib/moov/models/components/createinvoicelineitem.rb +2 -1
- data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -1
- data/lib/moov/models/components/createscheduledtransferlineitem.rb +2 -1
- data/lib/moov/models/components/createtransferlineitem.rb +2 -1
- data/lib/moov/models/components/invoicelineitem.rb +2 -1
- data/lib/moov/models/components.rb +0 -1
- data/lib/moov/models/operations.rb +0 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- metadata +2 -8
- data/lib/moov/models/components/partnerpricing.rb +0 -66
- data/lib/moov/models/components/partnerpricing.rbi +0 -29
- data/lib/moov/models/operations/listpartnerpricing_request.rb +0 -49
- data/lib/moov/models/operations/listpartnerpricing_request.rbi +0 -17
- data/lib/moov/models/operations/listpartnerpricing_response.rb +0 -48
- data/lib/moov/models/operations/listpartnerpricing_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: 8f15c765882aad24d04846dcc78b264a020cabc0a50fa735f99a0ba620659b47
|
|
4
|
+
data.tar.gz: 6aebf6ad4ecd1fe67ebd49dd9858b8478d3946a0db8be180516fd340679a4d70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a995dde0b4f8aa0c0bfd814d2b3d80ae9cfb4a89f08f9f1489588c63c4457e53b45024b164267576c41e8c1f76d5cbf9756faa1ede6184ec2887e3872328ca0f
|
|
7
|
+
data.tar.gz: 3f170ee658fc0ee5ef713bbb85850a2da06c075b5b9019744654ca5a3f843b637f0cb05dd54e6467eecc3581fd761353d739a37744b93507c7eccc56ee9f346f
|
data/lib/moov/fee_plans.rb
CHANGED
|
@@ -818,130 +818,6 @@ module Moov
|
|
|
818
818
|
end
|
|
819
819
|
|
|
820
820
|
|
|
821
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), plan_i_ds: T.nilable(T::Array[::String]), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPartnerPricingResponse) }
|
|
822
|
-
def list_partner_pricing(account_id:, x_moov_version: nil, plan_i_ds: nil, timeout_ms: nil)
|
|
823
|
-
# list_partner_pricing - List all partner pricing plans available for use by an account.
|
|
824
|
-
#
|
|
825
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
826
|
-
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
827
|
-
request = Models::Operations::ListPartnerPricingRequest.new(
|
|
828
|
-
account_id: account_id,
|
|
829
|
-
x_moov_version: x_moov_version,
|
|
830
|
-
plan_i_ds: plan_i_ds
|
|
831
|
-
)
|
|
832
|
-
url, params = @sdk_configuration.get_server_details
|
|
833
|
-
base_url = Utils.template_url(url, params)
|
|
834
|
-
url = Utils.generate_url(
|
|
835
|
-
Models::Operations::ListPartnerPricingRequest,
|
|
836
|
-
base_url,
|
|
837
|
-
'/accounts/{accountID}/partner-pricing',
|
|
838
|
-
request,
|
|
839
|
-
@sdk_configuration.globals
|
|
840
|
-
)
|
|
841
|
-
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
|
842
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
843
|
-
query_params = Utils.get_query_params(Models::Operations::ListPartnerPricingRequest, request, nil, @sdk_configuration.globals)
|
|
844
|
-
headers['Accept'] = 'application/json'
|
|
845
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
|
846
|
-
|
|
847
|
-
security = @sdk_configuration.security_source&.call
|
|
848
|
-
|
|
849
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
850
|
-
timeout ||= @sdk_configuration.timeout
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
connection = @sdk_configuration.client
|
|
854
|
-
|
|
855
|
-
hook_ctx = SDKHooks::HookContext.new(
|
|
856
|
-
config: @sdk_configuration,
|
|
857
|
-
base_url: base_url,
|
|
858
|
-
oauth2_scopes: nil,
|
|
859
|
-
operation_id: 'listPartnerPricing',
|
|
860
|
-
security_source: @sdk_configuration.security_source
|
|
861
|
-
)
|
|
862
|
-
|
|
863
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
864
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
begin
|
|
868
|
-
http_response = T.must(connection).get(url) do |req|
|
|
869
|
-
req.headers.merge!(headers)
|
|
870
|
-
req.options.timeout = timeout unless timeout.nil?
|
|
871
|
-
req.params = query_params
|
|
872
|
-
Utils.configure_request_security(req, security)
|
|
873
|
-
|
|
874
|
-
@sdk_configuration.hooks.before_request(
|
|
875
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
876
|
-
hook_ctx: hook_ctx
|
|
877
|
-
),
|
|
878
|
-
request: req
|
|
879
|
-
)
|
|
880
|
-
end
|
|
881
|
-
rescue StandardError => e
|
|
882
|
-
error = e
|
|
883
|
-
ensure
|
|
884
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
885
|
-
http_response = @sdk_configuration.hooks.after_error(
|
|
886
|
-
error: error,
|
|
887
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
888
|
-
hook_ctx: hook_ctx
|
|
889
|
-
),
|
|
890
|
-
response: http_response
|
|
891
|
-
)
|
|
892
|
-
else
|
|
893
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
894
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
895
|
-
hook_ctx: hook_ctx
|
|
896
|
-
),
|
|
897
|
-
response: http_response
|
|
898
|
-
)
|
|
899
|
-
end
|
|
900
|
-
|
|
901
|
-
if http_response.nil?
|
|
902
|
-
raise error if !error.nil?
|
|
903
|
-
raise 'no response'
|
|
904
|
-
end
|
|
905
|
-
end
|
|
906
|
-
|
|
907
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
908
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
|
909
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
910
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
911
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
912
|
-
hook_ctx: hook_ctx
|
|
913
|
-
),
|
|
914
|
-
response: http_response
|
|
915
|
-
)
|
|
916
|
-
response_data = http_response.env.response_body
|
|
917
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::PartnerPricing))
|
|
918
|
-
response = Models::Operations::ListPartnerPricingResponse.new(
|
|
919
|
-
status_code: http_response.status,
|
|
920
|
-
content_type: content_type,
|
|
921
|
-
raw_response: http_response,
|
|
922
|
-
headers: http_response.headers,
|
|
923
|
-
partner_pricings: T.unsafe(obj)
|
|
924
|
-
)
|
|
925
|
-
|
|
926
|
-
return response
|
|
927
|
-
else
|
|
928
|
-
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'
|
|
929
|
-
end
|
|
930
|
-
elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
|
|
931
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
932
|
-
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
933
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
934
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
935
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
936
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
937
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
938
|
-
else
|
|
939
|
-
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'
|
|
940
|
-
|
|
941
|
-
end
|
|
942
|
-
end
|
|
943
|
-
|
|
944
|
-
|
|
945
821
|
sig { params(request: Models::Operations::ListPartnerPricingAgreementsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPartnerPricingAgreementsResponse) }
|
|
946
822
|
def list_partner_pricing_agreements(request:, timeout_ms: nil)
|
|
947
823
|
# list_partner_pricing_agreements - List all partner pricing agreements associated with an account.
|
|
@@ -18,7 +18,8 @@ module Moov
|
|
|
18
18
|
field :base_price, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('basePrice'), required: true } }
|
|
19
19
|
# The quantity of this item.
|
|
20
20
|
field :quantity, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity'), required: true } }
|
|
21
|
-
#
|
|
21
|
+
# Optional unique identifier associating the line item with a product.
|
|
22
|
+
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
22
23
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
23
24
|
# Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
24
25
|
field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreateInvoiceLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
|
|
@@ -22,7 +22,8 @@ module Moov
|
|
|
22
22
|
field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreatePaymentLinkLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
|
|
23
23
|
# Optional list of images associated with this line item.
|
|
24
24
|
field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
|
|
25
|
-
#
|
|
25
|
+
# Optional unique identifier associating the line item with a product.
|
|
26
|
+
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
26
27
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
27
28
|
|
|
28
29
|
sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, options: T.nilable(T::Array[Models::Components::CreatePaymentLinkLineItemOption]), image_i_ds: T.nilable(T::Array[::String]), product_id: T.nilable(::String)).void }
|
|
@@ -20,7 +20,8 @@ module Moov
|
|
|
20
20
|
field :quantity, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity'), required: true } }
|
|
21
21
|
# Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
22
22
|
field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreateScheduledTransferLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
|
|
23
|
-
#
|
|
23
|
+
# Optional unique identifier associating the line item with a product.
|
|
24
|
+
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
24
25
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
25
26
|
# Optional list of images associated with this line item.
|
|
26
27
|
field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
|
|
@@ -22,7 +22,8 @@ module Moov
|
|
|
22
22
|
field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreateTransferLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
|
|
23
23
|
# Optional list of images associated with this line item.
|
|
24
24
|
field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
|
|
25
|
-
#
|
|
25
|
+
# Optional unique identifier associating the line item with a product.
|
|
26
|
+
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
26
27
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
27
28
|
|
|
28
29
|
sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, options: T.nilable(T::Array[Models::Components::CreateTransferLineItemOption]), image_i_ds: T.nilable(T::Array[::String]), product_id: T.nilable(::String)).void }
|
|
@@ -18,7 +18,8 @@ module Moov
|
|
|
18
18
|
field :base_price, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('basePrice'), required: true } }
|
|
19
19
|
# The quantity of this item.
|
|
20
20
|
field :quantity, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity'), required: true } }
|
|
21
|
-
#
|
|
21
|
+
# Optional unique identifier associating the line item with a product.
|
|
22
|
+
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
22
23
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
23
24
|
# Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
24
25
|
field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoiceLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
|
|
@@ -360,7 +360,6 @@ module Moov
|
|
|
360
360
|
autoload :OtherCardFees, 'moov/models/components/othercardfees.rb'
|
|
361
361
|
autoload :PartialScheduleAccount, 'moov/models/components/partialscheduleaccount.rb'
|
|
362
362
|
autoload :PartnerFees, 'moov/models/components/partnerfees.rb'
|
|
363
|
-
autoload :PartnerPricing, 'moov/models/components/partnerpricing.rb'
|
|
364
363
|
autoload :PartnerPricingAgreement, 'moov/models/components/partnerpricingagreement.rb'
|
|
365
364
|
autoload :PatchAccount, 'moov/models/components/patchaccount.rb'
|
|
366
365
|
autoload :PatchAccountCustomerSupport, 'moov/models/components/patchaccount_customersupport.rb'
|
|
@@ -253,8 +253,6 @@ module Moov
|
|
|
253
253
|
autoload :ListOnboardingInvitesResponse, 'moov/models/operations/listonboardinginvites_response.rb'
|
|
254
254
|
autoload :ListPartnerPricingAgreementsRequest, 'moov/models/operations/listpartnerpricingagreements_request.rb'
|
|
255
255
|
autoload :ListPartnerPricingAgreementsResponse, 'moov/models/operations/listpartnerpricingagreements_response.rb'
|
|
256
|
-
autoload :ListPartnerPricingRequest, 'moov/models/operations/listpartnerpricing_request.rb'
|
|
257
|
-
autoload :ListPartnerPricingResponse, 'moov/models/operations/listpartnerpricing_response.rb'
|
|
258
256
|
autoload :ListPaymentLinksRequest, 'moov/models/operations/listpaymentlinks_request.rb'
|
|
259
257
|
autoload :ListPaymentLinksResponse, 'moov/models/operations/listpaymentlinks_response.rb'
|
|
260
258
|
autoload :ListPaymentMethodsRequest, 'moov/models/operations/listpaymentmethods_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.
|
|
100
|
-
@user_agent = 'speakeasy-sdk/ruby 0.3.
|
|
98
|
+
@sdk_version = '0.3.33'
|
|
99
|
+
@gen_version = '2.806.4'
|
|
100
|
+
@user_agent = 'speakeasy-sdk/ruby 0.3.33 2.806.4 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.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -978,8 +978,6 @@ files:
|
|
|
978
978
|
- lib/moov/models/components/partialscheduleaccount.rbi
|
|
979
979
|
- lib/moov/models/components/partnerfees.rb
|
|
980
980
|
- lib/moov/models/components/partnerfees.rbi
|
|
981
|
-
- lib/moov/models/components/partnerpricing.rb
|
|
982
|
-
- lib/moov/models/components/partnerpricing.rbi
|
|
983
981
|
- lib/moov/models/components/partnerpricingagreement.rb
|
|
984
982
|
- lib/moov/models/components/partnerpricingagreement.rbi
|
|
985
983
|
- lib/moov/models/components/patchaccount.rb
|
|
@@ -2072,10 +2070,6 @@ files:
|
|
|
2072
2070
|
- lib/moov/models/operations/listonboardinginvites_request.rbi
|
|
2073
2071
|
- lib/moov/models/operations/listonboardinginvites_response.rb
|
|
2074
2072
|
- lib/moov/models/operations/listonboardinginvites_response.rbi
|
|
2075
|
-
- lib/moov/models/operations/listpartnerpricing_request.rb
|
|
2076
|
-
- lib/moov/models/operations/listpartnerpricing_request.rbi
|
|
2077
|
-
- lib/moov/models/operations/listpartnerpricing_response.rb
|
|
2078
|
-
- lib/moov/models/operations/listpartnerpricing_response.rbi
|
|
2079
2073
|
- lib/moov/models/operations/listpartnerpricingagreements_request.rb
|
|
2080
2074
|
- lib/moov/models/operations/listpartnerpricingagreements_request.rbi
|
|
2081
2075
|
- lib/moov/models/operations/listpartnerpricingagreements_response.rb
|
|
@@ -1,66 +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
|
-
class PartnerPricing
|
|
12
|
-
extend T::Sig
|
|
13
|
-
include Crystalline::MetadataFields
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
field :plan_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('planID'), required: true } }
|
|
17
|
-
# The name of the partner pricing plan.
|
|
18
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('name'), required: true } }
|
|
19
|
-
# The decimal-formatted numerical string of the revenue split for partner.
|
|
20
|
-
#
|
|
21
|
-
# For example, 2.25% is '2.25'.
|
|
22
|
-
field :revenue_share, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
|
|
23
|
-
# Specifies the card processing pricing model
|
|
24
|
-
field :card_acquiring_model, Models::Components::CardAcquiringModel, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardAcquiringModel'), required: true, 'decoder': Utils.enum_from_string(Models::Components::CardAcquiringModel, false) } }
|
|
25
|
-
|
|
26
|
-
field :billable_fees, Crystalline::Array.new(Models::Components::BillableFee), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billableFees'), required: true } }
|
|
27
|
-
# The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
|
|
28
|
-
field :minimum_commitment, Models::Components::MinimumCommitment, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumCommitment'), required: true } }
|
|
29
|
-
# Fixed recurring amount paid in the billing period regardless of usage.
|
|
30
|
-
field :monthly_platform_fee, Models::Components::MonthlyPlatformFee, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('monthlyPlatformFee'), required: true } }
|
|
31
|
-
|
|
32
|
-
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdAt'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
33
|
-
# A description of the fee plan.
|
|
34
|
-
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
35
|
-
|
|
36
|
-
sig { params(plan_id: ::String, name: ::String, revenue_share: ::String, card_acquiring_model: Models::Components::CardAcquiringModel, billable_fees: T::Array[Models::Components::BillableFee], minimum_commitment: Models::Components::MinimumCommitment, monthly_platform_fee: Models::Components::MonthlyPlatformFee, created_at: ::DateTime, description: T.nilable(::String)).void }
|
|
37
|
-
def initialize(plan_id:, name:, revenue_share:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil)
|
|
38
|
-
@plan_id = plan_id
|
|
39
|
-
@name = name
|
|
40
|
-
@revenue_share = revenue_share
|
|
41
|
-
@card_acquiring_model = card_acquiring_model
|
|
42
|
-
@billable_fees = billable_fees
|
|
43
|
-
@minimum_commitment = minimum_commitment
|
|
44
|
-
@monthly_platform_fee = monthly_platform_fee
|
|
45
|
-
@created_at = created_at
|
|
46
|
-
@description = description
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
50
|
-
def ==(other)
|
|
51
|
-
return false unless other.is_a? self.class
|
|
52
|
-
return false unless @plan_id == other.plan_id
|
|
53
|
-
return false unless @name == other.name
|
|
54
|
-
return false unless @revenue_share == other.revenue_share
|
|
55
|
-
return false unless @card_acquiring_model == other.card_acquiring_model
|
|
56
|
-
return false unless @billable_fees == other.billable_fees
|
|
57
|
-
return false unless @minimum_commitment == other.minimum_commitment
|
|
58
|
-
return false unless @monthly_platform_fee == other.monthly_platform_fee
|
|
59
|
-
return false unless @created_at == other.created_at
|
|
60
|
-
return false unless @description == other.description
|
|
61
|
-
true
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Components::PartnerPricing
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Components::PartnerPricing
|
|
11
|
-
def plan_id(); end
|
|
12
|
-
def plan_id=(str_); end
|
|
13
|
-
def name(); end
|
|
14
|
-
def name=(str_); end
|
|
15
|
-
def revenue_share(); end
|
|
16
|
-
def revenue_share=(str_); end
|
|
17
|
-
def card_acquiring_model(); end
|
|
18
|
-
def card_acquiring_model=(str_); end
|
|
19
|
-
def billable_fees(); end
|
|
20
|
-
def billable_fees=(str_); end
|
|
21
|
-
def minimum_commitment(); end
|
|
22
|
-
def minimum_commitment=(str_); end
|
|
23
|
-
def monthly_platform_fee(); end
|
|
24
|
-
def monthly_platform_fee=(str_); end
|
|
25
|
-
def created_at(); end
|
|
26
|
-
def created_at=(str_); end
|
|
27
|
-
def description(); end
|
|
28
|
-
def description=(str_); end
|
|
29
|
-
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
|
-
class ListPartnerPricingRequest
|
|
12
|
-
extend T::Sig
|
|
13
|
-
include Crystalline::MetadataFields
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
|
-
# Specify an API version.
|
|
18
|
-
#
|
|
19
|
-
# API versioning follows the format `vYYYY.QQ.BB`, where
|
|
20
|
-
# - `YYYY` is the year
|
|
21
|
-
# - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
22
|
-
# - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
23
|
-
# - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
24
|
-
#
|
|
25
|
-
# The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
26
|
-
# When no version is specified, the API defaults to `v2024.01.00`.
|
|
27
|
-
field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
|
|
28
|
-
# A comma-separated list of plan IDs to filter the results by.
|
|
29
|
-
field :plan_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'query_param': { 'field_name': 'planIDs', 'style': 'form', 'explode': false } }
|
|
30
|
-
|
|
31
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), plan_i_ds: T.nilable(T::Array[::String])).void }
|
|
32
|
-
def initialize(account_id:, x_moov_version: nil, plan_i_ds: nil)
|
|
33
|
-
@account_id = account_id
|
|
34
|
-
@x_moov_version = x_moov_version
|
|
35
|
-
@plan_i_ds = plan_i_ds
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
39
|
-
def ==(other)
|
|
40
|
-
return false unless other.is_a? self.class
|
|
41
|
-
return false unless @account_id == other.account_id
|
|
42
|
-
return false unless @x_moov_version == other.x_moov_version
|
|
43
|
-
return false unless @plan_i_ds == other.plan_i_ds
|
|
44
|
-
true
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Operations::ListPartnerPricingRequest
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Operations::ListPartnerPricingRequest
|
|
11
|
-
def account_id(); end
|
|
12
|
-
def account_id=(str_); end
|
|
13
|
-
def x_moov_version(); end
|
|
14
|
-
def x_moov_version=(str_); end
|
|
15
|
-
def plan_i_ds(); end
|
|
16
|
-
def plan_i_ds=(str_); end
|
|
17
|
-
end
|
|
@@ -1,48 +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
|
-
class ListPartnerPricingResponse
|
|
12
|
-
extend T::Sig
|
|
13
|
-
include Crystalline::MetadataFields
|
|
14
|
-
|
|
15
|
-
# HTTP response content type for this operation
|
|
16
|
-
field :content_type, ::String
|
|
17
|
-
# HTTP response status code for this operation
|
|
18
|
-
field :status_code, ::Integer
|
|
19
|
-
# Raw HTTP response; suitable for custom response parsing
|
|
20
|
-
field :raw_response, ::Faraday::Response
|
|
21
|
-
|
|
22
|
-
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
23
|
-
# The request completed successfully.
|
|
24
|
-
field :partner_pricings, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::PartnerPricing))
|
|
25
|
-
|
|
26
|
-
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], partner_pricings: T.nilable(T::Array[Models::Components::PartnerPricing])).void }
|
|
27
|
-
def initialize(content_type:, status_code:, raw_response:, headers:, partner_pricings: nil)
|
|
28
|
-
@content_type = content_type
|
|
29
|
-
@status_code = status_code
|
|
30
|
-
@raw_response = raw_response
|
|
31
|
-
@headers = headers
|
|
32
|
-
@partner_pricings = partner_pricings
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
36
|
-
def ==(other)
|
|
37
|
-
return false unless other.is_a? self.class
|
|
38
|
-
return false unless @content_type == other.content_type
|
|
39
|
-
return false unless @status_code == other.status_code
|
|
40
|
-
return false unless @raw_response == other.raw_response
|
|
41
|
-
return false unless @headers == other.headers
|
|
42
|
-
return false unless @partner_pricings == other.partner_pricings
|
|
43
|
-
true
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Moov::Models::Operations::ListPartnerPricingResponse
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Moov::Models::Operations::ListPartnerPricingResponse
|
|
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 partner_pricings(); end
|
|
20
|
-
def partner_pricings=(str_); end
|
|
21
|
-
end
|