diff --git a/Gemfile.lock b/Gemfile.lock index 9b56a3b..f380857 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,9 @@ +PATH + remote: . + specs: + increase (0.0.1.pre.alpha.0) + connection_pool + GEM remote: https://rubygems.org/ specs: @@ -10,7 +16,6 @@ GEM ast (~> 2.4.1) racc power_assert (2.0.3) - prettier_print (1.2.1) racc (1.7.3) rainbow (3.1.1) rake (13.1.0) @@ -30,21 +35,22 @@ GEM rubocop-ast (1.30.0) parser (>= 3.2.1.0) ruby-progressbar (1.13.0) - syntax_tree (6.2.0) - prettier_print (>= 1.2.0) test-unit (3.6.2) power_assert unicode-display_width (2.5.0) + webrick (1.8.1) + yard (0.9.36) PLATFORMS x86_64-linux DEPENDENCIES - connection_pool + increase! rake rubocop - syntax_tree test-unit + webrick + yard BUNDLED WITH 2.4.10 diff --git a/lib/increase.rb b/lib/increase.rb index d361a62..d3900f8 100644 --- a/lib/increase.rb +++ b/lib/increase.rb @@ -17,132 +17,132 @@ require "increase/pooled_net_requester" require "increase/util" require "increase/version" -require "increase/models/account.rb" -require "increase/models/balance_lookup.rb" -require "increase/models/account_number.rb" -require "increase/models/bookkeeping_account.rb" -require "increase/models/bookkeeping_balance_lookup.rb" -require "increase/models/bookkeeping_entry_set.rb" -require "increase/models/bookkeeping_entry.rb" -require "increase/models/real_time_decision.rb" -require "increase/models/real_time_payments_transfer.rb" -require "increase/models/card.rb" -require "increase/models/card_details.rb" -require "increase/models/card_dispute.rb" -require "increase/models/card_purchase_supplement.rb" -require "increase/models/external_account.rb" -require "increase/models/export.rb" -require "increase/models/digital_wallet_token.rb" -require "increase/models/transaction.rb" -require "increase/models/pending_transaction.rb" -require "increase/models/program.rb" -require "increase/models/declined_transaction.rb" -require "increase/models/account_transfer.rb" -require "increase/models/ach_transfer.rb" -require "increase/models/ach_prenotification.rb" -require "increase/models/document.rb" -require "increase/models/wire_transfer.rb" -require "increase/models/check_transfer.rb" -require "increase/models/entity.rb" -require "increase/models/supplemental_document.rb" -require "increase/models/inbound_ach_transfer.rb" -require "increase/models/inbound_wire_drawdown_request.rb" -require "increase/models/wire_drawdown_request.rb" -require "increase/models/event.rb" -require "increase/models/event_subscription.rb" -require "increase/models/file.rb" -require "increase/models/group.rb" -require "increase/models/oauth_connection.rb" -require "increase/models/check_deposit.rb" -require "increase/models/routing_number.rb" -require "increase/models/account_statement.rb" -require "increase/models/digital_wallet_token_request_create_response.rb" -require "increase/models/inbound_funds_hold_release_response.rb" -require "increase/models/card_authorization_simulation.rb" -require "increase/models/inbound_real_time_payments_transfer_simulation_result.rb" -require "increase/models/physical_card.rb" -require "increase/models/card_payment.rb" -require "increase/models/proof_of_authorization_request.rb" -require "increase/models/proof_of_authorization_request_submission.rb" -require "increase/models/intrafi_account_enrollment.rb" -require "increase/models/intrafi_balance.rb" -require "increase/models/intrafi_exclusion.rb" -require "increase/models/real_time_payments_request_for_payment.rb" -require "increase/models/oauth_token.rb" -require "increase/models/inbound_wire_transfer.rb" -require "increase/models/digital_card_profile.rb" -require "increase/models/physical_card_profile.rb" -require "increase/models/inbound_check_deposit.rb" -require "increase/page.rb" -require "increase/resources/accounts.rb" -require "increase/resources/account_numbers.rb" -require "increase/resources/bookkeeping_accounts.rb" -require "increase/resources/bookkeeping_entry_sets.rb" -require "increase/resources/bookkeeping_entries.rb" -require "increase/resources/real_time_decisions.rb" -require "increase/resources/real_time_payments_transfers.rb" -require "increase/resources/cards.rb" -require "increase/resources/card_disputes.rb" -require "increase/resources/card_purchase_supplements.rb" -require "increase/resources/external_accounts.rb" -require "increase/resources/exports.rb" -require "increase/resources/digital_wallet_tokens.rb" -require "increase/resources/transactions.rb" -require "increase/resources/pending_transactions.rb" -require "increase/resources/programs.rb" -require "increase/resources/declined_transactions.rb" -require "increase/resources/account_transfers.rb" -require "increase/resources/ach_transfers.rb" -require "increase/resources/ach_prenotifications.rb" -require "increase/resources/documents.rb" -require "increase/resources/wire_transfers.rb" -require "increase/resources/check_transfers.rb" -require "increase/resources/entities.rb" -require "increase/resources/entities/beneficial_owners.rb" -require "increase/resources/entities/supplemental_documents.rb" -require "increase/resources/entities/industry_code.rb" -require "increase/resources/inbound_ach_transfers.rb" -require "increase/resources/inbound_wire_drawdown_requests.rb" -require "increase/resources/wire_drawdown_requests.rb" -require "increase/resources/events.rb" -require "increase/resources/event_subscriptions.rb" -require "increase/resources/files.rb" -require "increase/resources/groups.rb" -require "increase/resources/oauth_connections.rb" -require "increase/resources/check_deposits.rb" -require "increase/resources/routing_numbers.rb" -require "increase/resources/account_statements.rb" -require "increase/resources/simulations.rb" -require "increase/resources/simulations/account_transfers.rb" -require "increase/resources/simulations/account_statements.rb" -require "increase/resources/simulations/ach_transfers.rb" -require "increase/resources/simulations/card_disputes.rb" -require "increase/resources/simulations/card_refunds.rb" -require "increase/resources/simulations/check_transfers.rb" -require "increase/resources/simulations/documents.rb" -require "increase/resources/simulations/digital_wallet_token_requests.rb" -require "increase/resources/simulations/check_deposits.rb" -require "increase/resources/simulations/programs.rb" -require "increase/resources/simulations/inbound_wire_drawdown_requests.rb" -require "increase/resources/simulations/inbound_funds_holds.rb" -require "increase/resources/simulations/interest_payments.rb" -require "increase/resources/simulations/wire_transfers.rb" -require "increase/resources/simulations/cards.rb" -require "increase/resources/simulations/real_time_payments_transfers.rb" -require "increase/resources/simulations/physical_cards.rb" -require "increase/resources/simulations/inbound_check_deposits.rb" -require "increase/resources/physical_cards.rb" -require "increase/resources/card_payments.rb" -require "increase/resources/proof_of_authorization_requests.rb" -require "increase/resources/proof_of_authorization_request_submissions.rb" -require "increase/resources/intrafi.rb" -require "increase/resources/intrafi/account_enrollments.rb" -require "increase/resources/intrafi/balances.rb" -require "increase/resources/intrafi/exclusions.rb" -require "increase/resources/real_time_payments_request_for_payments.rb" -require "increase/resources/oauth_tokens.rb" -require "increase/resources/inbound_wire_transfers.rb" -require "increase/resources/digital_card_profiles.rb" -require "increase/resources/physical_card_profiles.rb" -require "increase/resources/inbound_check_deposits.rb" -require "increase/client.rb" +require "increase/models/account" +require "increase/models/balance_lookup" +require "increase/models/account_number" +require "increase/models/bookkeeping_account" +require "increase/models/bookkeeping_balance_lookup" +require "increase/models/bookkeeping_entry_set" +require "increase/models/bookkeeping_entry" +require "increase/models/real_time_decision" +require "increase/models/real_time_payments_transfer" +require "increase/models/card" +require "increase/models/card_details" +require "increase/models/card_dispute" +require "increase/models/card_purchase_supplement" +require "increase/models/external_account" +require "increase/models/export" +require "increase/models/digital_wallet_token" +require "increase/models/transaction" +require "increase/models/pending_transaction" +require "increase/models/program" +require "increase/models/declined_transaction" +require "increase/models/account_transfer" +require "increase/models/ach_transfer" +require "increase/models/ach_prenotification" +require "increase/models/document" +require "increase/models/wire_transfer" +require "increase/models/check_transfer" +require "increase/models/entity" +require "increase/models/supplemental_document" +require "increase/models/inbound_ach_transfer" +require "increase/models/inbound_wire_drawdown_request" +require "increase/models/wire_drawdown_request" +require "increase/models/event" +require "increase/models/event_subscription" +require "increase/models/file" +require "increase/models/group" +require "increase/models/oauth_connection" +require "increase/models/check_deposit" +require "increase/models/routing_number" +require "increase/models/account_statement" +require "increase/models/digital_wallet_token_request_create_response" +require "increase/models/inbound_funds_hold_release_response" +require "increase/models/card_authorization_simulation" +require "increase/models/inbound_real_time_payments_transfer_simulation_result" +require "increase/models/physical_card" +require "increase/models/card_payment" +require "increase/models/proof_of_authorization_request" +require "increase/models/proof_of_authorization_request_submission" +require "increase/models/intrafi_account_enrollment" +require "increase/models/intrafi_balance" +require "increase/models/intrafi_exclusion" +require "increase/models/real_time_payments_request_for_payment" +require "increase/models/oauth_token" +require "increase/models/inbound_wire_transfer" +require "increase/models/digital_card_profile" +require "increase/models/physical_card_profile" +require "increase/models/inbound_check_deposit" +require "increase/page" +require "increase/resources/accounts" +require "increase/resources/account_numbers" +require "increase/resources/bookkeeping_accounts" +require "increase/resources/bookkeeping_entry_sets" +require "increase/resources/bookkeeping_entries" +require "increase/resources/real_time_decisions" +require "increase/resources/real_time_payments_transfers" +require "increase/resources/cards" +require "increase/resources/card_disputes" +require "increase/resources/card_purchase_supplements" +require "increase/resources/external_accounts" +require "increase/resources/exports" +require "increase/resources/digital_wallet_tokens" +require "increase/resources/transactions" +require "increase/resources/pending_transactions" +require "increase/resources/programs" +require "increase/resources/declined_transactions" +require "increase/resources/account_transfers" +require "increase/resources/ach_transfers" +require "increase/resources/ach_prenotifications" +require "increase/resources/documents" +require "increase/resources/wire_transfers" +require "increase/resources/check_transfers" +require "increase/resources/entities" +require "increase/resources/entities/beneficial_owners" +require "increase/resources/entities/supplemental_documents" +require "increase/resources/entities/industry_code" +require "increase/resources/inbound_ach_transfers" +require "increase/resources/inbound_wire_drawdown_requests" +require "increase/resources/wire_drawdown_requests" +require "increase/resources/events" +require "increase/resources/event_subscriptions" +require "increase/resources/files" +require "increase/resources/groups" +require "increase/resources/oauth_connections" +require "increase/resources/check_deposits" +require "increase/resources/routing_numbers" +require "increase/resources/account_statements" +require "increase/resources/simulations" +require "increase/resources/simulations/account_transfers" +require "increase/resources/simulations/account_statements" +require "increase/resources/simulations/ach_transfers" +require "increase/resources/simulations/card_disputes" +require "increase/resources/simulations/card_refunds" +require "increase/resources/simulations/check_transfers" +require "increase/resources/simulations/documents" +require "increase/resources/simulations/digital_wallet_token_requests" +require "increase/resources/simulations/check_deposits" +require "increase/resources/simulations/programs" +require "increase/resources/simulations/inbound_wire_drawdown_requests" +require "increase/resources/simulations/inbound_funds_holds" +require "increase/resources/simulations/interest_payments" +require "increase/resources/simulations/wire_transfers" +require "increase/resources/simulations/cards" +require "increase/resources/simulations/real_time_payments_transfers" +require "increase/resources/simulations/physical_cards" +require "increase/resources/simulations/inbound_check_deposits" +require "increase/resources/physical_cards" +require "increase/resources/card_payments" +require "increase/resources/proof_of_authorization_requests" +require "increase/resources/proof_of_authorization_request_submissions" +require "increase/resources/intrafi" +require "increase/resources/intrafi/account_enrollments" +require "increase/resources/intrafi/balances" +require "increase/resources/intrafi/exclusions" +require "increase/resources/real_time_payments_request_for_payments" +require "increase/resources/oauth_tokens" +require "increase/resources/inbound_wire_transfers" +require "increase/resources/digital_card_profiles" +require "increase/resources/physical_card_profiles" +require "increase/resources/inbound_check_deposits" +require "increase/client" diff --git a/lib/increase/models/ach_transfer.rb b/lib/increase/models/ach_transfer.rb index b62e493..2babde9 100644 --- a/lib/increase/models/ach_transfer.rb +++ b/lib/increase/models/ach_transfer.rb @@ -213,7 +213,12 @@ class Freeform < BaseModel # @!attribute [rw] entries # Each entry represents an addendum sent with the transfer. # @return [Array] - required :entries, Increase::ArrayOf.new(-> { Increase::Models::ACHTransfer::Addenda::Freeform::Entry }) + required :entries, + Increase::ArrayOf.new( + lambda { + Increase::Models::ACHTransfer::Addenda::Freeform::Entry + } + ) class Entry < BaseModel # @!attribute [rw] payment_related_information @@ -228,7 +233,11 @@ class PaymentOrderRemittanceAdvice < BaseModel # ASC X12 RMR records for this specific transfer. # @return [Array] required :invoices, - Increase::ArrayOf.new(-> { Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice }) + Increase::ArrayOf.new( + lambda { + Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice::Invoice + } + ) class Invoice < BaseModel # @!attribute [rw] invoice_number diff --git a/lib/increase/models/card_authorization_simulation.rb b/lib/increase/models/card_authorization_simulation.rb index 1c0c608..515a9b4 100644 --- a/lib/increase/models/card_authorization_simulation.rb +++ b/lib/increase/models/card_authorization_simulation.rb @@ -6,7 +6,10 @@ class CardAuthorizationSimulation < BaseModel # @!attribute [rw] declined_transaction # If the authorization attempt fails, this will contain the resulting [Declined Transaction](#declined-transactions) object. The Declined Transaction's `source` will be of `category: card_decline`. # @return [Increase::Models::CardAuthorizationSimulation::DeclinedTransaction] - required :declined_transaction, -> { Increase::Models::CardAuthorizationSimulation::DeclinedTransaction } + required :declined_transaction, + lambda { + Increase::Models::CardAuthorizationSimulation::DeclinedTransaction + } # @!attribute [rw] pending_transaction # If the authorization attempt succeeds, this will contain the resulting Pending Transaction object. The Pending Transaction's `source` will be of `category: card_authorization`. diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index bad0896..9ffe5b5 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -236,7 +236,10 @@ class CardAuthorization < BaseModel # @!attribute [rw] verification # Fields related to verification of cardholder-provided values. # @return [Increase::Models::CardPayment::Element::CardAuthorization::Verification] - required :verification, -> { Increase::Models::CardPayment::Element::CardAuthorization::Verification } + required :verification, + lambda { + Increase::Models::CardPayment::Element::CardAuthorization::Verification + } class NetworkDetails < BaseModel # @!attribute [rw] category @@ -247,7 +250,10 @@ class NetworkDetails < BaseModel # @!attribute [rw] visa # Fields specific to the `visa` network. # @return [Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa] - required :visa, -> { Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa } + required :visa, + lambda { + Increase::Models::CardPayment::Element::CardAuthorization::NetworkDetails::Visa + } class Visa < BaseModel # @!attribute [rw] electronic_commerce_indicator @@ -454,7 +460,10 @@ class CardDecline < BaseModel # @!attribute [rw] network_details # Fields specific to the `network`. # @return [Increase::Models::CardPayment::Element::CardDecline::NetworkDetails] - required :network_details, -> { Increase::Models::CardPayment::Element::CardDecline::NetworkDetails } + required :network_details, + lambda { + Increase::Models::CardPayment::Element::CardDecline::NetworkDetails + } # @!attribute [rw] network_identifiers # Network-specific identifiers for a specific request or transaction. @@ -846,7 +855,10 @@ class CardRefund < BaseModel # @!attribute [rw] purchase_details # Additional details about the card purchase, such as tax and industry-specific fields. # @return [Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails] - required :purchase_details, -> { Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails } + required :purchase_details, + lambda { + Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails + } # @!attribute [rw] transaction_id # The identifier of the Transaction associated with this Transaction. @@ -900,7 +912,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] lodging # Fields specific to lodging. # @return [Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging] - required :lodging, -> { Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging } + required :lodging, + lambda { + Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Lodging + } # @!attribute [rw] national_tax_amount # The national tax amount in minor units. @@ -932,7 +947,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] travel # Fields specific to travel. # @return [Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel] - required :travel, -> { Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel } + required :travel, + lambda { + Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel + } class CarRental < BaseModel # @!attribute [rw] car_class_code @@ -996,7 +1014,8 @@ class CarRental < BaseModel # @!attribute [rw] no_show_indicator # An indicator that the cardholder is being billed for a reserved vehicle that was not actually rented (that is, a "no-show" charge). # @return [Symbol] - required :no_show_indicator, Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) + required :no_show_indicator, + Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) # @!attribute [rw] one_way_drop_off_charges_amount # Charges for returning the vehicle at a different location than where it was picked up. @@ -1044,7 +1063,15 @@ class Lodging < BaseModel # Additional charges (phone, late check-out, etc.) being billed. # @return [Symbol] required :extra_charges, - Increase::Enum.new(:no_extra_charge, :restaurant, :gift_shop, :mini_bar, :telephone, :other, :laundry) + Increase::Enum.new( + :no_extra_charge, + :restaurant, + :gift_shop, + :mini_bar, + :telephone, + :other, + :laundry + ) # @!attribute [rw] folio_cash_advances_amount # Folio cash advances for the room. @@ -1156,7 +1183,8 @@ class Travel < BaseModel # @!attribute [rw] ticket_change_indicator # Indicates why a ticket was changed. # @return [Symbol] - required :ticket_change_indicator, Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) + required :ticket_change_indicator, + Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) # @!attribute [rw] ticket_number # Ticket number. @@ -1177,7 +1205,11 @@ class Travel < BaseModel # Fields specific to each leg of the journey. # @return [Array] required :trip_legs, - Increase::ArrayOf.new(-> { Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg }) + Increase::ArrayOf.new( + lambda { + Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg + } + ) class Ancillary < BaseModel # @!attribute [rw] connected_ticket_document_number @@ -1205,7 +1237,11 @@ class Ancillary < BaseModel # Additional travel charges, such as baggage fees. # @return [Array] required :services, - Increase::ArrayOf.new(-> { Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service }) + Increase::ArrayOf.new( + lambda { + Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service + } + ) # @!attribute [rw] ticket_document_number # Ticket document number. @@ -1280,7 +1316,8 @@ class TripLeg < BaseModel # @!attribute [rw] stop_over_code # Indicates whether a stopover is allowed on this ticket. # @return [Symbol] - required :stop_over_code, Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) + required :stop_over_code, + Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) end end end @@ -1431,7 +1468,10 @@ class CardSettlement < BaseModel # @!attribute [rw] purchase_details # Additional details about the card purchase, such as tax and industry-specific fields. # @return [Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails] - required :purchase_details, -> { Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails } + required :purchase_details, + lambda { + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails + } # @!attribute [rw] transaction_id # The identifier of the Transaction associated with this Transaction. @@ -1485,7 +1525,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] lodging # Fields specific to lodging. # @return [Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging] - required :lodging, -> { Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging } + required :lodging, + lambda { + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Lodging + } # @!attribute [rw] national_tax_amount # The national tax amount in minor units. @@ -1517,7 +1560,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] travel # Fields specific to travel. # @return [Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel] - required :travel, -> { Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel } + required :travel, + lambda { + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel + } class CarRental < BaseModel # @!attribute [rw] car_class_code @@ -1581,7 +1627,8 @@ class CarRental < BaseModel # @!attribute [rw] no_show_indicator # An indicator that the cardholder is being billed for a reserved vehicle that was not actually rented (that is, a "no-show" charge). # @return [Symbol] - required :no_show_indicator, Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) + required :no_show_indicator, + Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) # @!attribute [rw] one_way_drop_off_charges_amount # Charges for returning the vehicle at a different location than where it was picked up. @@ -1629,7 +1676,15 @@ class Lodging < BaseModel # Additional charges (phone, late check-out, etc.) being billed. # @return [Symbol] required :extra_charges, - Increase::Enum.new(:no_extra_charge, :restaurant, :gift_shop, :mini_bar, :telephone, :other, :laundry) + Increase::Enum.new( + :no_extra_charge, + :restaurant, + :gift_shop, + :mini_bar, + :telephone, + :other, + :laundry + ) # @!attribute [rw] folio_cash_advances_amount # Folio cash advances for the room. @@ -1741,7 +1796,8 @@ class Travel < BaseModel # @!attribute [rw] ticket_change_indicator # Indicates why a ticket was changed. # @return [Symbol] - required :ticket_change_indicator, Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) + required :ticket_change_indicator, + Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) # @!attribute [rw] ticket_number # Ticket number. @@ -1762,7 +1818,11 @@ class Travel < BaseModel # Fields specific to each leg of the journey. # @return [Array] required :trip_legs, - Increase::ArrayOf.new(-> { Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg }) + Increase::ArrayOf.new( + lambda { + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg + } + ) class Ancillary < BaseModel # @!attribute [rw] connected_ticket_document_number @@ -1790,7 +1850,11 @@ class Ancillary < BaseModel # Additional travel charges, such as baggage fees. # @return [Array] required :services, - Increase::ArrayOf.new(-> { Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service }) + Increase::ArrayOf.new( + lambda { + Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary::Service + } + ) # @!attribute [rw] ticket_document_number # Ticket document number. @@ -1865,7 +1929,8 @@ class TripLeg < BaseModel # @!attribute [rw] stop_over_code # Indicates whether a stopover is allowed on this ticket. # @return [Symbol] - required :stop_over_code, Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) + required :stop_over_code, + Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) end end end @@ -1925,7 +1990,10 @@ class CardValidation < BaseModel # @!attribute [rw] network_details # Fields specific to the `network`. # @return [Increase::Models::CardPayment::Element::CardValidation::NetworkDetails] - required :network_details, -> { Increase::Models::CardPayment::Element::CardValidation::NetworkDetails } + required :network_details, + lambda { + Increase::Models::CardPayment::Element::CardValidation::NetworkDetails + } # @!attribute [rw] network_identifiers # Network-specific identifiers for a specific request or transaction. @@ -1967,7 +2035,10 @@ class NetworkDetails < BaseModel # @!attribute [rw] visa # Fields specific to the `visa` network. # @return [Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa] - required :visa, -> { Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa } + required :visa, + lambda { + Increase::Models::CardPayment::Element::CardValidation::NetworkDetails::Visa + } class Visa < BaseModel # @!attribute [rw] electronic_commerce_indicator diff --git a/lib/increase/models/declined_transaction.rb b/lib/increase/models/declined_transaction.rb index dda67c9..11c5a9e 100644 --- a/lib/increase/models/declined_transaction.rb +++ b/lib/increase/models/declined_transaction.rb @@ -320,7 +320,10 @@ class CardDecline < BaseModel # @!attribute [rw] verification # Fields related to verification of cardholder-provided values. # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::Verification] - required :verification, -> { Increase::Models::DeclinedTransaction::Source::CardDecline::Verification } + required :verification, + lambda { + Increase::Models::DeclinedTransaction::Source::CardDecline::Verification + } class NetworkDetails < BaseModel # @!attribute [rw] category @@ -331,7 +334,10 @@ class NetworkDetails < BaseModel # @!attribute [rw] visa # Fields specific to the `visa` network. # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa] - required :visa, -> { Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa } + required :visa, + lambda { + Increase::Models::DeclinedTransaction::Source::CardDecline::NetworkDetails::Visa + } class Visa < BaseModel # @!attribute [rw] electronic_commerce_indicator diff --git a/lib/increase/models/digital_wallet_token_request_create_response.rb b/lib/increase/models/digital_wallet_token_request_create_response.rb index e0da553..5403e42 100644 --- a/lib/increase/models/digital_wallet_token_request_create_response.rb +++ b/lib/increase/models/digital_wallet_token_request_create_response.rb @@ -7,7 +7,12 @@ class DigitalWalletTokenRequestCreateResponse < BaseModel # If the simulated tokenization attempt was declined, this field contains details as to why. # @return [Symbol] required :decline_reason, - Increase::Enum.new(:card_not_active, :no_verification_method, :webhook_timed_out, :webhook_declined) + Increase::Enum.new( + :card_not_active, + :no_verification_method, + :webhook_timed_out, + :webhook_declined + ) # @!attribute [rw] digital_wallet_token_id # If the simulated tokenization attempt was accepted, this field contains the id of the Digital Wallet Token that was created. diff --git a/lib/increase/models/entity.rb b/lib/increase/models/entity.rb index 7716527..cfb6ba0 100644 --- a/lib/increase/models/entity.rb +++ b/lib/increase/models/entity.rb @@ -164,7 +164,10 @@ class Individual < BaseModel # @!attribute [rw] address # The person's address. # @return [Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address] - required :address, -> { Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address } + required :address, + lambda { + Increase::Models::Entity::Corporation::BeneficialOwner::Individual::Address + } # @!attribute [rw] date_of_birth # The person's date of birth in YYYY-MM-DD format. @@ -634,7 +637,10 @@ class Individual < BaseModel # @!attribute [rw] identification # A means of verifying the person's identity. # @return [Increase::Models::Entity::Trust::Trustee::Individual::Identification] - required :identification, -> { Increase::Models::Entity::Trust::Trustee::Individual::Identification } + required :identification, + lambda { + Increase::Models::Entity::Trust::Trustee::Individual::Identification + } # @!attribute [rw] name_ # The person's legal name. diff --git a/lib/increase/models/event.rb b/lib/increase/models/event.rb index 6827207..8c54a24 100644 --- a/lib/increase/models/event.rb +++ b/lib/increase/models/event.rb @@ -23,88 +23,88 @@ class Event < BaseModel # @return [Symbol] required :category, Increase::Enum.new( - :'account.created', - :'account.updated', - :'account_number.created', - :'account_number.updated', - :'account_statement.created', - :'account_transfer.created', - :'account_transfer.updated', - :'ach_prenotification.created', - :'ach_prenotification.updated', - :'ach_transfer.created', - :'ach_transfer.updated', - :'bookkeeping_account.created', - :'bookkeeping_account.updated', - :'bookkeeping_entry_set.updated', - :'card.created', - :'card.updated', - :'card_payment.created', - :'card_payment.updated', - :'card_profile.created', - :'card_profile.updated', - :'card_dispute.created', - :'card_dispute.updated', - :'check_deposit.created', - :'check_deposit.updated', - :'check_transfer.created', - :'check_transfer.updated', - :'declined_transaction.created', - :'digital_card_profile.created', - :'digital_card_profile.updated', - :'digital_wallet_token.created', - :'digital_wallet_token.updated', - :'document.created', - :'entity.created', - :'entity.updated', - :'event_subscription.created', - :'event_subscription.updated', - :'export.created', - :'export.updated', - :'external_account.created', - :'external_account.updated', - :'file.created', - :'group.updated', - :'group.heartbeat', - :'inbound_ach_transfer.created', - :'inbound_ach_transfer.updated', - :'inbound_ach_transfer_return.created', - :'inbound_ach_transfer_return.updated', - :'inbound_check_deposit.created', - :'inbound_check_deposit.updated', - :'inbound_mail_item.created', - :'inbound_mail_item.updated', - :'inbound_wire_drawdown_request.created', - :'inbound_wire_transfer.created', - :'inbound_wire_transfer.updated', - :'intrafi_account_enrollment.created', - :'intrafi_account_enrollment.updated', - :'intrafi_exclusion.created', - :'intrafi_exclusion.updated', - :'oauth_connection.created', - :'oauth_connection.deactivated', - :'pending_transaction.created', - :'pending_transaction.updated', - :'physical_card.created', - :'physical_card.updated', - :'physical_card_profile.created', - :'physical_card_profile.updated', - :'proof_of_authorization_request.created', - :'proof_of_authorization_request.updated', - :'proof_of_authorization_request_submission.created', - :'proof_of_authorization_request_submission.updated', - :'real_time_decision.card_authorization_requested', - :'real_time_decision.digital_wallet_token_requested', - :'real_time_decision.digital_wallet_authentication_requested', - :'real_time_payments_transfer.created', - :'real_time_payments_transfer.updated', - :'real_time_payments_request_for_payment.created', - :'real_time_payments_request_for_payment.updated', - :'transaction.created', - :'wire_drawdown_request.created', - :'wire_drawdown_request.updated', - :'wire_transfer.created', - :'wire_transfer.updated' + :"account.created", + :"account.updated", + :"account_number.created", + :"account_number.updated", + :"account_statement.created", + :"account_transfer.created", + :"account_transfer.updated", + :"ach_prenotification.created", + :"ach_prenotification.updated", + :"ach_transfer.created", + :"ach_transfer.updated", + :"bookkeeping_account.created", + :"bookkeeping_account.updated", + :"bookkeeping_entry_set.updated", + :"card.created", + :"card.updated", + :"card_payment.created", + :"card_payment.updated", + :"card_profile.created", + :"card_profile.updated", + :"card_dispute.created", + :"card_dispute.updated", + :"check_deposit.created", + :"check_deposit.updated", + :"check_transfer.created", + :"check_transfer.updated", + :"declined_transaction.created", + :"digital_card_profile.created", + :"digital_card_profile.updated", + :"digital_wallet_token.created", + :"digital_wallet_token.updated", + :"document.created", + :"entity.created", + :"entity.updated", + :"event_subscription.created", + :"event_subscription.updated", + :"export.created", + :"export.updated", + :"external_account.created", + :"external_account.updated", + :"file.created", + :"group.updated", + :"group.heartbeat", + :"inbound_ach_transfer.created", + :"inbound_ach_transfer.updated", + :"inbound_ach_transfer_return.created", + :"inbound_ach_transfer_return.updated", + :"inbound_check_deposit.created", + :"inbound_check_deposit.updated", + :"inbound_mail_item.created", + :"inbound_mail_item.updated", + :"inbound_wire_drawdown_request.created", + :"inbound_wire_transfer.created", + :"inbound_wire_transfer.updated", + :"intrafi_account_enrollment.created", + :"intrafi_account_enrollment.updated", + :"intrafi_exclusion.created", + :"intrafi_exclusion.updated", + :"oauth_connection.created", + :"oauth_connection.deactivated", + :"pending_transaction.created", + :"pending_transaction.updated", + :"physical_card.created", + :"physical_card.updated", + :"physical_card_profile.created", + :"physical_card_profile.updated", + :"proof_of_authorization_request.created", + :"proof_of_authorization_request.updated", + :"proof_of_authorization_request_submission.created", + :"proof_of_authorization_request_submission.updated", + :"real_time_decision.card_authorization_requested", + :"real_time_decision.digital_wallet_token_requested", + :"real_time_decision.digital_wallet_authentication_requested", + :"real_time_payments_transfer.created", + :"real_time_payments_transfer.updated", + :"real_time_payments_request_for_payment.created", + :"real_time_payments_request_for_payment.updated", + :"transaction.created", + :"wire_drawdown_request.created", + :"wire_drawdown_request.updated", + :"wire_transfer.created", + :"wire_transfer.updated" ) # @!attribute [rw] created_at diff --git a/lib/increase/models/event_subscription.rb b/lib/increase/models/event_subscription.rb index 0b9f54a..5094e4c 100644 --- a/lib/increase/models/event_subscription.rb +++ b/lib/increase/models/event_subscription.rb @@ -28,88 +28,88 @@ class EventSubscription < BaseModel # @return [Symbol] required :selected_event_category, Increase::Enum.new( - :'account.created', - :'account.updated', - :'account_number.created', - :'account_number.updated', - :'account_statement.created', - :'account_transfer.created', - :'account_transfer.updated', - :'ach_prenotification.created', - :'ach_prenotification.updated', - :'ach_transfer.created', - :'ach_transfer.updated', - :'bookkeeping_account.created', - :'bookkeeping_account.updated', - :'bookkeeping_entry_set.updated', - :'card.created', - :'card.updated', - :'card_payment.created', - :'card_payment.updated', - :'card_profile.created', - :'card_profile.updated', - :'card_dispute.created', - :'card_dispute.updated', - :'check_deposit.created', - :'check_deposit.updated', - :'check_transfer.created', - :'check_transfer.updated', - :'declined_transaction.created', - :'digital_card_profile.created', - :'digital_card_profile.updated', - :'digital_wallet_token.created', - :'digital_wallet_token.updated', - :'document.created', - :'entity.created', - :'entity.updated', - :'event_subscription.created', - :'event_subscription.updated', - :'export.created', - :'export.updated', - :'external_account.created', - :'external_account.updated', - :'file.created', - :'group.updated', - :'group.heartbeat', - :'inbound_ach_transfer.created', - :'inbound_ach_transfer.updated', - :'inbound_ach_transfer_return.created', - :'inbound_ach_transfer_return.updated', - :'inbound_check_deposit.created', - :'inbound_check_deposit.updated', - :'inbound_mail_item.created', - :'inbound_mail_item.updated', - :'inbound_wire_drawdown_request.created', - :'inbound_wire_transfer.created', - :'inbound_wire_transfer.updated', - :'intrafi_account_enrollment.created', - :'intrafi_account_enrollment.updated', - :'intrafi_exclusion.created', - :'intrafi_exclusion.updated', - :'oauth_connection.created', - :'oauth_connection.deactivated', - :'pending_transaction.created', - :'pending_transaction.updated', - :'physical_card.created', - :'physical_card.updated', - :'physical_card_profile.created', - :'physical_card_profile.updated', - :'proof_of_authorization_request.created', - :'proof_of_authorization_request.updated', - :'proof_of_authorization_request_submission.created', - :'proof_of_authorization_request_submission.updated', - :'real_time_decision.card_authorization_requested', - :'real_time_decision.digital_wallet_token_requested', - :'real_time_decision.digital_wallet_authentication_requested', - :'real_time_payments_transfer.created', - :'real_time_payments_transfer.updated', - :'real_time_payments_request_for_payment.created', - :'real_time_payments_request_for_payment.updated', - :'transaction.created', - :'wire_drawdown_request.created', - :'wire_drawdown_request.updated', - :'wire_transfer.created', - :'wire_transfer.updated' + :"account.created", + :"account.updated", + :"account_number.created", + :"account_number.updated", + :"account_statement.created", + :"account_transfer.created", + :"account_transfer.updated", + :"ach_prenotification.created", + :"ach_prenotification.updated", + :"ach_transfer.created", + :"ach_transfer.updated", + :"bookkeeping_account.created", + :"bookkeeping_account.updated", + :"bookkeeping_entry_set.updated", + :"card.created", + :"card.updated", + :"card_payment.created", + :"card_payment.updated", + :"card_profile.created", + :"card_profile.updated", + :"card_dispute.created", + :"card_dispute.updated", + :"check_deposit.created", + :"check_deposit.updated", + :"check_transfer.created", + :"check_transfer.updated", + :"declined_transaction.created", + :"digital_card_profile.created", + :"digital_card_profile.updated", + :"digital_wallet_token.created", + :"digital_wallet_token.updated", + :"document.created", + :"entity.created", + :"entity.updated", + :"event_subscription.created", + :"event_subscription.updated", + :"export.created", + :"export.updated", + :"external_account.created", + :"external_account.updated", + :"file.created", + :"group.updated", + :"group.heartbeat", + :"inbound_ach_transfer.created", + :"inbound_ach_transfer.updated", + :"inbound_ach_transfer_return.created", + :"inbound_ach_transfer_return.updated", + :"inbound_check_deposit.created", + :"inbound_check_deposit.updated", + :"inbound_mail_item.created", + :"inbound_mail_item.updated", + :"inbound_wire_drawdown_request.created", + :"inbound_wire_transfer.created", + :"inbound_wire_transfer.updated", + :"intrafi_account_enrollment.created", + :"intrafi_account_enrollment.updated", + :"intrafi_exclusion.created", + :"intrafi_exclusion.updated", + :"oauth_connection.created", + :"oauth_connection.deactivated", + :"pending_transaction.created", + :"pending_transaction.updated", + :"physical_card.created", + :"physical_card.updated", + :"physical_card_profile.created", + :"physical_card_profile.updated", + :"proof_of_authorization_request.created", + :"proof_of_authorization_request.updated", + :"proof_of_authorization_request_submission.created", + :"proof_of_authorization_request_submission.updated", + :"real_time_decision.card_authorization_requested", + :"real_time_decision.digital_wallet_token_requested", + :"real_time_decision.digital_wallet_authentication_requested", + :"real_time_payments_transfer.created", + :"real_time_payments_transfer.updated", + :"real_time_payments_request_for_payment.created", + :"real_time_payments_request_for_payment.updated", + :"transaction.created", + :"wire_drawdown_request.created", + :"wire_drawdown_request.updated", + :"wire_transfer.created", + :"wire_transfer.updated" ) # @!attribute [rw] status diff --git a/lib/increase/models/inbound_ach_transfer.rb b/lib/increase/models/inbound_ach_transfer.rb index 86e45d5..bf632a5 100644 --- a/lib/increase/models/inbound_ach_transfer.rb +++ b/lib/increase/models/inbound_ach_transfer.rb @@ -141,7 +141,11 @@ class Freeform < BaseModel # Each entry represents an addendum received from the originator. # @return [Array] required :entries, - Increase::ArrayOf.new(-> { Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry }) + Increase::ArrayOf.new( + lambda { + Increase::Models::InboundACHTransfer::Addenda::Freeform::Entry + } + ) class Entry < BaseModel # @!attribute [rw] payment_related_information diff --git a/lib/increase/models/inbound_real_time_payments_transfer_simulation_result.rb b/lib/increase/models/inbound_real_time_payments_transfer_simulation_result.rb index 5d71cdb..90132de 100644 --- a/lib/increase/models/inbound_real_time_payments_transfer_simulation_result.rb +++ b/lib/increase/models/inbound_real_time_payments_transfer_simulation_result.rb @@ -1492,7 +1492,8 @@ class CarRental < BaseModel # @!attribute [rw] no_show_indicator # An indicator that the cardholder is being billed for a reserved vehicle that was not actually rented (that is, a "no-show" charge). # @return [Symbol] - required :no_show_indicator, Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) + required :no_show_indicator, + Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) # @!attribute [rw] one_way_drop_off_charges_amount # Charges for returning the vehicle at a different location than where it was picked up. @@ -1540,7 +1541,15 @@ class Lodging < BaseModel # Additional charges (phone, late check-out, etc.) being billed. # @return [Symbol] required :extra_charges, - Increase::Enum.new(:no_extra_charge, :restaurant, :gift_shop, :mini_bar, :telephone, :other, :laundry) + Increase::Enum.new( + :no_extra_charge, + :restaurant, + :gift_shop, + :mini_bar, + :telephone, + :other, + :laundry + ) # @!attribute [rw] folio_cash_advances_amount # Folio cash advances for the room. @@ -1652,7 +1661,8 @@ class Travel < BaseModel # @!attribute [rw] ticket_change_indicator # Indicates why a ticket was changed. # @return [Symbol] - required :ticket_change_indicator, Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) + required :ticket_change_indicator, + Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) # @!attribute [rw] ticket_number # Ticket number. @@ -1673,7 +1683,11 @@ class Travel < BaseModel # Fields specific to each leg of the journey. # @return [Array] required :trip_legs, - Increase::ArrayOf.new(-> { Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg }) + Increase::ArrayOf.new( + lambda { + Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg + } + ) class Ancillary < BaseModel # @!attribute [rw] connected_ticket_document_number @@ -1701,7 +1715,11 @@ class Ancillary < BaseModel # Additional travel charges, such as baggage fees. # @return [Array] required :services, - Increase::ArrayOf.new(-> { Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service }) + Increase::ArrayOf.new( + lambda { + Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service + } + ) # @!attribute [rw] ticket_document_number # Ticket document number. @@ -1776,7 +1794,8 @@ class TripLeg < BaseModel # @!attribute [rw] stop_over_code # Indicates whether a stopover is allowed on this ticket. # @return [Symbol] - required :stop_over_code, Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) + required :stop_over_code, + Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) end end end @@ -2042,7 +2061,8 @@ class CarRental < BaseModel # @!attribute [rw] no_show_indicator # An indicator that the cardholder is being billed for a reserved vehicle that was not actually rented (that is, a "no-show" charge). # @return [Symbol] - required :no_show_indicator, Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) + required :no_show_indicator, + Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) # @!attribute [rw] one_way_drop_off_charges_amount # Charges for returning the vehicle at a different location than where it was picked up. @@ -2090,7 +2110,15 @@ class Lodging < BaseModel # Additional charges (phone, late check-out, etc.) being billed. # @return [Symbol] required :extra_charges, - Increase::Enum.new(:no_extra_charge, :restaurant, :gift_shop, :mini_bar, :telephone, :other, :laundry) + Increase::Enum.new( + :no_extra_charge, + :restaurant, + :gift_shop, + :mini_bar, + :telephone, + :other, + :laundry + ) # @!attribute [rw] folio_cash_advances_amount # Folio cash advances for the room. @@ -2202,7 +2230,8 @@ class Travel < BaseModel # @!attribute [rw] ticket_change_indicator # Indicates why a ticket was changed. # @return [Symbol] - required :ticket_change_indicator, Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) + required :ticket_change_indicator, + Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) # @!attribute [rw] ticket_number # Ticket number. @@ -2223,7 +2252,11 @@ class Travel < BaseModel # Fields specific to each leg of the journey. # @return [Array] required :trip_legs, - Increase::ArrayOf.new(-> { Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg }) + Increase::ArrayOf.new( + lambda { + Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg + } + ) class Ancillary < BaseModel # @!attribute [rw] connected_ticket_document_number @@ -2251,7 +2284,11 @@ class Ancillary < BaseModel # Additional travel charges, such as baggage fees. # @return [Array] required :services, - Increase::ArrayOf.new(-> { Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service }) + Increase::ArrayOf.new( + lambda { + Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service + } + ) # @!attribute [rw] ticket_document_number # Ticket document number. @@ -2326,7 +2363,8 @@ class TripLeg < BaseModel # @!attribute [rw] stop_over_code # Indicates whether a stopover is allowed on this ticket. # @return [Symbol] - required :stop_over_code, Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) + required :stop_over_code, + Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) end end end @@ -2503,7 +2541,12 @@ class CheckTransferStopPaymentRequest < BaseModel # The reason why this transfer was stopped. # @return [Symbol] required :reason, - Increase::Enum.new(:mail_delivery_failed, :rejected_by_increase, :not_authorized, :unknown) + Increase::Enum.new( + :mail_delivery_failed, + :rejected_by_increase, + :not_authorized, + :unknown + ) # @!attribute [rw] requested_at # The time the stop-payment was requested. @@ -2612,7 +2655,11 @@ class Freeform < BaseModel # Each entry represents an addendum received from the originator. # @return [Array] required :entries, - Increase::ArrayOf.new(-> { Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry }) + Increase::ArrayOf.new( + lambda { + Increase::Models::InboundRealTimePaymentsTransferSimulationResult::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry + } + ) class Entry < BaseModel # @!attribute [rw] payment_related_information diff --git a/lib/increase/models/intrafi_account_enrollment.rb b/lib/increase/models/intrafi_account_enrollment.rb index 4fd1cd9..797a4fb 100644 --- a/lib/increase/models/intrafi_account_enrollment.rb +++ b/lib/increase/models/intrafi_account_enrollment.rb @@ -27,7 +27,13 @@ class IntrafiAccountEnrollment < BaseModel # The status of the account in the network. An account takes about one business day to go from `pending_enrolling` to `enrolled`. # @return [Symbol] required :status, - Increase::Enum.new(:pending_enrolling, :enrolled, :pending_unenrolling, :unenrolled, :requires_attention) + Increase::Enum.new( + :pending_enrolling, + :enrolled, + :pending_unenrolling, + :unenrolled, + :requires_attention + ) # @!attribute [rw] type # A constant representing the object's type. For this resource it will always be `intrafi_account_enrollment`. diff --git a/lib/increase/models/physical_card.rb b/lib/increase/models/physical_card.rb index c039660..50178e6 100644 --- a/lib/increase/models/physical_card.rb +++ b/lib/increase/models/physical_card.rb @@ -75,7 +75,15 @@ class Shipment < BaseModel # The status of this shipment. # @return [Symbol] required :status, - Increase::Enum.new(:pending, :canceled, :submitted, :acknowledged, :rejected, :shipped, :returned) + Increase::Enum.new( + :pending, + :canceled, + :submitted, + :acknowledged, + :rejected, + :shipped, + :returned + ) # @!attribute [rw] tracking # Tracking details for the shipment. diff --git a/lib/increase/models/real_time_decision.rb b/lib/increase/models/real_time_decision.rb index 7303eb4..1c7ac4e 100644 --- a/lib/increase/models/real_time_decision.rb +++ b/lib/increase/models/real_time_decision.rb @@ -103,7 +103,10 @@ class CardAuthorization < BaseModel # @!attribute [rw] network_details # Fields specific to the `network`. # @return [Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails] - required :network_details, -> { Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails } + required :network_details, + lambda { + Increase::Models::RealTimeDecision::CardAuthorization::NetworkDetails + } # @!attribute [rw] network_identifiers # Network-specific identifiers for a specific request or transaction. @@ -147,7 +150,10 @@ class CardAuthorization < BaseModel # @!attribute [rw] request_details # Fields specific to the type of request, such as an incremental authorization. # @return [Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails] - required :request_details, -> { Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails } + required :request_details, + lambda { + Increase::Models::RealTimeDecision::CardAuthorization::RequestDetails + } # @!attribute [rw] settlement_amount # The amount of the attempted authorization in the currency it will be settled in. This currency is the same as that of the Account the card belongs to. diff --git a/lib/increase/models/real_time_payments_request_for_payment.rb b/lib/increase/models/real_time_payments_request_for_payment.rb index f90ead2..172aa72 100644 --- a/lib/increase/models/real_time_payments_request_for_payment.rb +++ b/lib/increase/models/real_time_payments_request_for_payment.rb @@ -77,7 +77,14 @@ class RealTimePaymentsRequestForPayment < BaseModel # The lifecycle status of the request for payment. # @return [Symbol] required :status, - Increase::Enum.new(:pending_submission, :pending_response, :rejected, :accepted, :refused, :fulfilled) + Increase::Enum.new( + :pending_submission, + :pending_response, + :rejected, + :accepted, + :refused, + :fulfilled + ) # @!attribute [rw] submission # After the request for payment is submitted to Real-Time Payments, this will contain supplemental details. diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index 1453bf6..31a7eb3 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -140,7 +140,10 @@ class Source < BaseModel # @!attribute [rw] check_deposit_acceptance # A Check Deposit Acceptance object. This field will be present in the JSON response if and only if `category` is equal to `check_deposit_acceptance`. # @return [Increase::Models::Transaction::Source::CheckDepositAcceptance] - required :check_deposit_acceptance, -> { Increase::Models::Transaction::Source::CheckDepositAcceptance } + required :check_deposit_acceptance, + lambda { + Increase::Models::Transaction::Source::CheckDepositAcceptance + } # @!attribute [rw] check_deposit_return # A Check Deposit Return object. This field will be present in the JSON response if and only if `category` is equal to `check_deposit_return`. @@ -474,7 +477,10 @@ class CardRefund < BaseModel # @!attribute [rw] purchase_details # Additional details about the card purchase, such as tax and industry-specific fields. # @return [Increase::Models::Transaction::Source::CardRefund::PurchaseDetails] - required :purchase_details, -> { Increase::Models::Transaction::Source::CardRefund::PurchaseDetails } + required :purchase_details, + lambda { + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails + } # @!attribute [rw] transaction_id # The identifier of the Transaction associated with this Transaction. @@ -507,7 +513,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] car_rental # Fields specific to car rentals. # @return [Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental] - required :car_rental, -> { Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental } + required :car_rental, + lambda { + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental + } # @!attribute [rw] customer_reference_identifier # An identifier from the merchant for the customer or consumer. @@ -527,7 +536,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] lodging # Fields specific to lodging. # @return [Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging] - required :lodging, -> { Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging } + required :lodging, + lambda { + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging + } # @!attribute [rw] national_tax_amount # The national tax amount in minor units. @@ -559,7 +571,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] travel # Fields specific to travel. # @return [Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel] - required :travel, -> { Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel } + required :travel, + lambda { + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel + } class CarRental < BaseModel # @!attribute [rw] car_class_code @@ -623,7 +638,8 @@ class CarRental < BaseModel # @!attribute [rw] no_show_indicator # An indicator that the cardholder is being billed for a reserved vehicle that was not actually rented (that is, a "no-show" charge). # @return [Symbol] - required :no_show_indicator, Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) + required :no_show_indicator, + Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) # @!attribute [rw] one_way_drop_off_charges_amount # Charges for returning the vehicle at a different location than where it was picked up. @@ -671,7 +687,15 @@ class Lodging < BaseModel # Additional charges (phone, late check-out, etc.) being billed. # @return [Symbol] required :extra_charges, - Increase::Enum.new(:no_extra_charge, :restaurant, :gift_shop, :mini_bar, :telephone, :other, :laundry) + Increase::Enum.new( + :no_extra_charge, + :restaurant, + :gift_shop, + :mini_bar, + :telephone, + :other, + :laundry + ) # @!attribute [rw] folio_cash_advances_amount # Folio cash advances for the room. @@ -783,7 +807,8 @@ class Travel < BaseModel # @!attribute [rw] ticket_change_indicator # Indicates why a ticket was changed. # @return [Symbol] - required :ticket_change_indicator, Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) + required :ticket_change_indicator, + Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) # @!attribute [rw] ticket_number # Ticket number. @@ -804,7 +829,11 @@ class Travel < BaseModel # Fields specific to each leg of the journey. # @return [Array] required :trip_legs, - Increase::ArrayOf.new(-> { Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg }) + Increase::ArrayOf.new( + lambda { + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg + } + ) class Ancillary < BaseModel # @!attribute [rw] connected_ticket_document_number @@ -832,7 +861,11 @@ class Ancillary < BaseModel # Additional travel charges, such as baggage fees. # @return [Array] required :services, - Increase::ArrayOf.new(-> { Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service }) + Increase::ArrayOf.new( + lambda { + Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::Ancillary::Service + } + ) # @!attribute [rw] ticket_document_number # Ticket document number. @@ -907,7 +940,8 @@ class TripLeg < BaseModel # @!attribute [rw] stop_over_code # Indicates whether a stopover is allowed on this ticket. # @return [Symbol] - required :stop_over_code, Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) + required :stop_over_code, + Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) end end end @@ -1020,7 +1054,10 @@ class CardSettlement < BaseModel # @!attribute [rw] purchase_details # Additional details about the card purchase, such as tax and industry-specific fields. # @return [Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails] - required :purchase_details, -> { Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails } + required :purchase_details, + lambda { + Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails + } # @!attribute [rw] transaction_id # The identifier of the Transaction associated with this Transaction. @@ -1074,7 +1111,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] lodging # Fields specific to lodging. # @return [Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging] - required :lodging, -> { Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging } + required :lodging, + lambda { + Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Lodging + } # @!attribute [rw] national_tax_amount # The national tax amount in minor units. @@ -1106,7 +1146,10 @@ class PurchaseDetails < BaseModel # @!attribute [rw] travel # Fields specific to travel. # @return [Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel] - required :travel, -> { Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel } + required :travel, + lambda { + Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel + } class CarRental < BaseModel # @!attribute [rw] car_class_code @@ -1170,7 +1213,8 @@ class CarRental < BaseModel # @!attribute [rw] no_show_indicator # An indicator that the cardholder is being billed for a reserved vehicle that was not actually rented (that is, a "no-show" charge). # @return [Symbol] - required :no_show_indicator, Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) + required :no_show_indicator, + Increase::Enum.new(:not_applicable, :no_show_for_specialized_vehicle) # @!attribute [rw] one_way_drop_off_charges_amount # Charges for returning the vehicle at a different location than where it was picked up. @@ -1218,7 +1262,15 @@ class Lodging < BaseModel # Additional charges (phone, late check-out, etc.) being billed. # @return [Symbol] required :extra_charges, - Increase::Enum.new(:no_extra_charge, :restaurant, :gift_shop, :mini_bar, :telephone, :other, :laundry) + Increase::Enum.new( + :no_extra_charge, + :restaurant, + :gift_shop, + :mini_bar, + :telephone, + :other, + :laundry + ) # @!attribute [rw] folio_cash_advances_amount # Folio cash advances for the room. @@ -1330,7 +1382,8 @@ class Travel < BaseModel # @!attribute [rw] ticket_change_indicator # Indicates why a ticket was changed. # @return [Symbol] - required :ticket_change_indicator, Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) + required :ticket_change_indicator, + Increase::Enum.new(:none, :change_to_existing_ticket, :new_ticket) # @!attribute [rw] ticket_number # Ticket number. @@ -1351,7 +1404,11 @@ class Travel < BaseModel # Fields specific to each leg of the journey. # @return [Array] required :trip_legs, - Increase::ArrayOf.new(-> { Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg }) + Increase::ArrayOf.new( + lambda { + Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::TripLeg + } + ) class Ancillary < BaseModel # @!attribute [rw] connected_ticket_document_number @@ -1379,7 +1436,11 @@ class Ancillary < BaseModel # Additional travel charges, such as baggage fees. # @return [Array] required :services, - Increase::ArrayOf.new(-> { Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service }) + Increase::ArrayOf.new( + lambda { + Increase::Models::Transaction::Source::CardSettlement::PurchaseDetails::Travel::Ancillary::Service + } + ) # @!attribute [rw] ticket_document_number # Ticket document number. @@ -1454,7 +1515,8 @@ class TripLeg < BaseModel # @!attribute [rw] stop_over_code # Indicates whether a stopover is allowed on this ticket. # @return [Symbol] - required :stop_over_code, Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) + required :stop_over_code, + Increase::Enum.new(:none, :stop_over_allowed, :stop_over_not_allowed) end end end @@ -1731,14 +1793,21 @@ class Addenda < BaseModel # @!attribute [rw] freeform # Unstructured `payment_related_information` passed through by the originator. # @return [Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform] - required :freeform, -> { Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform } + required :freeform, + lambda { + Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform + } class Freeform < BaseModel # @!attribute [rw] entries # Each entry represents an addendum received from the originator. # @return [Array] required :entries, - Increase::ArrayOf.new(-> { Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry }) + Increase::ArrayOf.new( + lambda { + Increase::Models::Transaction::Source::InboundACHTransfer::Addenda::Freeform::Entry + } + ) class Entry < BaseModel # @!attribute [rw] payment_related_information diff --git a/lib/increase/page.rb b/lib/increase/page.rb index 183da25..30da229 100644 --- a/lib/increase/page.rb +++ b/lib/increase/page.rb @@ -12,7 +12,7 @@ class Page attr_accessor :client, :req, :opts # @!visibility private - def initialize(model, raw_data, response, client, req, opts) + def initialize(model, raw_data, _response, client, req, opts) self.data = (raw_data[:data] || []).map { |e| model.convert(e) } self.next_cursor = raw_data[:next_cursor] self.client = client diff --git a/lib/increase/resources/account_numbers.rb b/lib/increase/resources/account_numbers.rb index 1d294c3..912adce 100644 --- a/lib/increase/resources/account_numbers.rb +++ b/lib/increase/resources/account_numbers.rb @@ -8,16 +8,16 @@ def initialize(client:) end # Create an Account Number - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The Account the Account Number should belong to. # @option params [String] :name The name you choose for the Account Number. # @option params [InboundACH] :inbound_ach Options related to how this Account Number should handle inbound ACH transfers. # @option params [InboundChecks] :inbound_checks Options related to how this Account Number should handle inbound check # withdrawals. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountNumber] def create(params = {}, opts = {}) req = {} @@ -29,10 +29,10 @@ def create(params = {}, opts = {}) end # Retrieve an Account Number - # + # # @param account_number_id [String] The identifier of the Account Number to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountNumber] def retrieve(account_number_id, opts = {}) req = {} @@ -43,18 +43,18 @@ def retrieve(account_number_id, opts = {}) end # Update an Account Number - # + # # @param account_number_id [String] The identifier of the Account Number. - # + # # @param params [Hash] Attributes to send in this request. # @option params [InboundACH] :inbound_ach Options related to how this Account Number handles inbound ACH transfers. # @option params [InboundChecks] :inbound_checks Options related to how this Account Number should handle inbound check # withdrawals. # @option params [String] :name The name you choose for the Account Number. # @option params [Symbol] :status This indicates if transfers can be made to the Account Number. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountNumber] def update(account_number_id, params = {}, opts = {}) req = {} @@ -66,7 +66,7 @@ def update(account_number_id, params = {}, opts = {}) end # List Account Numbers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Account Numbers to those belonging to the specified Account. # @option params [Symbol] :ach_debit_status The ACH Debit status to retrieve Account Numbers for. @@ -79,9 +79,9 @@ def update(account_number_id, params = {}, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Symbol] :status The status to retrieve Account Numbers for. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/account_statements.rb b/lib/increase/resources/account_statements.rb index c8210f0..eec96ca 100644 --- a/lib/increase/resources/account_statements.rb +++ b/lib/increase/resources/account_statements.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an Account Statement - # + # # @param account_statement_id [String] The identifier of the Account Statement to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountStatement] def retrieve(account_statement_id, opts = {}) req = {} @@ -22,16 +22,16 @@ def retrieve(account_statement_id, opts = {}) end # List Account Statements - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Account Statements to those belonging to the specified Account. # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [StatementPeriodStart] :statement_period_start - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/account_transfers.rb b/lib/increase/resources/account_transfers.rb index c073ad1..8ef06e6 100644 --- a/lib/increase/resources/account_transfers.rb +++ b/lib/increase/resources/account_transfers.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an Account Transfer - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier for the account that will send the transfer. # @option params [Integer] :amount The transfer amount in the minor unit of the account currency. For dollars, for @@ -16,9 +16,9 @@ def initialize(client:) # @option params [String] :description The description you choose to give the transfer. # @option params [String] :destination_account_id The identifier for the account that will receive the transfer. # @option params [Boolean] :require_approval Whether the transfer requires explicit approval via the dashboard or API. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountTransfer] def create(params = {}, opts = {}) req = {} @@ -30,10 +30,10 @@ def create(params = {}, opts = {}) end # Retrieve an Account Transfer - # + # # @param account_transfer_id [String] The identifier of the Account Transfer. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountTransfer] def retrieve(account_transfer_id, opts = {}) req = {} @@ -44,7 +44,7 @@ def retrieve(account_transfer_id, opts = {}) end # List Account Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Account Transfers to those that originated from the specified Account. # @option params [CreatedAt] :created_at @@ -55,9 +55,9 @@ def retrieve(account_transfer_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -70,10 +70,10 @@ def list(params = {}, opts = {}) end # Approve an Account Transfer - # + # # @param account_transfer_id [String] The identifier of the Account Transfer to approve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountTransfer] def approve(account_transfer_id, opts = {}) req = {} @@ -84,10 +84,10 @@ def approve(account_transfer_id, opts = {}) end # Cancel an Account Transfer - # + # # @param account_transfer_id [String] The identifier of the pending Account Transfer to cancel. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountTransfer] def cancel(account_transfer_id, opts = {}) req = {} diff --git a/lib/increase/resources/accounts.rb b/lib/increase/resources/accounts.rb index 37b66d9..a0c64dc 100644 --- a/lib/increase/resources/accounts.rb +++ b/lib/increase/resources/accounts.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an Account - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :name The name you choose for the Account. # @option params [String] :entity_id The identifier for the Entity that will own the Account. @@ -16,9 +16,9 @@ def initialize(client:) # with its activity. Its relationship to your group must be `informational`. # @option params [String] :program_id The identifier for the Program that this Account falls under. Required if you # operate more than one Program. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Account] def create(params = {}, opts = {}) req = {} @@ -30,10 +30,10 @@ def create(params = {}, opts = {}) end # Retrieve an Account - # + # # @param account_id [String] The identifier of the Account to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Account] def retrieve(account_id, opts = {}) req = {} @@ -44,14 +44,14 @@ def retrieve(account_id, opts = {}) end # Update an Account - # + # # @param account_id [String] The identifier of the Account to update. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :name The new name of the Account. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Account] def update(account_id, params = {}, opts = {}) req = {} @@ -63,7 +63,7 @@ def update(account_id, params = {}, opts = {}) end # List Accounts - # + # # @param params [Hash] Attributes to send in this request. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. @@ -76,9 +76,9 @@ def update(account_id, params = {}, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Symbol] :status Filter Accounts for those with the specified status. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -91,14 +91,14 @@ def list(params = {}, opts = {}) end # Retrieve an Account Balance - # + # # @param account_id [String] The identifier of the Account to retrieve. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :at_time The moment to query the balance at. If not set, returns the current balances. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BalanceLookup] def balance(account_id, params = {}, opts = {}) req = {} @@ -110,10 +110,10 @@ def balance(account_id, params = {}, opts = {}) end # Close an Account - # + # # @param account_id [String] The identifier of the Account to close. The account must have a zero balance. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Account] def close(account_id, opts = {}) req = {} diff --git a/lib/increase/resources/ach_prenotifications.rb b/lib/increase/resources/ach_prenotifications.rb index 7d58813..5a375dd 100644 --- a/lib/increase/resources/ach_prenotifications.rb +++ b/lib/increase/resources/ach_prenotifications.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an ACH Prenotification - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The Increase identifier for the account that will send the transfer. # @option params [String] :account_number The account number for the destination account. @@ -26,9 +26,9 @@ def initialize(client:) # @option params [String] :individual_name The name of the transfer recipient. This value is information and not verified # by the recipient's bank. # @option params [Symbol] :standard_entry_class_code The Standard Entry Class (SEC) code to use for the ACH Prenotification. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHPrenotification] def create(params = {}, opts = {}) req = {} @@ -40,10 +40,10 @@ def create(params = {}, opts = {}) end # Retrieve an ACH Prenotification - # + # # @param ach_prenotification_id [String] The identifier of the ACH Prenotification to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHPrenotification] def retrieve(ach_prenotification_id, opts = {}) req = {} @@ -54,7 +54,7 @@ def retrieve(ach_prenotification_id, opts = {}) end # List ACH Prenotifications - # + # # @param params [Hash] Attributes to send in this request. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. @@ -64,9 +64,9 @@ def retrieve(ach_prenotification_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/ach_transfers.rb b/lib/increase/resources/ach_transfers.rb index e963e45..8b3b18e 100644 --- a/lib/increase/resources/ach_transfers.rb +++ b/lib/increase/resources/ach_transfers.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an ACH Transfer - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The Increase identifier for the account that will send the transfer. # @option params [Integer] :amount The transfer amount in cents. A positive amount originates a credit transfer @@ -45,9 +45,9 @@ def initialize(client:) # @option params [String] :routing_number The American Bankers' Association (ABA) Routing Transit Number (RTN) for the # destination account. # @option params [Symbol] :standard_entry_class_code The Standard Entry Class (SEC) code to use for the transfer. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def create(params = {}, opts = {}) req = {} @@ -59,10 +59,10 @@ def create(params = {}, opts = {}) end # Retrieve an ACH Transfer - # + # # @param ach_transfer_id [String] The identifier of the ACH Transfer. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def retrieve(ach_transfer_id, opts = {}) req = {} @@ -73,7 +73,7 @@ def retrieve(ach_transfer_id, opts = {}) end # List ACH Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter ACH Transfers to those that originated from the specified Account. # @option params [CreatedAt] :created_at @@ -85,9 +85,9 @@ def retrieve(ach_transfer_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -100,10 +100,10 @@ def list(params = {}, opts = {}) end # Approves an ACH Transfer in a pending_approval state. - # + # # @param ach_transfer_id [String] The identifier of the ACH Transfer to approve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def approve(ach_transfer_id, opts = {}) req = {} @@ -114,10 +114,10 @@ def approve(ach_transfer_id, opts = {}) end # Cancels an ACH Transfer in a pending_approval state. - # + # # @param ach_transfer_id [String] The identifier of the pending ACH Transfer to cancel. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def cancel(ach_transfer_id, opts = {}) req = {} diff --git a/lib/increase/resources/bookkeeping_accounts.rb b/lib/increase/resources/bookkeeping_accounts.rb index a808d9d..38ea211 100644 --- a/lib/increase/resources/bookkeeping_accounts.rb +++ b/lib/increase/resources/bookkeeping_accounts.rb @@ -8,15 +8,15 @@ def initialize(client:) end # Create a Bookkeeping Account - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :name The name you choose for the account. # @option params [String] :account_id The entity, if `compliance_category` is `commingled_cash`. # @option params [Symbol] :compliance_category The account compliance category. # @option params [String] :entity_id The entity, if `compliance_category` is `customer_balance`. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BookkeepingAccount] def create(params = {}, opts = {}) req = {} @@ -28,14 +28,14 @@ def create(params = {}, opts = {}) end # Update a Bookkeeping Account - # + # # @param bookkeeping_account_id [String] The bookkeeping account you would like to update. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :name The name you choose for the account. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BookkeepingAccount] def update(bookkeeping_account_id, params = {}, opts = {}) req = {} @@ -47,7 +47,7 @@ def update(bookkeeping_account_id, params = {}, opts = {}) end # List Bookkeeping Accounts - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -56,9 +56,9 @@ def update(bookkeeping_account_id, params = {}, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -71,14 +71,14 @@ def list(params = {}, opts = {}) end # Retrieve a Bookkeeping Account Balance - # + # # @param bookkeeping_account_id [String] The identifier of the Bookkeeping Account to retrieve. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :at_time The moment to query the balance at. If not set, returns the current balances. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BookkeepingBalanceLookup] def balance(bookkeeping_account_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/bookkeeping_entries.rb b/lib/increase/resources/bookkeeping_entries.rb index 1faafd4..8d99d34 100644 --- a/lib/increase/resources/bookkeeping_entries.rb +++ b/lib/increase/resources/bookkeeping_entries.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Bookkeeping Entry - # + # # @param bookkeeping_entry_id [String] The identifier of the Bookkeeping Entry. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BookkeepingEntry] def retrieve(bookkeeping_entry_id, opts = {}) req = {} @@ -22,14 +22,14 @@ def retrieve(bookkeeping_entry_id, opts = {}) end # List Bookkeeping Entries - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/bookkeeping_entry_sets.rb b/lib/increase/resources/bookkeeping_entry_sets.rb index 3bb3a56..12acc08 100644 --- a/lib/increase/resources/bookkeeping_entry_sets.rb +++ b/lib/increase/resources/bookkeeping_entry_sets.rb @@ -8,15 +8,15 @@ def initialize(client:) end # Create a Bookkeeping Entry Set - # + # # @param params [Hash] Attributes to send in this request. # @option params [Array] :entries The bookkeeping entries. # @option params [String] :date The date of the transaction. Optional if `transaction_id` is provided, in which # case we use the `date` of that transaction. Required otherwise. # @option params [String] :transaction_id The identifier of the Transaction related to this entry set, if any. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BookkeepingEntrySet] def create(params = {}, opts = {}) req = {} @@ -28,10 +28,10 @@ def create(params = {}, opts = {}) end # Retrieve a Bookkeeping Entry Set - # + # # @param bookkeeping_entry_set_id [String] The identifier of the Bookkeeping Entry Set. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::BookkeepingEntrySet] def retrieve(bookkeeping_entry_set_id, opts = {}) req = {} @@ -42,7 +42,7 @@ def retrieve(bookkeeping_entry_set_id, opts = {}) end # List Bookkeeping Entry Sets - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -52,9 +52,9 @@ def retrieve(bookkeeping_entry_set_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [String] :transaction_id Filter to the Bookkeeping Entry Set that maps to this Transaction. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/card_disputes.rb b/lib/increase/resources/card_disputes.rb index 79d2e9b..0da7c15 100644 --- a/lib/increase/resources/card_disputes.rb +++ b/lib/increase/resources/card_disputes.rb @@ -8,14 +8,14 @@ def initialize(client:) end # Create a Card Dispute - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :disputed_transaction_id The Transaction you wish to dispute. This Transaction must have a `source_type` # of `card_settlement`. # @option params [String] :explanation Why you are disputing this Transaction. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardDispute] def create(params = {}, opts = {}) req = {} @@ -27,10 +27,10 @@ def create(params = {}, opts = {}) end # Retrieve a Card Dispute - # + # # @param card_dispute_id [String] The identifier of the Card Dispute. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardDispute] def retrieve(card_dispute_id, opts = {}) req = {} @@ -41,7 +41,7 @@ def retrieve(card_dispute_id, opts = {}) end # List Card Disputes - # + # # @param params [Hash] Attributes to send in this request. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. @@ -52,9 +52,9 @@ def retrieve(card_dispute_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/card_payments.rb b/lib/increase/resources/card_payments.rb index 37a9fe2..9b021df 100644 --- a/lib/increase/resources/card_payments.rb +++ b/lib/increase/resources/card_payments.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Card Payment - # + # # @param card_payment_id [String] The identifier of the Card Payment. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardPayment] def retrieve(card_payment_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(card_payment_id, opts = {}) end # List Card Payments - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Card Payments to ones belonging to the specified Account. # @option params [String] :card_id Filter Card Payments to ones belonging to the specified Card. @@ -30,9 +30,9 @@ def retrieve(card_payment_id, opts = {}) # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/card_purchase_supplements.rb b/lib/increase/resources/card_purchase_supplements.rb index 3406252..8d7ed0a 100644 --- a/lib/increase/resources/card_purchase_supplements.rb +++ b/lib/increase/resources/card_purchase_supplements.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Card Purchase Supplement - # + # # @param card_purchase_supplement_id [String] The identifier of the Card Purchase Supplement. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardPurchaseSupplement] def retrieve(card_purchase_supplement_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(card_purchase_supplement_id, opts = {}) end # List Card Purchase Supplements - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_payment_id Filter Card Purchase Supplements to ones belonging to the specified Card # Payment. @@ -30,9 +30,9 @@ def retrieve(card_purchase_supplement_id, opts = {}) # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/cards.rb b/lib/increase/resources/cards.rb index c472dc5..50c53e6 100644 --- a/lib/increase/resources/cards.rb +++ b/lib/increase/resources/cards.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Card - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The Account the card should belong to. # @option params [BillingAddress] :billing_address The card's billing address. @@ -20,9 +20,9 @@ def initialize(client:) # `digital_wallet_authentication_requested`. # @option params [String] :entity_id The Entity the card belongs to. You only need to supply this in rare situations # when the card is not for the Account holder. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Card] def create(params = {}, opts = {}) req = {} @@ -34,10 +34,10 @@ def create(params = {}, opts = {}) end # Retrieve a Card - # + # # @param card_id [String] The identifier of the Card. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Card] def retrieve(card_id, opts = {}) req = {} @@ -48,9 +48,9 @@ def retrieve(card_id, opts = {}) end # Update a Card - # + # # @param card_id [String] The card identifier. - # + # # @param params [Hash] Attributes to send in this request. # @option params [BillingAddress] :billing_address The card's updated billing address. # @option params [String] :description The description you choose to give the card. @@ -60,9 +60,9 @@ def retrieve(card_id, opts = {}) # @option params [String] :entity_id The Entity the card belongs to. You only need to supply this in rare situations # when the card is not for the Account holder. # @option params [Symbol] :status The status to update the Card with. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Card] def update(card_id, params = {}, opts = {}) req = {} @@ -74,7 +74,7 @@ def update(card_id, params = {}, opts = {}) end # List Cards - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Cards to ones belonging to the specified Account. # @option params [CreatedAt] :created_at @@ -85,9 +85,9 @@ def update(card_id, params = {}, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -100,10 +100,10 @@ def list(params = {}, opts = {}) end # Retrieve sensitive details for a Card - # + # # @param card_id [String] The identifier of the Card to retrieve details for. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardDetails] def retrieve_sensitive_details(card_id, opts = {}) req = {} diff --git a/lib/increase/resources/check_deposits.rb b/lib/increase/resources/check_deposits.rb index e0acce2..dd0a62e 100644 --- a/lib/increase/resources/check_deposits.rb +++ b/lib/increase/resources/check_deposits.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Check Deposit - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier for the Account to deposit the check in. # @option params [Integer] :amount The deposit amount in the minor unit of the account currency. For dollars, for @@ -16,9 +16,9 @@ def initialize(client:) # @option params [String] :back_image_file_id The File containing the check's back image. # @option params [String] :currency The currency to use for the deposit. # @option params [String] :front_image_file_id The File containing the check's front image. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckDeposit] def create(params = {}, opts = {}) req = {} @@ -30,10 +30,10 @@ def create(params = {}, opts = {}) end # Retrieve a Check Deposit - # + # # @param check_deposit_id [String] The identifier of the Check Deposit to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckDeposit] def retrieve(check_deposit_id, opts = {}) req = {} @@ -44,7 +44,7 @@ def retrieve(check_deposit_id, opts = {}) end # List Check Deposits - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Check Deposits to those belonging to the specified Account. # @option params [CreatedAt] :created_at @@ -55,9 +55,9 @@ def retrieve(check_deposit_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/check_transfers.rb b/lib/increase/resources/check_transfers.rb index a5c00f3..416736e 100644 --- a/lib/increase/resources/check_transfers.rb +++ b/lib/increase/resources/check_transfers.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Check Transfer - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier for the account that will send the transfer. # @option params [Integer] :amount The transfer amount in cents. @@ -22,9 +22,9 @@ def initialize(client:) # @option params [ThirdParty] :third_party Details relating to the custom fulfillment you will perform. This is required if # `fulfillment_method` is equal to `third_party`. It must not be included if any # other `fulfillment_method` is provided. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckTransfer] def create(params = {}, opts = {}) req = {} @@ -36,10 +36,10 @@ def create(params = {}, opts = {}) end # Retrieve a Check Transfer - # + # # @param check_transfer_id [String] The identifier of the Check Transfer. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckTransfer] def retrieve(check_transfer_id, opts = {}) req = {} @@ -50,7 +50,7 @@ def retrieve(check_transfer_id, opts = {}) end # List Check Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Check Transfers to those that originated from the specified Account. # @option params [CreatedAt] :created_at @@ -61,9 +61,9 @@ def retrieve(check_transfer_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -76,10 +76,10 @@ def list(params = {}, opts = {}) end # Approve a Check Transfer - # + # # @param check_transfer_id [String] The identifier of the Check Transfer to approve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckTransfer] def approve(check_transfer_id, opts = {}) req = {} @@ -90,10 +90,10 @@ def approve(check_transfer_id, opts = {}) end # Cancel a pending Check Transfer - # + # # @param check_transfer_id [String] The identifier of the pending Check Transfer to cancel. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckTransfer] def cancel(check_transfer_id, opts = {}) req = {} @@ -104,14 +104,14 @@ def cancel(check_transfer_id, opts = {}) end # Request a stop payment on a Check Transfer - # + # # @param check_transfer_id [String] The identifier of the Check Transfer. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :reason The reason why this transfer should be stopped. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckTransfer] def stop_payment(check_transfer_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/declined_transactions.rb b/lib/increase/resources/declined_transactions.rb index c8cfca9..5df5314 100644 --- a/lib/increase/resources/declined_transactions.rb +++ b/lib/increase/resources/declined_transactions.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Declined Transaction - # + # # @param declined_transaction_id [String] The identifier of the Declined Transaction. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DeclinedTransaction] def retrieve(declined_transaction_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(declined_transaction_id, opts = {}) end # List Declined Transactions - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Declined Transactions to ones belonging to the specified Account. # @option params [Category] :category @@ -31,9 +31,9 @@ def retrieve(declined_transaction_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [String] :route_id Filter Declined Transactions to those belonging to the specified route. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/digital_card_profiles.rb b/lib/increase/resources/digital_card_profiles.rb index dcf681a..99f09eb 100644 --- a/lib/increase/resources/digital_card_profiles.rb +++ b/lib/increase/resources/digital_card_profiles.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Digital Card Profile - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :app_icon_file_id The identifier of the File containing the card's icon image. # @option params [String] :background_image_file_id The identifier of the File containing the card's front image. @@ -19,9 +19,9 @@ def initialize(client:) # @option params [String] :contact_phone A phone number the user can contact to receive support for their card. # @option params [String] :contact_website A website the user can visit to view and receive support for their card. # @option params [TextColor] :text_color The Card's text color, specified as an RGB triple. The default is white. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DigitalCardProfile] def create(params = {}, opts = {}) req = {} @@ -33,10 +33,10 @@ def create(params = {}, opts = {}) end # Retrieve a Digital Card Profile - # + # # @param digital_card_profile_id [String] The identifier of the Digital Card Profile. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DigitalCardProfile] def retrieve(digital_card_profile_id, opts = {}) req = {} @@ -47,7 +47,7 @@ def retrieve(digital_card_profile_id, opts = {}) end # List Card Profiles - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -57,9 +57,9 @@ def retrieve(digital_card_profile_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -72,10 +72,10 @@ def list(params = {}, opts = {}) end # Archive a Digital Card Profile - # + # # @param digital_card_profile_id [String] The identifier of the Digital Card Profile to archive. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DigitalCardProfile] def archive(digital_card_profile_id, opts = {}) req = {} @@ -86,9 +86,9 @@ def archive(digital_card_profile_id, opts = {}) end # Clones a Digital Card Profile - # + # # @param digital_card_profile_id [String] The identifier of the Digital Card Profile to clone. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :app_icon_file_id The identifier of the File containing the card's icon image. # @option params [String] :background_image_file_id The identifier of the File containing the card's front image. @@ -99,9 +99,9 @@ def archive(digital_card_profile_id, opts = {}) # @option params [String] :description A description you can use to identify the Card Profile. # @option params [String] :issuer_name A user-facing description for whoever is issuing the card. # @option params [TextColor] :text_color The Card's text color, specified as an RGB triple. The default is white. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DigitalCardProfile] def clone(digital_card_profile_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/digital_wallet_tokens.rb b/lib/increase/resources/digital_wallet_tokens.rb index bd1b769..152d379 100644 --- a/lib/increase/resources/digital_wallet_tokens.rb +++ b/lib/increase/resources/digital_wallet_tokens.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Digital Wallet Token - # + # # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DigitalWalletToken] def retrieve(digital_wallet_token_id, opts = {}) req = {} @@ -22,16 +22,16 @@ def retrieve(digital_wallet_token_id, opts = {}) end # List Digital Wallet Tokens - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_id Filter Digital Wallet Tokens to ones belonging to the specified Card. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/documents.rb b/lib/increase/resources/documents.rb index cc96772..4a2f80f 100644 --- a/lib/increase/resources/documents.rb +++ b/lib/increase/resources/documents.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Document - # + # # @param document_id [String] The identifier of the Document to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Document] def retrieve(document_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(document_id, opts = {}) end # List Documents - # + # # @param params [Hash] Attributes to send in this request. # @option params [Category] :category # @option params [CreatedAt] :created_at @@ -30,9 +30,9 @@ def retrieve(document_id, opts = {}) # @option params [String] :entity_id Filter Documents to ones belonging to the specified Entity. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/entities.rb b/lib/increase/resources/entities.rb index da84db1..86466d7 100644 --- a/lib/increase/resources/entities.rb +++ b/lib/increase/resources/entities.rb @@ -20,7 +20,7 @@ def initialize(client:) end # Create an Entity - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :structure The type of Entity to create. # @option params [Corporation] :corporation Details of the corporation entity to create. Required if `structure` is equal to @@ -37,9 +37,9 @@ def initialize(client:) # @option params [Array] :supplemental_documents Additional documentation associated with the entity. # @option params [Trust] :trust Details of the trust entity to create. Required if `structure` is equal to # `trust`. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def create(params = {}, opts = {}) req = {} @@ -51,10 +51,10 @@ def create(params = {}, opts = {}) end # Retrieve an Entity - # + # # @param entity_id [String] The identifier of the Entity to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def retrieve(entity_id, opts = {}) req = {} @@ -65,7 +65,7 @@ def retrieve(entity_id, opts = {}) end # List Entities - # + # # @param params [Hash] Attributes to send in this request. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. @@ -76,9 +76,9 @@ def retrieve(entity_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -91,11 +91,11 @@ def list(params = {}, opts = {}) end # Archive an Entity - # + # # @param entity_id [String] The identifier of the Entity to archive. Any accounts associated with an entity # must be closed before the entity can be archived. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def archive(entity_id, opts = {}) req = {} @@ -108,15 +108,15 @@ def archive(entity_id, opts = {}) # Depending on your program, you may be required to re-confirm an Entity's details # on a recurring basis. After making any required updates, call this endpoint to # record that your user confirmed their details. - # + # # @param entity_id [String] The identifier of the Entity to confirm the details of. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :confirmed_at When your user confirmed the Entity's details. If not provided, the current time # will be used. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def confirm(entity_id, params = {}, opts = {}) req = {} @@ -128,15 +128,15 @@ def confirm(entity_id, params = {}, opts = {}) end # Update a Natural Person or Corporation's address - # + # # @param entity_id [String] The identifier of the Entity to archive. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Address] :address The entity's physical address. Mail receiving locations like PO Boxes and PMB's # are disallowed. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def update_address(entity_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/entities/beneficial_owners.rb b/lib/increase/resources/entities/beneficial_owners.rb index a1e7a8a..65b65a4 100644 --- a/lib/increase/resources/entities/beneficial_owners.rb +++ b/lib/increase/resources/entities/beneficial_owners.rb @@ -9,14 +9,14 @@ def initialize(client:) end # Create a beneficial owner for a corporate Entity - # + # # @param params [Hash] Attributes to send in this request. # @option params [BeneficialOwner] :beneficial_owner The identifying details of anyone controlling or owning 25% or more of the # corporation. # @option params [String] :entity_id The identifier of the Entity to associate with the new Beneficial Owner. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def create(params = {}, opts = {}) req = {} @@ -28,14 +28,14 @@ def create(params = {}, opts = {}) end # Archive a beneficial owner for a corporate Entity - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :beneficial_owner_id The identifying details of anyone controlling or owning 25% or more of the # corporation. # @option params [String] :entity_id The identifier of the Entity to retrieve. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def archive(params = {}, opts = {}) req = {} @@ -47,16 +47,16 @@ def archive(params = {}, opts = {}) end # Update the address for a beneficial owner belonging to a corporate Entity - # + # # @param params [Hash] Attributes to send in this request. # @option params [Address] :address The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. # @option params [String] :beneficial_owner_id The identifying details of anyone controlling or owning 25% or more of the # corporation. # @option params [String] :entity_id The identifier of the Entity to retrieve. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def update_address(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/entities/industry_code.rb b/lib/increase/resources/entities/industry_code.rb index 8a3a25a..a43b2ea 100644 --- a/lib/increase/resources/entities/industry_code.rb +++ b/lib/increase/resources/entities/industry_code.rb @@ -9,18 +9,18 @@ def initialize(client:) end # Update the industry code for a corporate Entity - # + # # @param entity_id [String] The identifier of the Entity to update. This endpoint only accepts `corporation` # entities. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :industry_code The North American Industry Classification System (NAICS) code for the # corporation's primary line of business. This is a number, like `5132` for # `Software Publishers`. A full list of classification codes is available # [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes). - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def create(entity_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/entities/supplemental_documents.rb b/lib/increase/resources/entities/supplemental_documents.rb index 0909cb2..8b77548 100644 --- a/lib/increase/resources/entities/supplemental_documents.rb +++ b/lib/increase/resources/entities/supplemental_documents.rb @@ -9,14 +9,14 @@ def initialize(client:) end # Create a supplemental document for an Entity - # + # # @param entity_id [String] The identifier of the Entity to associate with the supplemental document. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :file_id The identifier of the File containing the document. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Entity] def create(entity_id, params = {}, opts = {}) req = {} @@ -28,7 +28,7 @@ def create(entity_id, params = {}, opts = {}) end # List Entity Supplemental Document Submissions - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :entity_id The identifier of the Entity to list supplemental documents for. # @option params [String] :cursor Return the page of entries after this one. @@ -38,9 +38,9 @@ def create(entity_id, params = {}, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/event_subscriptions.rb b/lib/increase/resources/event_subscriptions.rb index 7ce0b26..ed954a3 100644 --- a/lib/increase/resources/event_subscriptions.rb +++ b/lib/increase/resources/event_subscriptions.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an Event Subscription - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :url The URL you'd like us to send webhooks to. # @option params [String] :oauth_connection_id If specified, this subscription will only receive webhooks for Events associated @@ -17,9 +17,9 @@ def initialize(client:) # specified `category`. # @option params [String] :shared_secret The key that will be used to sign webhooks. If no value is passed, a random # string will be used as default. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::EventSubscription] def create(params = {}, opts = {}) req = {} @@ -31,10 +31,10 @@ def create(params = {}, opts = {}) end # Retrieve an Event Subscription - # + # # @param event_subscription_id [String] The identifier of the Event Subscription. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::EventSubscription] def retrieve(event_subscription_id, opts = {}) req = {} @@ -45,14 +45,14 @@ def retrieve(event_subscription_id, opts = {}) end # Update an Event Subscription - # + # # @param event_subscription_id [String] The identifier of the Event Subscription. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :status The status to update the Event Subscription with. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::EventSubscription] def update(event_subscription_id, params = {}, opts = {}) req = {} @@ -64,7 +64,7 @@ def update(event_subscription_id, params = {}, opts = {}) end # List Event Subscriptions - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -73,9 +73,9 @@ def update(event_subscription_id, params = {}, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/events.rb b/lib/increase/resources/events.rb index 8f00398..ba60ce5 100644 --- a/lib/increase/resources/events.rb +++ b/lib/increase/resources/events.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an Event - # + # # @param event_id [String] The identifier of the Event. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Event] def retrieve(event_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(event_id, opts = {}) end # List Events - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :associated_object_id Filter Events to those belonging to the object with the provided identifier. # @option params [Category] :category @@ -30,9 +30,9 @@ def retrieve(event_id, opts = {}) # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/exports.rb b/lib/increase/resources/exports.rb index 8062264..015326b 100644 --- a/lib/increase/resources/exports.rb +++ b/lib/increase/resources/exports.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an Export - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :category The type of Export to create. # @option params [AccountStatementOfx] :account_statement_ofx Options for the created export. Required if `category` is equal to @@ -20,9 +20,9 @@ def initialize(client:) # @option params [EntityCsv] :entity_csv Options for the created export. Required if `category` is equal to `entity_csv`. # @option params [TransactionCsv] :transaction_csv Options for the created export. Required if `category` is equal to # `transaction_csv`. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Export] def create(params = {}, opts = {}) req = {} @@ -34,10 +34,10 @@ def create(params = {}, opts = {}) end # Retrieve an Export - # + # # @param export_id [String] The identifier of the Export to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Export] def retrieve(export_id, opts = {}) req = {} @@ -48,7 +48,7 @@ def retrieve(export_id, opts = {}) end # List Exports - # + # # @param params [Hash] Attributes to send in this request. # @option params [Category] :category # @option params [CreatedAt] :created_at @@ -60,9 +60,9 @@ def retrieve(export_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/external_accounts.rb b/lib/increase/resources/external_accounts.rb index 7a3d5d9..6e18409 100644 --- a/lib/increase/resources/external_accounts.rb +++ b/lib/increase/resources/external_accounts.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an External Account - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_number The account number for the destination account. # @option params [String] :description The name you choose for the Account. @@ -16,9 +16,9 @@ def initialize(client:) # destination account. # @option params [Symbol] :account_holder The type of entity that owns the External Account. # @option params [Symbol] :funding The type of the destination account. Defaults to `checking`. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ExternalAccount] def create(params = {}, opts = {}) req = {} @@ -30,10 +30,10 @@ def create(params = {}, opts = {}) end # Retrieve an External Account - # + # # @param external_account_id [String] The identifier of the External Account. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ExternalAccount] def retrieve(external_account_id, opts = {}) req = {} @@ -44,17 +44,17 @@ def retrieve(external_account_id, opts = {}) end # Update an External Account - # + # # @param external_account_id [String] The external account identifier. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :account_holder The type of entity that owns the External Account. # @option params [String] :description The description you choose to give the external account. # @option params [Symbol] :funding The funding type of the External Account. # @option params [Symbol] :status The status of the External Account. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ExternalAccount] def update(external_account_id, params = {}, opts = {}) req = {} @@ -66,7 +66,7 @@ def update(external_account_id, params = {}, opts = {}) end # List External Accounts - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -77,9 +77,9 @@ def update(external_account_id, params = {}, opts = {}) # objects. # @option params [String] :routing_number Filter External Accounts to those with the specified Routing Number. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/files.rb b/lib/increase/resources/files.rb index c9753f9..20e0f3c 100644 --- a/lib/increase/resources/files.rb +++ b/lib/increase/resources/files.rb @@ -10,16 +10,16 @@ def initialize(client:) # To upload a file to Increase, you'll need to send a request of Content-Type # `multipart/form-data`. The request should contain the file you would like to # upload, as well as the parameters for creating a file. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :file The file contents. This should follow the specifications of # [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file # transfers for the multipart/form-data protocol. # @option params [Symbol] :purpose What the File will be used for in Increase's systems. # @option params [String] :description The description you choose to give the File. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::File] def create(params = {}, opts = {}) req = {} @@ -31,10 +31,10 @@ def create(params = {}, opts = {}) end # Retrieve a File - # + # # @param file_id [String] The identifier of the File. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::File] def retrieve(file_id, opts = {}) req = {} @@ -45,7 +45,7 @@ def retrieve(file_id, opts = {}) end # List Files - # + # # @param params [Hash] Attributes to send in this request. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. @@ -56,9 +56,9 @@ def retrieve(file_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Purpose] :purpose - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/groups.rb b/lib/increase/resources/groups.rb index 1477664..752f9c9 100644 --- a/lib/increase/resources/groups.rb +++ b/lib/increase/resources/groups.rb @@ -8,9 +8,9 @@ def initialize(client:) end # Returns details for the currently authenticated Group. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Group] def retrieve_details(opts = {}) req = {} diff --git a/lib/increase/resources/inbound_ach_transfers.rb b/lib/increase/resources/inbound_ach_transfers.rb index d100300..0be4f4a 100644 --- a/lib/increase/resources/inbound_ach_transfers.rb +++ b/lib/increase/resources/inbound_ach_transfers.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an Inbound ACH Transfer - # + # # @param inbound_ach_transfer_id [String] The identifier of the Inbound ACH Transfer to get details for. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundACHTransfer] def retrieve(inbound_ach_transfer_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(inbound_ach_transfer_id, opts = {}) end # List Inbound ACH Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Inbound ACH Tranfers to ones belonging to the specified Account. # @option params [String] :account_number_id Filter Inbound ACH Tranfers to ones belonging to the specified Account Number. @@ -31,9 +31,9 @@ def retrieve(inbound_ach_transfer_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Symbol] :status Filter Inbound ACH Transfers to those with the specified status. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -46,10 +46,10 @@ def list(params = {}, opts = {}) end # Decline an Inbound ACH Transfer - # + # # @param inbound_ach_transfer_id [String] The identifier of the Inbound ACH Transfer to decline. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundACHTransfer] def decline(inbound_ach_transfer_id, opts = {}) req = {} @@ -60,16 +60,16 @@ def decline(inbound_ach_transfer_id, opts = {}) end # Create a notification of change for an Inbound ACH Transfer - # + # # @param inbound_ach_transfer_id [String] The identifier of the Inbound ACH Transfer for which to create a notification of # change. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :updated_account_number The updated account number to send in the notification of change. # @option params [String] :updated_routing_number The updated routing number to send in the notification of change. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundACHTransfer] def notification_of_change(inbound_ach_transfer_id, params = {}, opts = {}) req = {} @@ -81,16 +81,16 @@ def notification_of_change(inbound_ach_transfer_id, params = {}, opts = {}) end # Return an Inbound ACH Transfer - # + # # @param inbound_ach_transfer_id [String] The identifier of the Inbound ACH Transfer to return to the originating # financial institution. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :reason The reason why this transfer will be returned. The most usual return codes are # `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundACHTransfer] def transfer_return(inbound_ach_transfer_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/inbound_check_deposits.rb b/lib/increase/resources/inbound_check_deposits.rb index ddd0a88..bc63b5d 100644 --- a/lib/increase/resources/inbound_check_deposits.rb +++ b/lib/increase/resources/inbound_check_deposits.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an Inbound Check Deposit - # + # # @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to get details for. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundCheckDeposit] def retrieve(inbound_check_deposit_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(inbound_check_deposit_id, opts = {}) end # List Inbound Check Deposits - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Inbound Check Deposits to those belonging to the specified Account. # @option params [String] :check_transfer_id Filter Inbound Check Deposits to those belonging to the specified Check @@ -31,9 +31,9 @@ def retrieve(inbound_check_deposit_id, opts = {}) # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -46,10 +46,10 @@ def list(params = {}, opts = {}) end # Decline an Inbound Check Deposit - # + # # @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to decline. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundCheckDeposit] def decline(inbound_check_deposit_id, opts = {}) req = {} diff --git a/lib/increase/resources/inbound_wire_drawdown_requests.rb b/lib/increase/resources/inbound_wire_drawdown_requests.rb index 08502cd..5a0deb4 100644 --- a/lib/increase/resources/inbound_wire_drawdown_requests.rb +++ b/lib/increase/resources/inbound_wire_drawdown_requests.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an Inbound Wire Drawdown Request - # + # # @param inbound_wire_drawdown_request_id [String] The identifier of the Inbound Wire Drawdown Request to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundWireDrawdownRequest] def retrieve(inbound_wire_drawdown_request_id, opts = {}) req = {} @@ -22,14 +22,14 @@ def retrieve(inbound_wire_drawdown_request_id, opts = {}) end # List Inbound Wire Drawdown Requests - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/inbound_wire_transfers.rb b/lib/increase/resources/inbound_wire_transfers.rb index 6de4021..8275f87 100644 --- a/lib/increase/resources/inbound_wire_transfers.rb +++ b/lib/increase/resources/inbound_wire_transfers.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an Inbound Wire Transfer - # + # # @param inbound_wire_transfer_id [String] The identifier of the Inbound Wire Transfer to get details for. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundWireTransfer] def retrieve(inbound_wire_transfer_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(inbound_wire_transfer_id, opts = {}) end # List Inbound Wire Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Inbound Wire Tranfers to ones belonging to the specified Account. # @option params [String] :account_number_id Filter Inbound Wire Tranfers to ones belonging to the specified Account Number. @@ -31,9 +31,9 @@ def retrieve(inbound_wire_transfer_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Symbol] :status Filter Inbound Wire Transfers to those with the specified status. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/intrafi/account_enrollments.rb b/lib/increase/resources/intrafi/account_enrollments.rb index 35c79c5..f2a1e42 100644 --- a/lib/increase/resources/intrafi/account_enrollments.rb +++ b/lib/increase/resources/intrafi/account_enrollments.rb @@ -9,13 +9,13 @@ def initialize(client:) end # Enroll an account in the IntraFi deposit sweep network. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier for the account to be added to IntraFi. # @option params [String] :email_address The contact email for the account owner, to be shared with IntraFi. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiAccountEnrollment] def create(params = {}, opts = {}) req = {} @@ -27,10 +27,10 @@ def create(params = {}, opts = {}) end # Get an IntraFi Account Enrollment - # + # # @param intrafi_account_enrollment_id [String] The identifier of the IntraFi Account Enrollment to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiAccountEnrollment] def retrieve(intrafi_account_enrollment_id, opts = {}) req = {} @@ -41,7 +41,7 @@ def retrieve(intrafi_account_enrollment_id, opts = {}) end # List IntraFi Account Enrollments - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter IntraFi Account Enrollments to the one belonging to an account. # @option params [String] :cursor Return the page of entries after this one. @@ -52,9 +52,9 @@ def retrieve(intrafi_account_enrollment_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -67,10 +67,10 @@ def list(params = {}, opts = {}) end # Unenroll an account from IntraFi. - # + # # @param intrafi_account_enrollment_id [String] The Identifier of the IntraFi Account Enrollment to remove from IntraFi. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiAccountEnrollment] def unenroll(intrafi_account_enrollment_id, opts = {}) req = {} diff --git a/lib/increase/resources/intrafi/balances.rb b/lib/increase/resources/intrafi/balances.rb index 52f2595..2e068b3 100644 --- a/lib/increase/resources/intrafi/balances.rb +++ b/lib/increase/resources/intrafi/balances.rb @@ -9,10 +9,10 @@ def initialize(client:) end # Get IntraFi balances by bank - # + # # @param account_id [String] The identifier of the Account to get balances for. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiBalance] def retrieve(account_id, opts = {}) req = {} diff --git a/lib/increase/resources/intrafi/exclusions.rb b/lib/increase/resources/intrafi/exclusions.rb index 8f5383b..e121ae0 100644 --- a/lib/increase/resources/intrafi/exclusions.rb +++ b/lib/increase/resources/intrafi/exclusions.rb @@ -9,13 +9,13 @@ def initialize(client:) end # Create an IntraFi Exclusion - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :bank_name The name of the financial institution to be excluded. # @option params [String] :entity_id The identifier of the Entity whose deposits will be excluded. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiExclusion] def create(params = {}, opts = {}) req = {} @@ -27,10 +27,10 @@ def create(params = {}, opts = {}) end # Get an IntraFi Exclusion - # + # # @param intrafi_exclusion_id [String] The identifier of the IntraFi Exclusion to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiExclusion] def retrieve(intrafi_exclusion_id, opts = {}) req = {} @@ -41,7 +41,7 @@ def retrieve(intrafi_exclusion_id, opts = {}) end # List IntraFi Exclusions. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :entity_id Filter IntraFi Exclusions for those belonging to the specified Entity. @@ -51,9 +51,9 @@ def retrieve(intrafi_exclusion_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -66,12 +66,12 @@ def list(params = {}, opts = {}) end # Archive an IntraFi Exclusion - # + # # @param intrafi_exclusion_id [String] The identifier of the IntraFi Exclusion request to archive. It may take 5 # business days for an exclusion removal to be processed. Removing an exclusion # does not guarantee that funds will be swept to the previously-excluded bank. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::IntrafiExclusion] def archive(intrafi_exclusion_id, opts = {}) req = {} diff --git a/lib/increase/resources/oauth_connections.rb b/lib/increase/resources/oauth_connections.rb index 624b0f8..b0158b0 100644 --- a/lib/increase/resources/oauth_connections.rb +++ b/lib/increase/resources/oauth_connections.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve an OAuth Connection - # + # # @param oauth_connection_id [String] The identifier of the OAuth Connection. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::OAuthConnection] def retrieve(oauth_connection_id, opts = {}) req = {} @@ -22,15 +22,15 @@ def retrieve(oauth_connection_id, opts = {}) end # List OAuth Connections - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/oauth_tokens.rb b/lib/increase/resources/oauth_tokens.rb index 85abaea..c099ff2 100644 --- a/lib/increase/resources/oauth_tokens.rb +++ b/lib/increase/resources/oauth_tokens.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create an OAuth Token - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :grant_type The credential you request in exchange for the code. In Production, this is # always `authorization_code`. In Sandbox, you can pass either enum value. @@ -21,9 +21,9 @@ def initialize(client:) # @option params [String] :production_token The production token you want to exchange for a sandbox token. This is only # available in Sandbox. Set `grant_type` to `production_token` to use this # parameter. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::OAuthToken] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/pending_transactions.rb b/lib/increase/resources/pending_transactions.rb index 56bf3dc..e76c568 100644 --- a/lib/increase/resources/pending_transactions.rb +++ b/lib/increase/resources/pending_transactions.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Pending Transaction - # + # # @param pending_transaction_id [String] The identifier of the Pending Transaction. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PendingTransaction] def retrieve(pending_transaction_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(pending_transaction_id, opts = {}) end # List Pending Transactions - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter pending transactions to those belonging to the specified Account. # @option params [Category] :category @@ -33,9 +33,9 @@ def retrieve(pending_transaction_id, opts = {}) # @option params [String] :route_id Filter pending transactions to those belonging to the specified Route. # @option params [String] :source_id Filter pending transactions to those caused by the specified source. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/physical_card_profiles.rb b/lib/increase/resources/physical_card_profiles.rb index d1649c8..875c7f9 100644 --- a/lib/increase/resources/physical_card_profiles.rb +++ b/lib/increase/resources/physical_card_profiles.rb @@ -8,15 +8,15 @@ def initialize(client:) end # Create a Physical Card Profile - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :carrier_image_file_id The identifier of the File containing the physical card's carrier image. # @option params [String] :contact_phone A phone number the user can contact to receive support for their card. # @option params [String] :description A description you can use to identify the Card Profile. # @option params [String] :front_image_file_id The identifier of the File containing the physical card's front image. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCardProfile] def create(params = {}, opts = {}) req = {} @@ -28,10 +28,10 @@ def create(params = {}, opts = {}) end # Retrieve a Card Profile - # + # # @param physical_card_profile_id [String] The identifier of the Card Profile. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCardProfile] def retrieve(physical_card_profile_id, opts = {}) req = {} @@ -42,7 +42,7 @@ def retrieve(physical_card_profile_id, opts = {}) end # List Physical Card Profiles - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -52,9 +52,9 @@ def retrieve(physical_card_profile_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Status] :status - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -67,10 +67,10 @@ def list(params = {}, opts = {}) end # Archive a Physical Card Profile - # + # # @param physical_card_profile_id [String] The identifier of the Physical Card Profile to archive. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCardProfile] def archive(physical_card_profile_id, opts = {}) req = {} @@ -81,9 +81,9 @@ def archive(physical_card_profile_id, opts = {}) end # Clone a Physical Card Profile - # + # # @param physical_card_profile_id [String] The identifier of the Physical Card Profile to clone. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :carrier_image_file_id The identifier of the File containing the physical card's carrier image. # @option params [String] :contact_phone A phone number the user can contact to receive support for their card. @@ -91,9 +91,9 @@ def archive(physical_card_profile_id, opts = {}) # @option params [String] :front_image_file_id The identifier of the File containing the physical card's front image. # @option params [FrontText] :front_text Text printed on the front of the card. Reach out to # [support@increase.com](mailto:support@increase.com) for more information. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCardProfile] def clone(physical_card_profile_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/physical_cards.rb b/lib/increase/resources/physical_cards.rb index a895ec8..9d016f7 100644 --- a/lib/increase/resources/physical_cards.rb +++ b/lib/increase/resources/physical_cards.rb @@ -8,16 +8,16 @@ def initialize(client:) end # Create a Physical Card - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_id The underlying card representing this physical card. # @option params [Cardholder] :cardholder Details about the cardholder, as it will appear on the physical card. # @option params [Shipment] :shipment The details used to ship this physical card. # @option params [String] :physical_card_profile_id The physical card profile to use for this physical card. The latest default # physical card profile will be used if not provided. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCard] def create(params = {}, opts = {}) req = {} @@ -29,10 +29,10 @@ def create(params = {}, opts = {}) end # Retrieve a Physical Card - # + # # @param physical_card_id [String] The identifier of the Physical Card. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCard] def retrieve(physical_card_id, opts = {}) req = {} @@ -43,14 +43,14 @@ def retrieve(physical_card_id, opts = {}) end # Update a Physical Card - # + # # @param physical_card_id [String] The Physical Card identifier. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :status The status to update the Physical Card to. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCard] def update(physical_card_id, params = {}, opts = {}) req = {} @@ -62,7 +62,7 @@ def update(physical_card_id, params = {}, opts = {}) end # List Physical Cards - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_id Filter Physical Cards to ones belonging to the specified Card. # @option params [CreatedAt] :created_at @@ -73,9 +73,9 @@ def update(physical_card_id, params = {}, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/programs.rb b/lib/increase/resources/programs.rb index c9eff14..3bca9b1 100644 --- a/lib/increase/resources/programs.rb +++ b/lib/increase/resources/programs.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Program - # + # # @param program_id [String] The identifier of the Program to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Program] def retrieve(program_id, opts = {}) req = {} @@ -22,14 +22,14 @@ def retrieve(program_id, opts = {}) end # List Programs - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/proof_of_authorization_request_submissions.rb b/lib/increase/resources/proof_of_authorization_request_submissions.rb index dd1839c..68e69f4 100644 --- a/lib/increase/resources/proof_of_authorization_request_submissions.rb +++ b/lib/increase/resources/proof_of_authorization_request_submissions.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Submit Proof of Authorization - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :authorization_terms Terms of authorization. # @option params [String] :authorized_at Time of authorization. @@ -21,9 +21,9 @@ def initialize(client:) # @option params [Boolean] :validated_account_ownership_with_microdeposit Whether the account ownership was validated with a microdeposit. # @option params [String] :authorizer_company Company of the authorizer. # @option params [String] :authorizer_ip_address IP address of the authorizer. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ProofOfAuthorizationRequestSubmission] def create(params = {}, opts = {}) req = {} @@ -35,21 +35,22 @@ def create(params = {}, opts = {}) end # Retrieve a Proof of Authorization Request Submission - # + # # @param proof_of_authorization_request_submission_id [String] The identifier of the Proof of Authorization Request Submission. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ProofOfAuthorizationRequestSubmission] def retrieve(proof_of_authorization_request_submission_id, opts = {}) req = {} req[:method] = :get - req[:path] = "/proof_of_authorization_request_submissions/#{proof_of_authorization_request_submission_id}" + req[:path] = + "/proof_of_authorization_request_submissions/#{proof_of_authorization_request_submission_id}" req[:model] = Increase::Models::ProofOfAuthorizationRequestSubmission @client.request(req, opts) end # List Proof of Authorization Request Submissions - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -59,9 +60,9 @@ def retrieve(proof_of_authorization_request_submission_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [String] :proof_of_authorization_request_id ID of the proof of authorization request. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/proof_of_authorization_requests.rb b/lib/increase/resources/proof_of_authorization_requests.rb index 9314274..8d90dad 100644 --- a/lib/increase/resources/proof_of_authorization_requests.rb +++ b/lib/increase/resources/proof_of_authorization_requests.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Proof of Authorization Request - # + # # @param proof_of_authorization_request_id [String] The identifier of the Proof of Authorization Request. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ProofOfAuthorizationRequest] def retrieve(proof_of_authorization_request_id, opts = {}) req = {} @@ -22,15 +22,15 @@ def retrieve(proof_of_authorization_request_id, opts = {}) end # List Proof of Authorization Requests - # + # # @param params [Hash] Attributes to send in this request. # @option params [CreatedAt] :created_at # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/real_time_decisions.rb b/lib/increase/resources/real_time_decisions.rb index 59172e7..6fe0b85 100644 --- a/lib/increase/resources/real_time_decisions.rb +++ b/lib/increase/resources/real_time_decisions.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Real-Time Decision - # + # # @param real_time_decision_id [String] The identifier of the Real-Time Decision. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimeDecision] def retrieve(real_time_decision_id, opts = {}) req = {} @@ -22,9 +22,9 @@ def retrieve(real_time_decision_id, opts = {}) end # Action a Real-Time Decision - # + # # @param real_time_decision_id [String] The identifier of the Real-Time Decision. - # + # # @param params [Hash] Attributes to send in this request. # @option params [CardAuthorization] :card_authorization If the Real-Time Decision relates to a card authorization attempt, this object # contains your response to the authorization. @@ -32,9 +32,9 @@ def retrieve(real_time_decision_id, opts = {}) # this object contains your response to the authentication. # @option params [DigitalWalletToken] :digital_wallet_token If the Real-Time Decision relates to a digital wallet token provisioning # attempt, this object contains your response to the attempt. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimeDecision] def action(real_time_decision_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/real_time_payments_request_for_payments.rb b/lib/increase/resources/real_time_payments_request_for_payments.rb index 56f7361..57c356d 100644 --- a/lib/increase/resources/real_time_payments_request_for_payments.rb +++ b/lib/increase/resources/real_time_payments_request_for_payments.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Real-Time Payments Request for Payment - # + # # @param params [Hash] Attributes to send in this request. # @option params [Integer] :amount The requested amount in USD cents. Must be positive. # @option params [Debtor] :debtor Details of the person being requested to pay. @@ -19,9 +19,9 @@ def initialize(client:) # @option params [String] :source_account_number The account number the funds will be requested from. # @option params [String] :source_routing_number The requestee's American Bankers' Association (ABA) Routing Transit Number # (RTN). - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimePaymentsRequestForPayment] def create(params = {}, opts = {}) req = {} @@ -33,10 +33,10 @@ def create(params = {}, opts = {}) end # Retrieve a Real-Time Payments Request for Payment - # + # # @param request_for_payment_id [String] The identifier of the Real-Time Payments Request for Payment. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimePaymentsRequestForPayment] def retrieve(request_for_payment_id, opts = {}) req = {} @@ -47,7 +47,7 @@ def retrieve(request_for_payment_id, opts = {}) end # List Real-Time Payments Request for Payments - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Real-Time Payments Request for Payments to those destined to the # specified Account. @@ -59,9 +59,9 @@ def retrieve(request_for_payment_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/real_time_payments_transfers.rb b/lib/increase/resources/real_time_payments_transfers.rb index 03b5310..99b9fba 100644 --- a/lib/increase/resources/real_time_payments_transfers.rb +++ b/lib/increase/resources/real_time_payments_transfers.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Real-Time Payments Transfer - # + # # @param params [Hash] Attributes to send in this request. # @option params [Integer] :amount The transfer amount in USD cents. For Real-Time Payments transfers, must be # positive. @@ -28,9 +28,9 @@ def initialize(client:) # an intermediary receiving the payment for someone else. # @option params [String] :ultimate_debtor_name The name of the ultimate sender of the transfer. Set this if the funds are being # sent on behalf of someone who is not the account holder at Increase. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimePaymentsTransfer] def create(params = {}, opts = {}) req = {} @@ -42,10 +42,10 @@ def create(params = {}, opts = {}) end # Retrieve a Real-Time Payments Transfer - # + # # @param real_time_payments_transfer_id [String] The identifier of the Real-Time Payments Transfer. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimePaymentsTransfer] def retrieve(real_time_payments_transfer_id, opts = {}) req = {} @@ -56,7 +56,7 @@ def retrieve(real_time_payments_transfer_id, opts = {}) end # List Real-Time Payments Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Real-Time Payments Transfers to those belonging to the specified Account. # @option params [CreatedAt] :created_at @@ -69,9 +69,9 @@ def retrieve(real_time_payments_transfer_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/routing_numbers.rb b/lib/increase/resources/routing_numbers.rb index ac00bdf..04caffa 100644 --- a/lib/increase/resources/routing_numbers.rb +++ b/lib/increase/resources/routing_numbers.rb @@ -11,15 +11,15 @@ def initialize(client:) # user is providing you with bank account details. Since routing numbers uniquely # identify a bank, this will always return 0 or 1 entry. In Sandbox, the only # valid routing number for this method is 110000000. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :routing_number Filter financial institutions by routing number. # @option params [String] :cursor Return the page of entries after this one. # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations.rb b/lib/increase/resources/simulations.rb index 0ba565e..4a6a064 100644 --- a/lib/increase/resources/simulations.rb +++ b/lib/increase/resources/simulations.rb @@ -80,12 +80,12 @@ def initialize(client:) end # Simulates expiring a card authorization immediately. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_payment_id The identifier of the Card Payment to expire. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardPayment] def card_authorization_expirations(params = {}, opts = {}) req = {} @@ -99,14 +99,14 @@ def card_authorization_expirations(params = {}, opts = {}) # Simulates the fuel confirmation of an authorization by a card acquirer. This # happens asynchronously right after a fuel pump transaction is completed. A fuel # confirmation can only happen once per authorization. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Integer] :amount The amount of the fuel_confirmation in minor units in the card authorization's # currency. # @option params [String] :card_payment_id The identifier of the Card Payment to create a fuel_confirmation on. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardPayment] def card_fuel_confirmations(params = {}, opts = {}) req = {} @@ -119,7 +119,7 @@ def card_fuel_confirmations(params = {}, opts = {}) # Simulates the increment of an authorization by a card acquirer. An authorization # can be incremented multiple times. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Integer] :amount The amount of the increment in minor units in the card authorization's currency. # @option params [String] :card_payment_id The identifier of the Card Payment to create a increment on. @@ -127,9 +127,9 @@ def card_fuel_confirmations(params = {}, opts = {}) # default real time event subscription. Because you can only create one real time # decision event subscription, you can use this field to route events to any # specified event subscription for testing purposes. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardPayment] def card_increments(params = {}, opts = {}) req = {} @@ -144,14 +144,14 @@ def card_increments(params = {}, opts = {}) # can be partially reversed multiple times, up until the total authorized amount. # Marks the pending transaction as complete if the authorization is fully # reversed. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_payment_id The identifier of the Card Payment to create a reversal on. # @option params [Integer] :amount The amount of the reversal in minor units in the card authorization's currency. # This defaults to the authorization amount. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardPayment] def card_reversals(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/account_statements.rb b/lib/increase/resources/simulations/account_statements.rb index 45aab10..eeef731 100644 --- a/lib/increase/resources/simulations/account_statements.rb +++ b/lib/increase/resources/simulations/account_statements.rb @@ -10,12 +10,12 @@ def initialize(client:) # Simulates an [Account Statement](#account-statements) being created for an # account. In production, Account Statements are generated once per month. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier of the Account the statement is for. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountStatement] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/account_transfers.rb b/lib/increase/resources/simulations/account_transfers.rb index 98050ee..5fff7e9 100644 --- a/lib/increase/resources/simulations/account_transfers.rb +++ b/lib/increase/resources/simulations/account_transfers.rb @@ -12,10 +12,10 @@ def initialize(client:) # endpoint simulates the approval of an [Account Transfer](#account-transfers). # You can also approve sandbox Account Transfers in the dashboard. This transfer # must first have a `status` of `pending_approval`. - # + # # @param account_transfer_id [String] The identifier of the Account Transfer you wish to complete. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::AccountTransfer] def complete(account_transfer_id, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/ach_transfers.rb b/lib/increase/resources/simulations/ach_transfers.rb index 13aa37f..2d6ba15 100644 --- a/lib/increase/resources/simulations/ach_transfers.rb +++ b/lib/increase/resources/simulations/ach_transfers.rb @@ -18,7 +18,7 @@ def initialize(client:) # contain either a [Transaction](#transactions) or a # [Declined Transaction](#declined-transactions) depending on whether or not the # transfer is allowed. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_number_id The identifier of the Account Number the inbound ACH Transfer is for. # @option params [Integer] :amount The transfer amount in cents. A positive amount originates a credit transfer @@ -33,9 +33,9 @@ def initialize(client:) # @option params [String] :receiver_name The name of the receiver of the transfer. # @option params [String] :resolve_at The time at which the transfer should be resolved. If not provided will resolve # immediately. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundACHTransfer] def create_inbound(params = {}, opts = {}) req = {} @@ -48,16 +48,16 @@ def create_inbound(params = {}, opts = {}) # Simulates receiving a Notification of Change for an # [ACH Transfer](#ach-transfers). - # + # # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to create a notification of change # for. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :change_code The reason for the notification of change. # @option params [String] :corrected_data The corrected data for the notification of change (e.g., a new routing number). - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def notification_of_change(ach_transfer_id, params = {}, opts = {}) req = {} @@ -71,15 +71,15 @@ def notification_of_change(ach_transfer_id, params = {}, opts = {}) # Simulates the return of an [ACH Transfer](#ach-transfers) by the Federal Reserve # due to an error condition. This will also create a Transaction to account for # the returned funds. This transfer must first have a `status` of `submitted`. - # + # # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to return. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :reason The reason why the Federal Reserve or destination bank returned this transfer. # Defaults to `no_account`. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def return_(ach_transfer_id, params = {}, opts = {}) req = {} @@ -96,10 +96,10 @@ def return_(ach_transfer_id, params = {}, opts = {}) # Federal Reserve three times per day on weekdays. Since sandbox ACH Transfers are # not submitted to the Federal Reserve, this endpoint allows you to skip that # delay and transition the ACH Transfer to a status of `submitted`. - # + # # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to submit. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::ACHTransfer] def submit(ach_transfer_id, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/card_disputes.rb b/lib/increase/resources/simulations/card_disputes.rb index ec2b4fd..b93565a 100644 --- a/lib/increase/resources/simulations/card_disputes.rb +++ b/lib/increase/resources/simulations/card_disputes.rb @@ -12,15 +12,15 @@ def initialize(client:) # will be reviewed. Since no review happens in sandbox, this endpoint simulates # moving a Card Dispute into a rejected or accepted state. A Card Dispute can only # be actioned one time and must have a status of `pending_reviewing`. - # + # # @param card_dispute_id [String] The dispute you would like to action. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :status The status to move the dispute to. # @option params [String] :explanation Why the dispute was rejected. Not required for accepting disputes. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardDispute] def action(card_dispute_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/card_refunds.rb b/lib/increase/resources/simulations/card_refunds.rb index 51ec80f..4c16d68 100644 --- a/lib/increase/resources/simulations/card_refunds.rb +++ b/lib/increase/resources/simulations/card_refunds.rb @@ -10,13 +10,13 @@ def initialize(client:) # Simulates refunding a card transaction. The full value of the original sandbox # transaction is refunded. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :transaction_id The identifier for the Transaction to refund. The Transaction's source must have # a category of card_settlement. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Transaction] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/cards.rb b/lib/increase/resources/simulations/cards.rb index a2698f3..dfea83c 100644 --- a/lib/increase/resources/simulations/cards.rb +++ b/lib/increase/resources/simulations/cards.rb @@ -15,7 +15,7 @@ def initialize(client:) # `card_decline`. You can pass either a Card id or a # [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different # ways purchases can be made. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Integer] :amount The authorization amount in cents. # @option params [String] :card_id The identifier of the Card to be authorized. @@ -32,9 +32,9 @@ def initialize(client:) # @option params [String] :merchant_country The country the merchant resides in. # @option params [String] :merchant_descriptor The merchant descriptor of the merchant the card is transacting with. # @option params [String] :physical_card_id The identifier of the Physical Card to be authorized. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CardAuthorizationSimulation] def authorize(params = {}, opts = {}) req = {} @@ -50,16 +50,16 @@ def authorize(params = {}, opts = {}) # simulates that event, which may occur many days after the purchase in # production. The amount settled can be different from the amount originally # authorized, for example, when adding a tip to a restaurant bill. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_id The identifier of the Card to create a settlement on. # @option params [String] :pending_transaction_id The identifier of the Pending Transaction for the Card Authorization you wish to # settle. # @option params [Integer] :amount The amount to be settled. This defaults to the amount of the Pending Transaction # being settled. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Transaction] def settlement(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/check_deposits.rb b/lib/increase/resources/simulations/check_deposits.rb index 41a7fe6..3343472 100644 --- a/lib/increase/resources/simulations/check_deposits.rb +++ b/lib/increase/resources/simulations/check_deposits.rb @@ -11,10 +11,10 @@ def initialize(client:) # Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to # factors like poor image quality. This Check Deposit must first have a `status` # of `pending`. - # + # # @param check_deposit_id [String] The identifier of the Check Deposit you wish to reject. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckDeposit] def reject(check_deposit_id, opts = {}) req = {} @@ -26,10 +26,10 @@ def reject(check_deposit_id, opts = {}) # Simulates the return of a [Check Deposit](#check-deposits). This Check Deposit # must first have a `status` of `submitted`. - # + # # @param check_deposit_id [String] The identifier of the Check Deposit you wish to return. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckDeposit] def return_(check_deposit_id, opts = {}) req = {} @@ -41,10 +41,10 @@ def return_(check_deposit_id, opts = {}) # Simulates the submission of a [Check Deposit](#check-deposits) to the Federal # Reserve. This Check Deposit must first have a `status` of `pending`. - # + # # @param check_deposit_id [String] The identifier of the Check Deposit you wish to submit. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckDeposit] def submit(check_deposit_id, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/check_transfers.rb b/lib/increase/resources/simulations/check_transfers.rb index 494c8dd..165f5c6 100644 --- a/lib/increase/resources/simulations/check_transfers.rb +++ b/lib/increase/resources/simulations/check_transfers.rb @@ -11,10 +11,10 @@ def initialize(client:) # Simulates the mailing of a [Check Transfer](#check-transfers), which happens # once per weekday in production but can be sped up in sandbox. This transfer must # first have a `status` of `pending_approval` or `pending_submission`. - # + # # @param check_transfer_id [String] The identifier of the Check Transfer you wish to mail. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::CheckTransfer] def mail(check_transfer_id, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/digital_wallet_token_requests.rb b/lib/increase/resources/simulations/digital_wallet_token_requests.rb index ecfb163..47b3003 100644 --- a/lib/increase/resources/simulations/digital_wallet_token_requests.rb +++ b/lib/increase/resources/simulations/digital_wallet_token_requests.rb @@ -10,12 +10,12 @@ def initialize(client:) # Simulates a user attempting add a [Card](#cards) to a digital wallet such as # Apple Pay. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :card_id The identifier of the Card to be authorized. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::DigitalWalletTokenRequestCreateResponse] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/documents.rb b/lib/increase/resources/simulations/documents.rb index e432948..e3e4a94 100644 --- a/lib/increase/resources/simulations/documents.rb +++ b/lib/increase/resources/simulations/documents.rb @@ -9,12 +9,12 @@ def initialize(client:) end # Simulates an tax document being created for an account. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier of the Account the tax document is for. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Document] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/inbound_check_deposits.rb b/lib/increase/resources/simulations/inbound_check_deposits.rb index e94fc99..a3ae9f2 100644 --- a/lib/increase/resources/simulations/inbound_check_deposits.rb +++ b/lib/increase/resources/simulations/inbound_check_deposits.rb @@ -14,14 +14,14 @@ def initialize(client:) # Deposit as we would in production and either create a Transaction or a Declined # Transaction as a result. You can inspect the resulting Inbound Check Deposit # object to see the result. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_number_id The identifier of the Account Number the Inbound Check Deposit will be against. # @option params [Integer] :amount The check amount in cents. # @option params [String] :check_number The check number on the check to be deposited. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundCheckDeposit] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/inbound_funds_holds.rb b/lib/increase/resources/simulations/inbound_funds_holds.rb index 8baef02..6a00cb2 100644 --- a/lib/increase/resources/simulations/inbound_funds_holds.rb +++ b/lib/increase/resources/simulations/inbound_funds_holds.rb @@ -10,10 +10,10 @@ def initialize(client:) # This endpoint simulates immediately releasing an inbound funds hold, which might # be created as a result of e.g., an ACH debit. - # + # # @param inbound_funds_hold_id [String] The inbound funds hold to release. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundFundsHoldReleaseResponse] def release(inbound_funds_hold_id, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb b/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb index a816f57..0af1892 100644 --- a/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb +++ b/lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb @@ -10,7 +10,7 @@ def initialize(client:) # Simulates receiving an # [Inbound Wire Drawdown Request](#inbound-wire-drawdown-requests). - # + # # @param params [Hash] Attributes to send in this request. # @option params [Integer] :amount The amount being requested in cents. # @option params [String] :beneficiary_account_number The drawdown request's beneficiary's account number. @@ -38,9 +38,9 @@ def initialize(client:) # beneficiary. # @option params [String] :originator_to_beneficiary_information_line4 Line 4 of the information conveyed from the originator of the message to the # beneficiary. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundWireDrawdownRequest] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/interest_payments.rb b/lib/increase/resources/simulations/interest_payments.rb index 1fe3d39..6a9dbeb 100644 --- a/lib/increase/resources/simulations/interest_payments.rb +++ b/lib/increase/resources/simulations/interest_payments.rb @@ -10,15 +10,15 @@ def initialize(client:) # Simulates an interest payment to your account. In production, this happens # automatically on the first of each month. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier of the Account Number the Interest Payment is for. # @option params [Integer] :amount The interest amount in cents. Must be positive. # @option params [String] :period_end The end of the interest period. If not provided, defaults to the current time. # @option params [String] :period_start The start of the interest period. If not provided, defaults to the current time. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Transaction] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/physical_cards.rb b/lib/increase/resources/simulations/physical_cards.rb index aad50cd..4e899f7 100644 --- a/lib/increase/resources/simulations/physical_cards.rb +++ b/lib/increase/resources/simulations/physical_cards.rb @@ -11,14 +11,14 @@ def initialize(client:) # This endpoint allows you to simulate advancing the shipment status of a Physical # Card, to simulate e.g., that a physical card was attempted shipped but then # failed delivery. - # + # # @param physical_card_id [String] The Physical Card you would like to action. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Symbol] :shipment_status The shipment status to move the Physical Card to. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::PhysicalCard] def shipment_advance(physical_card_id, params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/programs.rb b/lib/increase/resources/simulations/programs.rb index 9194716..f5c90a6 100644 --- a/lib/increase/resources/simulations/programs.rb +++ b/lib/increase/resources/simulations/programs.rb @@ -11,12 +11,12 @@ def initialize(client:) # Simulates a program being created in your group. By default, your group has one # program called Commercial Banking. Note that when your group operates more than # one program, `program_id` is a required field when creating accounts. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :name The name of the program being added. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Program] def create(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/real_time_payments_transfers.rb b/lib/increase/resources/simulations/real_time_payments_transfers.rb index 2e4f57b..4d1eb08 100644 --- a/lib/increase/resources/simulations/real_time_payments_transfers.rb +++ b/lib/increase/resources/simulations/real_time_payments_transfers.rb @@ -11,14 +11,14 @@ def initialize(client:) # Simulates submission of a Real-Time Payments transfer and handling the response # from the destination financial institution. This transfer must first have a # `status` of `pending_submission`. - # + # # @param real_time_payments_transfer_id [String] The identifier of the Real-Time Payments Transfer you wish to complete. - # + # # @param params [Hash] Attributes to send in this request. # @option params [Rejection] :rejection If set, the simulation will reject the transfer. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::RealTimePaymentsTransfer] def complete(real_time_payments_transfer_id, params = {}, opts = {}) req = {} @@ -31,7 +31,7 @@ def complete(real_time_payments_transfer_id, params = {}, opts = {}) # Simulates an inbound Real-Time Payments transfer to your account. Real-Time # Payments are a beta feature. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_number_id The identifier of the Account Number the inbound Real-Time Payments Transfer is # for. @@ -41,9 +41,9 @@ def complete(real_time_payments_transfer_id, params = {}, opts = {}) # @option params [String] :debtor_routing_number The routing number of the account that sent the transfer. # @option params [String] :remittance_information Additional information included with the transfer. # @option params [String] :request_for_payment_id The identifier of a pending Request for Payment that this transfer will fulfill. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundRealTimePaymentsTransferSimulationResult] def create_inbound(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/simulations/wire_transfers.rb b/lib/increase/resources/simulations/wire_transfers.rb index dd94800..11a3741 100644 --- a/lib/increase/resources/simulations/wire_transfers.rb +++ b/lib/increase/resources/simulations/wire_transfers.rb @@ -9,7 +9,7 @@ def initialize(client:) end # Simulates an inbound Wire Transfer to your account. - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_number_id The identifier of the Account Number the inbound Wire Transfer is for. # @option params [Integer] :amount The transfer amount in cents. Must be positive. @@ -41,9 +41,9 @@ def initialize(client:) # production. You can simulate any value here. # @option params [String] :originator_to_beneficiary_information_line4 The sending bank will set originator_to_beneficiary_information_line4 in # production. You can simulate any value here. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::InboundWireTransfer] def create_inbound(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/transactions.rb b/lib/increase/resources/transactions.rb index 4a03501..3f6ade2 100644 --- a/lib/increase/resources/transactions.rb +++ b/lib/increase/resources/transactions.rb @@ -8,10 +8,10 @@ def initialize(client:) end # Retrieve a Transaction - # + # # @param transaction_id [String] The identifier of the Transaction to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::Transaction] def retrieve(transaction_id, opts = {}) req = {} @@ -22,7 +22,7 @@ def retrieve(transaction_id, opts = {}) end # List Transactions - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Transactions for those belonging to the specified Account. # @option params [Category] :category @@ -32,9 +32,9 @@ def retrieve(transaction_id, opts = {}) # objects. # @option params [String] :route_id Filter Transactions for those belonging to the specified route. This could be a # Card ID or an Account Number ID. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/wire_drawdown_requests.rb b/lib/increase/resources/wire_drawdown_requests.rb index 68eb09c..171ff2b 100644 --- a/lib/increase/resources/wire_drawdown_requests.rb +++ b/lib/increase/resources/wire_drawdown_requests.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Wire Drawdown Request - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_number_id The Account Number to which the recipient should send funds. # @option params [Integer] :amount The amount requested from the recipient, in cents. @@ -31,9 +31,9 @@ def initialize(client:) # @option params [String] :recipient_address_line1 Line 1 of the drawdown request's recipient's address. # @option params [String] :recipient_address_line2 Line 2 of the drawdown request's recipient's address. # @option params [String] :recipient_address_line3 Line 3 of the drawdown request's recipient's address. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireDrawdownRequest] def create(params = {}, opts = {}) req = {} @@ -45,10 +45,10 @@ def create(params = {}, opts = {}) end # Retrieve a Wire Drawdown Request - # + # # @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request to retrieve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireDrawdownRequest] def retrieve(wire_drawdown_request_id, opts = {}) req = {} @@ -59,7 +59,7 @@ def retrieve(wire_drawdown_request_id, opts = {}) end # List Wire Drawdown Requests - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :cursor Return the page of entries after this one. # @option params [String] :idempotency_key Filter records to the one with the specified `idempotency_key` you chose for @@ -69,9 +69,9 @@ def retrieve(wire_drawdown_request_id, opts = {}) # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. # @option params [Symbol] :status Filter Wire Drawdown Requests for those with the specified status. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} diff --git a/lib/increase/resources/wire_transfers.rb b/lib/increase/resources/wire_transfers.rb index 6195471..3a4dbad 100644 --- a/lib/increase/resources/wire_transfers.rb +++ b/lib/increase/resources/wire_transfers.rb @@ -8,7 +8,7 @@ def initialize(client:) end # Create a Wire Transfer - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id The identifier for the account that will send the transfer. # @option params [Integer] :amount The transfer amount in cents. @@ -31,9 +31,9 @@ def initialize(client:) # @option params [Boolean] :require_approval Whether the transfer requires explicit approval via the dashboard or API. # @option params [String] :routing_number The American Bankers' Association (ABA) Routing Transit Number (RTN) for the # destination account. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireTransfer] def create(params = {}, opts = {}) req = {} @@ -45,10 +45,10 @@ def create(params = {}, opts = {}) end # Retrieve a Wire Transfer - # + # # @param wire_transfer_id [String] The identifier of the Wire Transfer. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireTransfer] def retrieve(wire_transfer_id, opts = {}) req = {} @@ -59,7 +59,7 @@ def retrieve(wire_transfer_id, opts = {}) end # List Wire Transfers - # + # # @param params [Hash] Attributes to send in this request. # @option params [String] :account_id Filter Wire Transfers to those belonging to the specified Account. # @option params [CreatedAt] :created_at @@ -71,9 +71,9 @@ def retrieve(wire_transfer_id, opts = {}) # [idempotency](https://increase.com/documentation/idempotency-keys). # @option params [Integer] :limit Limit the size of the list that is returned. The default (and maximum) is 100 # objects. - # + # # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Page] def list(params = {}, opts = {}) req = {} @@ -86,10 +86,10 @@ def list(params = {}, opts = {}) end # Approve a Wire Transfer - # + # # @param wire_transfer_id [String] The identifier of the Wire Transfer to approve. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireTransfer] def approve(wire_transfer_id, opts = {}) req = {} @@ -100,10 +100,10 @@ def approve(wire_transfer_id, opts = {}) end # Cancel a pending Wire Transfer - # + # # @param wire_transfer_id [String] The identifier of the pending Wire Transfer to cancel. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireTransfer] def cancel(wire_transfer_id, opts = {}) req = {} @@ -117,10 +117,10 @@ def cancel(wire_transfer_id, opts = {}) # Reserve due to error conditions. This will also create a # [Transaction](#transaction) to account for the returned funds. This Wire # Transfer must first have a `status` of `complete`. - # + # # @param wire_transfer_id [String] The identifier of the Wire Transfer you wish to reverse. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireTransfer] def reverse(wire_transfer_id, opts = {}) req = {} @@ -133,10 +133,10 @@ def reverse(wire_transfer_id, opts = {}) # Simulates the submission of a [Wire Transfer](#wire-transfers) to the Federal # Reserve. This transfer must first have a `status` of `pending_approval` or # `pending_creating`. - # + # # @param wire_transfer_id [String] The identifier of the Wire Transfer you wish to submit. # @param opts [Hash|RequestOptions] Options to specify HTTP behaviour for this request. - # + # # @return [Increase::Models::WireTransfer] def submit(wire_transfer_id, opts = {}) req = {} diff --git a/lib/increase/util.rb b/lib/increase/util.rb index b7b943d..cb53b59 100644 --- a/lib/increase/util.rb +++ b/lib/increase/util.rb @@ -33,19 +33,15 @@ def self.deep_merge(left, right, concat: false) end def self.coerce_integer(str) - begin - Integer(str) - rescue - str - end + Integer(str) + rescue StandardError + str end def self.coerce_float(str) - begin - Float(str) - rescue - str - end + Float(str) + rescue StandardError + str end def self.coerce_boolean(input) diff --git a/test/increase/resources/account_numbers_test.rb b/test/increase/resources/account_numbers_test.rb index d2d486d..ddc3004 100644 --- a/test/increase/resources/account_numbers_test.rb +++ b/test/increase/resources/account_numbers_test.rb @@ -8,7 +8,12 @@ def setup end def test_create_required_params - response = @increase.account_numbers.create({account_id: "account_in71c4amph0vgo2qllky", name: "Rent payments"}) + response = @increase.account_numbers.create( + { + account_id: "account_in71c4amph0vgo2qllky", + name: "Rent payments" + } + ) assert_kind_of(Increase::Models::AccountNumber, response) end @@ -23,7 +28,7 @@ def test_update end def test_list - response = @increase.account_numbers.list + response = @increase.account_numbers.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/account_statements_test.rb b/test/increase/resources/account_statements_test.rb index 826e67e..a8e6fa7 100644 --- a/test/increase/resources/account_statements_test.rb +++ b/test/increase/resources/account_statements_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.account_statements.list + response = @increase.account_statements.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/account_transfers_test.rb b/test/increase/resources/account_transfers_test.rb index b5428cb..524bc27 100644 --- a/test/increase/resources/account_transfers_test.rb +++ b/test/increase/resources/account_transfers_test.rb @@ -9,7 +9,12 @@ def setup def test_create_required_params response = @increase.account_transfers.create( - {account_id: "account_in71c4amph0vgo2qllky", amount: 100, description: "Creating liquidity", destination_account_id: "account_uf16sut2ct5bevmq3eh"} + { + account_id: "account_in71c4amph0vgo2qllky", + amount: 100, + description: "Creating liquidity", + destination_account_id: "account_uf16sut2ct5bevmq3eh" + } ) assert_kind_of(Increase::Models::AccountTransfer, response) end @@ -20,7 +25,7 @@ def test_retrieve end def test_list - response = @increase.account_transfers.list + response = @increase.account_transfers.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/accounts_test.rb b/test/increase/resources/accounts_test.rb index 4e30d0a..0bfffcc 100644 --- a/test/increase/resources/accounts_test.rb +++ b/test/increase/resources/accounts_test.rb @@ -23,7 +23,7 @@ def test_update end def test_list - response = @increase.accounts.list + response = @increase.accounts.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/ach_prenotifications_test.rb b/test/increase/resources/ach_prenotifications_test.rb index f587b40..126fe71 100644 --- a/test/increase/resources/ach_prenotifications_test.rb +++ b/test/increase/resources/ach_prenotifications_test.rb @@ -20,7 +20,7 @@ def test_retrieve end def test_list - response = @increase.ach_prenotifications.list + response = @increase.ach_prenotifications.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/ach_transfers_test.rb b/test/increase/resources/ach_transfers_test.rb index e4fec33..369f07c 100644 --- a/test/increase/resources/ach_transfers_test.rb +++ b/test/increase/resources/ach_transfers_test.rb @@ -20,7 +20,7 @@ def test_retrieve end def test_list - response = @increase.ach_transfers.list + response = @increase.ach_transfers.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/bookkeeping_accounts_test.rb b/test/increase/resources/bookkeeping_accounts_test.rb index 6d95bf2..194a5a3 100644 --- a/test/increase/resources/bookkeeping_accounts_test.rb +++ b/test/increase/resources/bookkeeping_accounts_test.rb @@ -18,7 +18,7 @@ def test_update_required_params end def test_list - response = @increase.bookkeeping_accounts.list + response = @increase.bookkeeping_accounts.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/bookkeeping_entries_test.rb b/test/increase/resources/bookkeeping_entries_test.rb index 85ec330..779fbb2 100644 --- a/test/increase/resources/bookkeeping_entries_test.rb +++ b/test/increase/resources/bookkeeping_entries_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.bookkeeping_entries.list + response = @increase.bookkeeping_entries.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/bookkeeping_entry_sets_test.rb b/test/increase/resources/bookkeeping_entry_sets_test.rb index 23432c1..da01e8e 100644 --- a/test/increase/resources/bookkeeping_entry_sets_test.rb +++ b/test/increase/resources/bookkeeping_entry_sets_test.rb @@ -9,7 +9,12 @@ def setup def test_create_required_params response = @increase.bookkeeping_entry_sets.create( - {entries: [{"account_id" => "bookkeeping_account_9husfpw68pzmve9dvvc7", "amount" => 100}, {"account_id" => "bookkeeping_account_t2obldz1rcu15zr54umg", "amount" => -100}]} + { + entries: [ + {"account_id" => "bookkeeping_account_9husfpw68pzmve9dvvc7", "amount" => 100}, + {"account_id" => "bookkeeping_account_t2obldz1rcu15zr54umg", "amount" => -100} + ] + } ) assert_kind_of(Increase::Models::BookkeepingEntrySet, response) end @@ -20,7 +25,7 @@ def test_retrieve end def test_list - response = @increase.bookkeeping_entry_sets.list + response = @increase.bookkeeping_entry_sets.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/card_disputes_test.rb b/test/increase/resources/card_disputes_test.rb index 12551be..e46a9e6 100644 --- a/test/increase/resources/card_disputes_test.rb +++ b/test/increase/resources/card_disputes_test.rb @@ -9,7 +9,10 @@ def setup def test_create_required_params response = @increase.card_disputes.create( - {disputed_transaction_id: "transaction_uyrp7fld2ium70oa7oi", explanation: "Unauthorized recurring transaction."} + { + disputed_transaction_id: "transaction_uyrp7fld2ium70oa7oi", + explanation: "Unauthorized recurring transaction." + } ) assert_kind_of(Increase::Models::CardDispute, response) end @@ -20,7 +23,7 @@ def test_retrieve end def test_list - response = @increase.card_disputes.list + response = @increase.card_disputes.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/card_payments_test.rb b/test/increase/resources/card_payments_test.rb index ed84079..e8fefcc 100644 --- a/test/increase/resources/card_payments_test.rb +++ b/test/increase/resources/card_payments_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.card_payments.list + response = @increase.card_payments.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/card_purchase_supplements_test.rb b/test/increase/resources/card_purchase_supplements_test.rb index b38e752..8e47ec8 100644 --- a/test/increase/resources/card_purchase_supplements_test.rb +++ b/test/increase/resources/card_purchase_supplements_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.card_purchase_supplements.list + response = @increase.card_purchase_supplements.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/cards_test.rb b/test/increase/resources/cards_test.rb index 767fb13..98a7085 100644 --- a/test/increase/resources/cards_test.rb +++ b/test/increase/resources/cards_test.rb @@ -23,7 +23,7 @@ def test_update end def test_list - response = @increase.cards.list + response = @increase.cards.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/check_deposits_test.rb b/test/increase/resources/check_deposits_test.rb index 1395a7e..ff87d0d 100644 --- a/test/increase/resources/check_deposits_test.rb +++ b/test/increase/resources/check_deposits_test.rb @@ -9,7 +9,13 @@ def setup def test_create_required_params response = @increase.check_deposits.create( - {account_id: "account_in71c4amph0vgo2qllky", amount: 1000, back_image_file_id: "file_26khfk98mzfz90a11oqx", currency: "USD", front_image_file_id: "file_hkv175ovmc2tb2v2zbrm"} + { + account_id: "account_in71c4amph0vgo2qllky", + amount: 1000, + back_image_file_id: "file_26khfk98mzfz90a11oqx", + currency: "USD", + front_image_file_id: "file_hkv175ovmc2tb2v2zbrm" + } ) assert_kind_of(Increase::Models::CheckDeposit, response) end @@ -20,7 +26,7 @@ def test_retrieve end def test_list - response = @increase.check_deposits.list + response = @increase.check_deposits.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/check_transfers_test.rb b/test/increase/resources/check_transfers_test.rb index 36ee5e3..bcbd965 100644 --- a/test/increase/resources/check_transfers_test.rb +++ b/test/increase/resources/check_transfers_test.rb @@ -9,7 +9,11 @@ def setup def test_create_required_params response = @increase.check_transfers.create( - {account_id: "account_in71c4amph0vgo2qllky", amount: 1000, source_account_number_id: "account_number_v18nkfqm6afpsrvy82b2"} + { + account_id: "account_in71c4amph0vgo2qllky", + amount: 1000, + source_account_number_id: "account_number_v18nkfqm6afpsrvy82b2" + } ) assert_kind_of(Increase::Models::CheckTransfer, response) end @@ -20,7 +24,7 @@ def test_retrieve end def test_list - response = @increase.check_transfers.list + response = @increase.check_transfers.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/declined_transactions_test.rb b/test/increase/resources/declined_transactions_test.rb index 0df4bf0..7322193 100644 --- a/test/increase/resources/declined_transactions_test.rb +++ b/test/increase/resources/declined_transactions_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.declined_transactions.list + response = @increase.declined_transactions.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/digital_card_profiles_test.rb b/test/increase/resources/digital_card_profiles_test.rb index 294aa0c..57f9261 100644 --- a/test/increase/resources/digital_card_profiles_test.rb +++ b/test/increase/resources/digital_card_profiles_test.rb @@ -9,7 +9,13 @@ def setup def test_create_required_params response = @increase.digital_card_profiles.create( - {app_icon_file_id: "file_8zxqkwlh43wo144u8yec", background_image_file_id: "file_1ai913suu1zfn1pdetru", card_description: "MyBank Signature Card", description: "My Card Profile", issuer_name: "MyBank"} + { + app_icon_file_id: "file_8zxqkwlh43wo144u8yec", + background_image_file_id: "file_1ai913suu1zfn1pdetru", + card_description: "MyBank Signature Card", + description: "My Card Profile", + issuer_name: "MyBank" + } ) assert_kind_of(Increase::Models::DigitalCardProfile, response) end @@ -20,7 +26,7 @@ def test_retrieve end def test_list - response = @increase.digital_card_profiles.list + response = @increase.digital_card_profiles.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/digital_wallet_tokens_test.rb b/test/increase/resources/digital_wallet_tokens_test.rb index fbbfb28..42f42aa 100644 --- a/test/increase/resources/digital_wallet_tokens_test.rb +++ b/test/increase/resources/digital_wallet_tokens_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.digital_wallet_tokens.list + response = @increase.digital_wallet_tokens.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/documents_test.rb b/test/increase/resources/documents_test.rb index 3a7daf2..5edb818 100644 --- a/test/increase/resources/documents_test.rb +++ b/test/increase/resources/documents_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.documents.list + response = @increase.documents.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/entities_test.rb b/test/increase/resources/entities_test.rb index c95b845..d876eea 100644 --- a/test/increase/resources/entities_test.rb +++ b/test/increase/resources/entities_test.rb @@ -18,7 +18,7 @@ def test_retrieve end def test_list - response = @increase.entities.list + response = @increase.entities.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/event_subscriptions_test.rb b/test/increase/resources/event_subscriptions_test.rb index 8d48242..484c134 100644 --- a/test/increase/resources/event_subscriptions_test.rb +++ b/test/increase/resources/event_subscriptions_test.rb @@ -23,7 +23,7 @@ def test_update end def test_list - response = @increase.event_subscriptions.list + response = @increase.event_subscriptions.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/events_test.rb b/test/increase/resources/events_test.rb index 87ad566..a32f516 100644 --- a/test/increase/resources/events_test.rb +++ b/test/increase/resources/events_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.events.list + response = @increase.events.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/exports_test.rb b/test/increase/resources/exports_test.rb index 0ebca53..086af57 100644 --- a/test/increase/resources/exports_test.rb +++ b/test/increase/resources/exports_test.rb @@ -18,7 +18,7 @@ def test_retrieve end def test_list - response = @increase.exports.list + response = @increase.exports.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/external_accounts_test.rb b/test/increase/resources/external_accounts_test.rb index cae0e6d..2828275 100644 --- a/test/increase/resources/external_accounts_test.rb +++ b/test/increase/resources/external_accounts_test.rb @@ -25,7 +25,7 @@ def test_update end def test_list - response = @increase.external_accounts.list + response = @increase.external_accounts.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/files_test.rb b/test/increase/resources/files_test.rb index 131c0c4..b364211 100644 --- a/test/increase/resources/files_test.rb +++ b/test/increase/resources/files_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.files.list + response = @increase.files.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/groups_test.rb b/test/increase/resources/groups_test.rb index 5bb8e44..28a9a3d 100644 --- a/test/increase/resources/groups_test.rb +++ b/test/increase/resources/groups_test.rb @@ -8,7 +8,7 @@ def setup end def test_retrieve_details - response = @increase.groups.retrieve_details + response = @increase.groups.retrieve_details assert_kind_of(Increase::Models::Group, response) end end diff --git a/test/increase/resources/inbound_ach_transfers_test.rb b/test/increase/resources/inbound_ach_transfers_test.rb index d128335..46f4b18 100644 --- a/test/increase/resources/inbound_ach_transfers_test.rb +++ b/test/increase/resources/inbound_ach_transfers_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.inbound_ach_transfers.list + response = @increase.inbound_ach_transfers.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/inbound_check_deposits_test.rb b/test/increase/resources/inbound_check_deposits_test.rb index a9e9fa3..a5156d3 100644 --- a/test/increase/resources/inbound_check_deposits_test.rb +++ b/test/increase/resources/inbound_check_deposits_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.inbound_check_deposits.list + response = @increase.inbound_check_deposits.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/inbound_wire_drawdown_requests_test.rb b/test/increase/resources/inbound_wire_drawdown_requests_test.rb index dc7ce72..00c7d22 100644 --- a/test/increase/resources/inbound_wire_drawdown_requests_test.rb +++ b/test/increase/resources/inbound_wire_drawdown_requests_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.inbound_wire_drawdown_requests.list + response = @increase.inbound_wire_drawdown_requests.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/inbound_wire_transfers_test.rb b/test/increase/resources/inbound_wire_transfers_test.rb index 9c4c54d..3ca2d84 100644 --- a/test/increase/resources/inbound_wire_transfers_test.rb +++ b/test/increase/resources/inbound_wire_transfers_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.inbound_wire_transfers.list + response = @increase.inbound_wire_transfers.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/oauth_connections_test.rb b/test/increase/resources/oauth_connections_test.rb index cb43838..1b7f16b 100644 --- a/test/increase/resources/oauth_connections_test.rb +++ b/test/increase/resources/oauth_connections_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.oauth_connections.list + response = @increase.oauth_connections.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/pending_transactions_test.rb b/test/increase/resources/pending_transactions_test.rb index 4eacd9a..a218546 100644 --- a/test/increase/resources/pending_transactions_test.rb +++ b/test/increase/resources/pending_transactions_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.pending_transactions.list + response = @increase.pending_transactions.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/physical_card_profiles_test.rb b/test/increase/resources/physical_card_profiles_test.rb index 592f60a..a3e968d 100644 --- a/test/increase/resources/physical_card_profiles_test.rb +++ b/test/increase/resources/physical_card_profiles_test.rb @@ -9,7 +9,12 @@ def setup def test_create_required_params response = @increase.physical_card_profiles.create( - {carrier_image_file_id: "file_h6v7mtipe119os47ehlu", contact_phone: "+16505046304", description: "My Card Profile", front_image_file_id: "file_o6aex13wm1jcc36sgcj1"} + { + carrier_image_file_id: "file_h6v7mtipe119os47ehlu", + contact_phone: "+16505046304", + description: "My Card Profile", + front_image_file_id: "file_o6aex13wm1jcc36sgcj1" + } ) assert_kind_of(Increase::Models::PhysicalCardProfile, response) end @@ -20,7 +25,7 @@ def test_retrieve end def test_list - response = @increase.physical_card_profiles.list + response = @increase.physical_card_profiles.list assert_kind_of(Increase::Page, response) end diff --git a/test/increase/resources/physical_cards_test.rb b/test/increase/resources/physical_cards_test.rb index 44f678d..e236d05 100644 --- a/test/increase/resources/physical_cards_test.rb +++ b/test/increase/resources/physical_cards_test.rb @@ -9,7 +9,20 @@ def setup def test_create_required_params response = @increase.physical_cards.create( - {card_id: "card_oubs0hwk5rn6knuecxg2", cardholder: {"first_name" => "Ian", "last_name" => "Crease"}, shipment: {"address" => {"city" => "New York", "line1" => "33 Liberty Street", "name" => "Ian Crease", "postal_code" => "10045", "state" => "NY"}, "method" => "usps"}} + { + card_id: "card_oubs0hwk5rn6knuecxg2", + cardholder: {"first_name" => "Ian", "last_name" => "Crease"}, + shipment: { + "address" => { + "city" => "New York", + "line1" => "33 Liberty Street", + "name" => "Ian Crease", + "postal_code" => "10045", + "state" => "NY" + }, + "method" => "usps" + } + } ) assert_kind_of(Increase::Models::PhysicalCard, response) end @@ -25,7 +38,7 @@ def test_update_required_params end def test_list - response = @increase.physical_cards.list + response = @increase.physical_cards.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/programs_test.rb b/test/increase/resources/programs_test.rb index ce8b323..ae2e879 100644 --- a/test/increase/resources/programs_test.rb +++ b/test/increase/resources/programs_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.programs.list + response = @increase.programs.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/proof_of_authorization_request_submissions_test.rb b/test/increase/resources/proof_of_authorization_request_submissions_test.rb index 28e20c1..f966eda 100644 --- a/test/increase/resources/proof_of_authorization_request_submissions_test.rb +++ b/test/increase/resources/proof_of_authorization_request_submissions_test.rb @@ -9,7 +9,17 @@ def setup def test_create_required_params response = @increase.proof_of_authorization_request_submissions.create( - {authorization_terms: "I agree to the terms of service.", authorized_at: "2020-01-31T23:59:59Z", authorizer_email: "user@example.com", authorizer_name: "Ian Crease", customer_has_been_offboarded: true, proof_of_authorization_request_id: "proof_of_authorization_request_iwp8no25h3rjvil6ad3b", validated_account_ownership_via_credential: true, validated_account_ownership_with_account_statement: true, validated_account_ownership_with_microdeposit: true} + { + authorization_terms: "I agree to the terms of service.", + authorized_at: "2020-01-31T23:59:59Z", + authorizer_email: "user@example.com", + authorizer_name: "Ian Crease", + customer_has_been_offboarded: true, + proof_of_authorization_request_id: "proof_of_authorization_request_iwp8no25h3rjvil6ad3b", + validated_account_ownership_via_credential: true, + validated_account_ownership_with_account_statement: true, + validated_account_ownership_with_microdeposit: true + } ) assert_kind_of(Increase::Models::ProofOfAuthorizationRequestSubmission, response) end @@ -20,7 +30,7 @@ def test_retrieve end def test_list - response = @increase.proof_of_authorization_request_submissions.list + response = @increase.proof_of_authorization_request_submissions.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/proof_of_authorization_requests_test.rb b/test/increase/resources/proof_of_authorization_requests_test.rb index 9f1b21f..ead5a09 100644 --- a/test/increase/resources/proof_of_authorization_requests_test.rb +++ b/test/increase/resources/proof_of_authorization_requests_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.proof_of_authorization_requests.list + response = @increase.proof_of_authorization_requests.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/real_time_payments_request_for_payments_test.rb b/test/increase/resources/real_time_payments_request_for_payments_test.rb index aebe268..8f671c1 100644 --- a/test/increase/resources/real_time_payments_request_for_payments_test.rb +++ b/test/increase/resources/real_time_payments_request_for_payments_test.rb @@ -9,7 +9,15 @@ def setup def test_create_required_params response = @increase.real_time_payments_request_for_payments.create( - {amount: 100, debtor: {"address" => {"country" => "US"}, "name" => "Ian Crease"}, destination_account_number_id: "account_number_v18nkfqm6afpsrvy82b2", expires_at: "2025-12-31", remittance_information: "Invoice 29582", source_account_number: "987654321", source_routing_number: "101050001"} + { + amount: 100, + debtor: {"address" => {"country" => "US"}, "name" => "Ian Crease"}, + destination_account_number_id: "account_number_v18nkfqm6afpsrvy82b2", + expires_at: "2025-12-31", + remittance_information: "Invoice 29582", + source_account_number: "987654321", + source_routing_number: "101050001" + } ) assert_kind_of(Increase::Models::RealTimePaymentsRequestForPayment, response) end @@ -20,7 +28,7 @@ def test_retrieve end def test_list - response = @increase.real_time_payments_request_for_payments.list + response = @increase.real_time_payments_request_for_payments.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/real_time_payments_transfers_test.rb b/test/increase/resources/real_time_payments_transfers_test.rb index 1b3718b..0e8014a 100644 --- a/test/increase/resources/real_time_payments_transfers_test.rb +++ b/test/increase/resources/real_time_payments_transfers_test.rb @@ -9,7 +9,12 @@ def setup def test_create_required_params response = @increase.real_time_payments_transfers.create( - {amount: 100, creditor_name: "Ian Crease", remittance_information: "Invoice 29582", source_account_number_id: "account_number_v18nkfqm6afpsrvy82b2"} + { + amount: 100, + creditor_name: "Ian Crease", + remittance_information: "Invoice 29582", + source_account_number_id: "account_number_v18nkfqm6afpsrvy82b2" + } ) assert_kind_of(Increase::Models::RealTimePaymentsTransfer, response) end @@ -20,7 +25,7 @@ def test_retrieve end def test_list - response = @increase.real_time_payments_transfers.list + response = @increase.real_time_payments_transfers.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/simulations_test.rb b/test/increase/resources/simulations_test.rb index 317190b..b8c4798 100644 --- a/test/increase/resources/simulations_test.rb +++ b/test/increase/resources/simulations_test.rb @@ -22,7 +22,12 @@ def test_card_fuel_confirmations_required_params end def test_card_increments_required_params - response = @increase.simulations.card_increments({amount: 500, card_payment_id: "card_payment_nd3k2kacrqjli8482ave"}) + response = @increase.simulations.card_increments( + { + amount: 500, + card_payment_id: "card_payment_nd3k2kacrqjli8482ave" + } + ) assert_kind_of(Increase::Models::CardPayment, response) end diff --git a/test/increase/resources/transactions_test.rb b/test/increase/resources/transactions_test.rb index ba4ad86..c164097 100644 --- a/test/increase/resources/transactions_test.rb +++ b/test/increase/resources/transactions_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.transactions.list + response = @increase.transactions.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/wire_drawdown_requests_test.rb b/test/increase/resources/wire_drawdown_requests_test.rb index bba7c9f..acc5bc8 100644 --- a/test/increase/resources/wire_drawdown_requests_test.rb +++ b/test/increase/resources/wire_drawdown_requests_test.rb @@ -13,7 +13,7 @@ def test_retrieve end def test_list - response = @increase.wire_drawdown_requests.list + response = @increase.wire_drawdown_requests.list assert_kind_of(Increase::Page, response) end end diff --git a/test/increase/resources/wire_transfers_test.rb b/test/increase/resources/wire_transfers_test.rb index cab516a..bad5cea 100644 --- a/test/increase/resources/wire_transfers_test.rb +++ b/test/increase/resources/wire_transfers_test.rb @@ -9,7 +9,12 @@ def setup def test_create_required_params response = @increase.wire_transfers.create( - {account_id: "account_in71c4amph0vgo2qllky", amount: 100, beneficiary_name: "Ian Crease", message_to_recipient: "New account transfer"} + { + account_id: "account_in71c4amph0vgo2qllky", + amount: 100, + beneficiary_name: "Ian Crease", + message_to_recipient: "New account transfer" + } ) assert_kind_of(Increase::Models::WireTransfer, response) end @@ -20,7 +25,7 @@ def test_retrieve end def test_list - response = @increase.wire_transfers.list + response = @increase.wire_transfers.list assert_kind_of(Increase::Page, response) end