moov_ruby 26.7.0.pre.dev.6 → 26.7.1

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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/avatars.rb +276 -1
  3. data/lib/moov/card_issuing.rb +116 -0
  4. data/lib/moov/client.rb +2 -2
  5. data/lib/moov/enriched_address.rb +1 -1
  6. data/lib/moov/enriched_profile.rb +1 -1
  7. data/lib/moov/institutions.rb +1 -1
  8. data/lib/moov/models/components/allowedscheduleerror.rb +36 -0
  9. data/lib/moov/models/components/allowedscheduleerror.rbi +15 -0
  10. data/lib/moov/models/components/avataruploadrequest.rb +32 -0
  11. data/lib/moov/models/components/avataruploadrequest.rbi +13 -0
  12. data/lib/moov/models/components/avataruploadrequest_file.rb +36 -0
  13. data/lib/moov/models/components/avataruploadrequest_file.rbi +15 -0
  14. data/lib/moov/models/components/capabilityid.rb +1 -0
  15. data/lib/moov/models/components/createdtransfer.rb +6 -2
  16. data/lib/moov/models/components/createdtransfer.rbi +2 -0
  17. data/lib/moov/models/components/createrefund.rb +2 -2
  18. data/lib/moov/models/components/createreversal.rb +1 -1
  19. data/lib/moov/models/components/createtransfer.rb +6 -2
  20. data/lib/moov/models/components/createtransfer.rbi +2 -0
  21. data/lib/moov/models/components/feepaidby.rb +19 -0
  22. data/lib/moov/models/components/feepaidby.rbi +11 -0
  23. data/lib/moov/models/components/fullissuedcard.rb +3 -3
  24. data/lib/moov/models/components/incurredfee.rb +6 -2
  25. data/lib/moov/models/components/incurredfee.rbi +2 -0
  26. data/lib/moov/models/components/issuedcard.rb +3 -3
  27. data/lib/moov/models/components/issuedcontrols.rb +52 -0
  28. data/lib/moov/models/components/issuedcontrols.rbi +23 -0
  29. data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +36 -0
  30. data/lib/moov/models/components/issuedcontrols_allowedschedule.rbi +15 -0
  31. data/lib/moov/models/components/issuedvelocitylimit.rb +60 -0
  32. data/lib/moov/models/components/issuedvelocitylimit.rbi +27 -0
  33. data/lib/moov/models/components/issuingcontrols.rb +18 -2
  34. data/lib/moov/models/components/issuingcontrols.rbi +8 -0
  35. data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +36 -0
  36. data/lib/moov/models/components/issuingcontrols_allowedschedule.rbi +15 -0
  37. data/lib/moov/models/components/issuingcontrolserror.rb +18 -2
  38. data/lib/moov/models/components/issuingcontrolserror.rbi +8 -0
  39. data/lib/moov/models/components/issuingcontrolsrestrictionmode.rb +19 -0
  40. data/lib/moov/models/components/issuingcontrolsrestrictionmode.rbi +11 -0
  41. data/lib/moov/models/components/issuingintervallimit.rb +4 -1
  42. data/lib/moov/models/components/issuingmerchantcategory.rb +43 -0
  43. data/lib/moov/models/components/issuingmerchantcategory.rbi +11 -0
  44. data/lib/moov/models/components/issuingscheduleday.rb +24 -0
  45. data/lib/moov/models/components/issuingscheduleday.rbi +11 -0
  46. data/lib/moov/models/components/issuingvelocitylimit.rb +11 -7
  47. data/lib/moov/models/components/issuingvelocitylimit.rbi +4 -2
  48. data/lib/moov/models/components/issuingvelocitylimiterror.rb +6 -2
  49. data/lib/moov/models/components/issuingvelocitylimiterror.rbi +2 -0
  50. data/lib/moov/models/components/merchantcategories.rb +32 -0
  51. data/lib/moov/models/components/merchantcategories.rbi +13 -0
  52. data/lib/moov/models/components/merchantcategory.rb +37 -0
  53. data/lib/moov/models/components/merchantcategory.rbi +15 -0
  54. data/lib/moov/models/components/merchantcategoryrestrictions.rb +44 -0
  55. data/lib/moov/models/components/merchantcategoryrestrictions.rbi +19 -0
  56. data/lib/moov/models/components/merchantcategoryrestrictionserror.rb +44 -0
  57. data/lib/moov/models/components/merchantcategoryrestrictionserror.rbi +19 -0
  58. data/lib/moov/models/components/merchantentry.rb +40 -0
  59. data/lib/moov/models/components/merchantentry.rbi +17 -0
  60. data/lib/moov/models/components/merchantentryerror.rb +36 -0
  61. data/lib/moov/models/components/merchantentryerror.rbi +15 -0
  62. data/lib/moov/models/components/merchantrestrictions.rb +36 -0
  63. data/lib/moov/models/components/merchantrestrictions.rbi +15 -0
  64. data/lib/moov/models/components/merchantrestrictionserror.rb +36 -0
  65. data/lib/moov/models/components/merchantrestrictionserror.rbi +15 -0
  66. data/lib/moov/models/components/paymentlinkpayoutdetails.rb +8 -2
  67. data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +2 -0
  68. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +8 -2
  69. data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +2 -0
  70. data/lib/moov/models/components/paymentmethodswallet.rb +1 -0
  71. data/lib/moov/models/components/payoutdetailserror.rb +6 -2
  72. data/lib/moov/models/components/payoutdetailserror.rbi +2 -0
  73. data/lib/moov/models/components/product.rb +6 -2
  74. data/lib/moov/models/components/product.rbi +2 -0
  75. data/lib/moov/models/components/productcategories.rb +32 -0
  76. data/lib/moov/models/components/productcategories.rbi +13 -0
  77. data/lib/moov/models/components/productcategory.rb +48 -0
  78. data/lib/moov/models/components/productcategory.rbi +21 -0
  79. data/lib/moov/models/components/productrequest.rb +6 -2
  80. data/lib/moov/models/components/productrequest.rbi +2 -0
  81. data/lib/moov/models/components/schedulewindow.rb +40 -0
  82. data/lib/moov/models/components/schedulewindow.rbi +17 -0
  83. data/lib/moov/models/components/schedulewindowerror.rb +40 -0
  84. data/lib/moov/models/components/schedulewindowerror.rbi +17 -0
  85. data/lib/moov/models/components/schemebasicauth.rb +36 -0
  86. data/lib/moov/models/components/schemebasicauth.rbi +15 -0
  87. data/lib/moov/models/components/schemeoauth2auth.rb +40 -0
  88. data/lib/moov/models/components/schemeoauth2auth.rbi +17 -0
  89. data/lib/moov/models/components/sendfunds.rb +6 -2
  90. data/lib/moov/models/components/sendfunds.rbi +2 -0
  91. data/lib/moov/models/components/sendfundserror.rb +6 -2
  92. data/lib/moov/models/components/sendfundserror.rbi +2 -0
  93. data/lib/moov/models/components/sendfundswire.rb +32 -0
  94. data/lib/moov/models/components/sendfundswire.rbi +13 -0
  95. data/lib/moov/models/components/sendfundswireerror.rb +32 -0
  96. data/lib/moov/models/components/sendfundswireerror.rbi +13 -0
  97. data/lib/moov/models/components/transfer.rb +6 -2
  98. data/lib/moov/models/components/transfer.rbi +2 -0
  99. data/lib/moov/models/components/transfercapture.rb +36 -0
  100. data/lib/moov/models/components/transfercapture.rbi +15 -0
  101. data/lib/moov/models/components/transferfeepaidby.rb +32 -0
  102. data/lib/moov/models/components/transferfeepaidby.rbi +13 -0
  103. data/lib/moov/models/components/transferpaymentmethodswallet.rb +1 -0
  104. data/lib/moov/models/components/updateissuedcard.rb +6 -2
  105. data/lib/moov/models/components/updateissuedcard.rbi +2 -0
  106. data/lib/moov/models/components/updateissuingcontrols.rb +48 -0
  107. data/lib/moov/models/components/updateissuingcontrols.rbi +21 -0
  108. data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +36 -0
  109. data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rbi +15 -0
  110. data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rb +44 -0
  111. data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rbi +19 -0
  112. data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rb +36 -0
  113. data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rbi +15 -0
  114. data/lib/moov/models/components/updateissuingcontrolserror.rb +48 -0
  115. data/lib/moov/models/components/updateissuingcontrolserror.rbi +21 -0
  116. data/lib/moov/models/components/wallet.rb +1 -0
  117. data/lib/moov/models/components/wallettype.rb +2 -0
  118. data/lib/moov/models/components/webhookdatatransferstatus.rb +3 -0
  119. data/lib/moov/models/components.rb +34 -0
  120. data/lib/moov/models/errors/productrequestvalidationerror.rb +6 -2
  121. data/lib/moov/models/errors/productrequestvalidationerror.rbi +2 -0
  122. data/lib/moov/models/errors/transfer_error.rb +6 -2
  123. data/lib/moov/models/errors/transfer_error.rbi +2 -0
  124. data/lib/moov/models/errors/updateissuedcarderror.rb +6 -2
  125. data/lib/moov/models/errors/updateissuedcarderror.rbi +2 -0
  126. data/lib/moov/models/operations/deleteavatar_request.rb +32 -0
  127. data/lib/moov/models/operations/deleteavatar_request.rbi +13 -0
  128. data/lib/moov/models/operations/deleteavatar_response.rb +44 -0
  129. data/lib/moov/models/operations/deleteavatar_response.rbi +19 -0
  130. data/lib/moov/models/operations/deleteavatar_security.rb +36 -0
  131. data/lib/moov/models/operations/deleteavatar_security.rbi +15 -0
  132. data/lib/moov/models/operations/listissuingmerchantcategories_response.rb +48 -0
  133. data/lib/moov/models/operations/listissuingmerchantcategories_response.rbi +21 -0
  134. data/lib/moov/models/operations/listproductcategories_response.rb +48 -0
  135. data/lib/moov/models/operations/listproductcategories_response.rbi +21 -0
  136. data/lib/moov/models/operations/listproducts_request.rb +8 -2
  137. data/lib/moov/models/operations/listproducts_request.rbi +2 -0
  138. data/lib/moov/models/operations/listtransfers_request.rb +10 -2
  139. data/lib/moov/models/operations/listtransfers_request.rbi +4 -0
  140. data/lib/moov/models/operations/uploadavatar_request.rb +36 -0
  141. data/lib/moov/models/operations/uploadavatar_request.rbi +15 -0
  142. data/lib/moov/models/operations/uploadavatar_response.rb +44 -0
  143. data/lib/moov/models/operations/uploadavatar_response.rbi +19 -0
  144. data/lib/moov/models/operations/uploadavatar_security.rb +36 -0
  145. data/lib/moov/models/operations/uploadavatar_security.rbi +15 -0
  146. data/lib/moov/models/operations.rb +8 -0
  147. data/lib/moov/products.rb +113 -8
  148. data/lib/moov/sdk_hooks/clientcredentials.rb +386 -0
  149. data/lib/moov/sdk_hooks/hooks.rb +6 -0
  150. data/lib/moov/sdk_hooks/oauth2scopes.rb +18 -0
  151. data/lib/moov/sdkconfiguration.rb +3 -3
  152. data/lib/moov_ruby.rb +1 -1
  153. metadata +90 -4
