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.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/metadata_fields.rb +3 -3
  3. data/lib/crystalline/module.rb +0 -2
  4. data/lib/crystalline/types.rb +0 -27
  5. data/lib/moov/fee_plans.rb +124 -0
  6. data/lib/moov/models/components/accounttype.rb +2 -0
  7. data/lib/moov/models/components/accountverificationstatus.rb +2 -0
  8. data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
  9. data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
  10. data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
  11. data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
  12. data/lib/moov/models/components/achreturncode.rb +2 -0
  13. data/lib/moov/models/components/achtransactionstatus.rb +2 -0
  14. data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
  15. data/lib/moov/models/components/applicationscope.rb +2 -0
  16. data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
  17. data/lib/moov/models/components/bankaccountstatus.rb +2 -0
  18. data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
  19. data/lib/moov/models/components/bankaccounttype.rb +2 -0
  20. data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
  21. data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
  22. data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
  23. data/lib/moov/models/components/businesstype.rb +2 -0
  24. data/lib/moov/models/components/calltoaction.rb +2 -0
  25. data/lib/moov/models/components/cancellationstatus.rb +2 -0
  26. data/lib/moov/models/components/capabilityid.rb +2 -0
  27. data/lib/moov/models/components/capabilitystatus.rb +2 -0
  28. data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
  29. data/lib/moov/models/components/cardbrand.rb +2 -0
  30. data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
  31. data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
  32. data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
  33. data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
  34. data/lib/moov/models/components/cardtype.rb +2 -0
  35. data/lib/moov/models/components/cardupdatereason.rb +2 -0
  36. data/lib/moov/models/components/cardverificationresult.rb +2 -0
  37. data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
  38. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -6
  39. data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
  40. data/lib/moov/models/components/createscheduledtransferlineitem.rb +1 -2
  41. data/lib/moov/models/components/createtransferlineitem.rb +1 -2
  42. data/lib/moov/models/components/debitholdperiod.rb +2 -0
  43. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
  44. data/lib/moov/models/components/disputephase.rb +2 -0
  45. data/lib/moov/models/components/disputestatus.rb +2 -0
  46. data/lib/moov/models/components/documenttype.rb +2 -0
  47. data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
  48. data/lib/moov/models/components/domesticpushtocard.rb +2 -0
  49. data/lib/moov/models/components/evidencetype.rb +2 -0
  50. data/lib/moov/models/components/feecategory.rb +2 -0
  51. data/lib/moov/models/components/feemodel.rb +2 -0
  52. data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
  53. data/lib/moov/models/components/filepurpose.rb +2 -0
  54. data/lib/moov/models/components/filestatus.rb +2 -0
  55. data/lib/moov/models/components/granttype.rb +2 -0
  56. data/lib/moov/models/components/invoicestatus.rb +2 -0
  57. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
  58. data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
  59. data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
  60. data/lib/moov/models/components/issuedcardstate.rb +2 -0
  61. data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
  62. data/lib/moov/models/components/issuingintervallimit.rb +2 -0
  63. data/lib/moov/models/components/kind.rb +2 -0
  64. data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
  65. data/lib/moov/models/components/microdepositstatus.rb +2 -0
  66. data/lib/moov/models/components/mode.rb +2 -0
  67. data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
  68. data/lib/moov/models/components/occurrencestatus.rb +2 -0
  69. data/lib/moov/models/components/partnerpricing.rb +66 -0
  70. data/lib/moov/models/components/partnerpricing.rbi +29 -0
  71. data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
  72. data/lib/moov/models/components/paymentlinktype.rb +2 -0
  73. data/lib/moov/models/components/paymentmethodtype.rb +2 -0
  74. data/lib/moov/models/components/primaryregulator.rb +2 -0
  75. data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
  76. data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
  77. data/lib/moov/models/components/receiptkind.rb +2 -0
  78. data/lib/moov/models/components/refundcardstatus.rb +2 -0
  79. data/lib/moov/models/components/refundstatus.rb +2 -0
  80. data/lib/moov/models/components/requirementerrorcode.rb +2 -0
  81. data/lib/moov/models/components/requirementid.rb +2 -0
  82. data/lib/moov/models/components/returnpolicytype.rb +2 -0
  83. data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
  84. data/lib/moov/models/components/rtpfailurecode.rb +2 -0
  85. data/lib/moov/models/components/rtprejectioncode.rb +2 -0
  86. data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
  87. data/lib/moov/models/components/seccode.rb +2 -0
  88. data/lib/moov/models/components/status.rb +2 -0
  89. data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
  90. data/lib/moov/models/components/sweepstatus.rb +2 -0
  91. data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
  92. data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
  93. data/lib/moov/models/components/ticketstatus.rb +2 -0
  94. data/lib/moov/models/components/token_type_hint.rb +2 -0
  95. data/lib/moov/models/components/tokentype.rb +2 -0
  96. data/lib/moov/models/components/transactionsource.rb +2 -0
  97. data/lib/moov/models/components/transferfailurereason.rb +2 -0
  98. data/lib/moov/models/components/transferparty.rb +2 -0
  99. data/lib/moov/models/components/transferstatus.rb +2 -0
  100. data/lib/moov/models/components/transferwaitfor.rb +2 -0
  101. data/lib/moov/models/components/underwritingstatus.rb +2 -0
  102. data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
  103. data/lib/moov/models/components/use.rb +2 -0
  104. data/lib/moov/models/components/verificationstatus.rb +2 -0
  105. data/lib/moov/models/components/verificationstatusdetail.rb +2 -0
  106. data/lib/moov/models/components/walletstatus.rb +2 -0
  107. data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
  108. data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
  109. data/lib/moov/models/components/wallettransactiontype.rb +2 -0
  110. data/lib/moov/models/components/wallettype.rb +2 -0
  111. data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
  112. data/lib/moov/models/components/webhookeventtype.rb +2 -0
  113. data/lib/moov/models/components/webhookstatus.rb +2 -0
  114. data/lib/moov/models/components.rb +1 -0
  115. data/lib/moov/models/operations/createtransfer_request.rb +2 -2
  116. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +4 -4
  117. data/lib/moov/models/operations/hydrate.rb +2 -0
  118. data/lib/moov/models/operations/listpartnerpricing_request.rb +49 -0
  119. data/lib/moov/models/operations/listpartnerpricing_request.rbi +17 -0
  120. data/lib/moov/models/operations/listpartnerpricing_response.rb +48 -0
  121. data/lib/moov/models/operations/listpartnerpricing_response.rbi +21 -0
  122. data/lib/moov/models/operations.rb +2 -0
  123. data/lib/moov/sdkconfiguration.rb +4 -4
  124. data/lib/moov/utils/url.rb +1 -1
  125. data/lib/moov/utils/utils.rb +0 -12
  126. metadata +10 -5
  127. data/lib/crystalline/enum.rbi +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5a0a0aad9d6e0c3ea4e51c4c0457b3447dd32d47b9618b8c7cc2c95a8fa540c
