moov_ruby 25.7.0 → 25.7.2

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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/enum.rbi +17 -0
  3. data/lib/crystalline/metadata_fields.rb +3 -3
  4. data/lib/crystalline/module.rb +2 -0
  5. data/lib/crystalline/types.rb +27 -0
  6. data/lib/moov/models/components/accounttype.rb +0 -2
  7. data/lib/moov/models/components/accountverificationstatus.rb +0 -2
  8. data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +0 -2
  9. data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +0 -2
  10. data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +0 -2
  11. data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +0 -2
  12. data/lib/moov/models/components/achreturncode.rb +0 -2
  13. data/lib/moov/models/components/achtransactionstatus.rb +0 -2
  14. data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +0 -2
  15. data/lib/moov/models/components/applicationscope.rb +0 -2
  16. data/lib/moov/models/components/bankaccountholdertype.rb +0 -2
  17. data/lib/moov/models/components/bankaccountstatus.rb +0 -2
  18. data/lib/moov/models/components/bankaccountstatusreason.rb +0 -2
  19. data/lib/moov/models/components/bankaccounttype.rb +0 -2
  20. data/lib/moov/models/components/bankaccountverificationmethod.rb +0 -2
  21. data/lib/moov/models/components/bankaccountverificationstatus.rb +0 -2
  22. data/lib/moov/models/components/bankaccountwaitfor.rb +0 -2
  23. data/lib/moov/models/components/businesspresence.rb +0 -2
  24. data/lib/moov/models/components/businesstype.rb +0 -2
  25. data/lib/moov/models/components/calltoaction.rb +0 -2
  26. data/lib/moov/models/components/cancellationstatus.rb +0 -2
  27. data/lib/moov/models/components/capabilityid.rb +0 -2
  28. data/lib/moov/models/components/capabilitystatus.rb +0 -2
  29. data/lib/moov/models/components/cardacquiringmodel.rb +0 -2
  30. data/lib/moov/models/components/cardbrand.rb +0 -2
  31. data/lib/moov/models/components/cardissuingnetwork.rb +0 -2
  32. data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +0 -2
  33. data/lib/moov/models/components/cardpresentpaymentpaymentmethod_paymentmethodtype.rb +0 -2
  34. data/lib/moov/models/components/cardtransactionfailurecode.rb +0 -2
  35. data/lib/moov/models/components/cardtransactionstatus.rb +0 -2
  36. data/lib/moov/models/components/cardtype.rb +0 -2
  37. data/lib/moov/models/components/cardupdatereason.rb +0 -2
  38. data/lib/moov/models/components/cardverificationresult.rb +0 -2
  39. data/lib/moov/models/components/collectionpaymentmethodtype.rb +0 -2
  40. data/lib/moov/models/components/createaccounttype.rb +0 -2
  41. data/lib/moov/models/components/createpaymentlinklineitem.rb +6 -2
  42. data/lib/moov/models/components/createpaymentlinklineitemoption.rb +4 -1
  43. data/lib/moov/models/components/createscheduledtransferlineitem.rb +2 -1
  44. data/lib/moov/models/components/createtransferlineitem.rb +2 -1
  45. data/lib/moov/models/components/debitholdperiod.rb +0 -2
  46. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +0 -2
  47. data/lib/moov/models/components/disputephase.rb +0 -2
  48. data/lib/moov/models/components/disputestatus.rb +0 -2
  49. data/lib/moov/models/components/documenttype.rb +0 -2
  50. data/lib/moov/models/components/domesticpullfromcard.rb +0 -2
  51. data/lib/moov/models/components/domesticpushtocard.rb +0 -2
  52. data/lib/moov/models/components/entrymode.rb +0 -2
  53. data/lib/moov/models/components/evidencetype.rb +0 -2
  54. data/lib/moov/models/components/feecategory.rb +0 -2
  55. data/lib/moov/models/components/feemodel.rb +0 -2
  56. data/lib/moov/models/components/feeplanagreementstatus.rb +0 -2
  57. data/lib/moov/models/components/filepurpose.rb +0 -2
  58. data/lib/moov/models/components/filestatus.rb +0 -2
  59. data/lib/moov/models/components/fulfillmentmethod.rb +0 -2
  60. data/lib/moov/models/components/fulfillmenttimeframe.rb +0 -2
  61. data/lib/moov/models/components/geographicreach.rb +0 -2
  62. data/lib/moov/models/components/granttype.rb +0 -2
  63. data/lib/moov/models/components/invoicestatus.rb +0 -2
  64. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +0 -2
  65. data/lib/moov/models/components/issuedcardeventtype.rb +0 -2
  66. data/lib/moov/models/components/issuedcardformfactor.rb +0 -2
  67. data/lib/moov/models/components/issuedcardstate.rb +0 -2
  68. data/lib/moov/models/components/issuingauthorizationstatus.rb +0 -2
  69. data/lib/moov/models/components/issuingintervallimit.rb +0 -2
  70. data/lib/moov/models/components/kind.rb +0 -2
  71. data/lib/moov/models/components/linkcardwaitfor.rb +0 -2
  72. data/lib/moov/models/components/microdepositstatus.rb +0 -2
  73. data/lib/moov/models/components/mode.rb +0 -2
  74. data/lib/moov/models/components/monthlyvolumerange.rb +0 -2
  75. data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +0 -2
  76. data/lib/moov/models/components/occurrencestatus.rb +0 -2
  77. data/lib/moov/models/components/paymentlinkstatus.rb +0 -2
  78. data/lib/moov/models/components/paymentlinktype.rb +0 -2
  79. data/lib/moov/models/components/paymentmethodtype.rb +0 -2
  80. data/lib/moov/models/components/pendinglitigation.rb +0 -2
  81. data/lib/moov/models/components/primaryregulator.rb +0 -2
  82. data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +0 -2
  83. data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +0 -2
  84. data/lib/moov/models/components/receiptkind.rb +0 -2
  85. data/lib/moov/models/components/refundcardstatus.rb +0 -2
  86. data/lib/moov/models/components/refundpolicy.rb +0 -2
  87. data/lib/moov/models/components/refundstatus.rb +0 -2
  88. data/lib/moov/models/components/requirementerrorcode.rb +0 -2
  89. data/lib/moov/models/components/requirementid.rb +0 -2
  90. data/lib/moov/models/components/returnpolicytype.rb +0 -2
  91. data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +0 -2
  92. data/lib/moov/models/components/rtpfailurecode.rb +0 -2
  93. data/lib/moov/models/components/rtprejectioncode.rb +0 -2
  94. data/lib/moov/models/components/rtptransactionstatus.rb +0 -2
  95. data/lib/moov/models/components/seccode.rb +0 -2
  96. data/lib/moov/models/components/status.rb +0 -2
  97. data/lib/moov/models/components/submissionintent.rb +0 -2
  98. data/lib/moov/models/components/sweepconfigstatus.rb +0 -2
  99. data/lib/moov/models/components/sweepstatus.rb +0 -2
  100. data/lib/moov/models/components/terminalapplicationplatform.rb +0 -2
  101. data/lib/moov/models/components/terminalapplicationstatus.rb +0 -2
  102. data/lib/moov/models/components/ticketstatus.rb +0 -2
  103. data/lib/moov/models/components/token_type_hint.rb +0 -2
  104. data/lib/moov/models/components/tokentype.rb +0 -2
  105. data/lib/moov/models/components/transactionsource.rb +0 -2
  106. data/lib/moov/models/components/transferfailurereason.rb +0 -2
  107. data/lib/moov/models/components/transferparty.rb +0 -2
  108. data/lib/moov/models/components/transferstatus.rb +0 -2
  109. data/lib/moov/models/components/transferwaitfor.rb +0 -2
  110. data/lib/moov/models/components/underwritingstatus.rb +0 -2
  111. data/lib/moov/models/components/updateissuedcardstate.rb +0 -2
  112. data/lib/moov/models/components/updateticketstatus.rb +0 -2
  113. data/lib/moov/models/components/use.rb +0 -2
  114. data/lib/moov/models/components/verificationstatus.rb +0 -2
  115. data/lib/moov/models/components/verificationstatusdetail.rb +0 -2
  116. data/lib/moov/models/components/walletstatus.rb +0 -2
  117. data/lib/moov/models/components/wallettransactionsourcetype.rb +0 -2
  118. data/lib/moov/models/components/wallettransactionstatus.rb +0 -2
  119. data/lib/moov/models/components/wallettransactiontype.rb +0 -2
  120. data/lib/moov/models/components/wallettype.rb +0 -2
  121. data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -2
  122. data/lib/moov/models/components/webhookeventtype.rb +0 -2
  123. data/lib/moov/models/components/webhookstatus.rb +0 -2
  124. data/lib/moov/models/operations/createtransfer_request.rb +2 -2
  125. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +4 -4
  126. data/lib/moov/models/operations/hydrate.rb +0 -2
  127. data/lib/moov/sdkconfiguration.rb +3 -3
  128. data/lib/moov/utils/url.rb +1 -1
  129. data/lib/moov/utils/utils.rb +12 -0
  130. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82dcd9b70cd7601d6dc51e62a4f9ebe77c12cc7c0c02795efb9bcba05d4a0cbf