@@ -67,9 +67,11 @@ module Moov
67
67
  field :line_items, Crystalline::Nilable.new(Models::Components::TransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
68
68
 
69
69
  field :amount_details, Crystalline::Nilable.new(Models::Components::TransferAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
70
+ # The card authorization and capture IDs associated with a transfer.
71
+ field :capture, Crystalline::Nilable.new(Models::Components::TransferCapture), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capture') } }
70
72
 
71
- sig { params(transfer_id: ::String, created_on: ::DateTime, source: T.nilable(Models::Components::TransferSource), destination: T.nilable(Models::Components::TransferDestination), completed_on: T.nilable(::DateTime), status: T.nilable(Models::Components::TransferStatus), failure_reason: T.nilable(Models::Components::TransferFailureReason), amount: T.nilable(Models::Components::Amount), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems), amount_details: T.nilable(Models::Components::TransferAmountDetails)).void }
72
- def initialize(transfer_id:, created_on:, source: nil, destination: nil, completed_on: nil, status: nil, failure_reason: nil, amount: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, foreign_id: nil, line_items: nil, amount_details: nil)
73
+ sig { params(transfer_id: ::String, created_on: ::DateTime, source: T.nilable(Models::Components::TransferSource), destination: T.nilable(Models::Components::TransferDestination), completed_on: T.nilable(::DateTime), status: T.nilable(Models::Components::TransferStatus), failure_reason: T.nilable(Models::Components::TransferFailureReason), amount: T.nilable(Models::Components::Amount), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems), amount_details: T.nilable(Models::Components::TransferAmountDetails), capture: T.nilable(Models::Components::TransferCapture)).void }
74
+ def initialize(transfer_id:, created_on:, source: nil, destination: nil, completed_on: nil, status: nil, failure_reason: nil, amount: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, foreign_id: nil, line_items: nil, amount_details: nil, capture: nil)
73
75
  @transfer_id = transfer_id
