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
|
@@ -21,12 +21,15 @@ module Moov
|
|
|
21
21
|
|
|
22
22
|
field :quantity, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity') } }
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
field :images, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::CreateInvoiceLineItemImageValidationError)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
|
|
25
|
+
|
|
26
|
+
sig { params(name: T.nilable(::String), group: T.nilable(::String), price_modifier: T.nilable(Models::Components::AmountDecimalValidationError), quantity: T.nilable(::String), images: T.nilable(T::Hash[Symbol, Models::Components::CreateInvoiceLineItemImageValidationError])).void }
|
|
27
|
+
def initialize(name: nil, group: nil, price_modifier: nil, quantity: nil, images: nil)
|
|
26
28
|
@name = name
|
|
27
29
|
@group = group
|
|
28
30
|
@price_modifier = price_modifier
|
|
29
31
|
@quantity = quantity
|
|
32
|
+
@images = images
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -36,6 +39,7 @@ module Moov
|
|
|
36
39
|
return false unless @group == other.group
|
|
37
40
|
return false unless @price_modifier == other.price_modifier
|
|
38
41
|
return false unless @quantity == other.quantity
|
|
42
|
+
return false unless @images == other.images
|
|
39
43
|
true
|
|
40
44
|
end
|
|
41
45
|
end
|
|
@@ -23,13 +23,16 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
field :quantity, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity') } }
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
field :images, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::CreateInvoiceLineItemImageValidationError)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
|
|
27
|
+
|
|
28
|
+
sig { params(product_id: T.nilable(::String), name: T.nilable(::String), base_price: T.nilable(Models::Components::AmountDecimalValidationError), options: T.nilable(T::Hash[Symbol, Models::Components::CreateInvoiceLineItemOptionValidationError]), quantity: T.nilable(::String), images: T.nilable(T::Hash[Symbol, Models::Components::CreateInvoiceLineItemImageValidationError])).void }
|
|
29
|
+
def initialize(product_id: nil, name: nil, base_price: nil, options: nil, quantity: nil, images: nil)
|
|
28
30
|
@product_id = product_id
|
|
29
31
|
@name = name
|
|
30
32
|
@base_price = base_price
|
|
31
33
|
@options = options
|
|
32
34
|
@quantity = quantity
|
|
35
|
+
@images = images
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -40,6 +43,7 @@ module Moov
|
|
|
40
43
|
return false unless @base_price == other.base_price
|
|
41
44
|
return false unless @options == other.options
|
|
42
45
|
return false unless @quantity == other.quantity
|
|
46
|
+
return false unless @images == other.images
|
|
43
47
|
true
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -9,8 +9,6 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# DebitHoldPeriod - An optional override of your default ACH hold period in banking days. The hold period must be longer than or equal to your default setting.
|
|
11
11
|
class DebitHoldPeriod < T::Enum
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
enums do
|
|
15
13
|
NO_HOLD = new('no-hold')
|
|
16
14
|
ONE_MINUS_DAY = new('1-day')
|
|
@@ -11,8 +11,6 @@ module Moov
|
|
|
11
11
|
#
|
|
12
12
|
# Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
|
13
13
|
class DisputeStatus < T::Enum
|
|
14
|
-
|
|
15
|
-
|
|
16
14
|
enums do
|
|
17
15
|
RESPONSE_NEEDED = new('response-needed')
|
|
18
16
|
RESOLVED = new('resolved')
|
|
@@ -9,8 +9,6 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# DomesticPushToCard - Indicates which level of domestic push-to-card transfer is supported by the card, if any.
|
|
11
11
|
class DomesticPushToCard < T::Enum
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
enums do
|
|
15
13
|
NOT_SUPPORTED = new('not-supported')
|
|
16
14
|
STANDARD = new('standard')
|
|
@@ -12,8 +12,6 @@ module Moov
|
|
|
12
12
|
# - `client_credentials`: A grant type used by clients to obtain an access token
|
|
13
13
|
# - `refresh_token`: A grant type used by clients to obtain a new access token using a refresh token
|
|
14
14
|
class GrantType < T::Enum
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
enums do
|
|
18
16
|
CLIENT_CREDENTIALS = new('client_credentials')
|
|
19
17
|
REFRESH_TOKEN = new('refresh_token')
|
|
@@ -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 InvoiceLineItemImageValidationError
|
|
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::InvoiceLineItemImageValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::InvoiceLineItemImageValidationError
|
|
11
|
+
def image_id(); end
|
|
12
|
+
def image_id=(str_); end
|
|
13
|
+
end
|
|
@@ -21,12 +21,15 @@ module Moov
|
|
|
21
21
|
|
|
22
22
|
field :quantity, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity') } }
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
field :images, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::InvoiceLineItemImageValidationError)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
|
|
25
|
+
|
|
26
|
+
sig { params(name: T.nilable(::String), group: T.nilable(::String), price_modifier: T.nilable(Models::Components::AmountDecimalValidationError), quantity: T.nilable(::String), images: T.nilable(T::Hash[Symbol, Models::Components::InvoiceLineItemImageValidationError])).void }
|
|
27
|
+
def initialize(name: nil, group: nil, price_modifier: nil, quantity: nil, images: nil)
|
|
26
28
|
@name = name
|
|
27
29
|
@group = group
|
|
28
30
|
@price_modifier = price_modifier
|
|
29
31
|
@quantity = quantity
|
|
32
|
+
@images = images
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -36,6 +39,7 @@ module Moov
|
|
|
36
39
|
return false unless @group == other.group
|
|
37
40
|
return false unless @price_modifier == other.price_modifier
|
|
38
41
|
return false unless @quantity == other.quantity
|
|
42
|
+
return false unless @images == other.images
|
|
39
43
|
true
|
|
40
44
|
end
|
|
41
45
|
end
|
|
@@ -23,13 +23,16 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
field :quantity, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity') } }
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
field :images, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::InvoiceLineItemImageValidationError)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
|
|
27
|
+
|
|
28
|
+
sig { params(product_id: T.nilable(::String), name: T.nilable(::String), base_price: T.nilable(Models::Components::AmountDecimalValidationError), options: T.nilable(T::Hash[Symbol, Models::Components::InvoiceLineItemOptionValidationError]), quantity: T.nilable(::String), images: T.nilable(T::Hash[Symbol, Models::Components::InvoiceLineItemImageValidationError])).void }
|
|
29
|
+
def initialize(product_id: nil, name: nil, base_price: nil, options: nil, quantity: nil, images: nil)
|
|
28
30
|
@product_id = product_id
|
|
29
31
|
@name = name
|
|
30
32
|
@base_price = base_price
|
|
31
33
|
@options = options
|
|
32
34
|
@quantity = quantity
|
|
35
|
+
@images = images
|
|
33
36
|
end
|
|
34
37
|
|
|
35
38
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -40,6 +43,7 @@ module Moov
|
|
|
40
43
|
return false unless @base_price == other.base_price
|
|
41
44
|
return false unless @options == other.options
|
|
42
45
|
return false unless @quantity == other.quantity
|
|
46
|
+
return false unless @images == other.images
|
|
43
47
|
true
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -9,8 +9,6 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# IssuedCardFormFactor - Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
|
|
11
11
|
class IssuedCardFormFactor < T::Enum
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
enums do
|
|
15
13
|
VIRTUAL = new('virtual')
|
|
16
14
|
end
|
|
@@ -14,8 +14,6 @@ module Moov
|
|
|
14
14
|
# - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
15
15
|
# - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
16
16
|
class IssuedCardState < T::Enum
|
|
17
|
-
|
|
18
|
-
|
|
19
17
|
enums do
|
|
20
18
|
ACTIVE = new('active')
|
|
21
19
|
INACTIVE = new('inactive')
|
|
@@ -9,8 +9,6 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# IssuingIntervalLimit - Specifies the time frame for the velocity limit. Currently supports only per-transaction limits.
|
|
11
11
|
class IssuingIntervalLimit < T::Enum
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
enums do
|
|
15
13
|
PER_TRANSACTION = new('per-transaction')
|
|
16
14
|
end
|
|
@@ -9,8 +9,6 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# PaymentMethodType - The payment method type that represents a payment rail and directionality
|
|
11
11
|
class PaymentMethodType < T::Enum
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
enums do
|
|
15
13
|
MOOV_WALLET = new('moov-wallet')
|
|
16
14
|
ACH_DEBIT_FUND = new('ach-debit-fund')
|