moov_ruby 0.3.34 → 0.3.36

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 (147) 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/createinvoicelineitem.rb +5 -5
  42. data/lib/moov/models/components/createinvoicelineitem.rbi +2 -2
  43. data/lib/moov/models/components/createinvoicelineitemimage.rb +32 -0
  44. data/lib/moov/models/components/createinvoicelineitemimage.rbi +13 -0
  45. data/lib/moov/models/components/createinvoicelineitemimagevalidationerror.rb +32 -0
  46. data/lib/moov/models/components/createinvoicelineitemimagevalidationerror.rbi +13 -0
  47. data/lib/moov/models/components/createinvoicelineitemoption.rb +6 -6
  48. data/lib/moov/models/components/createinvoicelineitemoption.rbi +2 -2
  49. data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rb +6 -2
  50. data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rbi +2 -0
  51. data/lib/moov/models/components/createinvoicelineitemvalidationerror.rb +6 -2
  52. data/lib/moov/models/components/createinvoicelineitemvalidationerror.rbi +2 -0
  53. data/lib/moov/models/components/debitholdperiod.rb +0 -2
  54. data/lib/moov/models/components/disbursementpaymentmethodtype.rb +0 -2
  55. data/lib/moov/models/components/disputephase.rb +0 -2
  56. data/lib/moov/models/components/disputestatus.rb +0 -2
  57. data/lib/moov/models/components/documenttype.rb +0 -2
  58. data/lib/moov/models/components/domesticpullfromcard.rb +0 -2
  59. data/lib/moov/models/components/domesticpushtocard.rb +0 -2
  60. data/lib/moov/models/components/entrymode.rb +0 -2
  61. data/lib/moov/models/components/evidencetype.rb +0 -2
  62. data/lib/moov/models/components/feecategory.rb +0 -2
  63. data/lib/moov/models/components/feemodel.rb +0 -2
  64. data/lib/moov/models/components/feeplanagreementstatus.rb +0 -2
  65. data/lib/moov/models/components/filepurpose.rb +0 -2
  66. data/lib/moov/models/components/filestatus.rb +0 -2
  67. data/lib/moov/models/components/fulfillmentmethod.rb +0 -2
  68. data/lib/moov/models/components/fulfillmenttimeframe.rb +0 -2
  69. data/lib/moov/models/components/geographicreach.rb +0 -2
  70. data/lib/moov/models/components/granttype.rb +0 -2
  71. data/lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb +0 -2
  72. data/lib/moov/models/components/invoicelineitemimagevalidationerror.rb +32 -0
  73. data/lib/moov/models/components/invoicelineitemimagevalidationerror.rbi +13 -0
  74. data/lib/moov/models/components/invoicelineitemoptionvalidationerror.rb +6 -2
  75. data/lib/moov/models/components/invoicelineitemoptionvalidationerror.rbi +2 -0
  76. data/lib/moov/models/components/invoicelineitemvalidationerror.rb +6 -2
  77. data/lib/moov/models/components/invoicelineitemvalidationerror.rbi +2 -0
  78. data/lib/moov/models/components/invoicepaymenttype.rb +0 -2
  79. data/lib/moov/models/components/invoicestatus.rb +0 -2
  80. data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +0 -2
  81. data/lib/moov/models/components/issuedcardeventtype.rb +0 -2
  82. data/lib/moov/models/components/issuedcardformfactor.rb +0 -2
  83. data/lib/moov/models/components/issuedcardstate.rb +0 -2
  84. data/lib/moov/models/components/issuingauthorizationstatus.rb +0 -2
  85. data/lib/moov/models/components/issuingintervallimit.rb +0 -2
  86. data/lib/moov/models/components/kind.rb +0 -2
  87. data/lib/moov/models/components/linkcardwaitfor.rb +0 -2
  88. data/lib/moov/models/components/microdepositstatus.rb +0 -2
  89. data/lib/moov/models/components/mode.rb +0 -2
  90. data/lib/moov/models/components/monthlyvolumerange.rb +0 -2
  91. data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +0 -2
  92. data/lib/moov/models/components/occurrencestatus.rb +0 -2
  93. data/lib/moov/models/components/paymentlinkstatus.rb +0 -2
  94. data/lib/moov/models/components/paymentlinktype.rb +0 -2
  95. data/lib/moov/models/components/paymentmethodtype.rb +0 -2
  96. data/lib/moov/models/components/pendinglitigation.rb +0 -2
  97. data/lib/moov/models/components/primaryregulator.rb +0 -2
  98. data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +0 -2
  99. data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +0 -2
  100. data/lib/moov/models/components/receiptkind.rb +0 -2
  101. data/lib/moov/models/components/refundcardstatus.rb +0 -2
  102. data/lib/moov/models/components/refundpolicy.rb +0 -2
  103. data/lib/moov/models/components/refundstatus.rb +0 -2
  104. data/lib/moov/models/components/requirementerrorcode.rb +0 -2
  105. data/lib/moov/models/components/requirementid.rb +0 -2
  106. data/lib/moov/models/components/returnpolicytype.rb +0 -2
  107. data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +0 -2
  108. data/lib/moov/models/components/rtpfailurecode.rb +0 -2
  109. data/lib/moov/models/components/rtprejectioncode.rb +0 -2
  110. data/lib/moov/models/components/rtptransactionstatus.rb +0 -2
  111. data/lib/moov/models/components/seccode.rb +0 -2
  112. data/lib/moov/models/components/status.rb +0 -2
  113. data/lib/moov/models/components/submissionintent.rb +0 -2
  114. data/lib/moov/models/components/sweepconfigstatus.rb +0 -2
  115. data/lib/moov/models/components/sweepstatus.rb +0 -2
  116. data/lib/moov/models/components/terminalapplicationplatform.rb +0 -2
  117. data/lib/moov/models/components/terminalapplicationstatus.rb +0 -2
  118. data/lib/moov/models/components/ticketstatus.rb +0 -2
  119. data/lib/moov/models/components/token_type_hint.rb +0 -2
  120. data/lib/moov/models/components/tokentype.rb +0 -2
  121. data/lib/moov/models/components/transactionsource.rb +0 -2
  122. data/lib/moov/models/components/transferfailurereason.rb +0 -2
  123. data/lib/moov/models/components/transferparty.rb +0 -2
  124. data/lib/moov/models/components/transferstatus.rb +0 -2
  125. data/lib/moov/models/components/transferwaitfor.rb +0 -2
  126. data/lib/moov/models/components/underwritingstatus.rb +0 -2
  127. data/lib/moov/models/components/updateissuedcardstate.rb +0 -2
  128. data/lib/moov/models/components/updateticketstatus.rb +0 -2
  129. data/lib/moov/models/components/use.rb +0 -2
  130. data/lib/moov/models/components/verificationstatus.rb +0 -2
  131. data/lib/moov/models/components/verificationstatusdetail.rb +0 -2
  132. data/lib/moov/models/components/walletstatus.rb +0 -2
  133. data/lib/moov/models/components/wallettransactionsourcetype.rb +0 -2
  134. data/lib/moov/models/components/wallettransactionstatus.rb +0 -2
  135. data/lib/moov/models/components/wallettransactiontype.rb +0 -2
  136. data/lib/moov/models/components/wallettype.rb +0 -2
  137. data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -2
  138. data/lib/moov/models/components/webhookeventtype.rb +0 -2
  139. data/lib/moov/models/components/webhookstatus.rb +0 -2
  140. data/lib/moov/models/components.rb +3 -0
  141. data/lib/moov/models/operations/createtransfer_request.rb +2 -2
  142. data/lib/moov/models/operations/getscheduledoccurrence_request.rb +4 -4
  143. data/lib/moov/models/operations/hydrate.rb +0 -2
  144. data/lib/moov/sdkconfiguration.rb +3 -3
  145. data/lib/moov/utils/url.rb +1 -1
  146. data/lib/moov/utils/utils.rb +12 -0
  147. metadata +9 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 835d5099aa80245efc92696fb8f337405e49aa9ccc6f439d03495e49d491d50a