74
76
  @created_on = created_on
75
77
  @source = source
@@ -97,6 +99,7 @@ module Moov
97
99
  @foreign_id = foreign_id
98
100
  @line_items = line_items
99
101
  @amount_details = amount_details
102
+ @capture = capture
100
103
  end
101
104
 
102
105
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -129,6 +132,7 @@ module Moov
129
132
  return false unless @foreign_id == other.foreign_id
130
133
  return false unless @line_items == other.line_items
131
134
  return false unless @amount_details == other.amount_details
135
+ return false unless @capture == other.capture
132
136
  true
133
137
  end
134
138
  end
@@ -62,4 +62,6 @@ class Moov::Models::Components::CreatedTransfer
62
62
  def line_items=(str_); end
63
63
  def amount_details(); end
64
64
  def amount_details=(str_); end
65
+ def capture(); end
66
+ def capture=(str_); end
65
67
  end
@@ -9,12 +9,12 @@ module Moov
9
9
  module Components
10
10
  # Specifies a partial amount to refund.
11
11
  #
12
- # This request body is optional, an empty body will issue a refund for the full amount of the original transfer.
12
+ # Before v2026.10, this request body may be omitted. In v2026.10 and later, send an empty object to refund the full amount of the original transfer.
13
13
  class CreateRefund
