moov_ruby 26.10.0.pre.dev.8 → 26.10.0.pre.dev.10
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/moov/card_issuing.rb +540 -8
- data/lib/moov/invoices.rb +180 -0
- data/lib/moov/issuing_transactions.rb +123 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rb +32 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rbi +13 -0
- data/lib/moov/models/components/capability.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +3 -0
- data/lib/moov/models/components/capture.rb +2 -6
- data/lib/moov/models/components/capture.rbi +0 -2
- data/lib/moov/models/components/capturestatus.rb +1 -0
- data/lib/moov/models/components/createauthorizationsimulation.rb +40 -0
- data/lib/moov/models/components/createauthorizationsimulation.rbi +17 -0
- data/lib/moov/models/components/createcapture.rb +2 -6
- data/lib/moov/models/components/createcapture.rbi +0 -2
- data/lib/moov/models/components/{createcancellation.rb → createclearingsimulation.rb} +5 -7
- data/lib/moov/models/components/{createcancellation.rbi → createclearingsimulation.rbi} +2 -2
- data/lib/moov/models/components/createinvoice.rb +10 -2
- data/lib/moov/models/components/createinvoice.rbi +4 -0
- data/lib/moov/models/components/createinvoicenotification.rb +32 -0
- data/lib/moov/models/components/createinvoicenotification.rbi +13 -0
- data/lib/moov/models/components/createsweepconfig.rb +6 -2
- data/lib/moov/models/components/createsweepconfig.rbi +2 -0
- data/lib/moov/models/components/createtransfer.rb +6 -2
- data/lib/moov/models/components/createtransfer.rbi +2 -0
- data/lib/moov/models/components/createtransferdestination.rb +2 -10
- data/lib/moov/models/components/createtransferdestination.rbi +0 -4
- data/lib/moov/models/components/createtransferrailoptions.rb +48 -0
- data/lib/moov/models/components/createtransferrailoptions.rbi +21 -0
- data/lib/moov/models/components/createtransferresponse.rb +27 -0
- data/lib/moov/models/components/createtransferresponse.rbi +11 -0
- data/lib/moov/models/components/createtransfersource.rb +2 -10
- data/lib/moov/models/components/createtransfersource.rbi +0 -4
- data/lib/moov/models/components/fullissuedcard.rb +6 -4
- data/lib/moov/models/components/invoice.rb +6 -2
- data/lib/moov/models/components/invoice.rbi +2 -0
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +36 -0
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rbi +15 -0
- data/lib/moov/models/components/invoicepaymentoptions.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptions.rbi +17 -0
- data/lib/moov/models/components/invoicepaymentoptionserror.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptionserror.rbi +17 -0
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +17 -0
- data/lib/moov/models/components/issuedcard.rb +6 -4
- data/lib/moov/models/components/issuedcardauthorization.rb +6 -2
- data/lib/moov/models/components/issuedcardauthorization.rbi +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +6 -4
- data/lib/moov/models/components/issuedcardtransaction.rb +6 -2
- data/lib/moov/models/components/issuedcardtransaction.rbi +2 -0
- data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/notificationchannel.rb +18 -0
- data/lib/moov/models/components/notificationchannel.rbi +11 -0
- data/lib/moov/models/components/patchsweepconfig.rb +6 -2
- data/lib/moov/models/components/patchsweepconfig.rbi +2 -0
- data/lib/moov/models/components/pushtocardoptions.rb +6 -2
- data/lib/moov/models/components/pushtocardoptions.rbi +2 -0
- data/lib/moov/models/components/schedule.rb +40 -0
- data/lib/moov/models/components/schedule.rbi +17 -0
- data/lib/moov/models/components/schedulewindow.rb +1 -1
- data/lib/moov/models/components/simulationissuingmerchantdata.rb +56 -0
- data/lib/moov/models/components/simulationissuingmerchantdata.rbi +25 -0
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rb +56 -0
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rbi +25 -0
- data/lib/moov/models/components/sweepconfig.rb +6 -2
- data/lib/moov/models/components/sweepconfig.rbi +2 -0
- data/lib/moov/models/components/sweepconfigschedule.rb +40 -0
- data/lib/moov/models/components/sweepconfigschedule.rbi +17 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rb +40 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rbi +17 -0
- data/lib/moov/models/components/sweepschedulefrequency.rb +18 -0
- data/lib/moov/models/components/sweepschedulefrequency.rbi +11 -0
- data/lib/moov/models/components/updateinvoice.rb +6 -2
- data/lib/moov/models/components/updateinvoice.rbi +2 -0
- data/lib/moov/models/components/updateissuedcard.rb +3 -3
- data/lib/moov/models/components/updateissuedcardstate.rb +3 -3
- data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +1 -1
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -0
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -0
- data/lib/moov/models/components.rb +17 -1
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +44 -0
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rbi +19 -0
- data/lib/moov/models/errors/capturevalidationerror.rb +2 -6
- data/lib/moov/models/errors/capturevalidationerror.rbi +0 -2
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rb +36 -0
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rbi +15 -0
- data/lib/moov/models/errors/createinvoiceerror.rb +10 -2
- data/lib/moov/models/errors/createinvoiceerror.rbi +4 -0
- data/lib/moov/models/errors/createsweepconfigerror.rb +6 -2
- data/lib/moov/models/errors/createsweepconfigerror.rbi +2 -0
- data/lib/moov/models/errors/invoicenotificationerror.rb +36 -0
- data/lib/moov/models/errors/invoicenotificationerror.rbi +15 -0
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +44 -0
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +19 -0
- data/lib/moov/models/errors/listtransfersvalidationerror.rb +6 -2
- data/lib/moov/models/errors/listtransfersvalidationerror.rbi +2 -0
- data/lib/moov/models/errors/patchsweepconfigerror.rb +6 -2
- data/lib/moov/models/errors/patchsweepconfigerror.rbi +2 -0
- data/lib/moov/models/errors/updateinvoiceerror.rb +6 -2
- data/lib/moov/models/errors/updateinvoiceerror.rbi +2 -0
- data/lib/moov/models/errors.rb +4 -0
- data/lib/moov/models/operations/createauthorizationsimulation_request.rb +36 -0
- data/lib/moov/models/operations/createauthorizationsimulation_request.rbi +15 -0
- data/lib/moov/models/operations/createauthorizationsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createauthorizationsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createclearingsimulation_request.rb +40 -0
- data/lib/moov/models/operations/createclearingsimulation_request.rbi +17 -0
- data/lib/moov/models/operations/createclearingsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createclearingsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createinvoicenotification_request.rb +40 -0
- data/lib/moov/models/operations/createinvoicenotification_request.rbi +17 -0
- data/lib/moov/models/operations/{createcancellation_response.rb → createinvoicenotification_response.rb} +3 -7
- data/lib/moov/models/operations/{createcancellation_response.rbi → createinvoicenotification_response.rbi} +2 -4
- data/lib/moov/models/operations/createreversalsimulation_request.rb +36 -0
- data/lib/moov/models/operations/createreversalsimulation_request.rbi +15 -0
- data/lib/moov/models/operations/createreversalsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createreversalsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createtransfer_response.rb +5 -5
- data/lib/moov/models/operations/createtransfer_response.rbi +2 -2
- data/lib/moov/models/operations/disablecapability_request.rb +2 -0
- data/lib/moov/models/operations/getcapability_request.rb +2 -0
- data/lib/moov/models/operations/getissuedcardactivity_request.rb +36 -0
- data/lib/moov/models/operations/getissuedcardactivity_request.rbi +15 -0
- data/lib/moov/models/operations/getissuedcardactivity_response.rb +48 -0
- data/lib/moov/models/operations/getissuedcardactivity_response.rbi +21 -0
- data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcards_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcards_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_request.rb +7 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_response.rb +1 -1
- data/lib/moov/models/operations.rb +10 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +9 -157
- metadata +64 -8
- data/lib/moov/models/operations/createcancellation_request.rb +0 -40
- data/lib/moov/models/operations/createcancellation_request.rbi +0 -17
|
@@ -30,14 +30,16 @@ module Moov
|
|
|
30
30
|
field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
|
|
31
31
|
# Last four digits of the card number. Omitted for authorizations recorded before this was captured.
|
|
32
32
|
field :last_four_card_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourCardNumber') } }
|
|
33
|
+
# Identifier for the account of the card's authorized user.
|
|
34
|
+
field :authorized_user_account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedUserAccountID') } }
|
|
33
35
|
# List of card transaction IDs associated with this authorization.
|
|
34
36
|
field :card_transactions, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardTransactions') } }
|
|
35
37
|
# The reason an authorization or authorization event was declined. Only present if the
|
|
36
38
|
# authorization or event has been declined.
|
|
37
39
|
field :decline_reason, Crystalline::Nilable.new(Models::Components::IssuingDeclineReason), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('declineReason'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::IssuingDeclineReason, true) } }
|
|
38
40
|
|
|
39
|
-
sig { params(authorization_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, network: Models::Components::CardIssuingNetwork, authorized_amount: ::String, status: Models::Components::IssuingAuthorizationStatus, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, last_four_card_number: T.nilable(::String), card_transactions: T.nilable(T::Array[::String]), decline_reason: T.nilable(Models::Components::IssuingDeclineReason)).void }
|
|
40
|
-
def initialize(authorization_id:, issued_card_id:, funding_wallet_id:, network:, authorized_amount:, status:, merchant_data:, created_on:, last_four_card_number: nil, card_transactions: nil, decline_reason: nil)
|
|
41
|
+
sig { params(authorization_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, network: Models::Components::CardIssuingNetwork, authorized_amount: ::String, status: Models::Components::IssuingAuthorizationStatus, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, last_four_card_number: T.nilable(::String), authorized_user_account_id: T.nilable(::String), card_transactions: T.nilable(T::Array[::String]), decline_reason: T.nilable(Models::Components::IssuingDeclineReason)).void }
|
|
42
|
+
def initialize(authorization_id:, issued_card_id:, funding_wallet_id:, network:, authorized_amount:, status:, merchant_data:, created_on:, last_four_card_number: nil, authorized_user_account_id: nil, card_transactions: nil, decline_reason: nil)
|
|
41
43
|
@authorization_id = authorization_id
|
|
42
44
|
@issued_card_id = issued_card_id
|
|
43
45
|
@funding_wallet_id = funding_wallet_id
|
|
@@ -47,6 +49,7 @@ module Moov
|
|
|
47
49
|
@merchant_data = merchant_data
|
|
48
50
|
@created_on = created_on
|
|
49
51
|
@last_four_card_number = last_four_card_number
|
|
52
|
+
@authorized_user_account_id = authorized_user_account_id
|
|
50
53
|
@card_transactions = card_transactions
|
|
51
54
|
@decline_reason = decline_reason
|
|
52
55
|
end
|
|
@@ -63,6 +66,7 @@ module Moov
|
|
|
63
66
|
return false unless @merchant_data == other.merchant_data
|
|
64
67
|
return false unless @created_on == other.created_on
|
|
65
68
|
return false unless @last_four_card_number == other.last_four_card_number
|
|
69
|
+
return false unless @authorized_user_account_id == other.authorized_user_account_id
|
|
66
70
|
return false unless @card_transactions == other.card_transactions
|
|
67
71
|
return false unless @decline_reason == other.decline_reason
|
|
68
72
|
true
|
|
@@ -26,6 +26,8 @@ class Moov::Models::Components::IssuedCardAuthorization
|
|
|
26
26
|
def created_on=(str_); end
|
|
27
27
|
def last_four_card_number(); end
|
|
28
28
|
def last_four_card_number=(str_); end
|
|
29
|
+
def authorized_user_account_id(); end
|
|
30
|
+
def authorized_user_account_id=(str_); end
|
|
29
31
|
def card_transactions(); end
|
|
30
32
|
def card_transactions=(str_); end
|
|
31
33
|
def decline_reason(); end
|
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
module Moov
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
# IssuedCardState - The `state` represents the operational status of an issued card.
|
|
10
|
+
# IssuedCardState - The `state` represents the operational status of an issued card.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
# - `
|
|
12
|
+
# Authorizations can only be approved while the card is `active`:
|
|
13
|
+
#
|
|
14
|
+
# - `active`: The card is operational and authorizations can be approved.
|
|
15
|
+
# - `frozen`: The card is temporarily suspended and authorizations cannot be approved. Set the state back to `active` to reactivate it. A card can move between `frozen` and `active` as often as needed.
|
|
16
|
+
# - `closed`: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
|
|
15
17
|
class IssuedCardState
|
|
16
18
|
include ::Crystalline::Enum
|
|
17
19
|
enums do
|
|
@@ -28,11 +28,13 @@ module Moov
|
|
|
28
28
|
field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
|
|
29
29
|
# Last four digits of the card number. Omitted for transactions recorded before this was captured.
|
|
30
30
|
field :last_four_card_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourCardNumber') } }
|
|
31
|
+
# Identifier for the account of the card's authorized user.
|
|
32
|
+
field :authorized_user_account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizedUserAccountID') } }
|
|
31
33
|
|
|
32
34
|
field :authorization_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizationID') } }
|
|
33
35
|
|
|
34
|
-
sig { params(card_transaction_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, amount: ::String, authorized_on: ::DateTime, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, last_four_card_number: T.nilable(::String), authorization_id: T.nilable(::String)).void }
|
|
35
|
-
def initialize(card_transaction_id:, issued_card_id:, funding_wallet_id:, amount:, authorized_on:, merchant_data:, created_on:, last_four_card_number: nil, authorization_id: nil)
|
|
36
|
+
sig { params(card_transaction_id: ::String, issued_card_id: ::String, funding_wallet_id: ::String, amount: ::String, authorized_on: ::DateTime, merchant_data: Models::Components::IssuingMerchantData, created_on: ::DateTime, last_four_card_number: T.nilable(::String), authorized_user_account_id: T.nilable(::String), authorization_id: T.nilable(::String)).void }
|
|
37
|
+
def initialize(card_transaction_id:, issued_card_id:, funding_wallet_id:, amount:, authorized_on:, merchant_data:, created_on:, last_four_card_number: nil, authorized_user_account_id: nil, authorization_id: nil)
|
|
36
38
|
@card_transaction_id = card_transaction_id
|
|
37
39
|
@issued_card_id = issued_card_id
|
|
38
40
|
@funding_wallet_id = funding_wallet_id
|
|
@@ -41,6 +43,7 @@ module Moov
|
|
|
41
43
|
@merchant_data = merchant_data
|
|
42
44
|
@created_on = created_on
|
|
43
45
|
@last_four_card_number = last_four_card_number
|
|
46
|
+
@authorized_user_account_id = authorized_user_account_id
|
|
44
47
|
@authorization_id = authorization_id
|
|
45
48
|
end
|
|
46
49
|
|
|
@@ -55,6 +58,7 @@ module Moov
|
|
|
55
58
|
return false unless @merchant_data == other.merchant_data
|
|
56
59
|
return false unless @created_on == other.created_on
|
|
57
60
|
return false unless @last_four_card_number == other.last_four_card_number
|
|
61
|
+
return false unless @authorized_user_account_id == other.authorized_user_account_id
|
|
58
62
|
return false unless @authorization_id == other.authorization_id
|
|
59
63
|
true
|
|
60
64
|
end
|
|
@@ -24,6 +24,8 @@ class Moov::Models::Components::IssuedCardTransaction
|
|
|
24
24
|
def created_on=(str_); end
|
|
25
25
|
def last_four_card_number(); end
|
|
26
26
|
def last_four_card_number=(str_); end
|
|
27
|
+
def authorized_user_account_id(); end
|
|
28
|
+
def authorized_user_account_id=(str_); end
|
|
27
29
|
def authorization_id(); end
|
|
28
30
|
def authorization_id=(str_); end
|
|
29
31
|
end
|
|
@@ -14,7 +14,7 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# IANA timezone string used to evaluate window boundaries against the authorization time.
|
|
16
16
|
field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
|
|
17
|
-
# Time windows during which the card
|
|
17
|
+
# Time windows during which authorizations on the card can be approved. Any matching window allows the transaction.
|
|
18
18
|
field :windows, Crystalline::Array.new(Models::Components::ScheduleWindow), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('windows'), required: true } }
|
|
19
19
|
|
|
20
20
|
sig { params(timezone: ::String, windows: T::Array[Models::Components::ScheduleWindow]).void }
|
|
@@ -14,7 +14,7 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# IANA timezone string used to evaluate window boundaries against the authorization time.
|
|
16
16
|
field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
|
|
17
|
-
# Time windows during which the card
|
|
17
|
+
# Time windows during which authorizations on the card can be approved. Any matching window allows the transaction.
|
|
18
18
|
field :windows, Crystalline::Array.new(Models::Components::ScheduleWindow), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('windows'), required: true } }
|
|
19
19
|
|
|
20
20
|
sig { params(timezone: ::String, windows: T::Array[Models::Components::ScheduleWindow]).void }
|
|
@@ -0,0 +1,18 @@
|
|
|
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 NotificationChannel < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
EMAIL = new('email')
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -22,14 +22,17 @@ module Moov
|
|
|
22
22
|
field :statement_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('statementDescriptor') } }
|
|
23
23
|
|
|
24
24
|
field :minimum_balance, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumBalance') } }
|
|
25
|
+
# Overrides the time of day this wallet's sweep runs. Sweeps only run on US banking days.
|
|
26
|
+
field :schedule, Crystalline::Nilable.new(Models::Components::Schedule), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('schedule') } }
|
|
25
27
|
|
|
26
|
-
sig { params(status: T.nilable(Models::Components::Status), push_payment_method_id: T.nilable(::String), pull_payment_method_id: T.nilable(::String), statement_descriptor: T.nilable(::String), minimum_balance: T.nilable(::String)).void }
|
|
27
|
-
def initialize(status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil)
|
|
28
|
+
sig { params(status: T.nilable(Models::Components::Status), push_payment_method_id: T.nilable(::String), pull_payment_method_id: T.nilable(::String), statement_descriptor: T.nilable(::String), minimum_balance: T.nilable(::String), schedule: T.nilable(Models::Components::Schedule)).void }
|
|
29
|
+
def initialize(status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil, schedule: nil)
|
|
28
30
|
@status = status
|
|
29
31
|
@push_payment_method_id = push_payment_method_id
|
|
30
32
|
@pull_payment_method_id = pull_payment_method_id
|
|
31
33
|
@statement_descriptor = statement_descriptor
|
|
32
34
|
@minimum_balance = minimum_balance
|
|
35
|
+
@schedule = schedule
|
|
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 @pull_payment_method_id == other.pull_payment_method_id
|
|
41
44
|
return false unless @statement_descriptor == other.statement_descriptor
|
|
42
45
|
return false unless @minimum_balance == other.minimum_balance
|
|
46
|
+
return false unless @schedule == other.schedule
|
|
43
47
|
true
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -14,16 +14,20 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
16
16
|
field :dynamic_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dynamicDescriptor') } }
|
|
17
|
+
# The scheduled date and time for the push-to-card transfer to be delivered, as set when the transfer was created.
|
|
18
|
+
field :scheduled_delivery_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('scheduledDeliveryOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
17
19
|
|
|
18
|
-
sig { params(dynamic_descriptor: T.nilable(::String)).void }
|
|
19
|
-
def initialize(dynamic_descriptor: nil)
|
|
20
|
+
sig { params(dynamic_descriptor: T.nilable(::String), scheduled_delivery_on: T.nilable(::DateTime)).void }
|
|
21
|
+
def initialize(dynamic_descriptor: nil, scheduled_delivery_on: nil)
|
|
20
22
|
@dynamic_descriptor = dynamic_descriptor
|
|
23
|
+
@scheduled_delivery_on = scheduled_delivery_on
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @dynamic_descriptor == other.dynamic_descriptor
|
|
30
|
+
return false unless @scheduled_delivery_on == other.scheduled_delivery_on
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
# Overrides the time of day this wallet's sweep runs. Sweeps only run on US banking days.
|
|
11
|
+
class Schedule
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Time of day the sweep runs, in 24-hour `HH:mm` format. Must fall on a 15-minute mark (`:00`, `:15`, `:30`, `:45`).
|
|
16
|
+
field :cutoff_time, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cutoffTime'), required: true } }
|
|
17
|
+
# IANA timezone for `cutoffTime`, such as `America/New_York` or `UTC`.
|
|
18
|
+
field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
|
|
19
|
+
# How often the sweep runs. Defaults to `daily`.
|
|
20
|
+
field :frequency, Crystalline::Nilable.new(Models::Components::SweepScheduleFrequency), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('frequency'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::SweepScheduleFrequency, true) } }
|
|
21
|
+
|
|
22
|
+
sig { params(cutoff_time: ::String, timezone: ::String, frequency: T.nilable(Models::Components::SweepScheduleFrequency)).void }
|
|
23
|
+
def initialize(cutoff_time:, timezone:, frequency: nil)
|
|
24
|
+
@cutoff_time = cutoff_time
|
|
25
|
+
@timezone = timezone
|
|
26
|
+
@frequency = frequency
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @cutoff_time == other.cutoff_time
|
|
33
|
+
return false unless @timezone == other.timezone
|
|
34
|
+
return false unless @frequency == other.frequency
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::Schedule
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::Schedule
|
|
11
|
+
def cutoff_time(); end
|
|
12
|
+
def cutoff_time=(str_); end
|
|
13
|
+
def timezone(); end
|
|
14
|
+
def timezone=(str_); end
|
|
15
|
+
def frequency(); end
|
|
16
|
+
def frequency=(str_); end
|
|
17
|
+
end
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
module Moov
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
# A window of time during which the card
|
|
10
|
+
# A window of time during which authorizations on the card can be approved.
|
|
11
11
|
class ScheduleWindow
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SimulationIssuingMerchantData
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# External identifier used to identify the merchant with the card brand.
|
|
16
|
+
field :network_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('networkID') } }
|
|
17
|
+
# Name of the merchant.
|
|
18
|
+
field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('name') } }
|
|
19
|
+
# The merchant's location.
|
|
20
|
+
field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('city') } }
|
|
21
|
+
# Two-letter country code.
|
|
22
|
+
field :country, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('country') } }
|
|
23
|
+
# The merchant's five-digit postal code.
|
|
24
|
+
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('postalCode') } }
|
|
25
|
+
# The merchant's two-letter state abbreviation.
|
|
26
|
+
field :state, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('state') } }
|
|
27
|
+
# The Merchant Category Code.
|
|
28
|
+
field :mcc, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('mcc') } }
|
|
29
|
+
|
|
30
|
+
sig { params(network_id: T.nilable(::String), name: T.nilable(::String), city: T.nilable(::String), country: T.nilable(::String), postal_code: T.nilable(::String), state: T.nilable(::String), mcc: T.nilable(::String)).void }
|
|
31
|
+
def initialize(network_id: nil, name: nil, city: nil, country: nil, postal_code: nil, state: nil, mcc: nil)
|
|
32
|
+
@network_id = network_id
|
|
33
|
+
@name = name
|
|
34
|
+
@city = city
|
|
35
|
+
@country = country
|
|
36
|
+
@postal_code = postal_code
|
|
37
|
+
@state = state
|
|
38
|
+
@mcc = mcc
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
42
|
+
def ==(other)
|
|
43
|
+
return false unless other.is_a? self.class
|
|
44
|
+
return false unless @network_id == other.network_id
|
|
45
|
+
return false unless @name == other.name
|
|
46
|
+
return false unless @city == other.city
|
|
47
|
+
return false unless @country == other.country
|
|
48
|
+
return false unless @postal_code == other.postal_code
|
|
49
|
+
return false unless @state == other.state
|
|
50
|
+
return false unless @mcc == other.mcc
|
|
51
|
+
true
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::SimulationIssuingMerchantData
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::SimulationIssuingMerchantData
|
|
11
|
+
def network_id(); end
|
|
12
|
+
def network_id=(str_); end
|
|
13
|
+
def name(); end
|
|
14
|
+
def name=(str_); end
|
|
15
|
+
def city(); end
|
|
16
|
+
def city=(str_); end
|
|
17
|
+
def country(); end
|
|
18
|
+
def country=(str_); end
|
|
19
|
+
def postal_code(); end
|
|
20
|
+
def postal_code=(str_); end
|
|
21
|
+
def state(); end
|
|
22
|
+
def state=(str_); end
|
|
23
|
+
def mcc(); end
|
|
24
|
+
def mcc=(str_); end
|
|
25
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SimulationIssuingMerchantDataValidationError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :network_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('networkID') } }
|
|
17
|
+
|
|
18
|
+
field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('name') } }
|
|
19
|
+
|
|
20
|
+
field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('city') } }
|
|
21
|
+
|
|
22
|
+
field :country, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('country') } }
|
|
23
|
+
|
|
24
|
+
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('postalCode') } }
|
|
25
|
+
|
|
26
|
+
field :state, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('state') } }
|
|
27
|
+
|
|
28
|
+
field :mcc, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('mcc') } }
|
|
29
|
+
|
|
30
|
+
sig { params(network_id: T.nilable(::String), name: T.nilable(::String), city: T.nilable(::String), country: T.nilable(::String), postal_code: T.nilable(::String), state: T.nilable(::String), mcc: T.nilable(::String)).void }
|
|
31
|
+
def initialize(network_id: nil, name: nil, city: nil, country: nil, postal_code: nil, state: nil, mcc: nil)
|
|
32
|
+
@network_id = network_id
|
|
33
|
+
@name = name
|
|
34
|
+
@city = city
|
|
35
|
+
@country = country
|
|
36
|
+
@postal_code = postal_code
|
|
37
|
+
@state = state
|
|
38
|
+
@mcc = mcc
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
42
|
+
def ==(other)
|
|
43
|
+
return false unless other.is_a? self.class
|
|
44
|
+
return false unless @network_id == other.network_id
|
|
45
|
+
return false unless @name == other.name
|
|
46
|
+
return false unless @city == other.city
|
|
47
|
+
return false unless @country == other.country
|
|
48
|
+
return false unless @postal_code == other.postal_code
|
|
49
|
+
return false unless @state == other.state
|
|
50
|
+
return false unless @mcc == other.mcc
|
|
51
|
+
true
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::SimulationIssuingMerchantDataValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::SimulationIssuingMerchantDataValidationError
|
|
11
|
+
def network_id(); end
|
|
12
|
+
def network_id=(str_); end
|
|
13
|
+
def name(); end
|
|
14
|
+
def name=(str_); end
|
|
15
|
+
def city(); end
|
|
16
|
+
def city=(str_); end
|
|
17
|
+
def country(); end
|
|
18
|
+
def country=(str_); end
|
|
19
|
+
def postal_code(); end
|
|
20
|
+
def postal_code=(str_); end
|
|
21
|
+
def state(); end
|
|
22
|
+
def state=(str_); end
|
|
23
|
+
def mcc(); end
|
|
24
|
+
def mcc=(str_); end
|
|
25
|
+
end
|
|
@@ -32,11 +32,13 @@ module Moov
|
|
|
32
32
|
field :minimum_balance, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumBalance') } }
|
|
33
33
|
# The text that appears on the banking statement. The default descriptor is a 10 character ID if an override is not set in the sweep configs statementDescriptor.
|
|
34
34
|
field :statement_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('statementDescriptor') } }
|
|
35
|
+
# A configured wallet-level override of the time of day the sweep runs.
|
|
36
|
+
field :schedule, Crystalline::Nilable.new(Models::Components::SweepConfigSchedule), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('schedule') } }
|
|
35
37
|
# An array of fields that are locked. To request updates, please contact Moov support.
|
|
36
38
|
field :locked_fields, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lockedFields') } }
|
|
37
39
|
|
|
38
|
-
sig { params(sweep_config_id: ::String, wallet_id: ::String, status: Models::Components::SweepConfigStatus, push_payment_method: Models::Components::SweepConfigPaymentMethod, pull_payment_method: Models::Components::SweepConfigPaymentMethod, created_on: ::DateTime, updated_on: ::DateTime, minimum_balance: T.nilable(::String), statement_descriptor: T.nilable(::String), locked_fields: T.nilable(T::Array[::String])).void }
|
|
39
|
-
def initialize(sweep_config_id:, wallet_id:, status:, push_payment_method:, pull_payment_method:, created_on:, updated_on:, minimum_balance: nil, statement_descriptor: nil, locked_fields: nil)
|
|
40
|
+
sig { params(sweep_config_id: ::String, wallet_id: ::String, status: Models::Components::SweepConfigStatus, push_payment_method: Models::Components::SweepConfigPaymentMethod, pull_payment_method: Models::Components::SweepConfigPaymentMethod, created_on: ::DateTime, updated_on: ::DateTime, minimum_balance: T.nilable(::String), statement_descriptor: T.nilable(::String), schedule: T.nilable(Models::Components::SweepConfigSchedule), locked_fields: T.nilable(T::Array[::String])).void }
|
|
41
|
+
def initialize(sweep_config_id:, wallet_id:, status:, push_payment_method:, pull_payment_method:, created_on:, updated_on:, minimum_balance: nil, statement_descriptor: nil, schedule: nil, locked_fields: nil)
|
|
40
42
|
@sweep_config_id = sweep_config_id
|
|
41
43
|
@wallet_id = wallet_id
|
|
42
44
|
@status = status
|
|
@@ -46,6 +48,7 @@ module Moov
|
|
|
46
48
|
@updated_on = updated_on
|
|
47
49
|
@minimum_balance = minimum_balance
|
|
48
50
|
@statement_descriptor = statement_descriptor
|
|
51
|
+
@schedule = schedule
|
|
49
52
|
@locked_fields = locked_fields
|
|
50
53
|
end
|
|
51
54
|
|
|
@@ -61,6 +64,7 @@ module Moov
|
|
|
61
64
|
return false unless @updated_on == other.updated_on
|
|
62
65
|
return false unless @minimum_balance == other.minimum_balance
|
|
63
66
|
return false unless @statement_descriptor == other.statement_descriptor
|
|
67
|
+
return false unless @schedule == other.schedule
|
|
64
68
|
return false unless @locked_fields == other.locked_fields
|
|
65
69
|
true
|
|
66
70
|
end
|
|
@@ -26,6 +26,8 @@ class Moov::Models::Components::SweepConfig
|
|
|
26
26
|
def minimum_balance=(str_); end
|
|
27
27
|
def statement_descriptor(); end
|
|
28
28
|
def statement_descriptor=(str_); end
|
|
29
|
+
def schedule(); end
|
|
30
|
+
def schedule=(str_); end
|
|
29
31
|
def locked_fields(); end
|
|
30
32
|
def locked_fields=(str_); end
|
|
31
33
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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 SweepConfigSchedule
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Time of day the sweep runs, in 24-hour `HH:mm` format. Must fall on a 15-minute mark (`:00`, `:15`, `:30`, `:45`).
|
|
16
|
+
field :cutoff_time, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cutoffTime'), required: true } }
|
|
17
|
+
# IANA timezone for `cutoffTime`, such as `America/New_York` or `UTC`.
|
|
18
|
+
field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
|
|
19
|
+
# How often the sweep runs. Defaults to `daily`.
|
|
20
|
+
field :frequency, Crystalline::Nilable.new(Models::Components::SweepScheduleFrequency), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('frequency'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::SweepScheduleFrequency, true) } }
|
|
21
|
+
|
|
22
|
+
sig { params(cutoff_time: ::String, timezone: ::String, frequency: T.nilable(Models::Components::SweepScheduleFrequency)).void }
|
|
23
|
+
def initialize(cutoff_time:, timezone:, frequency: nil)
|
|
24
|
+
@cutoff_time = cutoff_time
|
|
25
|
+
@timezone = timezone
|
|
26
|
+
@frequency = frequency
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @cutoff_time == other.cutoff_time
|
|
33
|
+
return false unless @timezone == other.timezone
|
|
34
|
+
return false unless @frequency == other.frequency
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::SweepConfigSchedule
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::SweepConfigSchedule
|
|
11
|
+
def cutoff_time(); end
|
|
12
|
+
def cutoff_time=(str_); end
|
|
13
|
+
def timezone(); end
|
|
14
|
+
def timezone=(str_); end
|
|
15
|
+
def frequency(); end
|
|
16
|
+
def frequency=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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 SweepConfigScheduleError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :cutoff_time, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cutoffTime') } }
|
|
17
|
+
|
|
18
|
+
field :timezone, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone') } }
|
|
19
|
+
|
|
20
|
+
field :frequency, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('frequency') } }
|
|
21
|
+
|
|
22
|
+
sig { params(cutoff_time: T.nilable(::String), timezone: T.nilable(::String), frequency: T.nilable(::String)).void }
|
|
23
|
+
def initialize(cutoff_time: nil, timezone: nil, frequency: nil)
|
|
24
|
+
@cutoff_time = cutoff_time
|
|
25
|
+
@timezone = timezone
|
|
26
|
+
@frequency = frequency
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @cutoff_time == other.cutoff_time
|
|
33
|
+
return false unless @timezone == other.timezone
|
|
34
|
+
return false unless @frequency == other.frequency
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::SweepConfigScheduleError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::SweepConfigScheduleError
|
|
11
|
+
def cutoff_time(); end
|
|
12
|
+
def cutoff_time=(str_); end
|
|
13
|
+
def timezone(); end
|
|
14
|
+
def timezone=(str_); end
|
|
15
|
+
def frequency(); end
|
|
16
|
+
def frequency=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
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 SweepScheduleFrequency < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
DAILY = new('daily')
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|