4
- data.tar.gz: 41527bb2f3649dfac839755434de7df288ab8c0f2dbf9190c769497e310dd8f8
3
+ metadata.gz: b4088bd38c7c5ceda12feaef202b99e631a57efc9ea15e3ad90c5e55cac10559
4
+ data.tar.gz: 1bf8ccadcf7c824d8f5fd2b55a53873ebc3ace9adb4f3967ee372caa94226ce9
5
5
  SHA512:
6
- metadata.gz: 03661cefdfbe71c42c4ec3e4c354dd1985d4a7ad939d29d4cb2380047ccadf1e4cf411fe248e045228ec0db372b5104c76ea9ad7592522f6271a21cf3160e226
7
- data.tar.gz: 5dfe47b44689c2883f2f9be7729359a1fba224b63b69fb55b575fd4e1243b2380800be1dca981b21531f664855793563847c4ae176d298225c8f7a33738c8887
6
+ metadata.gz: e2dbdd49a0a0b0c2b9be7d43a3584efc873e1c3659e1908df0ec8fc0204eeb03e0c471af4b38f35b6bcddd8cfbe4d18bd9a5532174144ae172a57503289d688c
7
+ data.tar.gz: 70df2a444818c853ec85c5cf9c2070ddb06a17c591b6302ca07324193faa9e5df0979765683f98ad1c4b94e51eaff731821d7dc3ca38b89a938e9560de6b4c1a
@@ -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')
@@ -24,16 +24,16 @@ module Moov
24
24
  # Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
25
25
  field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreateInvoiceLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
26
26
  # Optional list of images associated with this line item.
27
- field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
27
+ field :images, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreateInvoiceLineItemImage)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
28
28
 