14
14
  extend T::Sig
15
15
  include Crystalline::MetadataFields
16
16
 
17
- # Amount to refund in cents. If null, the original transfer's full amount will be refunded.
17
+ # Amount to refund. Before v2026.10, specify the amount in integer cents. If omitted, the original transfer's full amount will be refunded.
18
18
  field :amount, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
19
19
  # Breakdown of the refunded amount.
20
20
  field :amount_details, Crystalline::Nilable.new(Models::Components::RefundAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
@@ -12,7 +12,7 @@ module Moov
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
15
- # Amount to reverse in cents. Partial amounts will automatically trigger a refund instead of a cancellation.
15
+ # Amount to reverse. Before v2026.10, specify the amount in integer cents. Partial amounts automatically trigger a refund instead of a cancellation.
16
16
  field :amount, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
17
17
  # Breakdown of the reversed amount.
18
18
  field :amount_details, Crystalline::Nilable.new(Models::Components::ReversalAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
@@ -31,9 +31,11 @@ module Moov
31
31
  field :line_items, Crystalline::Nilable.new(Models::Components::CreateTransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
32
32
 
33
33
  field :amount_details, Crystalline::Nilable.new(Models::Components::CreateTransferAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
34
+ # Indicates which party bears fees for the transfer, keyed by fee type.
35
+ field :fee_paid_by, Crystalline::Nilable.new(Models::Components::TransferFeePaidBy), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy') } }
34
36
 
35
- sig { params(source: Models::Components::CreateTransferSource, destination: Models::Components::CreateTransferDestination, amount: Models::Components::Amount, facilitator_fee: T.nilable(Models::Components::FacilitatorFee), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::CreateTransferLineItems), amount_details: T.nilable(Models::Components::CreateTransferAmountDetails)).void }
36
- def initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil)
37
+ sig { params(source: Models::Components::CreateTransferSource, destination: Models::Components::CreateTransferDestination, amount: Models::Components::Amount, facilitator_fee: T.nilable(Models::Components::FacilitatorFee), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::CreateTransferLineItems), amount_details: T.nilable(Models::Components::CreateTransferAmountDetails), fee_paid_by: T.nilable(Models::Components::TransferFeePaidBy)).void }
38
+ def initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil, fee_paid_by: nil)
37
39
  @source = source
38
40
  @destination = destination
39
41
  @amount = amount
@@ -43,6 +45,7 @@ module Moov
43
45
  @foreign_id = foreign_id
44
46
  @line_items = line_items
45
47
  @amount_details = amount_details
48
+ @fee_paid_by = fee_paid_by
46
49
  end
47
50
 
48
51
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -57,6 +60,7 @@ module Moov
57
60
  return false unless @foreign_id == other.foreign_id
58
61
  return false unless @line_items == other.line_items
59
62
  return false unless @amount_details == other.amount_details
63
+ return false unless @fee_paid_by == other.fee_paid_by
60
64
  true
61
65
  end
62
66
  end
@@ -26,4 +26,6 @@ class Moov::Models::Components::CreateTransfer
26
26
  def line_items=(str_); end
27
27
  def amount_details(); end
28
28
  def amount_details=(str_); end
29
+ def fee_paid_by(); end
30
+ def fee_paid_by=(str_); end
29
31
  end
@@ -0,0 +1,19 @@
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
+ # FeePaidBy - Indicates which party to a money movement bears an incurred fee.
11
+ class FeePaidBy < T::Enum
12
+ enums do
13
+ SOURCE = new('source')
14
+ DESTINATION = new('destination')
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::FeePaidBy
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::FeePaidBy
11
+ end
@@ -45,10 +45,10 @@ module Moov
45
45
  field :metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('metadata') } }
46
46
  # Billing address associated with the card.
47
47
  field :billing_address, Crystalline::Nilable.new(Models::Components::Address), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billingAddress') } }
48
+ # Spend controls applied to an issued card, including velocity runtime state.
49
+ field :controls, Crystalline::Nilable.new(Models::Components::IssuedControls), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
48
50
 
49
- field :controls, Crystalline::Nilable.new(Models::Components::IssuingControls), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
50
-
51
- sig { params(issued_card_id: ::String, brand: Models::Components::CardBrand, last_four_card_number: ::String, expiration: Models::Components::CardExpiration, funding_wallet_id: ::String, state: Models::Components::IssuedCardState, form_factor: Models::Components::IssuedCardFormFactor, created_on: ::DateTime, updated_on: ::DateTime, pan: ::String, cvv: ::String, authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), billing_address: T.nilable(Models::Components::Address), controls: T.nilable(Models::Components::IssuingControls)).void }
51
+ sig { params(issued_card_id: ::String, brand: Models::Components::CardBrand, last_four_card_number: ::String, expiration: Models::Components::CardExpiration, funding_wallet_id: ::String, state: Models::Components::IssuedCardState, form_factor: Models::Components::IssuedCardFormFactor, created_on: ::DateTime, updated_on: ::DateTime, pan: ::String, cvv: ::String, authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), billing_address: T.nilable(Models::Components::Address), controls: T.nilable(Models::Components::IssuedControls)).void }
52
52
  def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, pan:, cvv:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil)