4
- data.tar.gz: 8d48c43313ee3386ef8f9db2dda57c2fa4c7ff90b2641c9957fa4f1b54dfe6cb
3
+ metadata.gz: 16b3d4330fb669309c8a2edc6dbd0b0e002787d0433a48f9cc3434115f1521a7
4
+ data.tar.gz: 92ba1659989db69c89934829e592bb64ff9bba431b6abf6152720f788907e10f
5
5
  SHA512:
6
- metadata.gz: 9f2c72b869cdf1dda4f164cac0546923da606385b55dbdadc50ce56993d073bbce4243b6a2d85bf9ca9a3255cff5c365f1414c4f9bfe3fa3b3da3163f3b8052e
7
- data.tar.gz: 54fb712dc0f8c91902940a55d3e510a2738880823aec73076eeee96b702ea86284421e7ab5b827a248b0e9111fb79f23f7fb38d4a4f9bf561f60b13288380397
6
+ metadata.gz: dea2e0c9a53d30734bd94c223ee5bea87b3b4be690c9a1719af960ba6aed256a362f47f92154c85a0eff22302c3616d440e3f25306141d9e96a560154b31b88c
7
+ data.tar.gz: ee0eb702c596d78e65502da2f3f7ec7bef2c067198832e5380109ac8dc97ffb6a88224a9d2c8d77d0baac04533923e73ecccd6f183cd6553b2d9fbedfddb35b5
@@ -0,0 +1,17 @@
1
+ # typed: true
2
+
3
+ module Crystalline
4
+ module Enum
5
+ mixes_in_class_methods(ClassMethods)
6
+
7
+ module ClassMethods
8
+ def enums(&blk); end
9
+ def open!; end
10
+ def open?; end
11
+ def deserialize(val); end
12
+ end
13
+
14
+ def serialize; end
15
+ def known?; end
16
+ end
17
+ end
@@ -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.map { |k, v| [k, marshal_single(v)] }
187
+ elsif f.is_a? ::Hash
188
+ result[key] = f.transform_values { |v| marshal_single(v) }
189
189
  else