4
- data.tar.gz: 9fd47504ab712459ed2a3bdd5e01ceda7d82afba2f4dd445136c84a642182b27
3
+ metadata.gz: 0e58ee68f1f37de0c5dd7e66d06da00ae66ba109c3c5c43cc452151b65e5bc16
4
+ data.tar.gz: 66637cedfffd25b2e986da3c9f1956827e25cf0944032795f084b14d8a46ed2d
5
5
  SHA512:
6
- metadata.gz: 323dd519047e26ad7c2be8eeb1307b34747502fce7a6919ed216925126a236c2c506e3641963d954353931765d390cc2a9fd2a94bcf7d28d058563099b6a60b4
7
- data.tar.gz: '0584bb67e21277c7c3bbc78ce6dd3077688a3915cb0c5b0b6cfa08cad34eca827ed0e96fbb7cb596aa67a838dee4f8799be4e2fe996c196aaa9ee4697408b697'
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? ::Array
185
+ if f.is_a? Array
186
186
  result[key] = f.map { |o| marshal_single(o) }
187
- elsif f.is_a? ::Hash
188
- result[key] = f.transform_values { |v| marshal_single(v) }
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
@@ -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
@@ -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
@@ -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
  # AccountType - The type of entity represented by this account.
11
11
  class AccountType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  INDIVIDUAL = new('individual')
14
16
  BUSINESS = new('business')
@@ -11,6 +11,8 @@ module Moov
11
11
  #
12
12
  # @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
13
13
  class AccountVerificationStatus < T::Enum
14
+
15
+
14
16
  enums do
15
17
  UNVERIFIED = new('unverified')
16
18
  PENDING = new('pending')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchCreditSameDayPaymentMethodPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  ACH_CREDIT_SAME_DAY = new('ach-credit-same-day')
14
16
  end
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchCreditStandardPaymentMethodPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  ACH_CREDIT_STANDARD = new('ach-credit-standard')
14
16
  end
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchDebitCollectPaymentMethodPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  ACH_DEBIT_COLLECT = new('ach-debit-collect')
14
16
  end
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchDebitFundPaymentMethodPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  ACH_DEBIT_FUND = new('ach-debit-fund')
14
16
  end
@@ -30,6 +30,8 @@ module Moov
30
30
  # - R38: Stop Payment on Source Document (Adjustment Entry)
31
31
  # - R39: Improper Source Document
32
32
  class ACHReturnCode < T::Enum
33
+
34
+
33
35
  enums do
34
36
  R02 = new('R02')
35
37
  R03 = new('R03')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # ACHTransactionStatus - Status of a transaction within the ACH lifecycle.
11
11
  class ACHTransactionStatus < T::Enum
12
+
13
+
12
14
  enums do
13
15
  UNKNOWN = new('')
14
16
  INITIATED = new('initiated')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class ApplePayPaymentMethodPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  APPLE_PAY = new('apple-pay')
14
16
  end
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # ApplicationScope - A permission that the application requests on another account.
11
11
  class ApplicationScope < T::Enum
12
+
13
+
12
14
  enums do
13
15
  ACCOUNTS_READ = new('accounts.read')