53
53
  @issued_card_id = issued_card_id
54
54
  @brand = brand
@@ -30,9 +30,11 @@ module Moov
30
30
  field :fee_group, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feeGroup') } }
31
31
  # Unique identifier for this residual payment calculation.
32
32
  field :residual_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualID') } }
33
+ # Indicates which party to the money movement bore this fee.
34
+ field :fee_paid_by, Crystalline::Nilable.new(Models::Components::FeePaidBy), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::FeePaidBy, true) } }
33
35
 
34
- sig { params(fee_id: T.nilable(::String), account_id: T.nilable(::String), wallet_id: T.nilable(::String), created_on: T.nilable(::DateTime), fee_name: T.nilable(::String), amount: T.nilable(Models::Components::AmountDecimal), generated_by: T.nilable(Models::Components::GeneratedBy), fee_group: T.nilable(::String), residual_id: T.nilable(::String)).void }
35
- def initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil)
36
+ sig { params(fee_id: T.nilable(::String), account_id: T.nilable(::String), wallet_id: T.nilable(::String), created_on: T.nilable(::DateTime), fee_name: T.nilable(::String), amount: T.nilable(Models::Components::AmountDecimal), generated_by: T.nilable(Models::Components::GeneratedBy), fee_group: T.nilable(::String), residual_id: T.nilable(::String), fee_paid_by: T.nilable(Models::Components::FeePaidBy)).void }
37
+ def initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil, fee_paid_by: nil)
36
38
  @fee_id = fee_id
37
39
  @account_id = account_id
38
40
  @wallet_id = wallet_id
@@ -42,6 +44,7 @@ module Moov
42
44
  @generated_by = generated_by
43
45
  @fee_group = fee_group
44
46
  @residual_id = residual_id
47
+ @fee_paid_by = fee_paid_by
45
48
  end
46
49
 
47
50
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -56,6 +59,7 @@ module Moov
56
59
  return false unless @generated_by == other.generated_by
57
60
  return false unless @fee_group == other.fee_group
58
61
  return false unless @residual_id == other.residual_id
62
+ return false unless @fee_paid_by == other.fee_paid_by
59
63
  true
60
64
  end
61
65
  end
@@ -26,4 +26,6 @@ class Moov::Models::Components::IncurredFee
26
26
  def fee_group=(str_); end
27
27
  def residual_id(); end
28
28
  def residual_id=(str_); end
29
+ def fee_paid_by(); end
30
+ def fee_paid_by=(str_); end
29
31
  end
@@ -41,10 +41,10 @@ module Moov
41
41
  field :metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('metadata') } }
42
42
  # Billing address associated with the card.
43
43
  field :billing_address, Crystalline::Nilable.new(Models::Components::Address), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billingAddress') } }
44
+ # Spend controls applied to an issued card, including velocity runtime state.
45
+ field :controls, Crystalline::Nilable.new(Models::Components::IssuedControls), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
44
46
 
45
- field :controls, Crystalline::Nilable.new(Models::Components::IssuingControls), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
46
-
47
- sig { params(issued_card_id: ::String, brand: Models::Components::CardBrand, last_four_card_number: ::String, expiration: Models::Components::CardExpiration, funding_wallet_id: ::String, state: Models::Components::IssuedCardState, form_factor: Models::Components::IssuedCardFormFactor, created_on: ::DateTime, updated_on: ::DateTime, authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), billing_address: T.nilable(Models::Components::Address), controls: T.nilable(Models::Components::IssuingControls)).void }
47
+ sig { params(issued_card_id: ::String, brand: Models::Components::CardBrand, last_four_card_number: ::String, expiration: Models::Components::CardExpiration, funding_wallet_id: ::String, state: Models::Components::IssuedCardState, form_factor: Models::Components::IssuedCardFormFactor, created_on: ::DateTime, updated_on: ::DateTime, authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), billing_address: T.nilable(Models::Components::Address), controls: T.nilable(Models::Components::IssuedControls)).void }
48
48
  def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil)
49
49
  @issued_card_id = issued_card_id
50
50
  @brand = brand
