moov_ruby 25.7.1 → 25.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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/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 +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16b3d4330fb669309c8a2edc6dbd0b0e002787d0433a48f9cc3434115f1521a7
|
|
4
|
+
data.tar.gz: 92ba1659989db69c89934829e592bb64ff9bba431b6abf6152720f788907e10f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dea2e0c9a53d30734bd94c223ee5bea87b3b4be690c9a1719af960ba6aed256a362f47f92154c85a0eff22302c3616d440e3f25306141d9e96a560154b31b88c
|
|
7
|
+
data.tar.gz: ee0eb702c596d78e65502da2f3f7ec7bef2c067198832e5380109ac8dc97ffb6a88224a9d2c8d77d0baac04533923e73ecccd6f183cd6553b2d9fbedfddb35b5
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
module Crystalline
|
|
4
|
+
module Enum
|
|
5
|
+
mixes_in_class_methods(ClassMethods)
|
|
6
|
+
|
|
7
|
+
module ClassMethods
|
|
8
|
+
def enums(&blk); end
|
|
9
|
+
def open!; end
|
|
10
|
+
def open?; end
|
|
11
|
+
def deserialize(val); end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def serialize; end
|
|
15
|
+
def known?; end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -182,10 +182,10 @@ module Crystalline
|
|
|
182
182
|
next if f.nil? && !required
|
|
183
183
|
result[key] = nil if f.nil? && required
|
|
184
184
|
|
|
185
|
-
if f.is_a? Array
|
|
185
|
+
if f.is_a? ::Array
|
|
186
186
|
result[key] = f.map { |o| marshal_single(o) }
|
|
187
|
-
elsif f.is_a? Hash
|
|
188
|
-
result[key] = f.
|
|
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')
|
|
@@ -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')
|