moov_ruby 24.1.2 → 25.1.0.pre.dev.0
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/crystalline/metadata_fields.rb +3 -3
- data/lib/crystalline/module.rb +0 -2
- data/lib/crystalline/types.rb +0 -27
- data/lib/moov/fee_plans.rb +124 -0
- data/lib/moov/models/components/accounttype.rb +2 -0
- data/lib/moov/models/components/accountverificationstatus.rb +2 -0
- data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achreturncode.rb +2 -0
- data/lib/moov/models/components/achtransactionstatus.rb +2 -0
- data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/applicationscope.rb +2 -0
- data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
- data/lib/moov/models/components/bankaccountstatus.rb +2 -0
- data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
- data/lib/moov/models/components/bankaccounttype.rb +2 -0
- data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
- data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
- data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
- data/lib/moov/models/components/businesstype.rb +2 -0
- data/lib/moov/models/components/calltoaction.rb +2 -0
- data/lib/moov/models/components/cancellationstatus.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +2 -0
- data/lib/moov/models/components/capabilitystatus.rb +2 -0
- data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
- data/lib/moov/models/components/cardbrand.rb +2 -0
- data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
- data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
- data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
- data/lib/moov/models/components/cardtype.rb +2 -0
- data/lib/moov/models/components/cardupdatereason.rb +2 -0
- data/lib/moov/models/components/cardverificationresult.rb +2 -0
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
- data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -6
- data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
- data/lib/moov/models/components/createscheduledtransferlineitem.rb +1 -2
- data/lib/moov/models/components/createtransferlineitem.rb +1 -2
- data/lib/moov/models/components/debitholdperiod.rb +2 -0
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
- data/lib/moov/models/components/disputephase.rb +2 -0
- data/lib/moov/models/components/disputestatus.rb +2 -0
- data/lib/moov/models/components/documenttype.rb +2 -0
- data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
- data/lib/moov/models/components/domesticpushtocard.rb +2 -0
- data/lib/moov/models/components/evidencetype.rb +2 -0
- data/lib/moov/models/components/feecategory.rb +2 -0
- data/lib/moov/models/components/feemodel.rb +2 -0
- data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
- data/lib/moov/models/components/filepurpose.rb +2 -0
- data/lib/moov/models/components/filestatus.rb +2 -0
- data/lib/moov/models/components/granttype.rb +2 -0
- data/lib/moov/models/components/invoicestatus.rb +2 -0
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
- data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
- data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +2 -0
- data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
- data/lib/moov/models/components/issuingintervallimit.rb +2 -0
- data/lib/moov/models/components/kind.rb +2 -0
- data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
- data/lib/moov/models/components/microdepositstatus.rb +2 -0
- data/lib/moov/models/components/mode.rb +2 -0
- data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/occurrencestatus.rb +2 -0
- data/lib/moov/models/components/partnerpricing.rb +66 -0
- data/lib/moov/models/components/partnerpricing.rbi +29 -0
- data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
- data/lib/moov/models/components/paymentlinktype.rb +2 -0
- data/lib/moov/models/components/paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/primaryregulator.rb +2 -0
- data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/receiptkind.rb +2 -0
- data/lib/moov/models/components/refundcardstatus.rb +2 -0
- data/lib/moov/models/components/refundstatus.rb +2 -0
- data/lib/moov/models/components/requirementerrorcode.rb +2 -0
- data/lib/moov/models/components/requirementid.rb +2 -0
- data/lib/moov/models/components/returnpolicytype.rb +2 -0
- data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/rtpfailurecode.rb +2 -0
- data/lib/moov/models/components/rtprejectioncode.rb +2 -0
- data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
- data/lib/moov/models/components/seccode.rb +2 -0
- data/lib/moov/models/components/status.rb +2 -0
- data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
- data/lib/moov/models/components/sweepstatus.rb +2 -0
- data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
- data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
- data/lib/moov/models/components/ticketstatus.rb +2 -0
- data/lib/moov/models/components/token_type_hint.rb +2 -0
- data/lib/moov/models/components/tokentype.rb +2 -0
- data/lib/moov/models/components/transactionsource.rb +2 -0
- data/lib/moov/models/components/transferfailurereason.rb +2 -0
- data/lib/moov/models/components/transferparty.rb +2 -0
- data/lib/moov/models/components/transferstatus.rb +2 -0
- data/lib/moov/models/components/transferwaitfor.rb +2 -0
- data/lib/moov/models/components/underwritingstatus.rb +2 -0
- data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
- data/lib/moov/models/components/use.rb +2 -0
- data/lib/moov/models/components/verificationstatus.rb +2 -0
- data/lib/moov/models/components/verificationstatusdetail.rb +2 -0
- data/lib/moov/models/components/walletstatus.rb +2 -0
- data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
- data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
- data/lib/moov/models/components/wallettransactiontype.rb +2 -0
- data/lib/moov/models/components/wallettype.rb +2 -0
- data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
- data/lib/moov/models/components/webhookeventtype.rb +2 -0
- data/lib/moov/models/components/webhookstatus.rb +2 -0
- data/lib/moov/models/components.rb +1 -0
- data/lib/moov/models/operations/createtransfer_request.rb +2 -2
- data/lib/moov/models/operations/getscheduledoccurrence_request.rb +4 -4
- data/lib/moov/models/operations/hydrate.rb +2 -0
- data/lib/moov/models/operations/listpartnerpricing_request.rb +49 -0
- data/lib/moov/models/operations/listpartnerpricing_request.rbi +17 -0
- data/lib/moov/models/operations/listpartnerpricing_response.rb +48 -0
- data/lib/moov/models/operations/listpartnerpricing_response.rbi +21 -0
- data/lib/moov/models/operations.rb +2 -0
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/utils/url.rb +1 -1
- data/lib/moov/utils/utils.rb +0 -12
- metadata +10 -5
- data/lib/crystalline/enum.rbi +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e58ee68f1f37de0c5dd7e66d06da00ae66ba109c3c5c43cc452151b65e5bc16
|
|
4
|
+
data.tar.gz: 66637cedfffd25b2e986da3c9f1956827e25cf0944032795f084b14d8a46ed2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30a72deb4051dd9a1eb869175ee5e6b227698507b65b4688ea4e91ff9748aa955ad053188917fd113517a9691d3578a682d4753c38fec5af37c9580eeb78abe3
|
|
7
|
+
data.tar.gz: a3ab75e27717358746fd64434310f479fc95da770d9d9ff6a95a147a10430ac71790acfb89482fe48a24e9973171fbbd09ba189a8f63268fda50585d7cd860e4
|
|
@@ -182,10 +182,10 @@ module Crystalline
|
|
|
182
182
|
next if f.nil? && !required
|
|
183
183
|
result[key] = nil if f.nil? && required
|
|
184
184
|
|
|
185
|
-
if f.is_a?
|
|
185
|
+
if f.is_a? Array
|
|
186
186
|
result[key] = f.map { |o| marshal_single(o) }
|
|
187
|
-
elsif f.is_a?
|
|
188
|
-
result[key] = f.
|
|
187
|
+
elsif f.is_a? Hash
|
|
188
|
+
result[key] = f.map { |k, v| [k, marshal_single(v)] }
|
|
189
189
|
else
|
|
190
190
|
result[key] = marshal_single(f)
|
|
191
191
|
end
|
data/lib/crystalline/module.rb
CHANGED
|
@@ -55,8 +55,6 @@ module Crystalline
|
|
|
55
55
|
Crystalline::Utils.to_boolean(data)
|
|
56
56
|
elsif type.is_a?(Class) && type < T::Enum
|
|
57
57
|
type.deserialize(data)
|
|
58
|
-
elsif type.is_a?(Class) && type.respond_to?(:enums) && type.respond_to?(:deserialize)
|
|
59
|
-
type.deserialize(data)
|
|
60
58
|
else
|
|
61
59
|
data
|
|
62
60
|
end
|
data/lib/crystalline/types.rb
CHANGED
|
@@ -67,19 +67,9 @@ module Crystalline
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
def open!
|
|
71
|
-
@open = true
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
def open?
|
|
75
|
-
@open == true
|
|
76
|
-
end
|
|
77
|
-
|
|
78
70
|
def deserialize(val)
|
|
79
71
|
if @mapping.include? val
|
|
80
72
|
@mapping[val]
|
|
81
|
-
elsif open?
|
|
82
|
-
new(val)
|
|
83
73
|
else
|
|
84
74
|
raise "Invalid value for enum: #{val}"
|
|
85
75
|
end
|
|
@@ -89,22 +79,5 @@ module Crystalline
|
|
|
89
79
|
def serialize
|
|
90
80
|
@val
|
|
91
81
|
end
|
|
92
|
-
|
|
93
|
-
def known?
|
|
94
|
-
self.class.instance_variable_get(:@mapping)&.value?(self) || false
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
def ==(other)
|
|
98
|
-
other = other.serialize if other.is_a?(self.class)
|
|
99
|
-
@val == other
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
def eql?(other)
|
|
103
|
-
self == other
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
def hash
|
|
107
|
-
@val.hash
|
|
108
|
-
end
|
|
109
82
|
end
|
|
110
83
|
end
|
data/lib/moov/fee_plans.rb
CHANGED
|
@@ -818,6 +818,130 @@ 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
|
+
|
|
821
945
|
sig { params(request: Models::Operations::ListPartnerPricingAgreementsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPartnerPricingAgreementsResponse) }
|
|
822
946
|
def list_partner_pricing_agreements(request:, timeout_ms: nil)
|
|
823
947
|
# list_partner_pricing_agreements - List all partner pricing agreements associated with an account.
|
|
@@ -9,6 +9,8 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# BankAccountStatusReason - The reason the bank account status changed to the current value.
|
|
11
11
|
class BankAccountStatusReason < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
enums do
|
|
13
15
|
BANK_ACCOUNT_CREATED = new('bank-account-created')
|
|
14
16
|
VERIFICATION_INITIATED = new('verification-initiated')
|
|
@@ -9,6 +9,8 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# BusinessType - The type of entity represented by this business.
|
|
11
11
|
class BusinessType < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
enums do
|
|
13
15
|
SOLE_PROPRIETORSHIP = new('soleProprietorship')
|
|
14
16
|
UNINCORPORATED_ASSOCIATION = new('unincorporatedAssociation')
|
|
@@ -11,6 +11,8 @@ module Moov
|
|
|
11
11
|
#
|
|
12
12
|
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
|
|
13
13
|
class CapabilityID < T::Enum
|
|
14
|
+
|
|
15
|
+
|
|
14
16
|
enums do
|
|
15
17
|
TRANSFERS = new('transfers')
|
|
16
18
|
SEND_FUNDS = new('send-funds')
|
|
@@ -20,13 +20,9 @@ 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::CreatePaymentLinkLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
|
|
23
|
-
#
|
|
24
|
-
# This field is deprecated and will be ignored. A future release will populate images associated with the given productID.
|
|
25
|
-
#
|
|
26
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
23
|
+
# Optional list of images associated with this line item.
|
|
27
24
|
field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
|
|
28
|
-
#
|
|
29
|
-
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
25
|
+
# Optional unique identifier associating the line item with a product.
|
|
30
26
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
31
27
|
|
|
32
28
|
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 }
|
|
@@ -18,10 +18,7 @@ module Moov
|
|
|
18
18
|
field :quantity, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity'), required: true } }
|
|
19
19
|
# Optional price modification applied by this option. Can be positive, negative, or zero.
|
|
20
20
|
field :price_modifier, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('priceModifier') } }
|
|
21
|
-
#
|
|
22
|
-
# This field is deprecated and will be ignored. A future release will populate images associated with the given productID.
|
|
23
|
-
#
|
|
24
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
21
|
+
# Optional list of images associated with this line item option.
|
|
25
22
|
field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
|
|
26
23
|
# Optional group identifier to categorize related options (e.g., 'toppings').
|
|
27
24
|
field :group, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('group') } }
|
|
@@ -20,8 +20,7 @@ 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
|
-
#
|
|
24
|
-
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
23
|
+
# Optional unique identifier associating the line item with a product.
|
|
25
24
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
26
25
|
# Optional list of images associated with this line item.
|
|
27
26
|
field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
|
|
@@ -22,8 +22,7 @@ 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
|
-
#
|
|
26
|
-
# This is for reporting or tracking purposes, and does not populate other details of the line item.
|
|
25
|
+
# Optional unique identifier associating the line item with a product.
|
|
27
26
|
field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
|
|
28
27
|
|
|
29
28
|
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 }
|
|
@@ -9,6 +9,8 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# DebitHoldPeriod - An optional override of your default ACH hold period in banking days. The hold period must be longer than or equal to your default setting.
|
|
11
11
|
class DebitHoldPeriod < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
enums do
|
|
13
15
|
NO_HOLD = new('no-hold')
|
|
14
16
|
ONE_MINUS_DAY = new('1-day')
|
|
@@ -11,6 +11,8 @@ module Moov
|
|
|
11
11
|
#
|
|
12
12
|
# Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
|
13
13
|
class DisputeStatus < T::Enum
|
|
14
|
+
|
|
15
|
+
|
|
14
16
|
enums do
|
|
15
17
|
RESPONSE_NEEDED = new('response-needed')
|
|
16
18
|
RESOLVED = new('resolved')
|