@@ -0,0 +1,52 @@
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
+ # Spend controls applied to an issued card, including velocity runtime state.
11
+ class IssuedControls
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # Indicates if the card is single-use. If true, the card closes after the first authorization.
16
+ field :single_use, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('singleUse') } }
17
+ # The spending limits per time interval, including current runtime state.
18
+ field :velocity_limits, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::IssuedVelocityLimit)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('velocityLimits') } }
19
+ # Restricts card usage by merchant category. When not set, all categories are allowed.
20
+ field :merchant_category_restrictions, Crystalline::Nilable.new(Models::Components::MerchantCategoryRestrictions), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantCategoryRestrictions') } }
21
+ # Restricts card usage to specific merchants, or blocks specific merchants.
22
+ field :merchant_restrictions, Crystalline::Nilable.new(Models::Components::MerchantRestrictions), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantRestrictions') } }
23
+ # Limits card usage to specific days and times.
24
+ field :allowed_schedule, Crystalline::Nilable.new(Models::Components::IssuedControlsAllowedSchedule), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('allowedSchedule') } }
25
+ # A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls.
26
+ field :expires_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('expiresOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
27
+
28
+ sig { params(single_use: T.nilable(T::Boolean), velocity_limits: T.nilable(T::Array[Models::Components::IssuedVelocityLimit]), merchant_category_restrictions: T.nilable(Models::Components::MerchantCategoryRestrictions), merchant_restrictions: T.nilable(Models::Components::MerchantRestrictions), allowed_schedule: T.nilable(Models::Components::IssuedControlsAllowedSchedule), expires_on: T.nilable(::DateTime)).void }
29
+ def initialize(single_use: nil, velocity_limits: nil, merchant_category_restrictions: nil, merchant_restrictions: nil, allowed_schedule: nil, expires_on: nil)
30
+ @single_use = single_use
31
+ @velocity_limits = velocity_limits
32
+ @merchant_category_restrictions = merchant_category_restrictions
33
+ @merchant_restrictions = merchant_restrictions
34
+ @allowed_schedule = allowed_schedule
35
+ @expires_on = expires_on
36
+ end
37
+
38
+ sig { params(other: T.untyped).returns(T::Boolean) }
39
+ def ==(other)
40
+ return false unless other.is_a? self.class
41
+ return false unless @single_use == other.single_use
42
+ return false unless @velocity_limits == other.velocity_limits
43
+ return false unless @merchant_category_restrictions == other.merchant_category_restrictions
44
+ return false unless @merchant_restrictions == other.merchant_restrictions
45
+ return false unless @allowed_schedule == other.allowed_schedule
46
+ return false unless @expires_on == other.expires_on
47
+ true
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,23 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::IssuedControls
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::IssuedControls
11
+ def single_use(); end
12
+ def single_use=(str_); end
13
+ def velocity_limits(); end
14
+ def velocity_limits=(str_); end
15
+ def merchant_category_restrictions(); end
16
+ def merchant_category_restrictions=(str_); end
17
+ def merchant_restrictions(); end
18
+ def merchant_restrictions=(str_); end
19
+ def allowed_schedule(); end
20
+ def allowed_schedule=(str_); end
21
+ def expires_on(); end
22
+ def expires_on=(str_); end
23
+ end
@@ -0,0 +1,36 @@
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
+ # Limits card usage to specific days and times.
11
+ class IssuedControlsAllowedSchedule
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # IANA timezone string used to evaluate window boundaries against the authorization time.
16
+ field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
17
+ # Time windows during which the card may authorize. Any matching window allows the transaction.
18
+ field :windows, Crystalline::Array.new(Models::Components::ScheduleWindow), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('windows'), required: true } }
19
+
20
+ sig { params(timezone: ::String, windows: T::Array[Models::Components::ScheduleWindow]).void }
21
+ def initialize(timezone:, windows:)
22
+ @timezone = timezone
23
+ @windows = windows
24
+ end
25
+
26
+ sig { params(other: T.untyped).returns(T::Boolean) }
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @timezone == other.timezone
30
+ return false unless @windows == other.windows
31
+ true
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::IssuedControlsAllowedSchedule
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::IssuedControlsAllowedSchedule
11
+ def timezone(); end
12
+ def timezone=(str_); end
13
+ def windows(); end
14
+ def windows=(str_); end
15
+ end
@@ -0,0 +1,60 @@
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
+ # A velocity limit with its current runtime state.
11
+ class IssuedVelocityLimit
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
16
+ field :interval, Models::Components::IssuingIntervalLimit, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('interval'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuingIntervalLimit, false) } }
17
+ # The maximum amount in cents that can be spent in a given interval.
18
+ field :amount, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
19
+ # The maximum number of transactions allowed in the given interval.
20
+ field :count, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('count') } }
21
+ # The amount in cents already spent in the current interval.
22
+ field :amount_used, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountUsed') } }
23
+ # The amount in cents remaining in the current interval.
24
+ field :amount_remaining, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountRemaining') } }
25
+ # The number of transactions already made in the current interval.
26
+ field :count_used, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('countUsed') } }
27
+ # The number of transactions remaining in the current interval.
28
+ field :count_remaining, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('countRemaining') } }
29
+ # When the current interval resets. Absent for per-transaction limits.
30
+ field :resets_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('resetsOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
31
+
32
+ sig { params(interval: Models::Components::IssuingIntervalLimit, amount: T.nilable(::Integer), count: T.nilable(::Integer), amount_used: T.nilable(::Integer), amount_remaining: T.nilable(::Integer), count_used: T.nilable(::Integer), count_remaining: T.nilable(::Integer), resets_on: T.nilable(::DateTime)).void }
33
+ def initialize(interval:, amount: nil, count: nil, amount_used: nil, amount_remaining: nil, count_used: nil, count_remaining: nil, resets_on: nil)
34
+ @interval = interval
35
+ @amount = amount
36
+ @count = count
37
+ @amount_used = amount_used
38
+ @amount_remaining = amount_remaining
39
+ @count_used = count_used
40
+ @count_remaining = count_remaining
41
+ @resets_on = resets_on
42
+ end
43
+
44
+ sig { params(other: T.untyped).returns(T::Boolean) }
45
+ def ==(other)
46
+ return false unless other.is_a? self.class
47
+ return false unless @interval == other.interval
48
+ return false unless @amount == other.amount
49
+ return false unless @count == other.count
50
+ return false unless @amount_used == other.amount_used
51
+ return false unless @amount_remaining == other.amount_remaining
52
+ return false unless @count_used == other.count_used
53
+ return false unless @count_remaining == other.count_remaining
54
+ return false unless @resets_on == other.resets_on
55
+ true
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,27 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::IssuedVelocityLimit
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::IssuedVelocityLimit
11
+ def interval(); end
12
+ def interval=(str_); end
13
+ def amount(); end
14
+ def amount=(str_); end
15
+ def count(); end
16
+ def count=(str_); end
17
+ def amount_used(); end
18
+ def amount_used=(str_); end
19
+ def amount_remaining(); end
20
+ def amount_remaining=(str_); end
21
+ def count_used(); end
22
+ def count_used=(str_); end
23
+ def count_remaining(); end
24
+ def count_remaining=(str_); end
25
+ def resets_on(); end
26
+ def resets_on=(str_); end
27
+ end
@@ -16,11 +16,23 @@ module Moov
16
16
  field :single_use, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('singleUse') } }
