moov_ruby 24.1.2 → 25.1.0.pre.dev.0
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/metadata_fields.rb +3 -3
- data/lib/crystalline/module.rb +0 -2
- data/lib/crystalline/types.rb +0 -27
- data/lib/moov/fee_plans.rb +124 -0
- data/lib/moov/models/components/accounttype.rb +2 -0
- data/lib/moov/models/components/accountverificationstatus.rb +2 -0
- data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achreturncode.rb +2 -0
- data/lib/moov/models/components/achtransactionstatus.rb +2 -0
- data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/applicationscope.rb +2 -0
- data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
- data/lib/moov/models/components/bankaccountstatus.rb +2 -0
- data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
- data/lib/moov/models/components/bankaccounttype.rb +2 -0
- data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
- data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
- data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
- data/lib/moov/models/components/businesstype.rb +2 -0
- data/lib/moov/models/components/calltoaction.rb +2 -0
- data/lib/moov/models/components/cancellationstatus.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +2 -0
- data/lib/moov/models/components/capabilitystatus.rb +2 -0
- data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
- data/lib/moov/models/components/cardbrand.rb +2 -0
- data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
- data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
- data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
- data/lib/moov/models/components/cardtype.rb +2 -0
- data/lib/moov/models/components/cardupdatereason.rb +2 -0
- data/lib/moov/models/components/cardverificationresult.rb +2 -0
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
- data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -6
- data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
- data/lib/moov/models/components/createscheduledtransferlineitem.rb +1 -2
- data/lib/moov/models/components/createtransferlineitem.rb +1 -2
- data/lib/moov/models/components/debitholdperiod.rb +2 -0
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
- data/lib/moov/models/components/disputephase.rb +2 -0
- data/lib/moov/models/components/disputestatus.rb +2 -0
- data/lib/moov/models/components/documenttype.rb +2 -0
- data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
- data/lib/moov/models/components/domesticpushtocard.rb +2 -0
- data/lib/moov/models/components/evidencetype.rb +2 -0
- data/lib/moov/models/components/feecategory.rb +2 -0
- data/lib/moov/models/components/feemodel.rb +2 -0
- data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
- data/lib/moov/models/components/filepurpose.rb +2 -0
- data/lib/moov/models/components/filestatus.rb +2 -0
- data/lib/moov/models/components/granttype.rb +2 -0
- data/lib/moov/models/components/invoicestatus.rb +2 -0
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
- data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
- data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +2 -0
- data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
- data/lib/moov/models/components/issuingintervallimit.rb +2 -0
- data/lib/moov/models/components/kind.rb +2 -0
- data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
- data/lib/moov/models/components/microdepositstatus.rb +2 -0
- data/lib/moov/models/components/mode.rb +2 -0
- data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/occurrencestatus.rb +2 -0
- data/lib/moov/models/components/partnerpricing.rb +66 -0
- data/lib/moov/models/components/partnerpricing.rbi +29 -0
- data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
- data/lib/moov/models/components/paymentlinktype.rb +2 -0
- data/lib/moov/models/components/paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/primaryregulator.rb +2 -0
- data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/receiptkind.rb +2 -0
- data/lib/moov/models/components/refundcardstatus.rb +2 -0
- data/lib/moov/models/components/refundstatus.rb +2 -0
- data/lib/moov/models/components/requirementerrorcode.rb +2 -0
- data/lib/moov/models/components/requirementid.rb +2 -0
- data/lib/moov/models/components/returnpolicytype.rb +2 -0
- data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/rtpfailurecode.rb +2 -0
- data/lib/moov/models/components/rtprejectioncode.rb +2 -0
- data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
- data/lib/moov/models/components/seccode.rb +2 -0
- data/lib/moov/models/components/status.rb +2 -0
- data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
- data/lib/moov/models/components/sweepstatus.rb +2 -0
- data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
- data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
- data/lib/moov/models/components/ticketstatus.rb +2 -0
- data/lib/moov/models/components/token_type_hint.rb +2 -0
- data/lib/moov/models/components/tokentype.rb +2 -0
- data/lib/moov/models/components/transactionsource.rb +2 -0
- data/lib/moov/models/components/transferfailurereason.rb +2 -0
- data/lib/moov/models/components/transferparty.rb +2 -0
- data/lib/moov/models/components/transferstatus.rb +2 -0
- data/lib/moov/models/components/transferwaitfor.rb +2 -0
- data/lib/moov/models/components/underwritingstatus.rb +2 -0
- data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
- data/lib/moov/models/components/use.rb +2 -0
- data/lib/moov/models/components/verificationstatus.rb +2 -0
- data/lib/moov/models/components/verificationstatusdetail.rb +2 -0
- data/lib/moov/models/components/walletstatus.rb +2 -0
- data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
- data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
- data/lib/moov/models/components/wallettransactiontype.rb +2 -0
- data/lib/moov/models/components/wallettype.rb +2 -0
- data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
- data/lib/moov/models/components/webhookeventtype.rb +2 -0
- data/lib/moov/models/components/webhookstatus.rb +2 -0
- data/lib/moov/models/components.rb +1 -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 +2 -0
- data/lib/moov/models/operations/listpartnerpricing_request.rb +49 -0
- data/lib/moov/models/operations/listpartnerpricing_request.rbi +17 -0
- data/lib/moov/models/operations/listpartnerpricing_response.rb +48 -0
- data/lib/moov/models/operations/listpartnerpricing_response.rbi +21 -0
- data/lib/moov/models/operations.rb +2 -0
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/utils/url.rb +1 -1
- data/lib/moov/utils/utils.rb +0 -12
- metadata +10 -5
- data/lib/crystalline/enum.rbi +0 -17
|
@@ -9,6 +9,8 @@ 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
|
+
|
|
12
14
|
enums do
|
|
13
15
|
NOT_SUPPORTED = new('not-supported')
|
|
14
16
|
STANDARD = new('standard')
|
|
@@ -12,6 +12,8 @@ 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
|
+
|
|
15
17
|
enums do
|
|
16
18
|
CLIENT_CREDENTIALS = new('client_credentials')
|
|
17
19
|
REFRESH_TOKEN = new('refresh_token')
|
|
@@ -9,6 +9,8 @@ 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
|
+
|
|
12
14
|
enums do
|
|
13
15
|
VIRTUAL = new('virtual')
|
|
14
16
|
end
|
|
@@ -14,6 +14,8 @@ 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
|
+
|
|
17
19
|
enums do
|
|
18
20
|
ACTIVE = new('active')
|
|
19
21
|
INACTIVE = new('inactive')
|
|
@@ -9,6 +9,8 @@ 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
|
+
|
|
12
14
|
enums do
|
|
13
15
|
PER_TRANSACTION = new('per-transaction')
|
|
14
16
|
end
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PartnerPricing
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :plan_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('planID'), required: true } }
|
|
17
|
+
# The name of the partner pricing plan.
|
|
18
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('name'), required: true } }
|
|
19
|
+
# The decimal-formatted numerical string of the revenue split for partner.
|
|
20
|
+
#
|
|
21
|
+
# For example, 2.25% is '2.25'.
|
|
22
|
+
field :revenue_share, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
|
|
23
|
+
# Specifies the card processing pricing model
|
|
24
|
+
field :card_acquiring_model, Models::Components::CardAcquiringModel, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardAcquiringModel'), required: true, 'decoder': Utils.enum_from_string(Models::Components::CardAcquiringModel, false) } }
|
|
25
|
+
|
|
26
|
+
field :billable_fees, Crystalline::Array.new(Models::Components::BillableFee), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billableFees'), required: true } }
|
|
27
|
+
# The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
|
|
28
|
+
field :minimum_commitment, Models::Components::MinimumCommitment, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumCommitment'), required: true } }
|
|
29
|
+
# Fixed recurring amount paid in the billing period regardless of usage.
|
|
30
|
+
field :monthly_platform_fee, Models::Components::MonthlyPlatformFee, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('monthlyPlatformFee'), required: true } }
|
|
31
|
+
|
|
32
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdAt'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
33
|
+
# A description of the fee plan.
|
|
34
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
35
|
+
|
|
36
|
+
sig { params(plan_id: ::String, name: ::String, revenue_share: ::String, card_acquiring_model: Models::Components::CardAcquiringModel, billable_fees: T::Array[Models::Components::BillableFee], minimum_commitment: Models::Components::MinimumCommitment, monthly_platform_fee: Models::Components::MonthlyPlatformFee, created_at: ::DateTime, description: T.nilable(::String)).void }
|
|
37
|
+
def initialize(plan_id:, name:, revenue_share:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil)
|
|
38
|
+
@plan_id = plan_id
|
|
39
|
+
@name = name
|
|
40
|
+
@revenue_share = revenue_share
|
|
41
|
+
@card_acquiring_model = card_acquiring_model
|
|
42
|
+
@billable_fees = billable_fees
|
|
43
|
+
@minimum_commitment = minimum_commitment
|
|
44
|
+
@monthly_platform_fee = monthly_platform_fee
|
|
45
|
+
@created_at = created_at
|
|
46
|
+
@description = description
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
50
|
+
def ==(other)
|
|
51
|
+
return false unless other.is_a? self.class
|
|
52
|
+
return false unless @plan_id == other.plan_id
|
|
53
|
+
return false unless @name == other.name
|
|
54
|
+
return false unless @revenue_share == other.revenue_share
|
|
55
|
+
return false unless @card_acquiring_model == other.card_acquiring_model
|
|
56
|
+
return false unless @billable_fees == other.billable_fees
|
|
57
|
+
return false unless @minimum_commitment == other.minimum_commitment
|
|
58
|
+
return false unless @monthly_platform_fee == other.monthly_platform_fee
|
|
59
|
+
return false unless @created_at == other.created_at
|
|
60
|
+
return false unless @description == other.description
|
|
61
|
+
true
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::PartnerPricing
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::PartnerPricing
|
|
11
|
+
def plan_id(); end
|
|
12
|
+
def plan_id=(str_); end
|
|
13
|
+
def name(); end
|
|
14
|
+
def name=(str_); end
|
|
15
|
+
def revenue_share(); end
|
|
16
|
+
def revenue_share=(str_); end
|
|
17
|
+
def card_acquiring_model(); end
|
|
18
|
+
def card_acquiring_model=(str_); end
|
|
19
|
+
def billable_fees(); end
|
|
20
|
+
def billable_fees=(str_); end
|
|
21
|
+
def minimum_commitment(); end
|
|
22
|
+
def minimum_commitment=(str_); end
|
|
23
|
+
def monthly_platform_fee(); end
|
|
24
|
+
def monthly_platform_fee=(str_); end
|
|
25
|
+
def created_at(); end
|
|
26
|
+
def created_at=(str_); end
|
|
27
|
+
def description(); end
|
|
28
|
+
def description=(str_); end
|
|
29
|
+
end
|
|
@@ -9,6 +9,8 @@ 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
|
+
|
|
12
14
|
enums do
|
|
13
15
|
MOOV_WALLET = new('moov-wallet')
|
|
14
16
|
ACH_DEBIT_FUND = new('ach-debit-fund')
|
|
@@ -9,6 +9,8 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# RequirementID - The unique ID of what the requirement is asking to be filled out.
|
|
11
11
|
class RequirementID < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
enums do
|
|
13
15
|
ACCOUNT_TOS_ACCEPTANCE = new('account.tos-acceptance')
|
|
14
16
|
INDIVIDUAL_MOBILE = new('individual.mobile')
|
|
@@ -12,6 +12,8 @@ module Moov
|
|
|
12
12
|
# Crucial for recurring and merchant-initiated transactions as per card scheme rules.
|
|
13
13
|
# Omit for customer-initiated e-commerce transactions.
|
|
14
14
|
class TransactionSource < T::Enum
|
|
15
|
+
|
|
16
|
+
|
|
15
17
|
enums do
|
|
16
18
|
FIRST_RECURRING = new('first-recurring')
|
|
17
19
|
RECURRING = new('recurring')
|
|
@@ -9,6 +9,8 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# TransferFailureReason - Reason for a transfer's failure.
|
|
11
11
|
class TransferFailureReason < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
enums do
|
|
13
15
|
SOURCE_PAYMENT_ERROR = new('source-payment-error')
|
|
14
16
|
DESTINATION_PAYMENT_ERROR = new('destination-payment-error')
|
|
@@ -10,6 +10,8 @@ module Moov
|
|
|
10
10
|
# UpdateIssuedCardState - Updates the state of a Moov issued card.
|
|
11
11
|
# - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
12
12
|
class UpdateIssuedCardState < T::Enum
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
enums do
|
|
14
16
|
CLOSED = new('closed')
|
|
15
17
|
end
|