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.
- checksums.yaml +4 -4
- data/lib/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +3 -3
- data/lib/crystalline/module.rb +2 -0
- data/lib/crystalline/types.rb +27 -0
- data/lib/moov/models/components/accounttype.rb +0 -2
- data/lib/moov/models/components/accountverificationstatus.rb +0 -2
- data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/achreturncode.rb +0 -2
- data/lib/moov/models/components/achtransactionstatus.rb +0 -2
- data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/applicationscope.rb +0 -2
- data/lib/moov/models/components/bankaccountholdertype.rb +0 -2
- data/lib/moov/models/components/bankaccountstatus.rb +0 -2
- data/lib/moov/models/components/bankaccountstatusreason.rb +0 -2
- data/lib/moov/models/components/bankaccounttype.rb +0 -2
- data/lib/moov/models/components/bankaccountverificationmethod.rb +0 -2
- data/lib/moov/models/components/bankaccountverificationstatus.rb +0 -2
- data/lib/moov/models/components/bankaccountwaitfor.rb +0 -2
- data/lib/moov/models/components/businesspresence.rb +0 -2
- data/lib/moov/models/components/businesstype.rb +0 -2
- data/lib/moov/models/components/calltoaction.rb +0 -2
- data/lib/moov/models/components/cancellationstatus.rb +0 -2
- data/lib/moov/models/components/capabilityid.rb +0 -2
- data/lib/moov/models/components/capabilitystatus.rb +0 -2
- data/lib/moov/models/components/cardacquiringmodel.rb +0 -2
- data/lib/moov/models/components/cardbrand.rb +0 -2
- data/lib/moov/models/components/cardissuingnetwork.rb +0 -2
- data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/cardtransactionfailurecode.rb +0 -2
- data/lib/moov/models/components/cardtransactionstatus.rb +0 -2
- data/lib/moov/models/components/cardtype.rb +0 -2
- data/lib/moov/models/components/cardupdatereason.rb +0 -2
- data/lib/moov/models/components/cardverificationresult.rb +0 -2
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +0 -2
- data/lib/moov/models/components/createaccounttype.rb +0 -2
- data/lib/moov/models/components/createinvoicelineitem.rb +5 -5
- data/lib/moov/models/components/createinvoicelineitem.rbi +2 -2
- data/lib/moov/models/components/createinvoicelineitemimage.rb +32 -0
- data/lib/moov/models/components/createinvoicelineitemimage.rbi +13 -0
- data/lib/moov/models/components/createinvoicelineitemimagevalidationerror.rb +32 -0
- data/lib/moov/models/components/createinvoicelineitemimagevalidationerror.rbi +13 -0
- data/lib/moov/models/components/createinvoicelineitemoption.rb +6 -6
- data/lib/moov/models/components/createinvoicelineitemoption.rbi +2 -2
- data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rb +6 -2
- data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rbi +2 -0
- data/lib/moov/models/components/createinvoicelineitemvalidationerror.rb +6 -2
- data/lib/moov/models/components/createinvoicelineitemvalidationerror.rbi +2 -0
- data/lib/moov/models/components/debitholdperiod.rb +0 -2
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +0 -2
- data/lib/moov/models/components/disputephase.rb +0 -2
- data/lib/moov/models/components/disputestatus.rb +0 -2
- data/lib/moov/models/components/documenttype.rb +0 -2
- data/lib/moov/models/components/domesticpullfromcard.rb +0 -2
- data/lib/moov/models/components/domesticpushtocard.rb +0 -2
- data/lib/moov/models/components/entrymode.rb +0 -2
- data/lib/moov/models/components/evidencetype.rb +0 -2
- data/lib/moov/models/components/feecategory.rb +0 -2
- data/lib/moov/models/components/feemodel.rb +0 -2
- data/lib/moov/models/components/feeplanagreementstatus.rb +0 -2
- data/lib/moov/models/components/filepurpose.rb +0 -2
- data/lib/moov/models/components/filestatus.rb +0 -2
- data/lib/moov/models/components/fulfillmentmethod.rb +0 -2
- data/lib/moov/models/components/fulfillmenttimeframe.rb +0 -2
- data/lib/moov/models/components/geographicreach.rb +0 -2
- data/lib/moov/models/components/granttype.rb +0 -2
- data/lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/invoicelineitemimagevalidationerror.rb +32 -0
- data/lib/moov/models/components/invoicelineitemimagevalidationerror.rbi +13 -0
- data/lib/moov/models/components/invoicelineitemoptionvalidationerror.rb +6 -2
- data/lib/moov/models/components/invoicelineitemoptionvalidationerror.rbi +2 -0
- data/lib/moov/models/components/invoicelineitemvalidationerror.rb +6 -2
- data/lib/moov/models/components/invoicelineitemvalidationerror.rbi +2 -0
- data/lib/moov/models/components/invoicepaymenttype.rb +0 -2
- data/lib/moov/models/components/invoicestatus.rb +0 -2
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +0 -2
- data/lib/moov/models/components/issuedcardeventtype.rb +0 -2
- data/lib/moov/models/components/issuedcardformfactor.rb +0 -2
- data/lib/moov/models/components/issuedcardstate.rb +0 -2
- data/lib/moov/models/components/issuingauthorizationstatus.rb +0 -2
- data/lib/moov/models/components/issuingintervallimit.rb +0 -2
- data/lib/moov/models/components/kind.rb +0 -2
- data/lib/moov/models/components/linkcardwaitfor.rb +0 -2
- data/lib/moov/models/components/microdepositstatus.rb +0 -2
- data/lib/moov/models/components/mode.rb +0 -2
- data/lib/moov/models/components/monthlyvolumerange.rb +0 -2
- data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/occurrencestatus.rb +0 -2
- data/lib/moov/models/components/paymentlinkstatus.rb +0 -2
- data/lib/moov/models/components/paymentlinktype.rb +0 -2
- data/lib/moov/models/components/paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/pendinglitigation.rb +0 -2
- data/lib/moov/models/components/primaryregulator.rb +0 -2
- data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/receiptkind.rb +0 -2
- data/lib/moov/models/components/refundcardstatus.rb +0 -2
- data/lib/moov/models/components/refundpolicy.rb +0 -2
- data/lib/moov/models/components/refundstatus.rb +0 -2
- data/lib/moov/models/components/requirementerrorcode.rb +0 -2
- data/lib/moov/models/components/requirementid.rb +0 -2
- data/lib/moov/models/components/returnpolicytype.rb +0 -2
- data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/rtpfailurecode.rb +0 -2
- data/lib/moov/models/components/rtprejectioncode.rb +0 -2
- data/lib/moov/models/components/rtptransactionstatus.rb +0 -2
- data/lib/moov/models/components/seccode.rb +0 -2
- data/lib/moov/models/components/status.rb +0 -2
- data/lib/moov/models/components/submissionintent.rb +0 -2
- data/lib/moov/models/components/sweepconfigstatus.rb +0 -2
- data/lib/moov/models/components/sweepstatus.rb +0 -2
- data/lib/moov/models/components/terminalapplicationplatform.rb +0 -2
- data/lib/moov/models/components/terminalapplicationstatus.rb +0 -2
- data/lib/moov/models/components/ticketstatus.rb +0 -2
- data/lib/moov/models/components/token_type_hint.rb +0 -2
- data/lib/moov/models/components/tokentype.rb +0 -2
- data/lib/moov/models/components/transactionsource.rb +0 -2
- data/lib/moov/models/components/transferfailurereason.rb +0 -2
- data/lib/moov/models/components/transferparty.rb +0 -2
- data/lib/moov/models/components/transferstatus.rb +0 -2
- data/lib/moov/models/components/transferwaitfor.rb +0 -2
- data/lib/moov/models/components/underwritingstatus.rb +0 -2
- data/lib/moov/models/components/updateissuedcardstate.rb +0 -2
- data/lib/moov/models/components/updateticketstatus.rb +0 -2
- data/lib/moov/models/components/use.rb +0 -2
- data/lib/moov/models/components/verificationstatus.rb +0 -2
- data/lib/moov/models/components/verificationstatusdetail.rb +0 -2
- data/lib/moov/models/components/walletstatus.rb +0 -2
- data/lib/moov/models/components/wallettransactionsourcetype.rb +0 -2
- data/lib/moov/models/components/wallettransactionstatus.rb +0 -2
- data/lib/moov/models/components/wallettransactiontype.rb +0 -2
- data/lib/moov/models/components/wallettype.rb +0 -2
- data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -2
- data/lib/moov/models/components/webhookeventtype.rb +0 -2
- data/lib/moov/models/components/webhookstatus.rb +0 -2
- data/lib/moov/models/components.rb +3 -0
- data/lib/moov/models/operations/createtransfer_request.rb +2 -2
- data/lib/moov/models/operations/getscheduledoccurrence_request.rb +4 -4
- data/lib/moov/models/operations/hydrate.rb +0 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/utils/url.rb +1 -1
- data/lib/moov/utils/utils.rb +12 -0
- metadata +9 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4088bd38c7c5ceda12feaef202b99e631a57efc9ea15e3ad90c5e55cac10559
|
|
4
|
+
data.tar.gz: 1bf8ccadcf7c824d8f5fd2b55a53873ebc3ace9adb4f3967ee372caa94226ce9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
data/lib/crystalline/module.rb
CHANGED
|
@@ -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
|
data/lib/crystalline/types.rb
CHANGED
|
@@ -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
|
# 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
|
# 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')
|
|
@@ -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')
|
|
@@ -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 :
|
|
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]),
|
|
30
|
-
def initialize(name:, base_price:, quantity:, product_id: nil, options: 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
|
-
@
|
|
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 @
|
|
47
|
+
return false unless @images == other.images
|
|
48
48
|
true
|
|
49
49
|
end
|
|
50
50
|
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 :
|
|
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),
|
|
27
|
-
def initialize(name:, quantity:, price_modifier: nil, group: 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
|
-
@
|
|
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 @
|
|
42
|
+
return false unless @images == other.images
|
|
43
43
|
true
|
|
44
44
|
end
|
|
45
45
|
end
|