190
190
  result[key] = marshal_single(f)
191
191
  end
@@ -55,6 +55,8 @@ 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)
58
60
  else
59
61
  data
60
62
  end
@@ -67,9 +67,19 @@ 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
+
70
78
  def deserialize(val)
71
79
  if @mapping.include? val
72
80
  @mapping[val]
81
+ elsif open?
82
+ new(val)
73
83
  else
74
84
  raise "Invalid value for enum: #{val}"
75
85
  end
@@ -79,5 +89,22 @@ module Crystalline
79
89
  def serialize
80
90
  @val
81
91
  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
82
109
  end
83
110
  end
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  INDIVIDUAL = new('individual')
16
14
  BUSINESS = new('business')
@@ -11,8 +11,6 @@ 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
-
16
14
  enums do
17
15
  UNVERIFIED = new('unverified')
18
16
  PENDING = new('pending')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchCreditSameDayPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  ACH_CREDIT_SAME_DAY = new('ach-credit-same-day')
16
14
  end
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchCreditStandardPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  ACH_CREDIT_STANDARD = new('ach-credit-standard')
16
14
  end
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchDebitCollectPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  ACH_DEBIT_COLLECT = new('ach-debit-collect')
16
14
  end
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class AchDebitFundPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  ACH_DEBIT_FUND = new('ach-debit-fund')
16
14
  end