14
16
  ACCOUNTS_WRITE = new('accounts.write')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # BankAccountHolderType - The type of holder on a funding source.
11
11
  class BankAccountHolderType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  INDIVIDUAL = new('individual')
14
16
  BUSINESS = new('business')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountStatus < T::Enum
12
+
13
+
12
14
  enums do
13
15
  NEW = new('new')
14
16
  VERIFIED = new('verified')
@@ -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
  # BankAccountType - The bank account type.
11
11
  class BankAccountType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  CHECKING = new('checking')
14
16
  SAVINGS = new('savings')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountVerificationMethod < T::Enum
12
+
13
+
12
14
  enums do
13
15
  INSTANT = new('instant')
14
16
  ACH = new('ach')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountVerificationStatus < T::Enum
12
+
13
+
12
14
  enums do
13
15
  NEW = new('new')
14
16
  SENT_CREDIT = new('sent-credit')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountWaitFor < T::Enum
12
+
13
+
12
14
  enums do
13
15
  PAYMENT_METHOD = new('payment-method')
14
16
  RAIL_RESPONSE = new('rail-response')
@@ -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')
@@ -12,6 +12,8 @@ module Moov
12
12
  # If set to "auto" the UI will automatically select between
13
13
  # "pay" and "confirm" for payments and payouts respectively.
14
14
  class CallToAction < T::Enum
15
+
16
+
15
17
  enums do
16
18
  PAY = new('pay')
17
19
  BOOK = new('book')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CancellationStatus < T::Enum
12
+
13
+
12
14
  enums do
13
15
  PENDING = new('pending')
14
16
  COMPLETED = new('completed')
@@ -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')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CapabilityStatus - The status of the capability requested for an account.
11
11
  class CapabilityStatus < T::Enum
12
+
13
+
12
14
  enums do
13
15
  ENABLED = new('enabled')
14
16
  DISABLED = new('disabled')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CardAcquiringModel - Specifies the card processing pricing model
11
11
  class CardAcquiringModel < T::Enum
12
+
13
+
12
14
  enums do
13
15
  COST_PLUS = new('cost-plus')
14
16
  FLAT_RATE = new('flat-rate')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CardBrand - The card brand.
11
11
  class CardBrand < T::Enum
12
+
13
+
12
14
  enums do
13
15
  AMERICAN_EXPRESS = new('American Express')
14
16
  DISCOVER = new('Discover')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CardIssuingNetwork - The name of the network a card transaction is routed through.
11
11
  class CardIssuingNetwork < T::Enum
12
+
13
+
12
14
  enums do
13
15
  DISCOVER = new('discover')
14
16
  SHAZAM = new('shazam')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardPaymentPaymentMethodPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  CARD_PAYMENT = new('card-payment')
14
16
  end
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardTransactionFailureCode < T::Enum
12
+
13
+
12
14
  enums do
13
15
  CALL_ISSUER = new('call-issuer')
14
16
  DO_NOT_HONOR = new('do-not-honor')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CardTransactionStatus - Status of a transaction within the card payment lifecycle.
11
11
  class CardTransactionStatus < T::Enum
12
+
13
+
12
14
  enums do
13
15
  INITIATED = new('initiated')
14
16
  CONFIRMED = new('confirmed')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CardType - The type of the card.
11
11
  class CardType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  DEBIT = new('debit')
14
16
  CREDIT = new('credit')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CardUpdateReason - The results of the card update request.
11
11
  class CardUpdateReason < T::Enum
12
+
13
+
12
14
  enums do
13
15
  UNSPECIFIED = new('unspecified')
14
16
  ACCOUNT_CLOSED = new('account-closed')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardVerificationResult < T::Enum
12
+
13
+
12
14
  enums do
13
15
  NO_MATCH = new('noMatch')
14
16
  MATCH = new('match')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # CollectionPaymentMethodType - Payment methods allowed for collecting a payment.
11
11
  class CollectionPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  APPLE_PAY = new('apple-pay')
14
16
  CARD_PAYMENT = new('card-payment')
@@ -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
- # Optional list of images associated with this line item.
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
- # Optional unique identifier associating the line item with a product.
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
- # Optional list of images associated with this line item option.
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
- # 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.
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
- # 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.
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')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # DisbursementPaymentMethodType - Payment methods allowed for disbursing funds.
11
11
  class DisbursementPaymentMethodType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  PUSH_TO_CARD = new('push-to-card')
14
16
  RTP_CREDIT = new('rtp-credit')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # DisputePhase - The phase of a dispute within the dispute lifecycle.
11
11
  class DisputePhase < T::Enum
12
+
13
+
12
14
  enums do
13
15
  PRE_DISPUTE = new('pre-dispute')
14
16
  INQUIRY = new('inquiry')
@@ -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')
@@ -9,6 +9,8 @@ module Moov
9
9
  module Components
10
10
  # DocumentType - Types of documents that can be uploaded.
11
11
  class DocumentType < T::Enum
12
+
13
+
12
14
  enums do
13
15
  DRIVERS_LICENSE = new('driversLicense')
14
16
  PASSPORT = new('passport')