17
17
  # Sets the spending limit per time interval. Only one limit per interval is supported.
18
18
  field :velocity_limits, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::IssuingVelocityLimit)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('velocityLimits') } }
19
+ # Restricts card usage by merchant category. When not set, all categories are allowed.
20
+ field :merchant_category_restrictions, Crystalline::Nilable.new(Models::Components::MerchantCategoryRestrictions), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantCategoryRestrictions') } }
21
+ # Restricts card usage to specific merchants, or blocks specific merchants.
22
+ field :merchant_restrictions, Crystalline::Nilable.new(Models::Components::MerchantRestrictions), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantRestrictions') } }
23
+ # Limits card usage to specific days and times. Set to `null` to remove all schedule restrictions.
24
+ field :allowed_schedule, Crystalline::Nilable.new(Models::Components::IssuingControlsAllowedSchedule), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('allowedSchedule') } }
25
+ # A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls. Set to `null` for no cutoff.
26
+ field :expires_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('expiresOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
19
27
 
20
- sig { params(single_use: T.nilable(T::Boolean), velocity_limits: T.nilable(T::Array[Models::Components::IssuingVelocityLimit])).void }
21
- def initialize(single_use: nil, velocity_limits: nil)
28
+ sig { params(single_use: T.nilable(T::Boolean), velocity_limits: T.nilable(T::Array[Models::Components::IssuingVelocityLimit]), merchant_category_restrictions: T.nilable(Models::Components::MerchantCategoryRestrictions), merchant_restrictions: T.nilable(Models::Components::MerchantRestrictions), allowed_schedule: T.nilable(Models::Components::IssuingControlsAllowedSchedule), expires_on: T.nilable(::DateTime)).void }
29
+ def initialize(single_use: nil, velocity_limits: nil, merchant_category_restrictions: nil, merchant_restrictions: nil, allowed_schedule: nil, expires_on: nil)
22
30
  @single_use = single_use
23
31
  @velocity_limits = velocity_limits
32
+ @merchant_category_restrictions = merchant_category_restrictions
33
+ @merchant_restrictions = merchant_restrictions
34
+ @allowed_schedule = allowed_schedule
35
+ @expires_on = expires_on
24
36
  end
25
37
 
26
38
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -28,6 +40,10 @@ module Moov
28
40
  return false unless other.is_a? self.class
29
41
  return false unless @single_use == other.single_use
30
42
  return false unless @velocity_limits == other.velocity_limits
43
+ return false unless @merchant_category_restrictions == other.merchant_category_restrictions
44
+ return false unless @merchant_restrictions == other.merchant_restrictions
45
+ return false unless @allowed_schedule == other.allowed_schedule
46
+ return false unless @expires_on == other.expires_on
31
47
  true
32
48
  end
33
49
  end
@@ -12,4 +12,12 @@ class Moov::Models::Components::IssuingControls
12
12
  def single_use=(str_); end
13
13
  def velocity_limits(); end
14
14
  def velocity_limits=(str_); end
15
+ def merchant_category_restrictions(); end
16
+ def merchant_category_restrictions=(str_); end
17
+ def merchant_restrictions(); end
18
+ def merchant_restrictions=(str_); end
19
+ def allowed_schedule(); end
20
+ def allowed_schedule=(str_); end
21
+ def expires_on(); end
22
+ def expires_on=(str_); end
15
23
  end
@@ -0,0 +1,36 @@
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
+ # Limits card usage to specific days and times. Set to `null` to remove all schedule restrictions.
11
+ class IssuingControlsAllowedSchedule
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # IANA timezone string used to evaluate window boundaries against the authorization time.
16
+ field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
17
+ # Time windows during which the card may authorize. Any matching window allows the transaction.
18
+ field :windows, Crystalline::Array.new(Models::Components::ScheduleWindow), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('windows'), required: true } }
19
+
20
+ sig { params(timezone: ::String, windows: T::Array[Models::Components::ScheduleWindow]).void }
21
+ def initialize(timezone:, windows:)
22
+ @timezone = timezone
23
+ @windows = windows
24
+ end
25
+
26
+ sig { params(other: T.untyped).returns(T::Boolean) }
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @timezone == other.timezone
30
+ return false unless @windows == other.windows
31
+ true
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::IssuingControlsAllowedSchedule
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::IssuingControlsAllowedSchedule
11
+ def timezone(); end
12
+ def timezone=(str_); end
13
+ def windows(); end
14
+ def windows=(str_); end
15
+ end
@@ -15,15 +15,31 @@ module Moov
15
15
 