29
- sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, product_id: T.nilable(::String), options: T.nilable(T::Array[Models::Components::CreateInvoiceLineItemOption]), image_i_ds: T.nilable(T::Array[::String])).void }
30
- def initialize(name:, base_price:, quantity:, product_id: nil, options: nil, image_i_ds: nil)
29
+ sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, product_id: T.nilable(::String), options: T.nilable(T::Array[Models::Components::CreateInvoiceLineItemOption]), images: T.nilable(T::Array[Models::Components::CreateInvoiceLineItemImage])).void }
30
+ def initialize(name:, base_price:, quantity:, product_id: nil, options: nil, images: nil)
31
31
  @name = name
32
32
  @base_price = base_price
33
33
  @quantity = quantity
34
34
  @product_id = product_id
35
35
  @options = options
36
- @image_i_ds = image_i_ds
36
+ @images = images
37
37
  end
38
38
 
39
39
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -44,7 +44,7 @@ module Moov
44
44
  return false unless @quantity == other.quantity
45
45
  return false unless @product_id == other.product_id
46
46
  return false unless @options == other.options
47
- return false unless @image_i_ds == other.image_i_ds
47
+ return false unless @images == other.images
48
48
  true
49
49
  end
50
50
  end
@@ -18,6 +18,6 @@ class Moov::Models::Components::CreateInvoiceLineItem
18
18
  def product_id=(str_); end
19
19
  def options(); end
20
20
  def options=(str_); end
21
- def image_i_ds(); end
22
- def image_i_ds=(str_); end
21
+ def images(); end
22
+ def images=(str_); end
23
23
  end
@@ -0,0 +1,32 @@
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
+ # An image to associate with a line item.
11
+ class CreateInvoiceLineItemImage
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
16
+ field :image_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageID') } }
17
+
18
+ sig { params(image_id: T.nilable(::String)).void }
19
+ def initialize(image_id: nil)
20
+ @image_id = image_id
21
+ end
22
+
23
+ sig { params(other: T.untyped).returns(T::Boolean) }
24
+ def ==(other)
25
+ return false unless other.is_a? self.class
26
+ return false unless @image_id == other.image_id
27
+ true
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,13 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::CreateInvoiceLineItemImage
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::CreateInvoiceLineItemImage
11
+ def image_id(); end
12
+ def image_id=(str_); end
13
+ end
@@ -0,0 +1,32 @@
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 CreateInvoiceLineItemImageValidationError
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+
16
+ field :image_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageID') } }
17
+
18
+ sig { params(image_id: T.nilable(::String)).void }
19
+ def initialize(image_id: nil)
20
+ @image_id = image_id
21
+ end
22
+
23
+ sig { params(other: T.untyped).returns(T::Boolean) }
24
+ def ==(other)
25
+ return false unless other.is_a? self.class
26
+ return false unless @image_id == other.image_id
27
+ true
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,13 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::CreateInvoiceLineItemImageValidationError
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::CreateInvoiceLineItemImageValidationError
11
+ def image_id(); end
12
+ def image_id=(str_); end
13
+ end
@@ -20,16 +20,16 @@ module Moov
20
20
  field :price_modifier, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('priceModifier') } }
21
21
  # Optional group identifier to categorize related options (e.g., 'toppings').
22
22
  field :group, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('group') } }
23
- # Optional list of images associated with this line item.
24
- field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
23
+ # Optional list of images associated with this line item option.
24
+ field :images, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CreateInvoiceLineItemImage)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
25
25
 
26
- sig { params(name: ::String, quantity: ::Integer, price_modifier: T.nilable(Models::Components::AmountDecimal), group: T.nilable(::String), image_i_ds: T.nilable(T::Array[::String])).void }
27
- def initialize(name:, quantity:, price_modifier: nil, group: nil, image_i_ds: nil)
26
+ sig { params(name: ::String, quantity: ::Integer, price_modifier: T.nilable(Models::Components::AmountDecimal), group: T.nilable(::String), images: T.nilable(T::Array[Models::Components::CreateInvoiceLineItemImage])).void }
27
+ def initialize(name:, quantity:, price_modifier: nil, group: nil, images: nil)
28
28
  @name = name
29
29
  @quantity = quantity
30
30
  @price_modifier = price_modifier
31
31
  @group = group
32
- @image_i_ds = image_i_ds
32
+ @images = images
33
33
  end
34
34
 
35
35
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -39,7 +39,7 @@ module Moov
39
39
  return false unless @quantity == other.quantity
40
40
  return false unless @price_modifier == other.price_modifier
41
41
  return false unless @group == other.group
42
- return false unless @image_i_ds == other.image_i_ds
42
+ return false unless @images == other.images
43
43
  true
44
44
  end
45
45
  end
@@ -16,6 +16,6 @@ class Moov::Models::Components::CreateInvoiceLineItemOption
16
16
  def price_modifier=(str_); end
17
17
  def group(); end
18
18
  def group=(str_); end
19
- def image_i_ds(); end
20
- def image_i_ds=(str_); end
19
+ def images(); end
20
+ def images=(str_); end
21
21
  end