@@ -30,8 +30,6 @@ 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
-
35
33
  enums do
36
34
  R02 = new('R02')
37
35
  R03 = new('R03')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  UNKNOWN = new('')
16
14
  INITIATED = new('initiated')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class ApplePayPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  APPLE_PAY = new('apple-pay')
16
14
  end
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  ACCOUNTS_READ = new('accounts.read')
16
14
  ACCOUNTS_WRITE = new('accounts.write')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  INDIVIDUAL = new('individual')
16
14
  BUSINESS = new('business')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountStatus < T::Enum
12
-
13
-
14
12
  enums do
15
13
  NEW = new('new')
16
14
  VERIFIED = new('verified')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  BANK_ACCOUNT_CREATED = new('bank-account-created')
16
14
  VERIFICATION_INITIATED = new('verification-initiated')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # BankAccountType - The bank account type.
11
11
  class BankAccountType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  CHECKING = new('checking')
16
14
  SAVINGS = new('savings')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountVerificationMethod < T::Enum
12
-
13
-
14
12
  enums do
15
13
  INSTANT = new('instant')
16
14
  ACH = new('ach')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountVerificationStatus < T::Enum
12
-
13
-
14
12
  enums do
15
13
  NEW = new('new')
16
14
  SENT_CREDIT = new('sent-credit')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BankAccountWaitFor < T::Enum
12
-
13
-
14
12
  enums do
15
13
  PAYMENT_METHOD = new('payment-method')
16
14
  RAIL_RESPONSE = new('rail-response')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class BusinessPresence < T::Enum
12
-
13
-
14
12
  enums do
15
13
  COMMERCIAL_OFFICE = new('commercial-office')
16
14
  HOME_BASED = new('home-based')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  SOLE_PROPRIETORSHIP = new('soleProprietorship')
16
14
  UNINCORPORATED_ASSOCIATION = new('unincorporatedAssociation')
@@ -12,8 +12,6 @@ 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
-
17
15
  enums do
18
16
  PAY = new('pay')
19
17
  BOOK = new('book')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CancellationStatus < T::Enum
12
-
13
-
14
12
  enums do
15
13
  PENDING = new('pending')
16
14
  COMPLETED = new('completed')
@@ -11,8 +11,6 @@ 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
-
16
14
  enums do
17
15
  TRANSFERS = new('transfers')
18
16
  SEND_FUNDS = new('send-funds')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  ENABLED = new('enabled')
16
14
  DISABLED = new('disabled')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # CardAcquiringModel - Specifies the card processing pricing model
11
11
  class CardAcquiringModel < T::Enum
12
-
13
-
14
12
  enums do
15
13
  COST_PLUS = new('cost-plus')
16
14
  FLAT_RATE = new('flat-rate')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # CardBrand - The card brand.
11
11
  class CardBrand < T::Enum
12
-
13
-
14
12
  enums do
15
13
  AMERICAN_EXPRESS = new('American Express')
16
14
  DISCOVER = new('Discover')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  DISCOVER = new('discover')
16
14
  SHAZAM = new('shazam')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardPaymentPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  CARD_PAYMENT = new('card-payment')
16
14
  end
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardPresentPaymentPaymentMethodPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  CARD_PRESENT_PAYMENT = new('card-present-payment')
16
14
  end
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardTransactionFailureCode < T::Enum
12
-
13
-
14
12
  enums do
15
13
  CALL_ISSUER = new('call-issuer')
16
14
  DO_NOT_HONOR = new('do-not-honor')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  INITIATED = new('initiated')
16
14
  CONFIRMED = new('confirmed')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # CardType - The type of the card.
11
11
  class CardType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  DEBIT = new('debit')
16
14
  CREDIT = new('credit')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # CardUpdateReason - The results of the card update request.