16
16
  field :velocity_limits, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::IssuingVelocityLimitError)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('velocityLimits') } }
17
17
 
18
- sig { params(velocity_limits: T.nilable(T::Hash[Symbol, Models::Components::IssuingVelocityLimitError])).void }
19
- def initialize(velocity_limits: nil)
18
+ field :merchant_category_restrictions, Crystalline::Nilable.new(Models::Components::MerchantCategoryRestrictionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantCategoryRestrictions') } }
19
+
20
+ field :merchant_restrictions, Crystalline::Nilable.new(Models::Components::MerchantRestrictionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantRestrictions') } }
21
+
22
+ field :allowed_schedule, Crystalline::Nilable.new(Models::Components::AllowedScheduleError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('allowedSchedule') } }
23
+
24
+ field :expires_on, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('expiresOn') } }
25
+
26
+ sig { params(velocity_limits: T.nilable(T::Hash[Symbol, Models::Components::IssuingVelocityLimitError]), merchant_category_restrictions: T.nilable(Models::Components::MerchantCategoryRestrictionsError), merchant_restrictions: T.nilable(Models::Components::MerchantRestrictionsError), allowed_schedule: T.nilable(Models::Components::AllowedScheduleError), expires_on: T.nilable(::String)).void }
27
+ def initialize(velocity_limits: nil, merchant_category_restrictions: nil, merchant_restrictions: nil, allowed_schedule: nil, expires_on: nil)
20
28
  @velocity_limits = velocity_limits
29
+ @merchant_category_restrictions = merchant_category_restrictions
30
+ @merchant_restrictions = merchant_restrictions
31
+ @allowed_schedule = allowed_schedule
32
+ @expires_on = expires_on
21
33
  end
22
34
 
23
35
  sig { params(other: T.untyped).returns(T::Boolean) }
24
36
  def ==(other)
25
37
  return false unless other.is_a? self.class
26
38
  return false unless @velocity_limits == other.velocity_limits
39
+ return false unless @merchant_category_restrictions == other.merchant_category_restrictions
40
+ return false unless @merchant_restrictions == other.merchant_restrictions
41
+ return false unless @allowed_schedule == other.allowed_schedule
42
+ return false unless @expires_on == other.expires_on
27
43
  true
28
44
  end
29
45
  end
@@ -10,4 +10,12 @@ end
10
10
  class Moov::Models::Components::IssuingControlsError
11
11
  def velocity_limits(); end
12
12
  def velocity_limits=(str_); end
13
+ def merchant_category_restrictions(); end
14
+ def merchant_category_restrictions=(str_); end
15
+ def merchant_restrictions(); end
16
+ def merchant_restrictions=(str_); end
17
+ def allowed_schedule(); end
18
+ def allowed_schedule=(str_); end
19
+ def expires_on(); end
20
+ def expires_on=(str_); end
13
21
  end
@@ -0,0 +1,19 @@
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
+ # IssuingControlsRestrictionMode - Whether the listed items are the only ones allowed (`allow`) or the ones to block (`block`).
11
+ class IssuingControlsRestrictionMode < T::Enum
12
+ enums do
13
+ ALLOW = new('allow')
14
+ BLOCK = new('block')
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::IssuingControlsRestrictionMode
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::IssuingControlsRestrictionMode
11
+ end