11
11
  class CardUpdateReason < T::Enum
12
-
13
-
14
12
  enums do
15
13
  UNSPECIFIED = new('unspecified')
16
14
  ACCOUNT_CLOSED = new('account-closed')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CardVerificationResult < T::Enum
12
-
13
-
14
12
  enums do
15
13
  NO_MATCH = new('noMatch')
16
14
  MATCH = new('match')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # CollectionPaymentMethodType - Payment methods allowed for collecting a payment.
11
11
  class CollectionPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  APPLE_PAY = new('apple-pay')
16
14
  CARD_PAYMENT = new('card-payment')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class CreateAccountType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  INDIVIDUAL = new('individual')
16
14
  BUSINESS = new('business')
@@ -20,9 +20,13 @@ 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.
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.
24
27
  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.
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.
26
30
  field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
27
31
 
28
32
  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,7 +18,10 @@ 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.
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.
22
25
  field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
23
26
  # Optional group identifier to categorize related options (e.g., 'toppings').
24
27
  field :group, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('group') } }
@@ -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
- # Optional unique identifier associating the line item with a product.
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
- # Optional unique identifier associating the line item with a product.
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 }
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  NO_HOLD = new('no-hold')
16
14
  ONE_MINUS_DAY = new('1-day')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # DisbursementPaymentMethodType - Payment methods allowed for disbursing funds.
11
11
  class DisbursementPaymentMethodType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  PUSH_TO_CARD = new('push-to-card')
16
14
  RTP_CREDIT = new('rtp-credit')
@@ -9,8 +9,6 @@ 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
-
14
12
  enums do
15
13
  PRE_DISPUTE = new('pre-dispute')
16
14
  INQUIRY = new('inquiry')
@@ -11,8 +11,6 @@ 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
-
16
14
  enums do
17
15
  RESPONSE_NEEDED = new('response-needed')
18
16
  RESOLVED = new('resolved')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # DocumentType - Types of documents that can be uploaded.
11
11
  class DocumentType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  DRIVERS_LICENSE = new('driversLicense')
16
14
  PASSPORT = new('passport')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # DomesticPullFromCard - Indicates if the card supports domestic pull-from-card transfer.
11
11
  class DomesticPullFromCard < T::Enum
12
-
13
-
14
12
  enums do
15
13
  NOT_SUPPORTED = new('not-supported')
16
14
  SUPPORTED = new('supported')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # DomesticPushToCard - Indicates which level of domestic push-to-card transfer is supported by the card, if any.
11
11
  class DomesticPushToCard < T::Enum
12
-
13
-
14
12
  enums do
15
13
  NOT_SUPPORTED = new('not-supported')
16
14
  STANDARD = new('standard')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # EntryMode - How the card information was entered into the point of sale terminal.
11
11
  class EntryMode < T::Enum
12
-
13
-
14
12
  enums do
15
13
  CONTACTLESS = new('contactless')
16
14
  end
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class EvidenceType < T::Enum
12
-
13
-
14
12
  enums do
15
13
  RECEIPT = new('receipt')
16
14
  PROOF_OF_DELIVERY = new('proof-of-delivery')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class FeeCategory < T::Enum
12
-
13
-
14
12
  enums do
15
13
  ACH = new('ach')
16
14
  CARD_ACQUIRING = new('card-acquiring')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # FeeModel - Specifies the pricing model used for the calculation of the final fee.
11
11
  class FeeModel < T::Enum
12
-
13
-
14
12
  enums do
15
13
  FIXED = new('fixed')
16
14
  BLENDED = new('blended')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
 
11
11
  class FeePlanAgreementStatus < T::Enum
12
-
13
-
14
12
  enums do
15
13
  ACTIVE = new('active')
16
14
  TERMINATED = new('terminated')
@@ -9,8 +9,6 @@ module Moov
9
9
  module Components
10
10
  # FilePurpose - The file's purpose.
11
11
  class FilePurpose < T::Enum
12
-
13
-
14
12
  enums do
15
13
  BUSINESS_VERIFICATION = new('business_verification')
16
14
  REPRESENTATIVE_VERIFICATION = new('representative_verification')