diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 068bf07b..d21127cc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.203.0" + ".": "1.204.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 625e421d..d4eadd59 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cff24fe63c8cb06a46048b355f873c22def0798a38de892671d379e58d98bc03.yml -openapi_spec_hash: 4f7ae65440fefa73441023480d6ac9a4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-845aba046473ba39ae898570153537fb31dd6f8cb260dd8478a14fd4275ca97f.yml +openapi_spec_hash: 8afbe65f9d6614f0960f141ae0de0c39 config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/CHANGELOG.md b/CHANGELOG.md index 273502a2..67ba1a57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.204.0 (2026-02-07) + +Full Changelog: [v1.203.0...v1.204.0](https://github.com/Increase/increase-ruby/compare/v1.203.0...v1.204.0) + +### Features + +* **api:** api update ([eb834f0](https://github.com/Increase/increase-ruby/commit/eb834f0ed9bfdec907c8c6e78fb5d102c9e24694)) + ## 1.203.0 (2026-02-06) Full Changelog: [v1.202.1...v1.203.0](https://github.com/Increase/increase-ruby/compare/v1.202.1...v1.203.0) diff --git a/Gemfile.lock b/Gemfile.lock index 596b1f51..dd60179a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.203.0) + increase (1.204.0) cgi connection_pool diff --git a/README.md b/README.md index 599027b1..93ccd90d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.203.0" +gem "increase", "~> 1.204.0" ``` diff --git a/lib/increase/models/account_transfer.rb b/lib/increase/models/account_transfer.rb index 60c0ea62..537416bb 100644 --- a/lib/increase/models/account_transfer.rb +++ b/lib/increase/models/account_transfer.rb @@ -215,55 +215,41 @@ class Cancellation < Increase::Internal::Type::BaseModel # @see Increase::Models::AccountTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::AccountTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::AccountTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::AccountTransfer::CreatedBy::Category] required :category, enum: -> { Increase::AccountTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::AccountTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::AccountTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::AccountTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::AccountTransfer::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::AccountTransfer::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::AccountTransfer::CreatedBy::User, nil] - required :user, -> { Increase::AccountTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::AccountTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::AccountTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::AccountTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::AccountTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::AccountTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::AccountTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::AccountTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::AccountTransfer::CreatedBy#category @@ -283,6 +269,20 @@ module Category # @return [Array] end + # @see Increase::Models::AccountTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::AccountTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/ach_transfer.rb b/lib/increase/models/ach_transfer.rb index e41330eb..a51bb27d 100644 --- a/lib/increase/models/ach_transfer.rb +++ b/lib/increase/models/ach_transfer.rb @@ -361,18 +361,18 @@ class Addenda < Increase::Internal::Type::BaseModel # Unstructured `payment_related_information` passed through with the transfer. # # @return [Increase::Models::ACHTransfer::Addenda::Freeform, nil] - required :freeform, -> { Increase::ACHTransfer::Addenda::Freeform }, nil?: true + optional :freeform, -> { Increase::ACHTransfer::Addenda::Freeform }, nil?: true # @!attribute payment_order_remittance_advice # Structured ASC X12 820 remittance advice records. Please reach out to # [support@increase.com](mailto:support@increase.com) for more information. # # @return [Increase::Models::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice, nil] - required :payment_order_remittance_advice, + optional :payment_order_remittance_advice, -> { Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice }, nil?: true - # @!method initialize(category:, freeform:, payment_order_remittance_advice:) + # @!method initialize(category:, freeform: nil, payment_order_remittance_advice: nil) # Some parameter documentations has been truncated, see # {Increase::Models::ACHTransfer::Addenda} for more details. # @@ -529,55 +529,41 @@ class Cancellation < Increase::Internal::Type::BaseModel # @see Increase::Models::ACHTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::ACHTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::ACHTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::ACHTransfer::CreatedBy::Category] required :category, enum: -> { Increase::ACHTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::ACHTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::ACHTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::ACHTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::ACHTransfer::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::ACHTransfer::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::ACHTransfer::CreatedBy::User, nil] - required :user, -> { Increase::ACHTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::ACHTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::ACHTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::ACHTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::ACHTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::ACHTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::ACHTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::ACHTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::ACHTransfer::CreatedBy#category @@ -597,6 +583,20 @@ module Category # @return [Array] end + # @see Increase::Models::ACHTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::ACHTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/card_dispute.rb b/lib/increase/models/card_dispute.rb index 98286504..b198ea93 100644 --- a/lib/increase/models/card_dispute.rb +++ b/lib/increase/models/card_dispute.rb @@ -294,6 +294,19 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CardDispute::Visa::NetworkEvent::Category] required :category, enum: -> { Increase::CardDispute::Visa::NetworkEvent::Category } + # @!attribute created_at + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the Visa Card Dispute Network Event was created. + # + # @return [Time] + required :created_at, Time + + # @!attribute dispute_financial_transaction_id + # The dispute financial transaction that resulted from the network event, if any. + # + # @return [String, nil] + required :dispute_financial_transaction_id, String, nil?: true + # @!attribute chargeback_accepted # A Card Dispute Chargeback Accepted Visa Network Event object. This field will be # present in the JSON response if and only if `category` is equal to @@ -302,7 +315,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # accepted by the merchant. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::ChargebackAccepted, nil] - required :chargeback_accepted, + optional :chargeback_accepted, -> { Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted }, nil?: true @@ -314,7 +327,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # submitted to the network. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::ChargebackSubmitted, nil] - required :chargeback_submitted, + optional :chargeback_submitted, -> { Increase::CardDispute::Visa::NetworkEvent::ChargebackSubmitted }, nil?: true @@ -326,23 +339,10 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # out in the user's favor. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::ChargebackTimedOut, nil] - required :chargeback_timed_out, + optional :chargeback_timed_out, -> { Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut }, nil?: true - # @!attribute created_at - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the Visa Card Dispute Network Event was created. - # - # @return [Time] - required :created_at, Time - - # @!attribute dispute_financial_transaction_id - # The dispute financial transaction that resulted from the network event, if any. - # - # @return [String, nil] - required :dispute_financial_transaction_id, String, nil?: true - # @!attribute merchant_prearbitration_decline_submitted # A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event # object. This field will be present in the JSON response if and only if @@ -352,7 +352,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # merchant's request for a prearbitration request decision in their favor. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted, nil] - required :merchant_prearbitration_decline_submitted, + optional :merchant_prearbitration_decline_submitted, -> { Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted }, nil?: true @@ -364,7 +364,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # the merchant has issued a prearbitration request in the user's favor. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived, nil] - required :merchant_prearbitration_received, + optional :merchant_prearbitration_received, -> { Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived }, nil?: true @@ -377,7 +377,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # prearbitration request. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationTimedOut, nil] - required :merchant_prearbitration_timed_out, + optional :merchant_prearbitration_timed_out, -> { Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationTimedOut }, nil?: true @@ -389,7 +389,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # chargeback and has re-presented the payment. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::Represented, nil] - required :represented, -> { Increase::CardDispute::Visa::NetworkEvent::Represented }, nil?: true + optional :represented, -> { Increase::CardDispute::Visa::NetworkEvent::Represented }, nil?: true # @!attribute representment_timed_out # A Card Dispute Re-presentment Timed Out Visa Network Event object. This field @@ -399,7 +399,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # respond to the re-presentment by the merchant within the time limit. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::RepresentmentTimedOut, nil] - required :representment_timed_out, + optional :representment_timed_out, -> { Increase::CardDispute::Visa::NetworkEvent::RepresentmentTimedOut }, nil?: true @@ -411,7 +411,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # the merchant has accepted the user's prearbitration request in the user's favor. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::UserPrearbitrationAccepted, nil] - required :user_prearbitration_accepted, + optional :user_prearbitration_accepted, -> { Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationAccepted }, nil?: true @@ -423,7 +423,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # the merchant has declined the user's prearbitration request. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::UserPrearbitrationDeclined, nil] - required :user_prearbitration_declined, + optional :user_prearbitration_declined, -> { Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationDeclined }, nil?: true @@ -435,7 +435,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # the user's request for prearbitration has been submitted to the network. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::UserPrearbitrationSubmitted, nil] - required :user_prearbitration_submitted, + optional :user_prearbitration_submitted, -> { Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationSubmitted }, nil?: true @@ -447,7 +447,7 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # the merchant has timed out responding to the user's prearbitration request. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::UserPrearbitrationTimedOut, nil] - required :user_prearbitration_timed_out, + optional :user_prearbitration_timed_out, -> { Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationTimedOut }, nil?: true @@ -459,11 +459,11 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # request to withdraw the dispute has been submitted to the network. # # @return [Increase::Models::CardDispute::Visa::NetworkEvent::UserWithdrawalSubmitted, nil] - required :user_withdrawal_submitted, + optional :user_withdrawal_submitted, -> { Increase::CardDispute::Visa::NetworkEvent::UserWithdrawalSubmitted }, nil?: true - # @!method initialize(attachment_files:, category:, chargeback_accepted:, chargeback_submitted:, chargeback_timed_out:, created_at:, dispute_financial_transaction_id:, merchant_prearbitration_decline_submitted:, merchant_prearbitration_received:, merchant_prearbitration_timed_out:, represented:, representment_timed_out:, user_prearbitration_accepted:, user_prearbitration_declined:, user_prearbitration_submitted:, user_prearbitration_timed_out:, user_withdrawal_submitted:) + # @!method initialize(attachment_files:, category:, created_at:, dispute_financial_transaction_id:, chargeback_accepted: nil, chargeback_submitted: nil, chargeback_timed_out: nil, merchant_prearbitration_decline_submitted: nil, merchant_prearbitration_received: nil, merchant_prearbitration_timed_out: nil, represented: nil, representment_timed_out: nil, user_prearbitration_accepted: nil, user_prearbitration_declined: nil, user_prearbitration_submitted: nil, user_prearbitration_timed_out: nil, user_withdrawal_submitted: nil) # Some parameter documentations has been truncated, see # {Increase::Models::CardDispute::Visa::NetworkEvent} for more details. # @@ -471,16 +471,16 @@ class NetworkEvent < Increase::Internal::Type::BaseModel # # @param category [Symbol, Increase::Models::CardDispute::Visa::NetworkEvent::Category] The category of the user submission. We may add additional possible values for t # + # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th + # + # @param dispute_financial_transaction_id [String, nil] The dispute financial transaction that resulted from the network event, if any. + # # @param chargeback_accepted [Increase::Models::CardDispute::Visa::NetworkEvent::ChargebackAccepted, nil] A Card Dispute Chargeback Accepted Visa Network Event object. This field will be # # @param chargeback_submitted [Increase::Models::CardDispute::Visa::NetworkEvent::ChargebackSubmitted, nil] A Card Dispute Chargeback Submitted Visa Network Event object. This field will b # # @param chargeback_timed_out [Increase::Models::CardDispute::Visa::NetworkEvent::ChargebackTimedOut, nil] A Card Dispute Chargeback Timed Out Visa Network Event object. This field will b # - # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th - # - # @param dispute_financial_transaction_id [String, nil] The dispute financial transaction that resulted from the network event, if any. - # # @param merchant_prearbitration_decline_submitted [Increase::Models::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted, nil] A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event obj # # @param merchant_prearbitration_received [Increase::Models::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived, nil] A Card Dispute Merchant Pre-Arbitration Received Visa Network Event object. This @@ -1569,15 +1569,6 @@ class UserSubmission < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CardDispute::Visa::UserSubmission::Category] required :category, enum: -> { Increase::CardDispute::Visa::UserSubmission::Category } - # @!attribute chargeback - # A Visa Card Dispute Chargeback User Submission Chargeback Details object. This - # field will be present in the JSON response if and only if `category` is equal to - # `chargeback`. Contains the details specific to a Visa chargeback User Submission - # for a Card Dispute. - # - # @return [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback, nil] - required :chargeback, -> { Increase::CardDispute::Visa::UserSubmission::Chargeback }, nil?: true - # @!attribute created_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Visa Card Dispute User Submission was created. @@ -1606,17 +1597,6 @@ class UserSubmission < Increase::Internal::Type::BaseModel # @return [String, nil] required :further_information_requested_reason, String, nil?: true - # @!attribute merchant_prearbitration_decline - # A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. - # This field will be present in the JSON response if and only if `category` is - # equal to `merchant_prearbitration_decline`. Contains the details specific to a - # merchant prearbitration decline Visa Card Dispute User Submission. - # - # @return [Increase::Models::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline, nil] - required :merchant_prearbitration_decline, - -> { Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline }, - nil?: true - # @!attribute status # The status of the Visa Card Dispute User Submission. # @@ -1630,6 +1610,26 @@ class UserSubmission < Increase::Internal::Type::BaseModel # @return [Time] required :updated_at, Time + # @!attribute chargeback + # A Visa Card Dispute Chargeback User Submission Chargeback Details object. This + # field will be present in the JSON response if and only if `category` is equal to + # `chargeback`. Contains the details specific to a Visa chargeback User Submission + # for a Card Dispute. + # + # @return [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback, nil] + optional :chargeback, -> { Increase::CardDispute::Visa::UserSubmission::Chargeback }, nil?: true + + # @!attribute merchant_prearbitration_decline + # A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. + # This field will be present in the JSON response if and only if `category` is + # equal to `merchant_prearbitration_decline`. Contains the details specific to a + # merchant prearbitration decline Visa Card Dispute User Submission. + # + # @return [Increase::Models::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline, nil] + optional :merchant_prearbitration_decline, + -> { Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline }, + nil?: true + # @!attribute user_prearbitration # A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This # field will be present in the JSON response if and only if `category` is equal to @@ -1637,11 +1637,11 @@ class UserSubmission < Increase::Internal::Type::BaseModel # pre-arbitration Visa Card Dispute User Submission. # # @return [Increase::Models::CardDispute::Visa::UserSubmission::UserPrearbitration, nil] - required :user_prearbitration, + optional :user_prearbitration, -> { Increase::CardDispute::Visa::UserSubmission::UserPrearbitration }, nil?: true - # @!method initialize(accepted_at:, amount:, attachment_files:, category:, chargeback:, created_at:, explanation:, further_information_requested_at:, further_information_requested_reason:, merchant_prearbitration_decline:, status:, updated_at:, user_prearbitration:) + # @!method initialize(accepted_at:, amount:, attachment_files:, category:, created_at:, explanation:, further_information_requested_at:, further_information_requested_reason:, status:, updated_at:, chargeback: nil, merchant_prearbitration_decline: nil, user_prearbitration: nil) # Some parameter documentations has been truncated, see # {Increase::Models::CardDispute::Visa::UserSubmission} for more details. # @@ -1653,8 +1653,6 @@ class UserSubmission < Increase::Internal::Type::BaseModel # # @param category [Symbol, Increase::Models::CardDispute::Visa::UserSubmission::Category] The category of the user submission. We may add additional possible values for t # - # @param chargeback [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback, nil] A Visa Card Dispute Chargeback User Submission Chargeback Details object. This f - # # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th # # @param explanation [String, nil] The free-form explanation provided to Increase to provide more context for the u @@ -1663,12 +1661,14 @@ class UserSubmission < Increase::Internal::Type::BaseModel # # @param further_information_requested_reason [String, nil] The reason for Increase requesting further information from the user for the Vis # - # @param merchant_prearbitration_decline [Increase::Models::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline, nil] A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. Thi - # # @param status [Symbol, Increase::Models::CardDispute::Visa::UserSubmission::Status] The status of the Visa Card Dispute User Submission. # # @param updated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th # + # @param chargeback [Increase::Models::CardDispute::Visa::UserSubmission::Chargeback, nil] A Visa Card Dispute Chargeback User Submission Chargeback Details object. This f + # + # @param merchant_prearbitration_decline [Increase::Models::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline, nil] A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. Thi + # # @param user_prearbitration [Increase::Models::CardDispute::Visa::UserSubmission::UserPrearbitration, nil] A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This class AttachmentFile < Increase::Internal::Type::BaseModel @@ -1703,6 +1703,28 @@ module Category # @return [Array] end + # The status of the Visa Card Dispute User Submission. + # + # @see Increase::Models::CardDispute::Visa::UserSubmission#status + module Status + extend Increase::Internal::Type::Enum + + # The User Submission was abandoned. + ABANDONED = :abandoned + + # The User Submission was accepted. + ACCEPTED = :accepted + + # Further information is requested, please resubmit with the requested information. + FURTHER_INFORMATION_REQUESTED = :further_information_requested + + # The User Submission is pending review. + PENDING_REVIEWING = :pending_reviewing + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::CardDispute::Visa::UserSubmission#chargeback class Chargeback < Increase::Internal::Type::BaseModel # @!attribute authorization @@ -5131,28 +5153,6 @@ class MerchantPrearbitrationDecline < Increase::Internal::Type::BaseModel # @param reason [String] The reason the user declined the merchant's request for pre-arbitration in their end - # The status of the Visa Card Dispute User Submission. - # - # @see Increase::Models::CardDispute::Visa::UserSubmission#status - module Status - extend Increase::Internal::Type::Enum - - # The User Submission was abandoned. - ABANDONED = :abandoned - - # The User Submission was accepted. - ACCEPTED = :accepted - - # Further information is requested, please resubmit with the requested information. - FURTHER_INFORMATION_REQUESTED = :further_information_requested - - # The User Submission is pending review. - PENDING_REVIEWING = :pending_reviewing - - # @!method self.values - # @return [Array] - end - # @see Increase::Models::CardDispute::Visa::UserSubmission#user_prearbitration class UserPrearbitration < Increase::Internal::Type::BaseModel # @!attribute category_change diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index 1e30cbfc..370a182d 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -86,13 +86,27 @@ class CardPayment < Increase::Internal::Type::BaseModel # @param type [Symbol, Increase::Models::CardPayment::Type] A constant representing the object's type. For this resource it will always be ` class Element < Increase::Internal::Type::BaseModel + # @!attribute category + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @return [Symbol, Increase::Models::CardPayment::Element::Category] + required :category, enum: -> { Increase::CardPayment::Element::Category } + + # @!attribute created_at + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the card payment element was created. + # + # @return [Time] + required :created_at, Time + # @!attribute card_authentication # A Card Authentication object. This field will be present in the JSON response if # and only if `category` is equal to `card_authentication`. Card Authentications # are attempts to authenticate a transaction or a card with 3DS. # # @return [Increase::Models::CardPayment::Element::CardAuthentication, nil] - required :card_authentication, -> { Increase::CardPayment::Element::CardAuthentication }, nil?: true + optional :card_authentication, -> { Increase::CardPayment::Element::CardAuthentication }, nil?: true # @!attribute card_authorization # A Card Authorization object. This field will be present in the JSON response if @@ -101,7 +115,7 @@ class Element < Increase::Internal::Type::BaseModel # transaction. # # @return [Increase::Models::CardPayment::Element::CardAuthorization, nil] - required :card_authorization, -> { Increase::CardPayment::Element::CardAuthorization }, nil?: true + optional :card_authorization, -> { Increase::CardPayment::Element::CardAuthorization }, nil?: true # @!attribute card_authorization_expiration # A Card Authorization Expiration object. This field will be present in the JSON @@ -110,7 +124,7 @@ class Element < Increase::Internal::Type::BaseModel # never settled by the acquirer. # # @return [Increase::Models::CardPayment::Element::CardAuthorizationExpiration, nil] - required :card_authorization_expiration, + optional :card_authorization_expiration, -> { Increase::CardPayment::Element::CardAuthorizationExpiration }, nil?: true @@ -122,14 +136,14 @@ class Element < Increase::Internal::Type::BaseModel # requests their balance at an ATM. # # @return [Increase::Models::CardPayment::Element::CardBalanceInquiry, nil] - required :card_balance_inquiry, -> { Increase::CardPayment::Element::CardBalanceInquiry }, nil?: true + optional :card_balance_inquiry, -> { Increase::CardPayment::Element::CardBalanceInquiry }, nil?: true # @!attribute card_decline # A Card Decline object. This field will be present in the JSON response if and # only if `category` is equal to `card_decline`. # # @return [Increase::Models::CardPayment::Element::CardDecline, nil] - required :card_decline, -> { Increase::CardPayment::Element::CardDecline }, nil?: true + optional :card_decline, -> { Increase::CardPayment::Element::CardDecline }, nil?: true # @!attribute card_financial # A Card Financial object. This field will be present in the JSON response if and @@ -137,7 +151,7 @@ class Element < Increase::Internal::Type::BaseModel # holds placed on a customers funds with the intent to later clear a transaction. # # @return [Increase::Models::CardPayment::Element::CardFinancial, nil] - required :card_financial, -> { Increase::CardPayment::Element::CardFinancial }, nil?: true + optional :card_financial, -> { Increase::CardPayment::Element::CardFinancial }, nil?: true # @!attribute card_fuel_confirmation # A Card Fuel Confirmation object. This field will be present in the JSON response @@ -146,7 +160,7 @@ class Element < Increase::Internal::Type::BaseModel # transaction is completed. # # @return [Increase::Models::CardPayment::Element::CardFuelConfirmation, nil] - required :card_fuel_confirmation, + optional :card_fuel_confirmation, -> { Increase::CardPayment::Element::CardFuelConfirmation }, @@ -158,7 +172,7 @@ class Element < Increase::Internal::Type::BaseModel # pending amount of an authorized transaction. # # @return [Increase::Models::CardPayment::Element::CardIncrement, nil] - required :card_increment, -> { Increase::CardPayment::Element::CardIncrement }, nil?: true + optional :card_increment, -> { Increase::CardPayment::Element::CardIncrement }, nil?: true # @!attribute card_refund # A Card Refund object. This field will be present in the JSON response if and @@ -168,7 +182,7 @@ class Element < Increase::Internal::Type::BaseModel # transaction. # # @return [Increase::Models::CardPayment::Element::CardRefund, nil] - required :card_refund, -> { Increase::CardPayment::Element::CardRefund }, nil?: true + optional :card_refund, -> { Increase::CardPayment::Element::CardRefund }, nil?: true # @!attribute card_reversal # A Card Reversal object. This field will be present in the JSON response if and @@ -176,7 +190,7 @@ class Element < Increase::Internal::Type::BaseModel # or the entirety of an existing Card Authorization. # # @return [Increase::Models::CardPayment::Element::CardReversal, nil] - required :card_reversal, -> { Increase::CardPayment::Element::CardReversal }, nil?: true + optional :card_reversal, -> { Increase::CardPayment::Element::CardReversal }, nil?: true # @!attribute card_settlement # A Card Settlement object. This field will be present in the JSON response if and @@ -186,7 +200,7 @@ class Element < Increase::Internal::Type::BaseModel # without first authorizing it. # # @return [Increase::Models::CardPayment::Element::CardSettlement, nil] - required :card_settlement, -> { Increase::CardPayment::Element::CardSettlement }, nil?: true + optional :card_settlement, -> { Increase::CardPayment::Element::CardSettlement }, nil?: true # @!attribute card_validation # An Inbound Card Validation object. This field will be present in the JSON @@ -195,33 +209,23 @@ class Element < Increase::Internal::Type::BaseModel # optionally its address and/or Card Verification Value are valid. # # @return [Increase::Models::CardPayment::Element::CardValidation, nil] - required :card_validation, -> { Increase::CardPayment::Element::CardValidation }, nil?: true - - # @!attribute category - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @return [Symbol, Increase::Models::CardPayment::Element::Category] - required :category, enum: -> { Increase::CardPayment::Element::Category } - - # @!attribute created_at - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the card payment element was created. - # - # @return [Time] - required :created_at, Time + optional :card_validation, -> { Increase::CardPayment::Element::CardValidation }, nil?: true # @!attribute other # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. # # @return [Increase::Models::CardPayment::Element::Other, nil] - required :other, -> { Increase::CardPayment::Element::Other }, nil?: true + optional :other, -> { Increase::CardPayment::Element::Other }, nil?: true - # @!method initialize(card_authentication:, card_authorization:, card_authorization_expiration:, card_balance_inquiry:, card_decline:, card_financial:, card_fuel_confirmation:, card_increment:, card_refund:, card_reversal:, card_settlement:, card_validation:, category:, created_at:, other:) + # @!method initialize(category:, created_at:, card_authentication: nil, card_authorization: nil, card_authorization_expiration: nil, card_balance_inquiry: nil, card_decline: nil, card_financial: nil, card_fuel_confirmation: nil, card_increment: nil, card_refund: nil, card_reversal: nil, card_settlement: nil, card_validation: nil, other: nil) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element} for more details. # + # @param category [Symbol, Increase::Models::CardPayment::Element::Category] The type of the resource. We may add additional possible values for this enum ov + # + # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th + # # @param card_authentication [Increase::Models::CardPayment::Element::CardAuthentication, nil] A Card Authentication object. This field will be present in the JSON response if # # @param card_authorization [Increase::Models::CardPayment::Element::CardAuthorization, nil] A Card Authorization object. This field will be present in the JSON response if @@ -246,12 +250,58 @@ class Element < Increase::Internal::Type::BaseModel # # @param card_validation [Increase::Models::CardPayment::Element::CardValidation, nil] An Inbound Card Validation object. This field will be present in the JSON respon # - # @param category [Symbol, Increase::Models::CardPayment::Element::Category] The type of the resource. We may add additional possible values for this enum ov - # - # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th - # # @param other [Increase::Models::CardPayment::Element::Other, nil] If the category of this Transaction source is equal to `other`, this field will + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @see Increase::Models::CardPayment::Element#category + module Category + extend Increase::Internal::Type::Enum + + # Card Authorization: details will be under the `card_authorization` object. + CARD_AUTHORIZATION = :card_authorization + + # Card Authentication: details will be under the `card_authentication` object. + CARD_AUTHENTICATION = :card_authentication + + # Card Balance Inquiry: details will be under the `card_balance_inquiry` object. + CARD_BALANCE_INQUIRY = :card_balance_inquiry + + # Inbound Card Validation: details will be under the `card_validation` object. + CARD_VALIDATION = :card_validation + + # Card Decline: details will be under the `card_decline` object. + CARD_DECLINE = :card_decline + + # Card Reversal: details will be under the `card_reversal` object. + CARD_REVERSAL = :card_reversal + + # Card Authorization Expiration: details will be under the `card_authorization_expiration` object. + CARD_AUTHORIZATION_EXPIRATION = :card_authorization_expiration + + # Card Increment: details will be under the `card_increment` object. + CARD_INCREMENT = :card_increment + + # Card Settlement: details will be under the `card_settlement` object. + CARD_SETTLEMENT = :card_settlement + + # Card Refund: details will be under the `card_refund` object. + CARD_REFUND = :card_refund + + # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object. + CARD_FUEL_CONFIRMATION = :card_fuel_confirmation + + # Card Financial: details will be under the `card_financial` object. + CARD_FINANCIAL = :card_financial + + # Unknown card payment element. + OTHER = :other + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::CardPayment::Element#card_authentication class CardAuthentication < Increase::Internal::Type::BaseModel # @!attribute id @@ -10526,56 +10576,6 @@ class CardholderName < Increase::Internal::Type::BaseModel end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @see Increase::Models::CardPayment::Element#category - module Category - extend Increase::Internal::Type::Enum - - # Card Authorization: details will be under the `card_authorization` object. - CARD_AUTHORIZATION = :card_authorization - - # Card Authentication: details will be under the `card_authentication` object. - CARD_AUTHENTICATION = :card_authentication - - # Card Balance Inquiry: details will be under the `card_balance_inquiry` object. - CARD_BALANCE_INQUIRY = :card_balance_inquiry - - # Inbound Card Validation: details will be under the `card_validation` object. - CARD_VALIDATION = :card_validation - - # Card Decline: details will be under the `card_decline` object. - CARD_DECLINE = :card_decline - - # Card Reversal: details will be under the `card_reversal` object. - CARD_REVERSAL = :card_reversal - - # Card Authorization Expiration: details will be under the `card_authorization_expiration` object. - CARD_AUTHORIZATION_EXPIRATION = :card_authorization_expiration - - # Card Increment: details will be under the `card_increment` object. - CARD_INCREMENT = :card_increment - - # Card Settlement: details will be under the `card_settlement` object. - CARD_SETTLEMENT = :card_settlement - - # Card Refund: details will be under the `card_refund` object. - CARD_REFUND = :card_refund - - # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object. - CARD_FUEL_CONFIRMATION = :card_fuel_confirmation - - # Card Financial: details will be under the `card_financial` object. - CARD_FINANCIAL = :card_financial - - # Unknown card payment element. - OTHER = :other - - # @!method self.values - # @return [Array] - end - # @see Increase::Models::CardPayment::Element#other class Other < Increase::Internal::Type::BaseModel # @!method initialize diff --git a/lib/increase/models/card_push_transfer.rb b/lib/increase/models/card_push_transfer.rb index 261c1804..656072a3 100644 --- a/lib/increase/models/card_push_transfer.rb +++ b/lib/increase/models/card_push_transfer.rb @@ -427,23 +427,23 @@ class Cancellation < Increase::Internal::Type::BaseModel # @see Increase::Models::CardPushTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::CardPushTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::CardPushTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::CardPushTransfer::CreatedBy::Category] required :category, enum: -> { Increase::CardPushTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::CardPushTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::CardPushTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::CardPushTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, + optional :oauth_application, -> { Increase::CardPushTransfer::CreatedBy::OAuthApplication }, @@ -453,33 +453,19 @@ class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the User that created the transfer. # # @return [Increase::Models::CardPushTransfer::CreatedBy::User, nil] - required :user, -> { Increase::CardPushTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::CardPushTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::CardPushTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::CardPushTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::CardPushTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::CardPushTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::CardPushTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::CardPushTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::CardPushTransfer::CreatedBy#category @@ -499,6 +485,20 @@ module Category # @return [Array] end + # @see Increase::Models::CardPushTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::CardPushTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/card_validation.rb b/lib/increase/models/card_validation.rb index 1d838541..9d255e6a 100644 --- a/lib/increase/models/card_validation.rb +++ b/lib/increase/models/card_validation.rb @@ -419,55 +419,41 @@ module CardholderStreetAddressResult # @see Increase::Models::CardValidation#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::CardValidation::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::CardValidation::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::CardValidation::CreatedBy::Category] required :category, enum: -> { Increase::CardValidation::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::CardValidation::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::CardValidation::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::CardValidation::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::CardValidation::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::CardValidation::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::CardValidation::CreatedBy::User, nil] - required :user, -> { Increase::CardValidation::CreatedBy::User }, nil?: true + optional :user, -> { Increase::CardValidation::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the validation, either via the API or the dashboard. # - # @param api_key [Increase::Models::CardValidation::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::CardValidation::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::CardValidation::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::CardValidation::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::CardValidation::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::CardValidation::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::CardValidation::CreatedBy#category @@ -487,6 +473,20 @@ module Category # @return [Array] end + # @see Increase::Models::CardValidation::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::CardValidation::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/check_transfer.rb b/lib/increase/models/check_transfer.rb index 256a2724..a1566373 100644 --- a/lib/increase/models/check_transfer.rb +++ b/lib/increase/models/check_transfer.rb @@ -304,55 +304,41 @@ class Cancellation < Increase::Internal::Type::BaseModel # @see Increase::Models::CheckTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::CheckTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::CheckTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::CheckTransfer::CreatedBy::Category] required :category, enum: -> { Increase::CheckTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::CheckTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::CheckTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::CheckTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::CheckTransfer::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::CheckTransfer::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::CheckTransfer::CreatedBy::User, nil] - required :user, -> { Increase::CheckTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::CheckTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::CheckTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::CheckTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::CheckTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::CheckTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::CheckTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::CheckTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::CheckTransfer::CreatedBy#category @@ -372,6 +358,20 @@ module Category # @return [Array] end + # @see Increase::Models::CheckTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::CheckTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/declined_transaction.rb b/lib/increase/models/declined_transaction.rb index 69dd900e..b7046798 100644 --- a/lib/increase/models/declined_transaction.rb +++ b/lib/increase/models/declined_transaction.rb @@ -138,40 +138,40 @@ module RouteType # @see Increase::Models::DeclinedTransaction#source class Source < Increase::Internal::Type::BaseModel + # @!attribute category + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @return [Symbol, Increase::Models::DeclinedTransaction::Source::Category] + required :category, enum: -> { Increase::DeclinedTransaction::Source::Category } + # @!attribute ach_decline # An ACH Decline object. This field will be present in the JSON response if and # only if `category` is equal to `ach_decline`. # # @return [Increase::Models::DeclinedTransaction::Source::ACHDecline, nil] - required :ach_decline, -> { Increase::DeclinedTransaction::Source::ACHDecline }, nil?: true + optional :ach_decline, -> { Increase::DeclinedTransaction::Source::ACHDecline }, nil?: true # @!attribute card_decline # A Card Decline object. This field will be present in the JSON response if and # only if `category` is equal to `card_decline`. # # @return [Increase::Models::DeclinedTransaction::Source::CardDecline, nil] - required :card_decline, -> { Increase::DeclinedTransaction::Source::CardDecline }, nil?: true - - # @!attribute category - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @return [Symbol, Increase::Models::DeclinedTransaction::Source::Category] - required :category, enum: -> { Increase::DeclinedTransaction::Source::Category } + optional :card_decline, -> { Increase::DeclinedTransaction::Source::CardDecline }, nil?: true # @!attribute check_decline # A Check Decline object. This field will be present in the JSON response if and # only if `category` is equal to `check_decline`. # # @return [Increase::Models::DeclinedTransaction::Source::CheckDecline, nil] - required :check_decline, -> { Increase::DeclinedTransaction::Source::CheckDecline }, nil?: true + optional :check_decline, -> { Increase::DeclinedTransaction::Source::CheckDecline }, nil?: true # @!attribute check_deposit_rejection # A Check Deposit Rejection object. This field will be present in the JSON # response if and only if `category` is equal to `check_deposit_rejection`. # # @return [Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, nil] - required :check_deposit_rejection, + optional :check_deposit_rejection, -> { Increase::DeclinedTransaction::Source::CheckDepositRejection }, nil?: true @@ -181,7 +181,7 @@ class Source < Increase::Internal::Type::BaseModel # `inbound_fednow_transfer_decline`. # # @return [Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline, nil] - required :inbound_fednow_transfer_decline, + optional :inbound_fednow_transfer_decline, -> { Increase::DeclinedTransaction::Source::InboundFednowTransferDecline }, nil?: true @@ -191,7 +191,7 @@ class Source < Increase::Internal::Type::BaseModel # `inbound_real_time_payments_transfer_decline`. # # @return [Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline, nil] - required :inbound_real_time_payments_transfer_decline, + optional :inbound_real_time_payments_transfer_decline, -> { Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline }, nil?: true @@ -200,16 +200,16 @@ class Source < Increase::Internal::Type::BaseModel # contain an empty object, otherwise it will contain null. # # @return [Increase::Models::DeclinedTransaction::Source::Other, nil] - required :other, -> { Increase::DeclinedTransaction::Source::Other }, nil?: true + optional :other, -> { Increase::DeclinedTransaction::Source::Other }, nil?: true # @!attribute wire_decline # A Wire Decline object. This field will be present in the JSON response if and # only if `category` is equal to `wire_decline`. # # @return [Increase::Models::DeclinedTransaction::Source::WireDecline, nil] - required :wire_decline, -> { Increase::DeclinedTransaction::Source::WireDecline }, nil?: true + optional :wire_decline, -> { Increase::DeclinedTransaction::Source::WireDecline }, nil?: true - # @!method initialize(ach_decline:, card_decline:, category:, check_decline:, check_deposit_rejection:, inbound_fednow_transfer_decline:, inbound_real_time_payments_transfer_decline:, other:, wire_decline:) + # @!method initialize(category:, ach_decline: nil, card_decline: nil, check_decline: nil, check_deposit_rejection: nil, inbound_fednow_transfer_decline: nil, inbound_real_time_payments_transfer_decline: nil, other: nil, wire_decline: nil) # Some parameter documentations has been truncated, see # {Increase::Models::DeclinedTransaction::Source} for more details. # @@ -219,12 +219,12 @@ class Source < Increase::Internal::Type::BaseModel # additional undocumented keys may appear in this object. These should be treated # as deprecated and will be removed in the future. # + # @param category [Symbol, Increase::Models::DeclinedTransaction::Source::Category] The type of the resource. We may add additional possible values for this enum ov + # # @param ach_decline [Increase::Models::DeclinedTransaction::Source::ACHDecline, nil] An ACH Decline object. This field will be present in the JSON response if and on # # @param card_decline [Increase::Models::DeclinedTransaction::Source::CardDecline, nil] A Card Decline object. This field will be present in the JSON response if and on # - # @param category [Symbol, Increase::Models::DeclinedTransaction::Source::Category] The type of the resource. We may add additional possible values for this enum ov - # # @param check_decline [Increase::Models::DeclinedTransaction::Source::CheckDecline, nil] A Check Decline object. This field will be present in the JSON response if and o # # @param check_deposit_rejection [Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, nil] A Check Deposit Rejection object. This field will be present in the JSON respons @@ -237,6 +237,41 @@ class Source < Increase::Internal::Type::BaseModel # # @param wire_decline [Increase::Models::DeclinedTransaction::Source::WireDecline, nil] A Wire Decline object. This field will be present in the JSON response if and on + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @see Increase::Models::DeclinedTransaction::Source#category + module Category + extend Increase::Internal::Type::Enum + + # ACH Decline: details will be under the `ach_decline` object. + ACH_DECLINE = :ach_decline + + # Card Decline: details will be under the `card_decline` object. + CARD_DECLINE = :card_decline + + # Check Decline: details will be under the `check_decline` object. + CHECK_DECLINE = :check_decline + + # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = :inbound_real_time_payments_transfer_decline + + # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object. + INBOUND_FEDNOW_TRANSFER_DECLINE = :inbound_fednow_transfer_decline + + # Wire Decline: details will be under the `wire_decline` object. + WIRE_DECLINE = :wire_decline + + # Check Deposit Rejection: details will be under the `check_deposit_rejection` object. + CHECK_DEPOSIT_REJECTION = :check_deposit_rejection + + # The Declined Transaction was made for an undocumented or deprecated reason. + OTHER = :other + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::DeclinedTransaction::Source#ach_decline class ACHDecline < Increase::Internal::Type::BaseModel # @!attribute id @@ -1736,41 +1771,6 @@ class CardholderName < Increase::Internal::Type::BaseModel end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @see Increase::Models::DeclinedTransaction::Source#category - module Category - extend Increase::Internal::Type::Enum - - # ACH Decline: details will be under the `ach_decline` object. - ACH_DECLINE = :ach_decline - - # Card Decline: details will be under the `card_decline` object. - CARD_DECLINE = :card_decline - - # Check Decline: details will be under the `check_decline` object. - CHECK_DECLINE = :check_decline - - # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object. - INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = :inbound_real_time_payments_transfer_decline - - # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object. - INBOUND_FEDNOW_TRANSFER_DECLINE = :inbound_fednow_transfer_decline - - # Wire Decline: details will be under the `wire_decline` object. - WIRE_DECLINE = :wire_decline - - # Check Deposit Rejection: details will be under the `check_deposit_rejection` object. - CHECK_DEPOSIT_REJECTION = :check_deposit_rejection - - # The Declined Transaction was made for an undocumented or deprecated reason. - OTHER = :other - - # @!method self.values - # @return [Array] - end - # @see Increase::Models::DeclinedTransaction::Source#check_decline class CheckDecline < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/increase/models/fednow_transfer.rb b/lib/increase/models/fednow_transfer.rb index 4c956d47..fd01171f 100644 --- a/lib/increase/models/fednow_transfer.rb +++ b/lib/increase/models/fednow_transfer.rb @@ -217,55 +217,41 @@ class Acknowledgement < Increase::Internal::Type::BaseModel # @see Increase::Models::FednowTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::FednowTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::FednowTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::FednowTransfer::CreatedBy::Category] required :category, enum: -> { Increase::FednowTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::FednowTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::FednowTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::FednowTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::FednowTransfer::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::FednowTransfer::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::FednowTransfer::CreatedBy::User, nil] - required :user, -> { Increase::FednowTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::FednowTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::FednowTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::FednowTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::FednowTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::FednowTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::FednowTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::FednowTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::FednowTransfer::CreatedBy#category @@ -285,6 +271,20 @@ module Category # @return [Array] end + # @see Increase::Models::FednowTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::FednowTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index a1dbe9ba..7448d0d0 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -167,12 +167,19 @@ module RouteType # @see Increase::Models::PendingTransaction#source class Source < Increase::Internal::Type::BaseModel + # @!attribute category + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @return [Symbol, Increase::Models::PendingTransaction::Source::Category] + required :category, enum: -> { Increase::PendingTransaction::Source::Category } + # @!attribute account_transfer_instruction # An Account Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::AccountTransferInstruction, nil] - required :account_transfer_instruction, + optional :account_transfer_instruction, -> { Increase::PendingTransaction::Source::AccountTransferInstruction }, nil?: true @@ -181,7 +188,7 @@ class Source < Increase::Internal::Type::BaseModel # response if and only if `category` is equal to `ach_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::ACHTransferInstruction, nil] - required :ach_transfer_instruction, + optional :ach_transfer_instruction, -> { Increase::PendingTransaction::Source::ACHTransferInstruction }, nil?: true @@ -191,7 +198,7 @@ class Source < Increase::Internal::Type::BaseModel # `blockchain_offramp_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::BlockchainOfframpTransferInstruction, nil] - required :blockchain_offramp_transfer_instruction, + optional :blockchain_offramp_transfer_instruction, -> { Increase::PendingTransaction::Source::BlockchainOfframpTransferInstruction }, nil?: true @@ -201,7 +208,7 @@ class Source < Increase::Internal::Type::BaseModel # `blockchain_onramp_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::BlockchainOnrampTransferInstruction, nil] - required :blockchain_onramp_transfer_instruction, + optional :blockchain_onramp_transfer_instruction, -> { Increase::PendingTransaction::Source::BlockchainOnrampTransferInstruction }, nil?: true @@ -212,7 +219,7 @@ class Source < Increase::Internal::Type::BaseModel # transaction. # # @return [Increase::Models::PendingTransaction::Source::CardAuthorization, nil] - required :card_authorization, + optional :card_authorization, -> { Increase::PendingTransaction::Source::CardAuthorization }, @@ -223,23 +230,16 @@ class Source < Increase::Internal::Type::BaseModel # response if and only if `category` is equal to `card_push_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::CardPushTransferInstruction, nil] - required :card_push_transfer_instruction, + optional :card_push_transfer_instruction, -> { Increase::PendingTransaction::Source::CardPushTransferInstruction }, nil?: true - # @!attribute category - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @return [Symbol, Increase::Models::PendingTransaction::Source::Category] - required :category, enum: -> { Increase::PendingTransaction::Source::Category } - # @!attribute check_deposit_instruction # A Check Deposit Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `check_deposit_instruction`. # # @return [Increase::Models::PendingTransaction::Source::CheckDepositInstruction, nil] - required :check_deposit_instruction, + optional :check_deposit_instruction, -> { Increase::PendingTransaction::Source::CheckDepositInstruction }, nil?: true @@ -248,7 +248,7 @@ class Source < Increase::Internal::Type::BaseModel # response if and only if `category` is equal to `check_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::CheckTransferInstruction, nil] - required :check_transfer_instruction, + optional :check_transfer_instruction, -> { Increase::PendingTransaction::Source::CheckTransferInstruction }, nil?: true @@ -257,7 +257,7 @@ class Source < Increase::Internal::Type::BaseModel # response if and only if `category` is equal to `fednow_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::FednowTransferInstruction, nil] - required :fednow_transfer_instruction, + optional :fednow_transfer_instruction, -> { Increase::PendingTransaction::Source::FednowTransferInstruction }, nil?: true @@ -268,7 +268,7 @@ class Source < Increase::Internal::Type::BaseModel # be clawed back by the sending institution. # # @return [Increase::Models::PendingTransaction::Source::InboundFundsHold, nil] - required :inbound_funds_hold, + optional :inbound_funds_hold, -> { Increase::PendingTransaction::Source::InboundFundsHold }, @@ -281,7 +281,7 @@ class Source < Increase::Internal::Type::BaseModel # and the User requests that it be reversed. # # @return [Increase::Models::PendingTransaction::Source::InboundWireTransferReversal, nil] - required :inbound_wire_transfer_reversal, + optional :inbound_wire_transfer_reversal, -> { Increase::PendingTransaction::Source::InboundWireTransferReversal }, nil?: true @@ -290,7 +290,7 @@ class Source < Increase::Internal::Type::BaseModel # contain an empty object, otherwise it will contain null. # # @return [Increase::Models::PendingTransaction::Source::Other, nil] - required :other, -> { Increase::PendingTransaction::Source::Other }, nil?: true + optional :other, -> { Increase::PendingTransaction::Source::Other }, nil?: true # @!attribute real_time_payments_transfer_instruction # A Real-Time Payments Transfer Instruction object. This field will be present in @@ -298,7 +298,7 @@ class Source < Increase::Internal::Type::BaseModel # `real_time_payments_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::RealTimePaymentsTransferInstruction, nil] - required :real_time_payments_transfer_instruction, + optional :real_time_payments_transfer_instruction, -> { Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction }, nil?: true @@ -307,7 +307,7 @@ class Source < Increase::Internal::Type::BaseModel # response if and only if `category` is equal to `swift_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::SwiftTransferInstruction, nil] - required :swift_transfer_instruction, + optional :swift_transfer_instruction, -> { Increase::PendingTransaction::Source::SwiftTransferInstruction }, nil?: true @@ -317,7 +317,7 @@ class Source < Increase::Internal::Type::BaseModel # initiates a hold on funds in their account. # # @return [Hash{Symbol=>Object}, nil] - required :user_initiated_hold, + optional :user_initiated_hold, Increase::Internal::Type::HashOf[Increase::Internal::Type::Unknown], nil?: true @@ -326,11 +326,11 @@ class Source < Increase::Internal::Type::BaseModel # response if and only if `category` is equal to `wire_transfer_instruction`. # # @return [Increase::Models::PendingTransaction::Source::WireTransferInstruction, nil] - required :wire_transfer_instruction, + optional :wire_transfer_instruction, -> { Increase::PendingTransaction::Source::WireTransferInstruction }, nil?: true - # @!method initialize(account_transfer_instruction:, ach_transfer_instruction:, blockchain_offramp_transfer_instruction:, blockchain_onramp_transfer_instruction:, card_authorization:, card_push_transfer_instruction:, category:, check_deposit_instruction:, check_transfer_instruction:, fednow_transfer_instruction:, inbound_funds_hold:, inbound_wire_transfer_reversal:, other:, real_time_payments_transfer_instruction:, swift_transfer_instruction:, user_initiated_hold:, wire_transfer_instruction:) + # @!method initialize(category:, account_transfer_instruction: nil, ach_transfer_instruction: nil, blockchain_offramp_transfer_instruction: nil, blockchain_onramp_transfer_instruction: nil, card_authorization: nil, card_push_transfer_instruction: nil, check_deposit_instruction: nil, check_transfer_instruction: nil, fednow_transfer_instruction: nil, inbound_funds_hold: nil, inbound_wire_transfer_reversal: nil, other: nil, real_time_payments_transfer_instruction: nil, swift_transfer_instruction: nil, user_initiated_hold: nil, wire_transfer_instruction: nil) # Some parameter documentations has been truncated, see # {Increase::Models::PendingTransaction::Source} for more details. # @@ -338,6 +338,8 @@ class Source < Increase::Internal::Type::BaseModel # Pending Transaction. For example, for a card transaction this lists the # merchant's industry and location. # + # @param category [Symbol, Increase::Models::PendingTransaction::Source::Category] The type of the resource. We may add additional possible values for this enum ov + # # @param account_transfer_instruction [Increase::Models::PendingTransaction::Source::AccountTransferInstruction, nil] An Account Transfer Instruction object. This field will be present in the JSON r # # @param ach_transfer_instruction [Increase::Models::PendingTransaction::Source::ACHTransferInstruction, nil] An ACH Transfer Instruction object. This field will be present in the JSON respo @@ -350,8 +352,6 @@ class Source < Increase::Internal::Type::BaseModel # # @param card_push_transfer_instruction [Increase::Models::PendingTransaction::Source::CardPushTransferInstruction, nil] A Card Push Transfer Instruction object. This field will be present in the JSON # - # @param category [Symbol, Increase::Models::PendingTransaction::Source::Category] The type of the resource. We may add additional possible values for this enum ov - # # @param check_deposit_instruction [Increase::Models::PendingTransaction::Source::CheckDepositInstruction, nil] A Check Deposit Instruction object. This field will be present in the JSON respo # # @param check_transfer_instruction [Increase::Models::PendingTransaction::Source::CheckTransferInstruction, nil] A Check Transfer Instruction object. This field will be present in the JSON resp @@ -372,6 +372,65 @@ class Source < Increase::Internal::Type::BaseModel # # @param wire_transfer_instruction [Increase::Models::PendingTransaction::Source::WireTransferInstruction, nil] A Wire Transfer Instruction object. This field will be present in the JSON respo + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @see Increase::Models::PendingTransaction::Source#category + module Category + extend Increase::Internal::Type::Enum + + # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. + ACCOUNT_TRANSFER_INSTRUCTION = :account_transfer_instruction + + # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object. + ACH_TRANSFER_INSTRUCTION = :ach_transfer_instruction + + # Card Authorization: details will be under the `card_authorization` object. + CARD_AUTHORIZATION = :card_authorization + + # Check Deposit Instruction: details will be under the `check_deposit_instruction` object. + CHECK_DEPOSIT_INSTRUCTION = :check_deposit_instruction + + # Check Transfer Instruction: details will be under the `check_transfer_instruction` object. + CHECK_TRANSFER_INSTRUCTION = :check_transfer_instruction + + # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object. + FEDNOW_TRANSFER_INSTRUCTION = :fednow_transfer_instruction + + # Inbound Funds Hold: details will be under the `inbound_funds_hold` object. + INBOUND_FUNDS_HOLD = :inbound_funds_hold + + # User Initiated Hold: details will be under the `user_initiated_hold` object. + USER_INITIATED_HOLD = :user_initiated_hold + + # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. + REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = :real_time_payments_transfer_instruction + + # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object. + WIRE_TRANSFER_INSTRUCTION = :wire_transfer_instruction + + # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object. + INBOUND_WIRE_TRANSFER_REVERSAL = :inbound_wire_transfer_reversal + + # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object. + SWIFT_TRANSFER_INSTRUCTION = :swift_transfer_instruction + + # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object. + CARD_PUSH_TRANSFER_INSTRUCTION = :card_push_transfer_instruction + + # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object. + BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = :blockchain_onramp_transfer_instruction + + # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object. + BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION = :blockchain_offramp_transfer_instruction + + # The Pending Transaction was made for an undocumented or deprecated reason. + OTHER = :other + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::PendingTransaction::Source#account_transfer_instruction class AccountTransferInstruction < Increase::Internal::Type::BaseModel # @!attribute amount @@ -1775,65 +1834,6 @@ class CardPushTransferInstruction < Increase::Internal::Type::BaseModel # @param transfer_id [String] The identifier of the Card Push Transfer that led to this Pending Transaction. end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @see Increase::Models::PendingTransaction::Source#category - module Category - extend Increase::Internal::Type::Enum - - # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. - ACCOUNT_TRANSFER_INSTRUCTION = :account_transfer_instruction - - # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object. - ACH_TRANSFER_INSTRUCTION = :ach_transfer_instruction - - # Card Authorization: details will be under the `card_authorization` object. - CARD_AUTHORIZATION = :card_authorization - - # Check Deposit Instruction: details will be under the `check_deposit_instruction` object. - CHECK_DEPOSIT_INSTRUCTION = :check_deposit_instruction - - # Check Transfer Instruction: details will be under the `check_transfer_instruction` object. - CHECK_TRANSFER_INSTRUCTION = :check_transfer_instruction - - # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object. - FEDNOW_TRANSFER_INSTRUCTION = :fednow_transfer_instruction - - # Inbound Funds Hold: details will be under the `inbound_funds_hold` object. - INBOUND_FUNDS_HOLD = :inbound_funds_hold - - # User Initiated Hold: details will be under the `user_initiated_hold` object. - USER_INITIATED_HOLD = :user_initiated_hold - - # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. - REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = :real_time_payments_transfer_instruction - - # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object. - WIRE_TRANSFER_INSTRUCTION = :wire_transfer_instruction - - # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object. - INBOUND_WIRE_TRANSFER_REVERSAL = :inbound_wire_transfer_reversal - - # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object. - SWIFT_TRANSFER_INSTRUCTION = :swift_transfer_instruction - - # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object. - CARD_PUSH_TRANSFER_INSTRUCTION = :card_push_transfer_instruction - - # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object. - BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = :blockchain_onramp_transfer_instruction - - # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object. - BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION = :blockchain_offramp_transfer_instruction - - # The Pending Transaction was made for an undocumented or deprecated reason. - OTHER = :other - - # @!method self.values - # @return [Array] - end - # @see Increase::Models::PendingTransaction::Source#check_deposit_instruction class CheckDepositInstruction < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/increase/models/real_time_payments_transfer.rb b/lib/increase/models/real_time_payments_transfer.rb index 193c7546..b254ba6b 100644 --- a/lib/increase/models/real_time_payments_transfer.rb +++ b/lib/increase/models/real_time_payments_transfer.rb @@ -302,23 +302,23 @@ class Cancellation < Increase::Internal::Type::BaseModel # @see Increase::Models::RealTimePaymentsTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::RealTimePaymentsTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::RealTimePaymentsTransfer::CreatedBy::Category] required :category, enum: -> { Increase::RealTimePaymentsTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::RealTimePaymentsTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, + optional :oauth_application, -> { Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication }, nil?: true @@ -326,33 +326,19 @@ class CreatedBy < Increase::Internal::Type::BaseModel # If present, details about the User that created the transfer. # # @return [Increase::Models::RealTimePaymentsTransfer::CreatedBy::User, nil] - required :user, -> { Increase::RealTimePaymentsTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::RealTimePaymentsTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::RealTimePaymentsTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::RealTimePaymentsTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::RealTimePaymentsTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::RealTimePaymentsTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#category @@ -372,6 +358,20 @@ module Category # @return [Array] end + # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::RealTimePaymentsTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/swift_transfer.rb b/lib/increase/models/swift_transfer.rb index 1065ba93..dc5f8b65 100644 --- a/lib/increase/models/swift_transfer.rb +++ b/lib/increase/models/swift_transfer.rb @@ -198,55 +198,41 @@ class SwiftTransfer < Increase::Internal::Type::BaseModel # @see Increase::Models::SwiftTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::SwiftTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::SwiftTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::SwiftTransfer::CreatedBy::Category] required :category, enum: -> { Increase::SwiftTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::SwiftTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::SwiftTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::SwiftTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::SwiftTransfer::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::SwiftTransfer::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::SwiftTransfer::CreatedBy::User, nil] - required :user, -> { Increase::SwiftTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::SwiftTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::SwiftTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::SwiftTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::SwiftTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::SwiftTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::SwiftTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::SwiftTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::SwiftTransfer::CreatedBy#category @@ -266,6 +252,20 @@ module Category # @return [Array] end + # @see Increase::Models::SwiftTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::SwiftTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index e8f5e60e..57a4cceb 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -139,6 +139,13 @@ module RouteType # @see Increase::Models::Transaction#source class Source < Increase::Internal::Type::BaseModel + # @!attribute category + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @return [Symbol, Increase::Models::Transaction::Source::Category] + required :category, enum: -> { Increase::Transaction::Source::Category } + # @!attribute account_revenue_payment # An Account Revenue Payment object. This field will be present in the JSON # response if and only if `category` is equal to `account_revenue_payment`. An @@ -146,7 +153,7 @@ class Source < Increase::Internal::Type::BaseModel # Account revenue is a type of non-interest income. # # @return [Increase::Models::Transaction::Source::AccountRevenuePayment, nil] - required :account_revenue_payment, + optional :account_revenue_payment, -> { Increase::Transaction::Source::AccountRevenuePayment }, @@ -159,7 +166,7 @@ class Source < Increase::Internal::Type::BaseModel # decrements the source account, and the other increments the destination account. # # @return [Increase::Models::Transaction::Source::AccountTransferIntention, nil] - required :account_transfer_intention, + optional :account_transfer_intention, -> { Increase::Transaction::Source::AccountTransferIntention }, nil?: true @@ -170,7 +177,7 @@ class Source < Increase::Internal::Type::BaseModel # move money into or out of an Increase account via the ACH network. # # @return [Increase::Models::Transaction::Source::ACHTransferIntention, nil] - required :ach_transfer_intention, + optional :ach_transfer_intention, -> { Increase::Transaction::Source::ACHTransferIntention }, @@ -183,7 +190,7 @@ class Source < Increase::Internal::Type::BaseModel # offsets the ACH Transfer Intention. These rejections are rare. # # @return [Increase::Models::Transaction::Source::ACHTransferRejection, nil] - required :ach_transfer_rejection, + optional :ach_transfer_rejection, -> { Increase::Transaction::Source::ACHTransferRejection }, @@ -198,7 +205,7 @@ class Source < Increase::Internal::Type::BaseModel # later. # # @return [Increase::Models::Transaction::Source::ACHTransferReturn, nil] - required :ach_transfer_return, -> { Increase::Transaction::Source::ACHTransferReturn }, nil?: true + optional :ach_transfer_return, -> { Increase::Transaction::Source::ACHTransferReturn }, nil?: true # @!attribute blockchain_offramp_transfer_settlement # A Blockchain Off-Ramp Transfer Settlement object. This field will be present in @@ -206,7 +213,7 @@ class Source < Increase::Internal::Type::BaseModel # `blockchain_offramp_transfer_settlement`. # # @return [Increase::Models::Transaction::Source::BlockchainOfframpTransferSettlement, nil] - required :blockchain_offramp_transfer_settlement, + optional :blockchain_offramp_transfer_settlement, -> { Increase::Transaction::Source::BlockchainOfframpTransferSettlement }, nil?: true @@ -216,7 +223,7 @@ class Source < Increase::Internal::Type::BaseModel # `blockchain_onramp_transfer_intention`. # # @return [Increase::Models::Transaction::Source::BlockchainOnrampTransferIntention, nil] - required :blockchain_onramp_transfer_intention, + optional :blockchain_onramp_transfer_intention, -> { Increase::Transaction::Source::BlockchainOnrampTransferIntention }, nil?: true @@ -226,7 +233,7 @@ class Source < Increase::Internal::Type::BaseModel # Contains the details of a successful Card Dispute. # # @return [Increase::Models::Transaction::Source::CardDisputeAcceptance, nil] - required :card_dispute_acceptance, + optional :card_dispute_acceptance, -> { Increase::Transaction::Source::CardDisputeAcceptance }, @@ -238,7 +245,7 @@ class Source < Increase::Internal::Type::BaseModel # related to a Card Dispute. # # @return [Increase::Models::Transaction::Source::CardDisputeFinancial, nil] - required :card_dispute_financial, + optional :card_dispute_financial, -> { Increase::Transaction::Source::CardDisputeFinancial }, @@ -250,7 +257,7 @@ class Source < Increase::Internal::Type::BaseModel # details of a lost Card Dispute. # # @return [Increase::Models::Transaction::Source::CardDisputeLoss, nil] - required :card_dispute_loss, -> { Increase::Transaction::Source::CardDisputeLoss }, nil?: true + optional :card_dispute_loss, -> { Increase::Transaction::Source::CardDisputeLoss }, nil?: true # @!attribute card_financial # A Card Financial object. This field will be present in the JSON response if and @@ -258,7 +265,7 @@ class Source < Increase::Internal::Type::BaseModel # holds placed on a customers funds with the intent to later clear a transaction. # # @return [Increase::Models::Transaction::Source::CardFinancial, nil] - required :card_financial, -> { Increase::Transaction::Source::CardFinancial }, nil?: true + optional :card_financial, -> { Increase::Transaction::Source::CardFinancial }, nil?: true # @!attribute card_push_transfer_acceptance # A Card Push Transfer Acceptance object. This field will be present in the JSON @@ -267,7 +274,7 @@ class Source < Increase::Internal::Type::BaseModel # sent from Increase is accepted by the receiving bank. # # @return [Increase::Models::Transaction::Source::CardPushTransferAcceptance, nil] - required :card_push_transfer_acceptance, + optional :card_push_transfer_acceptance, -> { Increase::Transaction::Source::CardPushTransferAcceptance }, nil?: true @@ -279,7 +286,7 @@ class Source < Increase::Internal::Type::BaseModel # transaction. # # @return [Increase::Models::Transaction::Source::CardRefund, nil] - required :card_refund, -> { Increase::Transaction::Source::CardRefund }, nil?: true + optional :card_refund, -> { Increase::Transaction::Source::CardRefund }, nil?: true # @!attribute card_revenue_payment # A Card Revenue Payment object. This field will be present in the JSON response @@ -287,7 +294,7 @@ class Source < Increase::Internal::Type::BaseModel # Payments reflect earnings from fees on card transactions. # # @return [Increase::Models::Transaction::Source::CardRevenuePayment, nil] - required :card_revenue_payment, -> { Increase::Transaction::Source::CardRevenuePayment }, nil?: true + optional :card_revenue_payment, -> { Increase::Transaction::Source::CardRevenuePayment }, nil?: true # @!attribute card_settlement # A Card Settlement object. This field will be present in the JSON response if and @@ -297,7 +304,7 @@ class Source < Increase::Internal::Type::BaseModel # without first authorizing it. # # @return [Increase::Models::Transaction::Source::CardSettlement, nil] - required :card_settlement, -> { Increase::Transaction::Source::CardSettlement }, nil?: true + optional :card_settlement, -> { Increase::Transaction::Source::CardSettlement }, nil?: true # @!attribute cashback_payment # A Cashback Payment object. This field will be present in the JSON response if @@ -306,14 +313,7 @@ class Source < Increase::Internal::Type::BaseModel # usually paid monthly for the prior month's transactions. # # @return [Increase::Models::Transaction::Source::CashbackPayment, nil] - required :cashback_payment, -> { Increase::Transaction::Source::CashbackPayment }, nil?: true - - # @!attribute category - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @return [Symbol, Increase::Models::Transaction::Source::Category] - required :category, enum: -> { Increase::Transaction::Source::Category } + optional :cashback_payment, -> { Increase::Transaction::Source::CashbackPayment }, nil?: true # @!attribute check_deposit_acceptance # A Check Deposit Acceptance object. This field will be present in the JSON @@ -323,7 +323,7 @@ class Source < Increase::Internal::Type::BaseModel # will appear as a Check Deposit Return. # # @return [Increase::Models::Transaction::Source::CheckDepositAcceptance, nil] - required :check_deposit_acceptance, + optional :check_deposit_acceptance, -> { Increase::Transaction::Source::CheckDepositAcceptance }, nil?: true @@ -336,7 +336,7 @@ class Source < Increase::Internal::Type::BaseModel # checks are returned within the first 7 days after the deposit is made. # # @return [Increase::Models::Transaction::Source::CheckDepositReturn, nil] - required :check_deposit_return, -> { Increase::Transaction::Source::CheckDepositReturn }, nil?: true + optional :check_deposit_return, -> { Increase::Transaction::Source::CheckDepositReturn }, nil?: true # @!attribute check_transfer_deposit # A Check Transfer Deposit object. This field will be present in the JSON response @@ -345,7 +345,7 @@ class Source < Increase::Internal::Type::BaseModel # bank account. These types of checks are not pre-registered. # # @return [Increase::Models::Transaction::Source::CheckTransferDeposit, nil] - required :check_transfer_deposit, + optional :check_transfer_deposit, -> { Increase::Transaction::Source::CheckTransferDeposit }, @@ -358,7 +358,7 @@ class Source < Increase::Internal::Type::BaseModel # when a FedNow Transfer sent from Increase is acknowledged by the receiving bank. # # @return [Increase::Models::Transaction::Source::FednowTransferAcknowledgement, nil] - required :fednow_transfer_acknowledgement, + optional :fednow_transfer_acknowledgement, -> { Increase::Transaction::Source::FednowTransferAcknowledgement }, nil?: true @@ -368,7 +368,7 @@ class Source < Increase::Internal::Type::BaseModel # made to Increase. # # @return [Increase::Models::Transaction::Source::FeePayment, nil] - required :fee_payment, -> { Increase::Transaction::Source::FeePayment }, nil?: true + optional :fee_payment, -> { Increase::Transaction::Source::FeePayment }, nil?: true # @!attribute inbound_ach_transfer # An Inbound ACH Transfer Intention object. This field will be present in the JSON @@ -377,7 +377,7 @@ class Source < Increase::Internal::Type::BaseModel # another bank and received by Increase. # # @return [Increase::Models::Transaction::Source::InboundACHTransfer, nil] - required :inbound_ach_transfer, -> { Increase::Transaction::Source::InboundACHTransfer }, nil?: true + optional :inbound_ach_transfer, -> { Increase::Transaction::Source::InboundACHTransfer }, nil?: true # @!attribute inbound_ach_transfer_return_intention # An Inbound ACH Transfer Return Intention object. This field will be present in @@ -387,7 +387,7 @@ class Source < Increase::Internal::Type::BaseModel # returned by Increase. # # @return [Increase::Models::Transaction::Source::InboundACHTransferReturnIntention, nil] - required :inbound_ach_transfer_return_intention, + optional :inbound_ach_transfer_return_intention, -> { Increase::Transaction::Source::InboundACHTransferReturnIntention }, nil?: true @@ -398,7 +398,7 @@ class Source < Increase::Internal::Type::BaseModel # check or return deposited through Check21. # # @return [Increase::Models::Transaction::Source::InboundCheckAdjustment, nil] - required :inbound_check_adjustment, + optional :inbound_check_adjustment, -> { Increase::Transaction::Source::InboundCheckAdjustment }, nil?: true @@ -410,7 +410,7 @@ class Source < Increase::Internal::Type::BaseModel # requests that it be returned. # # @return [Increase::Models::Transaction::Source::InboundCheckDepositReturnIntention, nil] - required :inbound_check_deposit_return_intention, + optional :inbound_check_deposit_return_intention, -> { Increase::Transaction::Source::InboundCheckDepositReturnIntention }, nil?: true @@ -422,7 +422,7 @@ class Source < Increase::Internal::Type::BaseModel # Increase. # # @return [Increase::Models::Transaction::Source::InboundFednowTransferConfirmation, nil] - required :inbound_fednow_transfer_confirmation, + optional :inbound_fednow_transfer_confirmation, -> { Increase::Transaction::Source::InboundFednowTransferConfirmation }, nil?: true @@ -434,7 +434,7 @@ class Source < Increase::Internal::Type::BaseModel # initiated at another bank and received by Increase. # # @return [Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferConfirmation, nil] - required :inbound_real_time_payments_transfer_confirmation, + optional :inbound_real_time_payments_transfer_confirmation, -> { Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation }, nil?: true @@ -446,7 +446,7 @@ class Source < Increase::Internal::Type::BaseModel # the original destination account details were incorrect. # # @return [Increase::Models::Transaction::Source::InboundWireReversal, nil] - required :inbound_wire_reversal, -> { Increase::Transaction::Source::InboundWireReversal }, nil?: true + optional :inbound_wire_reversal, -> { Increase::Transaction::Source::InboundWireReversal }, nil?: true # @!attribute inbound_wire_transfer # An Inbound Wire Transfer Intention object. This field will be present in the @@ -455,7 +455,7 @@ class Source < Increase::Internal::Type::BaseModel # another bank and received by Increase. # # @return [Increase::Models::Transaction::Source::InboundWireTransfer, nil] - required :inbound_wire_transfer, -> { Increase::Transaction::Source::InboundWireTransfer }, nil?: true + optional :inbound_wire_transfer, -> { Increase::Transaction::Source::InboundWireTransfer }, nil?: true # @!attribute inbound_wire_transfer_reversal # An Inbound Wire Transfer Reversal Intention object. This field will be present @@ -465,7 +465,7 @@ class Source < Increase::Internal::Type::BaseModel # reversed. # # @return [Increase::Models::Transaction::Source::InboundWireTransferReversal, nil] - required :inbound_wire_transfer_reversal, + optional :inbound_wire_transfer_reversal, -> { Increase::Transaction::Source::InboundWireTransferReversal }, nil?: true @@ -476,7 +476,7 @@ class Source < Increase::Internal::Type::BaseModel # monthly. # # @return [Increase::Models::Transaction::Source::InterestPayment, nil] - required :interest_payment, -> { Increase::Transaction::Source::InterestPayment }, nil?: true + optional :interest_payment, -> { Increase::Transaction::Source::InterestPayment }, nil?: true # @!attribute internal_source # An Internal Source object. This field will be present in the JSON response if @@ -484,14 +484,14 @@ class Source < Increase::Internal::Type::BaseModel # user and Increase. See the `reason` attribute for more information. # # @return [Increase::Models::Transaction::Source::InternalSource, nil] - required :internal_source, -> { Increase::Transaction::Source::InternalSource }, nil?: true + optional :internal_source, -> { Increase::Transaction::Source::InternalSource }, nil?: true # @!attribute other # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. # # @return [Increase::Models::Transaction::Source::Other, nil] - required :other, -> { Increase::Transaction::Source::Other }, nil?: true + optional :other, -> { Increase::Transaction::Source::Other }, nil?: true # @!attribute real_time_payments_transfer_acknowledgement # A Real-Time Payments Transfer Acknowledgement object. This field will be present @@ -501,7 +501,7 @@ class Source < Increase::Internal::Type::BaseModel # is acknowledged by the receiving bank. # # @return [Increase::Models::Transaction::Source::RealTimePaymentsTransferAcknowledgement, nil] - required :real_time_payments_transfer_acknowledgement, + optional :real_time_payments_transfer_acknowledgement, -> { Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement }, nil?: true @@ -511,7 +511,7 @@ class Source < Increase::Internal::Type::BaseModel # purposes. # # @return [Increase::Models::Transaction::Source::SampleFunds, nil] - required :sample_funds, -> { Increase::Transaction::Source::SampleFunds }, nil?: true + optional :sample_funds, -> { Increase::Transaction::Source::SampleFunds }, nil?: true # @!attribute swift_transfer_intention # A Swift Transfer Intention object. This field will be present in the JSON @@ -519,7 +519,7 @@ class Source < Increase::Internal::Type::BaseModel # Swift Transfer initiated via Increase. # # @return [Increase::Models::Transaction::Source::SwiftTransferIntention, nil] - required :swift_transfer_intention, + optional :swift_transfer_intention, -> { Increase::Transaction::Source::SwiftTransferIntention }, nil?: true @@ -529,7 +529,7 @@ class Source < Increase::Internal::Type::BaseModel # Return is created when a Swift Transfer is returned by the receiving bank. # # @return [Increase::Models::Transaction::Source::SwiftTransferReturn, nil] - required :swift_transfer_return, -> { Increase::Transaction::Source::SwiftTransferReturn }, nil?: true + optional :swift_transfer_return, -> { Increase::Transaction::Source::SwiftTransferReturn }, nil?: true # @!attribute wire_transfer_intention # A Wire Transfer Intention object. This field will be present in the JSON @@ -537,13 +537,13 @@ class Source < Increase::Internal::Type::BaseModel # Transfer initiated via Increase and sent to a different bank. # # @return [Increase::Models::Transaction::Source::WireTransferIntention, nil] - required :wire_transfer_intention, + optional :wire_transfer_intention, -> { Increase::Transaction::Source::WireTransferIntention }, nil?: true - # @!method initialize(account_revenue_payment:, account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, blockchain_offramp_transfer_settlement:, blockchain_onramp_transfer_intention:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_financial:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fednow_transfer_acknowledgement:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_fednow_transfer_confirmation:, inbound_real_time_payments_transfer_confirmation:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, swift_transfer_return:, wire_transfer_intention:) + # @!method initialize(category:, account_revenue_payment: nil, account_transfer_intention: nil, ach_transfer_intention: nil, ach_transfer_rejection: nil, ach_transfer_return: nil, blockchain_offramp_transfer_settlement: nil, blockchain_onramp_transfer_intention: nil, card_dispute_acceptance: nil, card_dispute_financial: nil, card_dispute_loss: nil, card_financial: nil, card_push_transfer_acceptance: nil, card_refund: nil, card_revenue_payment: nil, card_settlement: nil, cashback_payment: nil, check_deposit_acceptance: nil, check_deposit_return: nil, check_transfer_deposit: nil, fednow_transfer_acknowledgement: nil, fee_payment: nil, inbound_ach_transfer: nil, inbound_ach_transfer_return_intention: nil, inbound_check_adjustment: nil, inbound_check_deposit_return_intention: nil, inbound_fednow_transfer_confirmation: nil, inbound_real_time_payments_transfer_confirmation: nil, inbound_wire_reversal: nil, inbound_wire_transfer: nil, inbound_wire_transfer_reversal: nil, interest_payment: nil, internal_source: nil, other: nil, real_time_payments_transfer_acknowledgement: nil, sample_funds: nil, swift_transfer_intention: nil, swift_transfer_return: nil, wire_transfer_intention: nil) # Some parameter documentations has been truncated, see # {Increase::Models::Transaction::Source} for more details. # @@ -552,6 +552,8 @@ class Source < Increase::Internal::Type::BaseModel # undocumented keys may appear in this object. These should be treated as # deprecated and will be removed in the future. # + # @param category [Symbol, Increase::Models::Transaction::Source::Category] The type of the resource. We may add additional possible values for this enum ov + # # @param account_revenue_payment [Increase::Models::Transaction::Source::AccountRevenuePayment, nil] An Account Revenue Payment object. This field will be present in the JSON respon # # @param account_transfer_intention [Increase::Models::Transaction::Source::AccountTransferIntention, nil] An Account Transfer Intention object. This field will be present in the JSON res @@ -584,8 +586,6 @@ class Source < Increase::Internal::Type::BaseModel # # @param cashback_payment [Increase::Models::Transaction::Source::CashbackPayment, nil] A Cashback Payment object. This field will be present in the JSON response if an # - # @param category [Symbol, Increase::Models::Transaction::Source::Category] The type of the resource. We may add additional possible values for this enum ov - # # @param check_deposit_acceptance [Increase::Models::Transaction::Source::CheckDepositAcceptance, nil] A Check Deposit Acceptance object. This field will be present in the JSON respon # # @param check_deposit_return [Increase::Models::Transaction::Source::CheckDepositReturn, nil] A Check Deposit Return object. This field will be present in the JSON response i @@ -630,6 +630,131 @@ class Source < Increase::Internal::Type::BaseModel # # @param wire_transfer_intention [Increase::Models::Transaction::Source::WireTransferIntention, nil] A Wire Transfer Intention object. This field will be present in the JSON respons + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + # + # @see Increase::Models::Transaction::Source#category + module Category + extend Increase::Internal::Type::Enum + + # Account Transfer Intention: details will be under the `account_transfer_intention` object. + ACCOUNT_TRANSFER_INTENTION = :account_transfer_intention + + # ACH Transfer Intention: details will be under the `ach_transfer_intention` object. + ACH_TRANSFER_INTENTION = :ach_transfer_intention + + # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object. + ACH_TRANSFER_REJECTION = :ach_transfer_rejection + + # ACH Transfer Return: details will be under the `ach_transfer_return` object. + ACH_TRANSFER_RETURN = :ach_transfer_return + + # Cashback Payment: details will be under the `cashback_payment` object. + CASHBACK_PAYMENT = :cashback_payment + + # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. + CARD_DISPUTE_ACCEPTANCE = :card_dispute_acceptance + + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL = :card_dispute_financial + + # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object. + CARD_DISPUTE_LOSS = :card_dispute_loss + + # Card Refund: details will be under the `card_refund` object. + CARD_REFUND = :card_refund + + # Card Settlement: details will be under the `card_settlement` object. + CARD_SETTLEMENT = :card_settlement + + # Card Financial: details will be under the `card_financial` object. + CARD_FINANCIAL = :card_financial + + # Card Revenue Payment: details will be under the `card_revenue_payment` object. + CARD_REVENUE_PAYMENT = :card_revenue_payment + + # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object. + CHECK_DEPOSIT_ACCEPTANCE = :check_deposit_acceptance + + # Check Deposit Return: details will be under the `check_deposit_return` object. + CHECK_DEPOSIT_RETURN = :check_deposit_return + + # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object. + FEDNOW_TRANSFER_ACKNOWLEDGEMENT = :fednow_transfer_acknowledgement + + # Check Transfer Deposit: details will be under the `check_transfer_deposit` object. + CHECK_TRANSFER_DEPOSIT = :check_transfer_deposit + + # Fee Payment: details will be under the `fee_payment` object. + FEE_PAYMENT = :fee_payment + + # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object. + INBOUND_ACH_TRANSFER = :inbound_ach_transfer + + # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object. + INBOUND_ACH_TRANSFER_RETURN_INTENTION = :inbound_ach_transfer_return_intention + + # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object. + INBOUND_CHECK_DEPOSIT_RETURN_INTENTION = :inbound_check_deposit_return_intention + + # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object. + INBOUND_CHECK_ADJUSTMENT = :inbound_check_adjustment + + # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object. + INBOUND_FEDNOW_TRANSFER_CONFIRMATION = :inbound_fednow_transfer_confirmation + + # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION = :inbound_real_time_payments_transfer_confirmation + + # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object. + INBOUND_WIRE_REVERSAL = :inbound_wire_reversal + + # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object. + INBOUND_WIRE_TRANSFER = :inbound_wire_transfer + + # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object. + INBOUND_WIRE_TRANSFER_REVERSAL = :inbound_wire_transfer_reversal + + # Interest Payment: details will be under the `interest_payment` object. + INTEREST_PAYMENT = :interest_payment + + # Internal Source: details will be under the `internal_source` object. + INTERNAL_SOURCE = :internal_source + + # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object. + REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT = :real_time_payments_transfer_acknowledgement + + # Sample Funds: details will be under the `sample_funds` object. + SAMPLE_FUNDS = :sample_funds + + # Wire Transfer Intention: details will be under the `wire_transfer_intention` object. + WIRE_TRANSFER_INTENTION = :wire_transfer_intention + + # Swift Transfer Intention: details will be under the `swift_transfer_intention` object. + SWIFT_TRANSFER_INTENTION = :swift_transfer_intention + + # Swift Transfer Return: details will be under the `swift_transfer_return` object. + SWIFT_TRANSFER_RETURN = :swift_transfer_return + + # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. + CARD_PUSH_TRANSFER_ACCEPTANCE = :card_push_transfer_acceptance + + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT = :account_revenue_payment + + # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object. + BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION = :blockchain_onramp_transfer_intention + + # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object. + BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT = :blockchain_offramp_transfer_settlement + + # The Transaction was made for an undocumented or deprecated reason. + OTHER = :other + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::Transaction::Source#account_revenue_payment class AccountRevenuePayment < Increase::Internal::Type::BaseModel # @!attribute accrued_on_account_id @@ -5411,131 +5536,6 @@ module Currency end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - # - # @see Increase::Models::Transaction::Source#category - module Category - extend Increase::Internal::Type::Enum - - # Account Transfer Intention: details will be under the `account_transfer_intention` object. - ACCOUNT_TRANSFER_INTENTION = :account_transfer_intention - - # ACH Transfer Intention: details will be under the `ach_transfer_intention` object. - ACH_TRANSFER_INTENTION = :ach_transfer_intention - - # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object. - ACH_TRANSFER_REJECTION = :ach_transfer_rejection - - # ACH Transfer Return: details will be under the `ach_transfer_return` object. - ACH_TRANSFER_RETURN = :ach_transfer_return - - # Cashback Payment: details will be under the `cashback_payment` object. - CASHBACK_PAYMENT = :cashback_payment - - # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. - CARD_DISPUTE_ACCEPTANCE = :card_dispute_acceptance - - # Card Dispute Financial: details will be under the `card_dispute_financial` object. - CARD_DISPUTE_FINANCIAL = :card_dispute_financial - - # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object. - CARD_DISPUTE_LOSS = :card_dispute_loss - - # Card Refund: details will be under the `card_refund` object. - CARD_REFUND = :card_refund - - # Card Settlement: details will be under the `card_settlement` object. - CARD_SETTLEMENT = :card_settlement - - # Card Financial: details will be under the `card_financial` object. - CARD_FINANCIAL = :card_financial - - # Card Revenue Payment: details will be under the `card_revenue_payment` object. - CARD_REVENUE_PAYMENT = :card_revenue_payment - - # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object. - CHECK_DEPOSIT_ACCEPTANCE = :check_deposit_acceptance - - # Check Deposit Return: details will be under the `check_deposit_return` object. - CHECK_DEPOSIT_RETURN = :check_deposit_return - - # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object. - FEDNOW_TRANSFER_ACKNOWLEDGEMENT = :fednow_transfer_acknowledgement - - # Check Transfer Deposit: details will be under the `check_transfer_deposit` object. - CHECK_TRANSFER_DEPOSIT = :check_transfer_deposit - - # Fee Payment: details will be under the `fee_payment` object. - FEE_PAYMENT = :fee_payment - - # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object. - INBOUND_ACH_TRANSFER = :inbound_ach_transfer - - # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object. - INBOUND_ACH_TRANSFER_RETURN_INTENTION = :inbound_ach_transfer_return_intention - - # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object. - INBOUND_CHECK_DEPOSIT_RETURN_INTENTION = :inbound_check_deposit_return_intention - - # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object. - INBOUND_CHECK_ADJUSTMENT = :inbound_check_adjustment - - # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object. - INBOUND_FEDNOW_TRANSFER_CONFIRMATION = :inbound_fednow_transfer_confirmation - - # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object. - INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION = :inbound_real_time_payments_transfer_confirmation - - # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object. - INBOUND_WIRE_REVERSAL = :inbound_wire_reversal - - # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object. - INBOUND_WIRE_TRANSFER = :inbound_wire_transfer - - # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object. - INBOUND_WIRE_TRANSFER_REVERSAL = :inbound_wire_transfer_reversal - - # Interest Payment: details will be under the `interest_payment` object. - INTEREST_PAYMENT = :interest_payment - - # Internal Source: details will be under the `internal_source` object. - INTERNAL_SOURCE = :internal_source - - # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object. - REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT = :real_time_payments_transfer_acknowledgement - - # Sample Funds: details will be under the `sample_funds` object. - SAMPLE_FUNDS = :sample_funds - - # Wire Transfer Intention: details will be under the `wire_transfer_intention` object. - WIRE_TRANSFER_INTENTION = :wire_transfer_intention - - # Swift Transfer Intention: details will be under the `swift_transfer_intention` object. - SWIFT_TRANSFER_INTENTION = :swift_transfer_intention - - # Swift Transfer Return: details will be under the `swift_transfer_return` object. - SWIFT_TRANSFER_RETURN = :swift_transfer_return - - # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. - CARD_PUSH_TRANSFER_ACCEPTANCE = :card_push_transfer_acceptance - - # Account Revenue Payment: details will be under the `account_revenue_payment` object. - ACCOUNT_REVENUE_PAYMENT = :account_revenue_payment - - # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object. - BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION = :blockchain_onramp_transfer_intention - - # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object. - BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT = :blockchain_offramp_transfer_settlement - - # The Transaction was made for an undocumented or deprecated reason. - OTHER = :other - - # @!method self.values - # @return [Array] - end - # @see Increase::Models::Transaction::Source#check_deposit_acceptance class CheckDepositAcceptance < Increase::Internal::Type::BaseModel # @!attribute account_number diff --git a/lib/increase/models/wire_transfer.rb b/lib/increase/models/wire_transfer.rb index fc2fba21..8aebdb2e 100644 --- a/lib/increase/models/wire_transfer.rb +++ b/lib/increase/models/wire_transfer.rb @@ -273,55 +273,41 @@ class Cancellation < Increase::Internal::Type::BaseModel # @see Increase::Models::WireTransfer#created_by class CreatedBy < Increase::Internal::Type::BaseModel - # @!attribute api_key - # If present, details about the API key that created the transfer. - # - # @return [Increase::Models::WireTransfer::CreatedBy::APIKey, nil] - required :api_key, -> { Increase::WireTransfer::CreatedBy::APIKey }, nil?: true - # @!attribute category # The type of object that created this transfer. # # @return [Symbol, Increase::Models::WireTransfer::CreatedBy::Category] required :category, enum: -> { Increase::WireTransfer::CreatedBy::Category } + # @!attribute api_key + # If present, details about the API key that created the transfer. + # + # @return [Increase::Models::WireTransfer::CreatedBy::APIKey, nil] + optional :api_key, -> { Increase::WireTransfer::CreatedBy::APIKey }, nil?: true + # @!attribute oauth_application # If present, details about the OAuth Application that created the transfer. # # @return [Increase::Models::WireTransfer::CreatedBy::OAuthApplication, nil] - required :oauth_application, -> { Increase::WireTransfer::CreatedBy::OAuthApplication }, nil?: true + optional :oauth_application, -> { Increase::WireTransfer::CreatedBy::OAuthApplication }, nil?: true # @!attribute user # If present, details about the User that created the transfer. # # @return [Increase::Models::WireTransfer::CreatedBy::User, nil] - required :user, -> { Increase::WireTransfer::CreatedBy::User }, nil?: true + optional :user, -> { Increase::WireTransfer::CreatedBy::User }, nil?: true - # @!method initialize(api_key:, category:, oauth_application:, user:) + # @!method initialize(category:, api_key: nil, oauth_application: nil, user: nil) # What object created the transfer, either via the API or the dashboard. # - # @param api_key [Increase::Models::WireTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. - # # @param category [Symbol, Increase::Models::WireTransfer::CreatedBy::Category] The type of object that created this transfer. # + # @param api_key [Increase::Models::WireTransfer::CreatedBy::APIKey, nil] If present, details about the API key that created the transfer. + # # @param oauth_application [Increase::Models::WireTransfer::CreatedBy::OAuthApplication, nil] If present, details about the OAuth Application that created the transfer. # # @param user [Increase::Models::WireTransfer::CreatedBy::User, nil] If present, details about the User that created the transfer. - # @see Increase::Models::WireTransfer::CreatedBy#api_key - class APIKey < Increase::Internal::Type::BaseModel - # @!attribute description - # The description set for the API key when it was created. - # - # @return [String, nil] - required :description, String, nil?: true - - # @!method initialize(description:) - # If present, details about the API key that created the transfer. - # - # @param description [String, nil] The description set for the API key when it was created. - end - # The type of object that created this transfer. # # @see Increase::Models::WireTransfer::CreatedBy#category @@ -341,6 +327,20 @@ module Category # @return [Array] end + # @see Increase::Models::WireTransfer::CreatedBy#api_key + class APIKey < Increase::Internal::Type::BaseModel + # @!attribute description + # The description set for the API key when it was created. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!method initialize(description:) + # If present, details about the API key that created the transfer. + # + # @param description [String, nil] The description set for the API key when it was created. + end + # @see Increase::Models::WireTransfer::CreatedBy#oauth_application class OAuthApplication < Increase::Internal::Type::BaseModel # @!attribute name @@ -541,16 +541,16 @@ class Remittance < Increase::Internal::Type::BaseModel # is equal to `tax`. # # @return [Increase::Models::WireTransfer::Remittance::Tax, nil] - required :tax, -> { Increase::WireTransfer::Remittance::Tax }, nil?: true + optional :tax, -> { Increase::WireTransfer::Remittance::Tax }, nil?: true # @!attribute unstructured # Unstructured remittance information. Required if `category` is equal to # `unstructured`. # # @return [Increase::Models::WireTransfer::Remittance::Unstructured, nil] - required :unstructured, -> { Increase::WireTransfer::Remittance::Unstructured }, nil?: true + optional :unstructured, -> { Increase::WireTransfer::Remittance::Unstructured }, nil?: true - # @!method initialize(category:, tax:, unstructured:) + # @!method initialize(category:, tax: nil, unstructured: nil) # Some parameter documentations has been truncated, see # {Increase::Models::WireTransfer::Remittance} for more details. # diff --git a/lib/increase/version.rb b/lib/increase/version.rb index cb8e4e1b..7cc865a2 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.203.0" + VERSION = "1.204.0" end diff --git a/rbi/increase/models/account_transfer.rbi b/rbi/increase/models/account_transfer.rbi index f493a303..c315abf1 100644 --- a/rbi/increase/models/account_transfer.rbi +++ b/rbi/increase/models/account_transfer.rbi @@ -309,6 +309,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::AccountTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::AccountTransfer::CreatedBy::APIKey)) } attr_reader :api_key @@ -321,12 +327,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::AccountTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -359,9 +359,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::AccountTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::AccountTransfer::CreatedBy::APIKey::OrHash), - category: Increase::AccountTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::AccountTransfer::CreatedBy::OAuthApplication::OrHash @@ -370,23 +370,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::AccountTransfer::CreatedBy::APIKey), category: Increase::AccountTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::AccountTransfer::CreatedBy::APIKey), oauth_application: T.nilable( Increase::AccountTransfer::CreatedBy::OAuthApplication @@ -398,34 +398,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::AccountTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -468,6 +440,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::AccountTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/ach_transfer.rbi b/rbi/increase/models/ach_transfer.rbi index 214a04d5..b7c66ec8 100644 --- a/rbi/increase/models/ach_transfer.rbi +++ b/rbi/increase/models/ach_transfer.rbi @@ -546,10 +546,10 @@ module Increase # over time; your application should be able to handle such additions gracefully. category:, # Unstructured `payment_related_information` passed through with the transfer. - freeform:, + freeform: nil, # Structured ASC X12 820 remittance advice records. Please reach out to # [support@increase.com](mailto:support@increase.com) for more information. - payment_order_remittance_advice: + payment_order_remittance_advice: nil ) end @@ -862,6 +862,12 @@ module Increase T.any(Increase::ACHTransfer::CreatedBy, Increase::Internal::AnyHash) end + # The type of object that created this transfer. + sig do + returns(Increase::ACHTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::ACHTransfer::CreatedBy::APIKey)) } attr_reader :api_key @@ -873,12 +879,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::ACHTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns(T.nilable(Increase::ACHTransfer::CreatedBy::OAuthApplication)) @@ -909,9 +909,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::ACHTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::ACHTransfer::CreatedBy::APIKey::OrHash), - category: Increase::ACHTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::ACHTransfer::CreatedBy::OAuthApplication::OrHash @@ -920,23 +920,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::ACHTransfer::CreatedBy::APIKey), category: Increase::ACHTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::ACHTransfer::CreatedBy::APIKey), oauth_application: T.nilable(Increase::ACHTransfer::CreatedBy::OAuthApplication), user: T.nilable(Increase::ACHTransfer::CreatedBy::User) @@ -946,34 +946,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::ACHTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -1014,6 +986,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::ACHTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/card_dispute.rbi b/rbi/increase/models/card_dispute.rbi index 6ee41ba5..ddf02518 100644 --- a/rbi/increase/models/card_dispute.rbi +++ b/rbi/increase/models/card_dispute.rbi @@ -446,6 +446,15 @@ module Increase end attr_accessor :category + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the Visa Card Dispute Network Event was created. + sig { returns(Time) } + attr_accessor :created_at + + # The dispute financial transaction that resulted from the network event, if any. + sig { returns(T.nilable(String)) } + attr_accessor :dispute_financial_transaction_id + # A Card Dispute Chargeback Accepted Visa Network Event object. This field will be # present in the JSON response if and only if `category` is equal to # `chargeback_accepted`. Contains the details specific to a chargeback accepted @@ -518,15 +527,6 @@ module Increase end attr_writer :chargeback_timed_out - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the Visa Card Dispute Network Event was created. - sig { returns(Time) } - attr_accessor :created_at - - # The dispute financial transaction that resulted from the network event, if any. - sig { returns(T.nilable(String)) } - attr_accessor :dispute_financial_transaction_id - # A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event # object. This field will be present in the JSON response if and only if # `category` is equal to `merchant_prearbitration_decline_submitted`. Contains the @@ -775,6 +775,8 @@ module Increase ], category: Increase::CardDispute::Visa::NetworkEvent::Category::OrSymbol, + created_at: Time, + dispute_financial_transaction_id: T.nilable(String), chargeback_accepted: T.nilable( Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted::OrHash @@ -787,8 +789,6 @@ module Increase T.nilable( Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut::OrHash ), - created_at: Time, - dispute_financial_transaction_id: T.nilable(String), merchant_prearbitration_decline_submitted: T.nilable( Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted::OrHash @@ -838,91 +838,91 @@ module Increase # this enum over time; your application should be able to handle such additions # gracefully. category:, + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the Visa Card Dispute Network Event was created. + created_at:, + # The dispute financial transaction that resulted from the network event, if any. + dispute_financial_transaction_id:, # A Card Dispute Chargeback Accepted Visa Network Event object. This field will be # present in the JSON response if and only if `category` is equal to # `chargeback_accepted`. Contains the details specific to a chargeback accepted # Visa Card Dispute Network Event, which represents that a chargeback has been # accepted by the merchant. - chargeback_accepted:, + chargeback_accepted: nil, # A Card Dispute Chargeback Submitted Visa Network Event object. This field will # be present in the JSON response if and only if `category` is equal to # `chargeback_submitted`. Contains the details specific to a chargeback submitted # Visa Card Dispute Network Event, which represents that a chargeback has been # submitted to the network. - chargeback_submitted:, + chargeback_submitted: nil, # A Card Dispute Chargeback Timed Out Visa Network Event object. This field will # be present in the JSON response if and only if `category` is equal to # `chargeback_timed_out`. Contains the details specific to a chargeback timed out # Visa Card Dispute Network Event, which represents that the chargeback has timed # out in the user's favor. - chargeback_timed_out:, - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the Visa Card Dispute Network Event was created. - created_at:, - # The dispute financial transaction that resulted from the network event, if any. - dispute_financial_transaction_id:, + chargeback_timed_out: nil, # A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event # object. This field will be present in the JSON response if and only if # `category` is equal to `merchant_prearbitration_decline_submitted`. Contains the # details specific to a merchant prearbitration decline submitted Visa Card # Dispute Network Event, which represents that the user has declined the # merchant's request for a prearbitration request decision in their favor. - merchant_prearbitration_decline_submitted:, + merchant_prearbitration_decline_submitted: nil, # A Card Dispute Merchant Pre-Arbitration Received Visa Network Event object. This # field will be present in the JSON response if and only if `category` is equal to # `merchant_prearbitration_received`. Contains the details specific to a merchant # prearbitration received Visa Card Dispute Network Event, which represents that # the merchant has issued a prearbitration request in the user's favor. - merchant_prearbitration_received:, + merchant_prearbitration_received: nil, # A Card Dispute Merchant Pre-Arbitration Timed Out Visa Network Event object. # This field will be present in the JSON response if and only if `category` is # equal to `merchant_prearbitration_timed_out`. Contains the details specific to a # merchant prearbitration timed out Visa Card Dispute Network Event, which # represents that the user has timed out responding to the merchant's # prearbitration request. - merchant_prearbitration_timed_out:, + merchant_prearbitration_timed_out: nil, # A Card Dispute Re-presented Visa Network Event object. This field will be # present in the JSON response if and only if `category` is equal to # `represented`. Contains the details specific to a re-presented Visa Card Dispute # Network Event, which represents that the merchant has declined the user's # chargeback and has re-presented the payment. - represented:, + represented: nil, # A Card Dispute Re-presentment Timed Out Visa Network Event object. This field # will be present in the JSON response if and only if `category` is equal to # `representment_timed_out`. Contains the details specific to a re-presentment # time-out Visa Card Dispute Network Event, which represents that the user did not # respond to the re-presentment by the merchant within the time limit. - representment_timed_out:, + representment_timed_out: nil, # A Card Dispute User Pre-Arbitration Accepted Visa Network Event object. This # field will be present in the JSON response if and only if `category` is equal to # `user_prearbitration_accepted`. Contains the details specific to a user # prearbitration accepted Visa Card Dispute Network Event, which represents that # the merchant has accepted the user's prearbitration request in the user's favor. - user_prearbitration_accepted:, + user_prearbitration_accepted: nil, # A Card Dispute User Pre-Arbitration Declined Visa Network Event object. This # field will be present in the JSON response if and only if `category` is equal to # `user_prearbitration_declined`. Contains the details specific to a user # prearbitration declined Visa Card Dispute Network Event, which represents that # the merchant has declined the user's prearbitration request. - user_prearbitration_declined:, + user_prearbitration_declined: nil, # A Card Dispute User Pre-Arbitration Submitted Visa Network Event object. This # field will be present in the JSON response if and only if `category` is equal to # `user_prearbitration_submitted`. Contains the details specific to a user # prearbitration submitted Visa Card Dispute Network Event, which represents that # the user's request for prearbitration has been submitted to the network. - user_prearbitration_submitted:, + user_prearbitration_submitted: nil, # A Card Dispute User Pre-Arbitration Timed Out Visa Network Event object. This # field will be present in the JSON response if and only if `category` is equal to # `user_prearbitration_timed_out`. Contains the details specific to a user # prearbitration timed out Visa Card Dispute Network Event, which represents that # the merchant has timed out responding to the user's prearbitration request. - user_prearbitration_timed_out:, + user_prearbitration_timed_out: nil, # A Card Dispute User Withdrawal Submitted Visa Network Event object. This field # will be present in the JSON response if and only if `category` is equal to # `user_withdrawal_submitted`. Contains the details specific to a user withdrawal # submitted Visa Card Dispute Network Event, which represents that the user's # request to withdraw the dispute has been submitted to the network. - user_withdrawal_submitted: + user_withdrawal_submitted: nil ) end @@ -935,6 +935,8 @@ module Increase ], category: Increase::CardDispute::Visa::NetworkEvent::Category::TaggedSymbol, + created_at: Time, + dispute_financial_transaction_id: T.nilable(String), chargeback_accepted: T.nilable( Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted @@ -947,8 +949,6 @@ module Increase T.nilable( Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut ), - created_at: Time, - dispute_financial_transaction_id: T.nilable(String), merchant_prearbitration_decline_submitted: T.nilable( Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted @@ -3247,6 +3247,39 @@ module Increase end attr_accessor :category + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the Visa Card Dispute User Submission was created. + sig { returns(Time) } + attr_accessor :created_at + + # The free-form explanation provided to Increase to provide more context for the + # user submission. This field is not sent directly to the card networks. + sig { returns(T.nilable(String)) } + attr_accessor :explanation + + # The date and time at which Increase requested further information from the user + # for the Visa Card Dispute. + sig { returns(T.nilable(Time)) } + attr_accessor :further_information_requested_at + + # The reason for Increase requesting further information from the user for the + # Visa Card Dispute. + sig { returns(T.nilable(String)) } + attr_accessor :further_information_requested_reason + + # The status of the Visa Card Dispute User Submission. + sig do + returns( + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol + ) + end + attr_accessor :status + + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the Visa Card Dispute User Submission was updated. + sig { returns(Time) } + attr_accessor :updated_at + # A Visa Card Dispute Chargeback User Submission Chargeback Details object. This # field will be present in the JSON response if and only if `category` is equal to # `chargeback`. Contains the details specific to a Visa chargeback User Submission @@ -3268,26 +3301,6 @@ module Increase end attr_writer :chargeback - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the Visa Card Dispute User Submission was created. - sig { returns(Time) } - attr_accessor :created_at - - # The free-form explanation provided to Increase to provide more context for the - # user submission. This field is not sent directly to the card networks. - sig { returns(T.nilable(String)) } - attr_accessor :explanation - - # The date and time at which Increase requested further information from the user - # for the Visa Card Dispute. - sig { returns(T.nilable(Time)) } - attr_accessor :further_information_requested_at - - # The reason for Increase requesting further information from the user for the - # Visa Card Dispute. - sig { returns(T.nilable(String)) } - attr_accessor :further_information_requested_reason - # A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. # This field will be present in the JSON response if and only if `category` is # equal to `merchant_prearbitration_decline`. Contains the details specific to a @@ -3311,19 +3324,6 @@ module Increase end attr_writer :merchant_prearbitration_decline - # The status of the Visa Card Dispute User Submission. - sig do - returns( - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol - ) - end - attr_accessor :status - - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the Visa Card Dispute User Submission was updated. - sig { returns(Time) } - attr_accessor :updated_at - # A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This # field will be present in the JSON response if and only if `category` is equal to # `user_prearbitration`. Contains the details specific to a user-initiated @@ -3357,21 +3357,21 @@ module Increase ], category: Increase::CardDispute::Visa::UserSubmission::Category::OrSymbol, - chargeback: - T.nilable( - Increase::CardDispute::Visa::UserSubmission::Chargeback::OrHash - ), created_at: Time, explanation: T.nilable(String), further_information_requested_at: T.nilable(Time), further_information_requested_reason: T.nilable(String), + status: + Increase::CardDispute::Visa::UserSubmission::Status::OrSymbol, + updated_at: Time, + chargeback: + T.nilable( + Increase::CardDispute::Visa::UserSubmission::Chargeback::OrHash + ), merchant_prearbitration_decline: T.nilable( Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline::OrHash ), - status: - Increase::CardDispute::Visa::UserSubmission::Status::OrSymbol, - updated_at: Time, user_prearbitration: T.nilable( Increase::CardDispute::Visa::UserSubmission::UserPrearbitration::OrHash @@ -3391,11 +3391,6 @@ module Increase # this enum over time; your application should be able to handle such additions # gracefully. category:, - # A Visa Card Dispute Chargeback User Submission Chargeback Details object. This - # field will be present in the JSON response if and only if `category` is equal to - # `chargeback`. Contains the details specific to a Visa chargeback User Submission - # for a Card Dispute. - chargeback:, # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Visa Card Dispute User Submission was created. created_at:, @@ -3408,21 +3403,26 @@ module Increase # The reason for Increase requesting further information from the user for the # Visa Card Dispute. further_information_requested_reason:, - # A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. - # This field will be present in the JSON response if and only if `category` is - # equal to `merchant_prearbitration_decline`. Contains the details specific to a - # merchant prearbitration decline Visa Card Dispute User Submission. - merchant_prearbitration_decline:, # The status of the Visa Card Dispute User Submission. status:, # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the Visa Card Dispute User Submission was updated. updated_at:, + # A Visa Card Dispute Chargeback User Submission Chargeback Details object. This + # field will be present in the JSON response if and only if `category` is equal to + # `chargeback`. Contains the details specific to a Visa chargeback User Submission + # for a Card Dispute. + chargeback: nil, + # A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. + # This field will be present in the JSON response if and only if `category` is + # equal to `merchant_prearbitration_decline`. Contains the details specific to a + # merchant prearbitration decline Visa Card Dispute User Submission. + merchant_prearbitration_decline: nil, # A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This # field will be present in the JSON response if and only if `category` is equal to # `user_prearbitration`. Contains the details specific to a user-initiated # pre-arbitration Visa Card Dispute User Submission. - user_prearbitration: + user_prearbitration: nil ) end @@ -3437,21 +3437,21 @@ module Increase ], category: Increase::CardDispute::Visa::UserSubmission::Category::TaggedSymbol, - chargeback: - T.nilable( - Increase::CardDispute::Visa::UserSubmission::Chargeback - ), created_at: Time, explanation: T.nilable(String), further_information_requested_at: T.nilable(Time), further_information_requested_reason: T.nilable(String), + status: + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol, + updated_at: Time, + chargeback: + T.nilable( + Increase::CardDispute::Visa::UserSubmission::Chargeback + ), merchant_prearbitration_decline: T.nilable( Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline ), - status: - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol, - updated_at: Time, user_prearbitration: T.nilable( Increase::CardDispute::Visa::UserSubmission::UserPrearbitration @@ -3534,6 +3534,58 @@ module Increase end end + # The status of the Visa Card Dispute User Submission. + module Status + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::CardDispute::Visa::UserSubmission::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # The User Submission was abandoned. + ABANDONED = + T.let( + :abandoned, + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol + ) + + # The User Submission was accepted. + ACCEPTED = + T.let( + :accepted, + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol + ) + + # Further information is requested, please resubmit with the requested information. + FURTHER_INFORMATION_REQUESTED = + T.let( + :further_information_requested, + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol + ) + + # The User Submission is pending review. + PENDING_REVIEWING = + T.let( + :pending_reviewing, + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + class Chargeback < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -10728,58 +10780,6 @@ module Increase end end - # The status of the Visa Card Dispute User Submission. - module Status - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Increase::CardDispute::Visa::UserSubmission::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # The User Submission was abandoned. - ABANDONED = - T.let( - :abandoned, - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol - ) - - # The User Submission was accepted. - ACCEPTED = - T.let( - :accepted, - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol - ) - - # Further information is requested, please resubmit with the requested information. - FURTHER_INFORMATION_REQUESTED = - T.let( - :further_information_requested, - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol - ) - - # The User Submission is pending review. - PENDING_REVIEWING = - T.let( - :pending_reviewing, - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::CardDispute::Visa::UserSubmission::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - class UserPrearbitration < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index bbefaaf8..8d0fd585 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -112,6 +112,16 @@ module Increase T.any(Increase::CardPayment::Element, Increase::Internal::AnyHash) end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + sig { returns(Increase::CardPayment::Element::Category::TaggedSymbol) } + attr_accessor :category + + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the card payment element was created. + sig { returns(Time) } + attr_accessor :created_at + # A Card Authentication object. This field will be present in the JSON response if # and only if `category` is equal to `card_authentication`. Card Authentications # are attempts to authenticate a transaction or a card with 3DS. @@ -323,16 +333,6 @@ module Increase end attr_writer :card_validation - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - sig { returns(Increase::CardPayment::Element::Category::TaggedSymbol) } - attr_accessor :category - - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the card payment element was created. - sig { returns(Time) } - attr_accessor :created_at - # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. sig { returns(T.nilable(Increase::CardPayment::Element::Other)) } @@ -347,6 +347,8 @@ module Increase sig do params( + category: Increase::CardPayment::Element::Category::OrSymbol, + created_at: Time, card_authentication: T.nilable( Increase::CardPayment::Element::CardAuthentication::OrHash @@ -381,84 +383,84 @@ module Increase T.nilable(Increase::CardPayment::Element::CardSettlement::OrHash), card_validation: T.nilable(Increase::CardPayment::Element::CardValidation::OrHash), - category: Increase::CardPayment::Element::Category::OrSymbol, - created_at: Time, other: T.nilable(Increase::CardPayment::Element::Other::OrHash) ).returns(T.attached_class) end def self.new( + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + category:, + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which + # the card payment element was created. + created_at:, # A Card Authentication object. This field will be present in the JSON response if # and only if `category` is equal to `card_authentication`. Card Authentications # are attempts to authenticate a transaction or a card with 3DS. - card_authentication:, + card_authentication: nil, # A Card Authorization object. This field will be present in the JSON response if # and only if `category` is equal to `card_authorization`. Card Authorizations are # temporary holds placed on a customers funds with the intent to later clear a # transaction. - card_authorization:, + card_authorization: nil, # A Card Authorization Expiration object. This field will be present in the JSON # response if and only if `category` is equal to `card_authorization_expiration`. # Card Authorization Expirations are cancellations of authorizations that were # never settled by the acquirer. - card_authorization_expiration:, + card_authorization_expiration: nil, # A Card Balance Inquiry object. This field will be present in the JSON response # if and only if `category` is equal to `card_balance_inquiry`. Card Balance # Inquiries are transactions that allow merchants to check the available balance # on a card without placing a hold on funds, commonly used when a customer # requests their balance at an ATM. - card_balance_inquiry:, + card_balance_inquiry: nil, # A Card Decline object. This field will be present in the JSON response if and # only if `category` is equal to `card_decline`. - card_decline:, + card_decline: nil, # A Card Financial object. This field will be present in the JSON response if and # only if `category` is equal to `card_financial`. Card Financials are temporary # holds placed on a customers funds with the intent to later clear a transaction. - card_financial:, + card_financial: nil, # A Card Fuel Confirmation object. This field will be present in the JSON response # if and only if `category` is equal to `card_fuel_confirmation`. Card Fuel # Confirmations update the amount of a Card Authorization after a fuel pump # transaction is completed. - card_fuel_confirmation:, + card_fuel_confirmation: nil, # A Card Increment object. This field will be present in the JSON response if and # only if `category` is equal to `card_increment`. Card Increments increase the # pending amount of an authorized transaction. - card_increment:, + card_increment: nil, # A Card Refund object. This field will be present in the JSON response if and # only if `category` is equal to `card_refund`. Card Refunds move money back to # the cardholder. While they are usually connected to a Card Settlement an # acquirer can also refund money directly to a card without relation to a # transaction. - card_refund:, + card_refund: nil, # A Card Reversal object. This field will be present in the JSON response if and # only if `category` is equal to `card_reversal`. Card Reversals cancel parts of # or the entirety of an existing Card Authorization. - card_reversal:, + card_reversal: nil, # A Card Settlement object. This field will be present in the JSON response if and # only if `category` is equal to `card_settlement`. Card Settlements are card # transactions that have cleared and settled. While a settlement is usually # preceded by an authorization, an acquirer can also directly clear a transaction # without first authorizing it. - card_settlement:, + card_settlement: nil, # An Inbound Card Validation object. This field will be present in the JSON # response if and only if `category` is equal to `card_validation`. Inbound Card # Validations are requests from a merchant to verify that a card number and # optionally its address and/or Card Verification Value are valid. - card_validation:, - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - category:, - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which - # the card payment element was created. - created_at:, + card_validation: nil, # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. - other: + other: nil ) end sig do override.returns( { + category: Increase::CardPayment::Element::Category::TaggedSymbol, + created_at: Time, card_authentication: T.nilable(Increase::CardPayment::Element::CardAuthentication), card_authorization: @@ -485,8 +487,6 @@ module Increase T.nilable(Increase::CardPayment::Element::CardSettlement), card_validation: T.nilable(Increase::CardPayment::Element::CardValidation), - category: Increase::CardPayment::Element::Category::TaggedSymbol, - created_at: Time, other: T.nilable(Increase::CardPayment::Element::Other) } ) @@ -494,6 +494,117 @@ module Increase def to_hash end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + module Category + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::CardPayment::Element::Category) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Card Authorization: details will be under the `card_authorization` object. + CARD_AUTHORIZATION = + T.let( + :card_authorization, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Authentication: details will be under the `card_authentication` object. + CARD_AUTHENTICATION = + T.let( + :card_authentication, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Balance Inquiry: details will be under the `card_balance_inquiry` object. + CARD_BALANCE_INQUIRY = + T.let( + :card_balance_inquiry, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Inbound Card Validation: details will be under the `card_validation` object. + CARD_VALIDATION = + T.let( + :card_validation, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Decline: details will be under the `card_decline` object. + CARD_DECLINE = + T.let( + :card_decline, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Reversal: details will be under the `card_reversal` object. + CARD_REVERSAL = + T.let( + :card_reversal, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Authorization Expiration: details will be under the `card_authorization_expiration` object. + CARD_AUTHORIZATION_EXPIRATION = + T.let( + :card_authorization_expiration, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Increment: details will be under the `card_increment` object. + CARD_INCREMENT = + T.let( + :card_increment, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Settlement: details will be under the `card_settlement` object. + CARD_SETTLEMENT = + T.let( + :card_settlement, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Refund: details will be under the `card_refund` object. + CARD_REFUND = + T.let( + :card_refund, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object. + CARD_FUEL_CONFIRMATION = + T.let( + :card_fuel_confirmation, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Card Financial: details will be under the `card_financial` object. + CARD_FINANCIAL = + T.let( + :card_financial, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + # Unknown card payment element. + OTHER = + T.let( + :other, + Increase::CardPayment::Element::Category::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Increase::CardPayment::Element::Category::TaggedSymbol] + ) + end + def self.values + end + end + class CardAuthentication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -19642,117 +19753,6 @@ module Increase end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - module Category - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::CardPayment::Element::Category) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # Card Authorization: details will be under the `card_authorization` object. - CARD_AUTHORIZATION = - T.let( - :card_authorization, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Authentication: details will be under the `card_authentication` object. - CARD_AUTHENTICATION = - T.let( - :card_authentication, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Balance Inquiry: details will be under the `card_balance_inquiry` object. - CARD_BALANCE_INQUIRY = - T.let( - :card_balance_inquiry, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Inbound Card Validation: details will be under the `card_validation` object. - CARD_VALIDATION = - T.let( - :card_validation, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Decline: details will be under the `card_decline` object. - CARD_DECLINE = - T.let( - :card_decline, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Reversal: details will be under the `card_reversal` object. - CARD_REVERSAL = - T.let( - :card_reversal, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Authorization Expiration: details will be under the `card_authorization_expiration` object. - CARD_AUTHORIZATION_EXPIRATION = - T.let( - :card_authorization_expiration, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Increment: details will be under the `card_increment` object. - CARD_INCREMENT = - T.let( - :card_increment, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Settlement: details will be under the `card_settlement` object. - CARD_SETTLEMENT = - T.let( - :card_settlement, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Refund: details will be under the `card_refund` object. - CARD_REFUND = - T.let( - :card_refund, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object. - CARD_FUEL_CONFIRMATION = - T.let( - :card_fuel_confirmation, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Card Financial: details will be under the `card_financial` object. - CARD_FINANCIAL = - T.let( - :card_financial, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - # Unknown card payment element. - OTHER = - T.let( - :other, - Increase::CardPayment::Element::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Increase::CardPayment::Element::Category::TaggedSymbol] - ) - end - def self.values - end - end - class Other < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/card_push_transfer.rbi b/rbi/increase/models/card_push_transfer.rbi index 47b69a96..2e0fedc6 100644 --- a/rbi/increase/models/card_push_transfer.rbi +++ b/rbi/increase/models/card_push_transfer.rbi @@ -683,6 +683,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::CardPushTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig do returns(T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey)) @@ -697,12 +703,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::CardPushTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -735,9 +735,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::CardPushTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey::OrHash), - category: Increase::CardPushTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::CardPushTransfer::CreatedBy::OAuthApplication::OrHash @@ -746,23 +746,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey), category: Increase::CardPushTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::CardPushTransfer::CreatedBy::APIKey), oauth_application: T.nilable( Increase::CardPushTransfer::CreatedBy::OAuthApplication @@ -774,34 +774,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::CardPushTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -844,6 +816,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPushTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/card_validation.rbi b/rbi/increase/models/card_validation.rbi index 474a76e5..f7af0828 100644 --- a/rbi/increase/models/card_validation.rbi +++ b/rbi/increase/models/card_validation.rbi @@ -739,6 +739,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::CardValidation::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::CardValidation::CreatedBy::APIKey)) } attr_reader :api_key @@ -751,12 +757,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::CardValidation::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -789,9 +789,9 @@ module Increase # What object created the validation, either via the API or the dashboard. sig do params( + category: Increase::CardValidation::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::CardValidation::CreatedBy::APIKey::OrHash), - category: Increase::CardValidation::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::CardValidation::CreatedBy::OAuthApplication::OrHash @@ -800,23 +800,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::CardValidation::CreatedBy::APIKey), category: Increase::CardValidation::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::CardValidation::CreatedBy::APIKey), oauth_application: T.nilable( Increase::CardValidation::CreatedBy::OAuthApplication @@ -828,34 +828,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::CardValidation::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -898,6 +870,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardValidation::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/check_transfer.rbi b/rbi/increase/models/check_transfer.rbi index a8a4a5c6..10115aa6 100644 --- a/rbi/increase/models/check_transfer.rbi +++ b/rbi/increase/models/check_transfer.rbi @@ -455,6 +455,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::CheckTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::CheckTransfer::CreatedBy::APIKey)) } attr_reader :api_key @@ -467,12 +473,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::CheckTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -505,9 +505,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::CheckTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::CheckTransfer::CreatedBy::APIKey::OrHash), - category: Increase::CheckTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::CheckTransfer::CreatedBy::OAuthApplication::OrHash @@ -516,23 +516,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::CheckTransfer::CreatedBy::APIKey), category: Increase::CheckTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::CheckTransfer::CreatedBy::APIKey), oauth_application: T.nilable(Increase::CheckTransfer::CreatedBy::OAuthApplication), user: T.nilable(Increase::CheckTransfer::CreatedBy::User) @@ -542,34 +542,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::CheckTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -612,6 +584,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CheckTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/declined_transaction.rbi b/rbi/increase/models/declined_transaction.rbi index 80e8a3e1..81b71af9 100644 --- a/rbi/increase/models/declined_transaction.rbi +++ b/rbi/increase/models/declined_transaction.rbi @@ -207,6 +207,13 @@ module Increase ) end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + sig do + returns(Increase::DeclinedTransaction::Source::Category::TaggedSymbol) + end + attr_accessor :category + # An ACH Decline object. This field will be present in the JSON response if and # only if `category` is equal to `ach_decline`. sig do @@ -241,13 +248,6 @@ module Increase end attr_writer :card_decline - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - sig do - returns(Increase::DeclinedTransaction::Source::Category::TaggedSymbol) - end - attr_accessor :category - # A Check Decline object. This field will be present in the JSON response if and # only if `category` is equal to `check_decline`. sig do @@ -369,6 +369,7 @@ module Increase # as deprecated and will be removed in the future. sig do params( + category: Increase::DeclinedTransaction::Source::Category::OrSymbol, ach_decline: T.nilable( Increase::DeclinedTransaction::Source::ACHDecline::OrHash @@ -377,7 +378,6 @@ module Increase T.nilable( Increase::DeclinedTransaction::Source::CardDecline::OrHash ), - category: Increase::DeclinedTransaction::Source::Category::OrSymbol, check_decline: T.nilable( Increase::DeclinedTransaction::Source::CheckDecline::OrHash @@ -403,47 +403,47 @@ module Increase ).returns(T.attached_class) end def self.new( + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + category:, # An ACH Decline object. This field will be present in the JSON response if and # only if `category` is equal to `ach_decline`. - ach_decline:, + ach_decline: nil, # A Card Decline object. This field will be present in the JSON response if and # only if `category` is equal to `card_decline`. - card_decline:, - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - category:, + card_decline: nil, # A Check Decline object. This field will be present in the JSON response if and # only if `category` is equal to `check_decline`. - check_decline:, + check_decline: nil, # A Check Deposit Rejection object. This field will be present in the JSON # response if and only if `category` is equal to `check_deposit_rejection`. - check_deposit_rejection:, + check_deposit_rejection: nil, # An Inbound FedNow Transfer Decline object. This field will be present in the # JSON response if and only if `category` is equal to # `inbound_fednow_transfer_decline`. - inbound_fednow_transfer_decline:, + inbound_fednow_transfer_decline: nil, # An Inbound Real-Time Payments Transfer Decline object. This field will be # present in the JSON response if and only if `category` is equal to # `inbound_real_time_payments_transfer_decline`. - inbound_real_time_payments_transfer_decline:, + inbound_real_time_payments_transfer_decline: nil, # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. - other:, + other: nil, # A Wire Decline object. This field will be present in the JSON response if and # only if `category` is equal to `wire_decline`. - wire_decline: + wire_decline: nil ) end sig do override.returns( { + category: + Increase::DeclinedTransaction::Source::Category::TaggedSymbol, ach_decline: T.nilable(Increase::DeclinedTransaction::Source::ACHDecline), card_decline: T.nilable(Increase::DeclinedTransaction::Source::CardDecline), - category: - Increase::DeclinedTransaction::Source::Category::TaggedSymbol, check_decline: T.nilable(Increase::DeclinedTransaction::Source::CheckDecline), check_deposit_rejection: @@ -467,6 +467,84 @@ module Increase def to_hash end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + module Category + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::DeclinedTransaction::Source::Category) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # ACH Decline: details will be under the `ach_decline` object. + ACH_DECLINE = + T.let( + :ach_decline, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # Card Decline: details will be under the `card_decline` object. + CARD_DECLINE = + T.let( + :card_decline, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # Check Decline: details will be under the `check_decline` object. + CHECK_DECLINE = + T.let( + :check_decline, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = + T.let( + :inbound_real_time_payments_transfer_decline, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object. + INBOUND_FEDNOW_TRANSFER_DECLINE = + T.let( + :inbound_fednow_transfer_decline, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # Wire Decline: details will be under the `wire_decline` object. + WIRE_DECLINE = + T.let( + :wire_decline, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # Check Deposit Rejection: details will be under the `check_deposit_rejection` object. + CHECK_DEPOSIT_REJECTION = + T.let( + :check_deposit_rejection, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + # The Declined Transaction was made for an undocumented or deprecated reason. + OTHER = + T.let( + :other, + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::DeclinedTransaction::Source::Category::TaggedSymbol + ] + ) + end + def self.values + end + end + class ACHDecline < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -3335,84 +3413,6 @@ module Increase end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - module Category - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::DeclinedTransaction::Source::Category) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # ACH Decline: details will be under the `ach_decline` object. - ACH_DECLINE = - T.let( - :ach_decline, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # Card Decline: details will be under the `card_decline` object. - CARD_DECLINE = - T.let( - :card_decline, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # Check Decline: details will be under the `check_decline` object. - CHECK_DECLINE = - T.let( - :check_decline, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object. - INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = - T.let( - :inbound_real_time_payments_transfer_decline, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object. - INBOUND_FEDNOW_TRANSFER_DECLINE = - T.let( - :inbound_fednow_transfer_decline, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # Wire Decline: details will be under the `wire_decline` object. - WIRE_DECLINE = - T.let( - :wire_decline, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # Check Deposit Rejection: details will be under the `check_deposit_rejection` object. - CHECK_DEPOSIT_REJECTION = - T.let( - :check_deposit_rejection, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - # The Declined Transaction was made for an undocumented or deprecated reason. - OTHER = - T.let( - :other, - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::DeclinedTransaction::Source::Category::TaggedSymbol - ] - ) - end - def self.values - end - end - class CheckDecline < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/fednow_transfer.rbi b/rbi/increase/models/fednow_transfer.rbi index 30b8e2a3..d9d278b7 100644 --- a/rbi/increase/models/fednow_transfer.rbi +++ b/rbi/increase/models/fednow_transfer.rbi @@ -296,6 +296,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::FednowTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::FednowTransfer::CreatedBy::APIKey)) } attr_reader :api_key @@ -308,12 +314,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::FednowTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -346,9 +346,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::FednowTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::FednowTransfer::CreatedBy::APIKey::OrHash), - category: Increase::FednowTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::FednowTransfer::CreatedBy::OAuthApplication::OrHash @@ -357,23 +357,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::FednowTransfer::CreatedBy::APIKey), category: Increase::FednowTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::FednowTransfer::CreatedBy::APIKey), oauth_application: T.nilable( Increase::FednowTransfer::CreatedBy::OAuthApplication @@ -385,34 +385,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::FednowTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -455,6 +427,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::FednowTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/pending_transaction.rbi b/rbi/increase/models/pending_transaction.rbi index d84f5f67..55d7175f 100644 --- a/rbi/increase/models/pending_transaction.rbi +++ b/rbi/increase/models/pending_transaction.rbi @@ -235,6 +235,13 @@ module Increase ) end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + sig do + returns(Increase::PendingTransaction::Source::Category::TaggedSymbol) + end + attr_accessor :category + # An Account Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_instruction`. sig do @@ -363,13 +370,6 @@ module Increase end attr_writer :card_push_transfer_instruction - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - sig do - returns(Increase::PendingTransaction::Source::Category::TaggedSymbol) - end - attr_accessor :category - # A Check Deposit Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `check_deposit_instruction`. sig do @@ -565,6 +565,7 @@ module Increase # merchant's industry and location. sig do params( + category: Increase::PendingTransaction::Source::Category::OrSymbol, account_transfer_instruction: T.nilable( Increase::PendingTransaction::Source::AccountTransferInstruction::OrHash @@ -589,7 +590,6 @@ module Increase T.nilable( Increase::PendingTransaction::Source::CardPushTransferInstruction::OrHash ), - category: Increase::PendingTransaction::Source::Category::OrSymbol, check_deposit_instruction: T.nilable( Increase::PendingTransaction::Source::CheckDepositInstruction::OrHash @@ -628,73 +628,75 @@ module Increase ).returns(T.attached_class) end def self.new( + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + category:, # An Account Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_instruction`. - account_transfer_instruction:, + account_transfer_instruction: nil, # An ACH Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `ach_transfer_instruction`. - ach_transfer_instruction:, + ach_transfer_instruction: nil, # A Blockchain Off-Ramp Transfer Instruction object. This field will be present in # the JSON response if and only if `category` is equal to # `blockchain_offramp_transfer_instruction`. - blockchain_offramp_transfer_instruction:, + blockchain_offramp_transfer_instruction: nil, # A Blockchain On-Ramp Transfer Instruction object. This field will be present in # the JSON response if and only if `category` is equal to # `blockchain_onramp_transfer_instruction`. - blockchain_onramp_transfer_instruction:, + blockchain_onramp_transfer_instruction: nil, # A Card Authorization object. This field will be present in the JSON response if # and only if `category` is equal to `card_authorization`. Card Authorizations are # temporary holds placed on a customers funds with the intent to later clear a # transaction. - card_authorization:, + card_authorization: nil, # A Card Push Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `card_push_transfer_instruction`. - card_push_transfer_instruction:, - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - category:, + card_push_transfer_instruction: nil, # A Check Deposit Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `check_deposit_instruction`. - check_deposit_instruction:, + check_deposit_instruction: nil, # A Check Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `check_transfer_instruction`. - check_transfer_instruction:, + check_transfer_instruction: nil, # A FedNow Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `fednow_transfer_instruction`. - fednow_transfer_instruction:, + fednow_transfer_instruction: nil, # An Inbound Funds Hold object. This field will be present in the JSON response if # and only if `category` is equal to `inbound_funds_hold`. We hold funds for # certain transaction types to account for return windows where funds might still # be clawed back by the sending institution. - inbound_funds_hold:, + inbound_funds_hold: nil, # An Inbound Wire Transfer Reversal object. This field will be present in the JSON # response if and only if `category` is equal to `inbound_wire_transfer_reversal`. # An Inbound Wire Transfer Reversal is created when Increase has received a wire # and the User requests that it be reversed. - inbound_wire_transfer_reversal:, + inbound_wire_transfer_reversal: nil, # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. - other:, + other: nil, # A Real-Time Payments Transfer Instruction object. This field will be present in # the JSON response if and only if `category` is equal to # `real_time_payments_transfer_instruction`. - real_time_payments_transfer_instruction:, + real_time_payments_transfer_instruction: nil, # A Swift Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `swift_transfer_instruction`. - swift_transfer_instruction:, + swift_transfer_instruction: nil, # An User Initiated Hold object. This field will be present in the JSON response # if and only if `category` is equal to `user_initiated_hold`. Created when a user # initiates a hold on funds in their account. - user_initiated_hold:, + user_initiated_hold: nil, # A Wire Transfer Instruction object. This field will be present in the JSON # response if and only if `category` is equal to `wire_transfer_instruction`. - wire_transfer_instruction: + wire_transfer_instruction: nil ) end sig do override.returns( { + category: + Increase::PendingTransaction::Source::Category::TaggedSymbol, account_transfer_instruction: T.nilable( Increase::PendingTransaction::Source::AccountTransferInstruction @@ -719,8 +721,6 @@ module Increase T.nilable( Increase::PendingTransaction::Source::CardPushTransferInstruction ), - category: - Increase::PendingTransaction::Source::Category::TaggedSymbol, check_deposit_instruction: T.nilable( Increase::PendingTransaction::Source::CheckDepositInstruction @@ -761,6 +761,140 @@ module Increase def to_hash end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + module Category + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::PendingTransaction::Source::Category) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. + ACCOUNT_TRANSFER_INSTRUCTION = + T.let( + :account_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object. + ACH_TRANSFER_INSTRUCTION = + T.let( + :ach_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Card Authorization: details will be under the `card_authorization` object. + CARD_AUTHORIZATION = + T.let( + :card_authorization, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Check Deposit Instruction: details will be under the `check_deposit_instruction` object. + CHECK_DEPOSIT_INSTRUCTION = + T.let( + :check_deposit_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Check Transfer Instruction: details will be under the `check_transfer_instruction` object. + CHECK_TRANSFER_INSTRUCTION = + T.let( + :check_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object. + FEDNOW_TRANSFER_INSTRUCTION = + T.let( + :fednow_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Inbound Funds Hold: details will be under the `inbound_funds_hold` object. + INBOUND_FUNDS_HOLD = + T.let( + :inbound_funds_hold, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # User Initiated Hold: details will be under the `user_initiated_hold` object. + USER_INITIATED_HOLD = + T.let( + :user_initiated_hold, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. + REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = + T.let( + :real_time_payments_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object. + WIRE_TRANSFER_INSTRUCTION = + T.let( + :wire_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object. + INBOUND_WIRE_TRANSFER_REVERSAL = + T.let( + :inbound_wire_transfer_reversal, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object. + SWIFT_TRANSFER_INSTRUCTION = + T.let( + :swift_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object. + CARD_PUSH_TRANSFER_INSTRUCTION = + T.let( + :card_push_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object. + BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = + T.let( + :blockchain_onramp_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object. + BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION = + T.let( + :blockchain_offramp_transfer_instruction, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + # The Pending Transaction was made for an undocumented or deprecated reason. + OTHER = + T.let( + :other, + Increase::PendingTransaction::Source::Category::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::PendingTransaction::Source::Category::TaggedSymbol + ] + ) + end + def self.values + end + end + class AccountTransferInstruction < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -3366,140 +3500,6 @@ module Increase end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - module Category - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::PendingTransaction::Source::Category) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. - ACCOUNT_TRANSFER_INSTRUCTION = - T.let( - :account_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object. - ACH_TRANSFER_INSTRUCTION = - T.let( - :ach_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Card Authorization: details will be under the `card_authorization` object. - CARD_AUTHORIZATION = - T.let( - :card_authorization, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Check Deposit Instruction: details will be under the `check_deposit_instruction` object. - CHECK_DEPOSIT_INSTRUCTION = - T.let( - :check_deposit_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Check Transfer Instruction: details will be under the `check_transfer_instruction` object. - CHECK_TRANSFER_INSTRUCTION = - T.let( - :check_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object. - FEDNOW_TRANSFER_INSTRUCTION = - T.let( - :fednow_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Inbound Funds Hold: details will be under the `inbound_funds_hold` object. - INBOUND_FUNDS_HOLD = - T.let( - :inbound_funds_hold, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # User Initiated Hold: details will be under the `user_initiated_hold` object. - USER_INITIATED_HOLD = - T.let( - :user_initiated_hold, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. - REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION = - T.let( - :real_time_payments_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object. - WIRE_TRANSFER_INSTRUCTION = - T.let( - :wire_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object. - INBOUND_WIRE_TRANSFER_REVERSAL = - T.let( - :inbound_wire_transfer_reversal, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object. - SWIFT_TRANSFER_INSTRUCTION = - T.let( - :swift_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object. - CARD_PUSH_TRANSFER_INSTRUCTION = - T.let( - :card_push_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object. - BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = - T.let( - :blockchain_onramp_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object. - BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION = - T.let( - :blockchain_offramp_transfer_instruction, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - # The Pending Transaction was made for an undocumented or deprecated reason. - OTHER = - T.let( - :other, - Increase::PendingTransaction::Source::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::PendingTransaction::Source::Category::TaggedSymbol - ] - ) - end - def self.values - end - end - class CheckDepositInstruction < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/real_time_payments_transfer.rbi b/rbi/increase/models/real_time_payments_transfer.rbi index 7930d5ec..046a037e 100644 --- a/rbi/increase/models/real_time_payments_transfer.rbi +++ b/rbi/increase/models/real_time_payments_transfer.rbi @@ -458,6 +458,14 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns( + Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol + ) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig do returns( @@ -476,14 +484,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns( - Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol - ) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -525,12 +525,12 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: + Increase::RealTimePaymentsTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable( Increase::RealTimePaymentsTransfer::CreatedBy::APIKey::OrHash ), - category: - Increase::RealTimePaymentsTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication::OrHash @@ -542,26 +542,26 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { + category: + Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol, api_key: T.nilable( Increase::RealTimePaymentsTransfer::CreatedBy::APIKey ), - category: - Increase::RealTimePaymentsTransfer::CreatedBy::Category::TaggedSymbol, oauth_application: T.nilable( Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication @@ -574,34 +574,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::RealTimePaymentsTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -647,6 +619,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::RealTimePaymentsTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/swift_transfer.rbi b/rbi/increase/models/swift_transfer.rbi index 11f1a0e7..b9e1749f 100644 --- a/rbi/increase/models/swift_transfer.rbi +++ b/rbi/increase/models/swift_transfer.rbi @@ -252,6 +252,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey)) } attr_reader :api_key @@ -264,12 +270,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -302,9 +302,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::SwiftTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey::OrHash), - category: Increase::SwiftTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::SwiftTransfer::CreatedBy::OAuthApplication::OrHash @@ -313,23 +313,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey), category: Increase::SwiftTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::SwiftTransfer::CreatedBy::APIKey), oauth_application: T.nilable(Increase::SwiftTransfer::CreatedBy::OAuthApplication), user: T.nilable(Increase::SwiftTransfer::CreatedBy::User) @@ -339,34 +339,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::SwiftTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -409,6 +381,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::SwiftTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index a7e85abd..d546eb92 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -190,6 +190,11 @@ module Increase T.any(Increase::Transaction::Source, Increase::Internal::AnyHash) end + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + sig { returns(Increase::Transaction::Source::Category::TaggedSymbol) } + attr_accessor :category + # An Account Revenue Payment object. This field will be present in the JSON # response if and only if `category` is equal to `account_revenue_payment`. An # Account Revenue Payment represents a payment made to an account from the bank. @@ -499,11 +504,6 @@ module Increase end attr_writer :cashback_payment - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - sig { returns(Increase::Transaction::Source::Category::TaggedSymbol) } - attr_accessor :category - # 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`. A # Check Deposit Acceptance is created when a Check Deposit is processed and its @@ -951,6 +951,7 @@ module Increase # deprecated and will be removed in the future. sig do params( + category: Increase::Transaction::Source::Category::OrSymbol, account_revenue_payment: T.nilable( Increase::Transaction::Source::AccountRevenuePayment::OrHash @@ -1005,7 +1006,6 @@ module Increase T.nilable(Increase::Transaction::Source::CardSettlement::OrHash), cashback_payment: T.nilable(Increase::Transaction::Source::CashbackPayment::OrHash), - category: Increase::Transaction::Source::Category::OrSymbol, check_deposit_acceptance: T.nilable( Increase::Transaction::Source::CheckDepositAcceptance::OrHash @@ -1086,204 +1086,205 @@ module Increase ).returns(T.attached_class) end def self.new( + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + category:, # An Account Revenue Payment object. This field will be present in the JSON # response if and only if `category` is equal to `account_revenue_payment`. An # Account Revenue Payment represents a payment made to an account from the bank. # Account revenue is a type of non-interest income. - account_revenue_payment:, + account_revenue_payment: nil, # An Account Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `account_transfer_intention`. Two # Account Transfer Intentions are created from each Account Transfer. One # decrements the source account, and the other increments the destination account. - account_transfer_intention:, + account_transfer_intention: nil, # An ACH Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `ach_transfer_intention`. An ACH # Transfer Intention is created from an ACH Transfer. It reflects the intention to # move money into or out of an Increase account via the ACH network. - ach_transfer_intention:, + ach_transfer_intention: nil, # An ACH Transfer Rejection object. This field will be present in the JSON # response if and only if `category` is equal to `ach_transfer_rejection`. An ACH # Transfer Rejection is created when an ACH Transfer is rejected by Increase. It # offsets the ACH Transfer Intention. These rejections are rare. - ach_transfer_rejection:, + ach_transfer_rejection: nil, # An ACH Transfer Return object. This field will be present in the JSON response # if and only if `category` is equal to `ach_transfer_return`. An ACH Transfer # Return is created when an ACH Transfer is returned by the receiving bank. It # offsets the ACH Transfer Intention. ACH Transfer Returns usually occur within # the first two business days after the transfer is initiated, but can occur much # later. - ach_transfer_return:, + ach_transfer_return: nil, # A Blockchain Off-Ramp Transfer Settlement object. This field will be present in # the JSON response if and only if `category` is equal to # `blockchain_offramp_transfer_settlement`. - blockchain_offramp_transfer_settlement:, + blockchain_offramp_transfer_settlement: nil, # A Blockchain On-Ramp Transfer Intention object. This field will be present in # the JSON response if and only if `category` is equal to # `blockchain_onramp_transfer_intention`. - blockchain_onramp_transfer_intention:, + blockchain_onramp_transfer_intention: nil, # A Legacy Card Dispute Acceptance object. This field will be present in the JSON # response if and only if `category` is equal to `card_dispute_acceptance`. # Contains the details of a successful Card Dispute. - card_dispute_acceptance:, + card_dispute_acceptance: nil, # A Card Dispute Financial object. This field will be present in the JSON response # if and only if `category` is equal to `card_dispute_financial`. Financial event # related to a Card Dispute. - card_dispute_financial:, + card_dispute_financial: nil, # A Legacy Card Dispute Loss object. This field will be present in the JSON # response if and only if `category` is equal to `card_dispute_loss`. Contains the # details of a lost Card Dispute. - card_dispute_loss:, + card_dispute_loss: nil, # A Card Financial object. This field will be present in the JSON response if and # only if `category` is equal to `card_financial`. Card Financials are temporary # holds placed on a customers funds with the intent to later clear a transaction. - card_financial:, + card_financial: nil, # A Card Push Transfer Acceptance object. This field will be present in the JSON # response if and only if `category` is equal to `card_push_transfer_acceptance`. # A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer # sent from Increase is accepted by the receiving bank. - card_push_transfer_acceptance:, + card_push_transfer_acceptance: nil, # A Card Refund object. This field will be present in the JSON response if and # only if `category` is equal to `card_refund`. Card Refunds move money back to # the cardholder. While they are usually connected to a Card Settlement an # acquirer can also refund money directly to a card without relation to a # transaction. - card_refund:, + card_refund: nil, # A Card Revenue Payment object. This field will be present in the JSON response # if and only if `category` is equal to `card_revenue_payment`. Card Revenue # Payments reflect earnings from fees on card transactions. - card_revenue_payment:, + card_revenue_payment: nil, # A Card Settlement object. This field will be present in the JSON response if and # only if `category` is equal to `card_settlement`. Card Settlements are card # transactions that have cleared and settled. While a settlement is usually # preceded by an authorization, an acquirer can also directly clear a transaction # without first authorizing it. - card_settlement:, + card_settlement: nil, # A Cashback Payment object. This field will be present in the JSON response if # and only if `category` is equal to `cashback_payment`. A Cashback Payment # represents the cashback paid to a cardholder for a given period. Cashback is # usually paid monthly for the prior month's transactions. - cashback_payment:, - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - category:, + cashback_payment: nil, # 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`. A # Check Deposit Acceptance is created when a Check Deposit is processed and its # details confirmed. Check Deposits may be returned by the receiving bank, which # will appear as a Check Deposit Return. - check_deposit_acceptance:, + check_deposit_acceptance: nil, # 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`. A Check Deposit # Return is created when a Check Deposit is returned by the bank holding the # account it was drawn against. Check Deposits may be returned for a variety of # reasons, including insufficient funds or a mismatched account number. Usually, # checks are returned within the first 7 days after the deposit is made. - check_deposit_return:, + check_deposit_return: nil, # A Check Transfer Deposit object. This field will be present in the JSON response # if and only if `category` is equal to `check_transfer_deposit`. An Inbound Check # is a check drawn on an Increase account that has been deposited by an external # bank account. These types of checks are not pre-registered. - check_transfer_deposit:, + check_transfer_deposit: nil, # A FedNow Transfer Acknowledgement object. This field will be present in the JSON # response if and only if `category` is equal to # `fednow_transfer_acknowledgement`. A FedNow Transfer Acknowledgement is created # when a FedNow Transfer sent from Increase is acknowledged by the receiving bank. - fednow_transfer_acknowledgement:, + fednow_transfer_acknowledgement: nil, # A Fee Payment object. This field will be present in the JSON response if and # only if `category` is equal to `fee_payment`. A Fee Payment represents a payment # made to Increase. - fee_payment:, + fee_payment: nil, # An Inbound ACH Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `inbound_ach_transfer`. An # Inbound ACH Transfer Intention is created when an ACH transfer is initiated at # another bank and received by Increase. - inbound_ach_transfer:, + inbound_ach_transfer: nil, # An Inbound ACH Transfer Return Intention object. This field will be present in # the JSON response if and only if `category` is equal to # `inbound_ach_transfer_return_intention`. An Inbound ACH Transfer Return # Intention is created when an ACH transfer is initiated at another bank and # returned by Increase. - inbound_ach_transfer_return_intention:, + inbound_ach_transfer_return_intention: nil, # An Inbound Check Adjustment object. This field will be present in the JSON # response if and only if `category` is equal to `inbound_check_adjustment`. An # Inbound Check Adjustment is created when Increase receives an adjustment for a # check or return deposited through Check21. - inbound_check_adjustment:, + inbound_check_adjustment: nil, # An Inbound Check Deposit Return Intention object. This field will be present in # the JSON response if and only if `category` is equal to # `inbound_check_deposit_return_intention`. An Inbound Check Deposit Return # Intention is created when Increase receives an Inbound Check and the User # requests that it be returned. - inbound_check_deposit_return_intention:, + inbound_check_deposit_return_intention: nil, # An Inbound FedNow Transfer Confirmation object. This field will be present in # the JSON response if and only if `category` is equal to # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation # is created when a FedNow transfer is initiated at another bank and received by # Increase. - inbound_fednow_transfer_confirmation:, + inbound_fednow_transfer_confirmation: nil, # An Inbound Real-Time Payments Transfer Confirmation object. This field will be # present in the JSON response if and only if `category` is equal to # `inbound_real_time_payments_transfer_confirmation`. An Inbound Real-Time # Payments Transfer Confirmation is created when a Real-Time Payments transfer is # initiated at another bank and received by Increase. - inbound_real_time_payments_transfer_confirmation:, + inbound_real_time_payments_transfer_confirmation: nil, # An Inbound Wire Reversal object. This field will be present in the JSON response # if and only if `category` is equal to `inbound_wire_reversal`. An Inbound Wire # Reversal represents a reversal of a wire transfer that was initiated via # Increase. The other bank is sending the money back. This most often happens when # the original destination account details were incorrect. - inbound_wire_reversal:, + inbound_wire_reversal: nil, # An Inbound Wire Transfer Intention object. This field will be present in the # JSON response if and only if `category` is equal to `inbound_wire_transfer`. An # Inbound Wire Transfer Intention is created when a wire transfer is initiated at # another bank and received by Increase. - inbound_wire_transfer:, + inbound_wire_transfer: nil, # An Inbound Wire Transfer Reversal Intention object. This field will be present # in the JSON response if and only if `category` is equal to # `inbound_wire_transfer_reversal`. An Inbound Wire Transfer Reversal Intention is # created when Increase has received a wire and the User requests that it be # reversed. - inbound_wire_transfer_reversal:, + inbound_wire_transfer_reversal: nil, # An Interest Payment object. This field will be present in the JSON response if # and only if `category` is equal to `interest_payment`. An Interest Payment # represents a payment of interest on an account. Interest is usually paid # monthly. - interest_payment:, + interest_payment: nil, # An Internal Source object. This field will be present in the JSON response if # and only if `category` is equal to `internal_source`. A transaction between the # user and Increase. See the `reason` attribute for more information. - internal_source:, + internal_source: nil, # If the category of this Transaction source is equal to `other`, this field will # contain an empty object, otherwise it will contain null. - other:, + other: nil, # A Real-Time Payments Transfer Acknowledgement object. This field will be present # in the JSON response if and only if `category` is equal to # `real_time_payments_transfer_acknowledgement`. A Real-Time Payments Transfer # Acknowledgement is created when a Real-Time Payments Transfer sent from Increase # is acknowledged by the receiving bank. - real_time_payments_transfer_acknowledgement:, + real_time_payments_transfer_acknowledgement: nil, # A Sample Funds object. This field will be present in the JSON response if and # only if `category` is equal to `sample_funds`. Sample funds for testing # purposes. - sample_funds:, + sample_funds: nil, # A Swift Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `swift_transfer_intention`. A # Swift Transfer initiated via Increase. - swift_transfer_intention:, + swift_transfer_intention: nil, # A Swift Transfer Return object. This field will be present in the JSON response # if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer # Return is created when a Swift Transfer is returned by the receiving bank. - swift_transfer_return:, + swift_transfer_return: nil, # A Wire Transfer Intention object. This field will be present in the JSON # response if and only if `category` is equal to `wire_transfer_intention`. A Wire # Transfer initiated via Increase and sent to a different bank. - wire_transfer_intention: + wire_transfer_intention: nil ) end sig do override.returns( { + category: Increase::Transaction::Source::Category::TaggedSymbol, account_revenue_payment: T.nilable(Increase::Transaction::Source::AccountRevenuePayment), account_transfer_intention: @@ -1323,7 +1324,6 @@ module Increase T.nilable(Increase::Transaction::Source::CardSettlement), cashback_payment: T.nilable(Increase::Transaction::Source::CashbackPayment), - category: Increase::Transaction::Source::Category::TaggedSymbol, check_deposit_acceptance: T.nilable( Increase::Transaction::Source::CheckDepositAcceptance @@ -1392,250 +1392,337 @@ module Increase def to_hash end - class AccountRevenuePayment < Increase::Internal::Type::BaseModel - OrHash = + # The type of the resource. We may add additional possible values for this enum + # over time; your application should be able to handle such additions gracefully. + module Category + extend Increase::Internal::Type::Enum + + TaggedSymbol = T.type_alias do - T.any( - Increase::Transaction::Source::AccountRevenuePayment, - Increase::Internal::AnyHash - ) + T.all(Symbol, Increase::Transaction::Source::Category) end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # The account on which the account revenue was accrued. - sig { returns(String) } - attr_accessor :accrued_on_account_id + # Account Transfer Intention: details will be under the `account_transfer_intention` object. + ACCOUNT_TRANSFER_INTENTION = + T.let( + :account_transfer_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The end of the period for which this transaction paid account revenue. - sig { returns(Time) } - attr_accessor :period_end + # ACH Transfer Intention: details will be under the `ach_transfer_intention` object. + ACH_TRANSFER_INTENTION = + T.let( + :ach_transfer_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The start of the period for which this transaction paid account revenue. - sig { returns(Time) } - attr_accessor :period_start + # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object. + ACH_TRANSFER_REJECTION = + T.let( + :ach_transfer_rejection, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # An Account Revenue Payment object. This field will be present in the JSON - # response if and only if `category` is equal to `account_revenue_payment`. An - # Account Revenue Payment represents a payment made to an account from the bank. - # Account revenue is a type of non-interest income. - sig do - params( - accrued_on_account_id: String, - period_end: Time, - period_start: Time - ).returns(T.attached_class) - end - def self.new( - # The account on which the account revenue was accrued. - accrued_on_account_id:, - # The end of the period for which this transaction paid account revenue. - period_end:, - # The start of the period for which this transaction paid account revenue. - period_start: - ) - end + # ACH Transfer Return: details will be under the `ach_transfer_return` object. + ACH_TRANSFER_RETURN = + T.let( + :ach_transfer_return, + Increase::Transaction::Source::Category::TaggedSymbol + ) - sig do - override.returns( - { - accrued_on_account_id: String, - period_end: Time, - period_start: Time - } + # Cashback Payment: details will be under the `cashback_payment` object. + CASHBACK_PAYMENT = + T.let( + :cashback_payment, + Increase::Transaction::Source::Category::TaggedSymbol ) - end - def to_hash - end - end - class AccountTransferIntention < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::Transaction::Source::AccountTransferIntention, - Increase::Internal::AnyHash - ) - end + # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. + CARD_DISPUTE_ACCEPTANCE = + T.let( + :card_dispute_acceptance, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The pending amount in the minor unit of the transaction's currency. For dollars, - # for example, this is cents. - sig { returns(Integer) } - attr_accessor :amount + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL = + T.let( + :card_dispute_financial, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. - sig do - returns( - Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol + # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object. + CARD_DISPUTE_LOSS = + T.let( + :card_dispute_loss, + Increase::Transaction::Source::Category::TaggedSymbol ) - end - attr_accessor :currency - # The description you chose to give the transfer. - sig { returns(String) } - attr_accessor :description + # Card Refund: details will be under the `card_refund` object. + CARD_REFUND = + T.let( + :card_refund, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The identifier of the Account to where the Account Transfer was sent. - sig { returns(String) } - attr_accessor :destination_account_id + # Card Settlement: details will be under the `card_settlement` object. + CARD_SETTLEMENT = + T.let( + :card_settlement, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The identifier of the Account from where the Account Transfer was sent. - sig { returns(String) } - attr_accessor :source_account_id + # Card Financial: details will be under the `card_financial` object. + CARD_FINANCIAL = + T.let( + :card_financial, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # The identifier of the Account Transfer that led to this Pending Transaction. - sig { returns(String) } - attr_accessor :transfer_id + # Card Revenue Payment: details will be under the `card_revenue_payment` object. + CARD_REVENUE_PAYMENT = + T.let( + :card_revenue_payment, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # An Account Transfer Intention object. This field will be present in the JSON - # response if and only if `category` is equal to `account_transfer_intention`. Two - # Account Transfer Intentions are created from each Account Transfer. One - # decrements the source account, and the other increments the destination account. - sig do - params( - amount: Integer, - currency: - Increase::Transaction::Source::AccountTransferIntention::Currency::OrSymbol, - description: String, - destination_account_id: String, - source_account_id: String, - transfer_id: String - ).returns(T.attached_class) - end - def self.new( - # The pending amount in the minor unit of the transaction's currency. For dollars, - # for example, this is cents. - amount:, - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. - currency:, - # The description you chose to give the transfer. - description:, - # The identifier of the Account to where the Account Transfer was sent. - destination_account_id:, - # The identifier of the Account from where the Account Transfer was sent. - source_account_id:, - # The identifier of the Account Transfer that led to this Pending Transaction. - transfer_id: - ) - end + # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object. + CHECK_DEPOSIT_ACCEPTANCE = + T.let( + :check_deposit_acceptance, + Increase::Transaction::Source::Category::TaggedSymbol + ) - sig do - override.returns( - { - amount: Integer, - currency: - Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol, - description: String, - destination_account_id: String, - source_account_id: String, - transfer_id: String - } + # Check Deposit Return: details will be under the `check_deposit_return` object. + CHECK_DEPOSIT_RETURN = + T.let( + :check_deposit_return, + Increase::Transaction::Source::Category::TaggedSymbol ) - end - def to_hash - end - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. - module Currency - extend Increase::Internal::Type::Enum + # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object. + FEDNOW_TRANSFER_ACKNOWLEDGEMENT = + T.let( + :fednow_transfer_acknowledgement, + Increase::Transaction::Source::Category::TaggedSymbol + ) - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Increase::Transaction::Source::AccountTransferIntention::Currency - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + # Check Transfer Deposit: details will be under the `check_transfer_deposit` object. + CHECK_TRANSFER_DEPOSIT = + T.let( + :check_transfer_deposit, + Increase::Transaction::Source::Category::TaggedSymbol + ) - # US Dollar (USD) - USD = - T.let( - :USD, - Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol - ) + # Fee Payment: details will be under the `fee_payment` object. + FEE_PAYMENT = + T.let( + :fee_payment, + Increase::Transaction::Source::Category::TaggedSymbol + ) - sig do - override.returns( - T::Array[ - Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol - ] - ) - end - def self.values - end + # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object. + INBOUND_ACH_TRANSFER = + T.let( + :inbound_ach_transfer, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object. + INBOUND_ACH_TRANSFER_RETURN_INTENTION = + T.let( + :inbound_ach_transfer_return_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object. + INBOUND_CHECK_DEPOSIT_RETURN_INTENTION = + T.let( + :inbound_check_deposit_return_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object. + INBOUND_CHECK_ADJUSTMENT = + T.let( + :inbound_check_adjustment, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object. + INBOUND_FEDNOW_TRANSFER_CONFIRMATION = + T.let( + :inbound_fednow_transfer_confirmation, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION = + T.let( + :inbound_real_time_payments_transfer_confirmation, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object. + INBOUND_WIRE_REVERSAL = + T.let( + :inbound_wire_reversal, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object. + INBOUND_WIRE_TRANSFER = + T.let( + :inbound_wire_transfer, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object. + INBOUND_WIRE_TRANSFER_REVERSAL = + T.let( + :inbound_wire_transfer_reversal, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Interest Payment: details will be under the `interest_payment` object. + INTEREST_PAYMENT = + T.let( + :interest_payment, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Internal Source: details will be under the `internal_source` object. + INTERNAL_SOURCE = + T.let( + :internal_source, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object. + REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT = + T.let( + :real_time_payments_transfer_acknowledgement, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Sample Funds: details will be under the `sample_funds` object. + SAMPLE_FUNDS = + T.let( + :sample_funds, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Wire Transfer Intention: details will be under the `wire_transfer_intention` object. + WIRE_TRANSFER_INTENTION = + T.let( + :wire_transfer_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Swift Transfer Intention: details will be under the `swift_transfer_intention` object. + SWIFT_TRANSFER_INTENTION = + T.let( + :swift_transfer_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Swift Transfer Return: details will be under the `swift_transfer_return` object. + SWIFT_TRANSFER_RETURN = + T.let( + :swift_transfer_return, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. + CARD_PUSH_TRANSFER_ACCEPTANCE = + T.let( + :card_push_transfer_acceptance, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT = + T.let( + :account_revenue_payment, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object. + BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION = + T.let( + :blockchain_onramp_transfer_intention, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object. + BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT = + T.let( + :blockchain_offramp_transfer_settlement, + Increase::Transaction::Source::Category::TaggedSymbol + ) + + # The Transaction was made for an undocumented or deprecated reason. + OTHER = + T.let(:other, Increase::Transaction::Source::Category::TaggedSymbol) + + sig do + override.returns( + T::Array[Increase::Transaction::Source::Category::TaggedSymbol] + ) + end + def self.values end end - class ACHTransferIntention < Increase::Internal::Type::BaseModel + class AccountRevenuePayment < Increase::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Increase::Transaction::Source::ACHTransferIntention, + Increase::Transaction::Source::AccountRevenuePayment, Increase::Internal::AnyHash ) end - # The account number for the destination account. - sig { returns(String) } - attr_accessor :account_number - - # The amount in the minor unit of the transaction's currency. For dollars, for - # example, this is cents. - sig { returns(Integer) } - attr_accessor :amount - - # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the - # destination account. + # The account on which the account revenue was accrued. sig { returns(String) } - attr_accessor :routing_number + attr_accessor :accrued_on_account_id - # A description set when the ACH Transfer was created. - sig { returns(String) } - attr_accessor :statement_descriptor + # The end of the period for which this transaction paid account revenue. + sig { returns(Time) } + attr_accessor :period_end - # The identifier of the ACH Transfer that led to this Transaction. - sig { returns(String) } - attr_accessor :transfer_id + # The start of the period for which this transaction paid account revenue. + sig { returns(Time) } + attr_accessor :period_start - # An ACH Transfer Intention object. This field will be present in the JSON - # response if and only if `category` is equal to `ach_transfer_intention`. An ACH - # Transfer Intention is created from an ACH Transfer. It reflects the intention to - # move money into or out of an Increase account via the ACH network. + # An Account Revenue Payment object. This field will be present in the JSON + # response if and only if `category` is equal to `account_revenue_payment`. An + # Account Revenue Payment represents a payment made to an account from the bank. + # Account revenue is a type of non-interest income. sig do params( - account_number: String, - amount: Integer, - routing_number: String, - statement_descriptor: String, - transfer_id: String + accrued_on_account_id: String, + period_end: Time, + period_start: Time ).returns(T.attached_class) end def self.new( - # The account number for the destination account. - account_number:, - # The amount in the minor unit of the transaction's currency. For dollars, for - # example, this is cents. - amount:, - # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the - # destination account. - routing_number:, - # A description set when the ACH Transfer was created. - statement_descriptor:, - # The identifier of the ACH Transfer that led to this Transaction. - transfer_id: + # The account on which the account revenue was accrued. + accrued_on_account_id:, + # The end of the period for which this transaction paid account revenue. + period_end:, + # The start of the period for which this transaction paid account revenue. + period_start: ) end sig do override.returns( { - account_number: String, - amount: Integer, - routing_number: String, - statement_descriptor: String, - transfer_id: String + accrued_on_account_id: String, + period_end: Time, + period_start: Time } ) end @@ -1643,21 +1730,217 @@ module Increase end end - class ACHTransferRejection < Increase::Internal::Type::BaseModel + class AccountTransferIntention < Increase::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Increase::Transaction::Source::ACHTransferRejection, + Increase::Transaction::Source::AccountTransferIntention, Increase::Internal::AnyHash ) end - # The identifier of the ACH Transfer that led to this Transaction. - sig { returns(String) } - attr_accessor :transfer_id + # The pending amount in the minor unit of the transaction's currency. For dollars, + # for example, this is cents. + sig { returns(Integer) } + attr_accessor :amount - # An ACH Transfer Rejection object. This field will be present in the JSON - # response if and only if `category` is equal to `ach_transfer_rejection`. An ACH + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination + # account currency. + sig do + returns( + Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol + ) + end + attr_accessor :currency + + # The description you chose to give the transfer. + sig { returns(String) } + attr_accessor :description + + # The identifier of the Account to where the Account Transfer was sent. + sig { returns(String) } + attr_accessor :destination_account_id + + # The identifier of the Account from where the Account Transfer was sent. + sig { returns(String) } + attr_accessor :source_account_id + + # The identifier of the Account Transfer that led to this Pending Transaction. + sig { returns(String) } + attr_accessor :transfer_id + + # An Account Transfer Intention object. This field will be present in the JSON + # response if and only if `category` is equal to `account_transfer_intention`. Two + # Account Transfer Intentions are created from each Account Transfer. One + # decrements the source account, and the other increments the destination account. + sig do + params( + amount: Integer, + currency: + Increase::Transaction::Source::AccountTransferIntention::Currency::OrSymbol, + description: String, + destination_account_id: String, + source_account_id: String, + transfer_id: String + ).returns(T.attached_class) + end + def self.new( + # The pending amount in the minor unit of the transaction's currency. For dollars, + # for example, this is cents. + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination + # account currency. + currency:, + # The description you chose to give the transfer. + description:, + # The identifier of the Account to where the Account Transfer was sent. + destination_account_id:, + # The identifier of the Account from where the Account Transfer was sent. + source_account_id:, + # The identifier of the Account Transfer that led to this Pending Transaction. + transfer_id: + ) + end + + sig do + override.returns( + { + amount: Integer, + currency: + Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol, + description: String, + destination_account_id: String, + source_account_id: String, + transfer_id: String + } + ) + end + def to_hash + end + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination + # account currency. + module Currency + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::Transaction::Source::AccountTransferIntention::Currency + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # US Dollar (USD) + USD = + T.let( + :USD, + Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ACHTransferIntention < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Transaction::Source::ACHTransferIntention, + Increase::Internal::AnyHash + ) + end + + # The account number for the destination account. + sig { returns(String) } + attr_accessor :account_number + + # The amount in the minor unit of the transaction's currency. For dollars, for + # example, this is cents. + sig { returns(Integer) } + attr_accessor :amount + + # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the + # destination account. + sig { returns(String) } + attr_accessor :routing_number + + # A description set when the ACH Transfer was created. + sig { returns(String) } + attr_accessor :statement_descriptor + + # The identifier of the ACH Transfer that led to this Transaction. + sig { returns(String) } + attr_accessor :transfer_id + + # An ACH Transfer Intention object. This field will be present in the JSON + # response if and only if `category` is equal to `ach_transfer_intention`. An ACH + # Transfer Intention is created from an ACH Transfer. It reflects the intention to + # move money into or out of an Increase account via the ACH network. + sig do + params( + account_number: String, + amount: Integer, + routing_number: String, + statement_descriptor: String, + transfer_id: String + ).returns(T.attached_class) + end + def self.new( + # The account number for the destination account. + account_number:, + # The amount in the minor unit of the transaction's currency. For dollars, for + # example, this is cents. + amount:, + # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the + # destination account. + routing_number:, + # A description set when the ACH Transfer was created. + statement_descriptor:, + # The identifier of the ACH Transfer that led to this Transaction. + transfer_id: + ) + end + + sig do + override.returns( + { + account_number: String, + amount: Integer, + routing_number: String, + statement_descriptor: String, + transfer_id: String + } + ) + end + def to_hash + end + end + + class ACHTransferRejection < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Transaction::Source::ACHTransferRejection, + Increase::Internal::AnyHash + ) + end + + # The identifier of the ACH Transfer that led to this Transaction. + sig { returns(String) } + attr_accessor :transfer_id + + # An ACH Transfer Rejection object. This field will be present in the JSON + # response if and only if `category` is equal to `ach_transfer_rejection`. An ACH # Transfer Rejection is created when an ACH Transfer is rejected by Increase. It # offsets the ACH Transfer Intention. These rejections are rare. sig { params(transfer_id: String).returns(T.attached_class) } @@ -10119,289 +10402,6 @@ module Increase end end - # The type of the resource. We may add additional possible values for this enum - # over time; your application should be able to handle such additions gracefully. - module Category - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Increase::Transaction::Source::Category) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # Account Transfer Intention: details will be under the `account_transfer_intention` object. - ACCOUNT_TRANSFER_INTENTION = - T.let( - :account_transfer_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # ACH Transfer Intention: details will be under the `ach_transfer_intention` object. - ACH_TRANSFER_INTENTION = - T.let( - :ach_transfer_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object. - ACH_TRANSFER_REJECTION = - T.let( - :ach_transfer_rejection, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # ACH Transfer Return: details will be under the `ach_transfer_return` object. - ACH_TRANSFER_RETURN = - T.let( - :ach_transfer_return, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Cashback Payment: details will be under the `cashback_payment` object. - CASHBACK_PAYMENT = - T.let( - :cashback_payment, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. - CARD_DISPUTE_ACCEPTANCE = - T.let( - :card_dispute_acceptance, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Card Dispute Financial: details will be under the `card_dispute_financial` object. - CARD_DISPUTE_FINANCIAL = - T.let( - :card_dispute_financial, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object. - CARD_DISPUTE_LOSS = - T.let( - :card_dispute_loss, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Card Refund: details will be under the `card_refund` object. - CARD_REFUND = - T.let( - :card_refund, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Card Settlement: details will be under the `card_settlement` object. - CARD_SETTLEMENT = - T.let( - :card_settlement, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Card Financial: details will be under the `card_financial` object. - CARD_FINANCIAL = - T.let( - :card_financial, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Card Revenue Payment: details will be under the `card_revenue_payment` object. - CARD_REVENUE_PAYMENT = - T.let( - :card_revenue_payment, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object. - CHECK_DEPOSIT_ACCEPTANCE = - T.let( - :check_deposit_acceptance, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Check Deposit Return: details will be under the `check_deposit_return` object. - CHECK_DEPOSIT_RETURN = - T.let( - :check_deposit_return, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object. - FEDNOW_TRANSFER_ACKNOWLEDGEMENT = - T.let( - :fednow_transfer_acknowledgement, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Check Transfer Deposit: details will be under the `check_transfer_deposit` object. - CHECK_TRANSFER_DEPOSIT = - T.let( - :check_transfer_deposit, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Fee Payment: details will be under the `fee_payment` object. - FEE_PAYMENT = - T.let( - :fee_payment, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object. - INBOUND_ACH_TRANSFER = - T.let( - :inbound_ach_transfer, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object. - INBOUND_ACH_TRANSFER_RETURN_INTENTION = - T.let( - :inbound_ach_transfer_return_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object. - INBOUND_CHECK_DEPOSIT_RETURN_INTENTION = - T.let( - :inbound_check_deposit_return_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object. - INBOUND_CHECK_ADJUSTMENT = - T.let( - :inbound_check_adjustment, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object. - INBOUND_FEDNOW_TRANSFER_CONFIRMATION = - T.let( - :inbound_fednow_transfer_confirmation, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object. - INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION = - T.let( - :inbound_real_time_payments_transfer_confirmation, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object. - INBOUND_WIRE_REVERSAL = - T.let( - :inbound_wire_reversal, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object. - INBOUND_WIRE_TRANSFER = - T.let( - :inbound_wire_transfer, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object. - INBOUND_WIRE_TRANSFER_REVERSAL = - T.let( - :inbound_wire_transfer_reversal, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Interest Payment: details will be under the `interest_payment` object. - INTEREST_PAYMENT = - T.let( - :interest_payment, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Internal Source: details will be under the `internal_source` object. - INTERNAL_SOURCE = - T.let( - :internal_source, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object. - REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT = - T.let( - :real_time_payments_transfer_acknowledgement, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Sample Funds: details will be under the `sample_funds` object. - SAMPLE_FUNDS = - T.let( - :sample_funds, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Wire Transfer Intention: details will be under the `wire_transfer_intention` object. - WIRE_TRANSFER_INTENTION = - T.let( - :wire_transfer_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Swift Transfer Intention: details will be under the `swift_transfer_intention` object. - SWIFT_TRANSFER_INTENTION = - T.let( - :swift_transfer_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Swift Transfer Return: details will be under the `swift_transfer_return` object. - SWIFT_TRANSFER_RETURN = - T.let( - :swift_transfer_return, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. - CARD_PUSH_TRANSFER_ACCEPTANCE = - T.let( - :card_push_transfer_acceptance, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Account Revenue Payment: details will be under the `account_revenue_payment` object. - ACCOUNT_REVENUE_PAYMENT = - T.let( - :account_revenue_payment, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object. - BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION = - T.let( - :blockchain_onramp_transfer_intention, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object. - BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT = - T.let( - :blockchain_offramp_transfer_settlement, - Increase::Transaction::Source::Category::TaggedSymbol - ) - - # The Transaction was made for an undocumented or deprecated reason. - OTHER = - T.let(:other, Increase::Transaction::Source::Category::TaggedSymbol) - - sig do - override.returns( - T::Array[Increase::Transaction::Source::Category::TaggedSymbol] - ) - end - def self.values - end - end - class CheckDepositAcceptance < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/wire_transfer.rbi b/rbi/increase/models/wire_transfer.rbi index afadebde..da552ce7 100644 --- a/rbi/increase/models/wire_transfer.rbi +++ b/rbi/increase/models/wire_transfer.rbi @@ -393,6 +393,12 @@ module Increase ) end + # The type of object that created this transfer. + sig do + returns(Increase::WireTransfer::CreatedBy::Category::TaggedSymbol) + end + attr_accessor :category + # If present, details about the API key that created the transfer. sig { returns(T.nilable(Increase::WireTransfer::CreatedBy::APIKey)) } attr_reader :api_key @@ -405,12 +411,6 @@ module Increase end attr_writer :api_key - # The type of object that created this transfer. - sig do - returns(Increase::WireTransfer::CreatedBy::Category::TaggedSymbol) - end - attr_accessor :category - # If present, details about the OAuth Application that created the transfer. sig do returns( @@ -443,9 +443,9 @@ module Increase # What object created the transfer, either via the API or the dashboard. sig do params( + category: Increase::WireTransfer::CreatedBy::Category::OrSymbol, api_key: T.nilable(Increase::WireTransfer::CreatedBy::APIKey::OrHash), - category: Increase::WireTransfer::CreatedBy::Category::OrSymbol, oauth_application: T.nilable( Increase::WireTransfer::CreatedBy::OAuthApplication::OrHash @@ -454,23 +454,23 @@ module Increase ).returns(T.attached_class) end def self.new( - # If present, details about the API key that created the transfer. - api_key:, # The type of object that created this transfer. category:, + # If present, details about the API key that created the transfer. + api_key: nil, # If present, details about the OAuth Application that created the transfer. - oauth_application:, + oauth_application: nil, # If present, details about the User that created the transfer. - user: + user: nil ) end sig do override.returns( { - api_key: T.nilable(Increase::WireTransfer::CreatedBy::APIKey), category: Increase::WireTransfer::CreatedBy::Category::TaggedSymbol, + api_key: T.nilable(Increase::WireTransfer::CreatedBy::APIKey), oauth_application: T.nilable(Increase::WireTransfer::CreatedBy::OAuthApplication), user: T.nilable(Increase::WireTransfer::CreatedBy::User) @@ -480,34 +480,6 @@ module Increase def to_hash end - class APIKey < Increase::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Increase::WireTransfer::CreatedBy::APIKey, - Increase::Internal::AnyHash - ) - end - - # The description set for the API key when it was created. - sig { returns(T.nilable(String)) } - attr_accessor :description - - # If present, details about the API key that created the transfer. - sig do - params(description: T.nilable(String)).returns(T.attached_class) - end - def self.new( - # The description set for the API key when it was created. - description: - ) - end - - sig { override.returns({ description: T.nilable(String) }) } - def to_hash - end - end - # The type of object that created this transfer. module Category extend Increase::Internal::Type::Enum @@ -550,6 +522,34 @@ module Increase end end + class APIKey < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::WireTransfer::CreatedBy::APIKey, + Increase::Internal::AnyHash + ) + end + + # The description set for the API key when it was created. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # If present, details about the API key that created the transfer. + sig do + params(description: T.nilable(String)).returns(T.attached_class) + end + def self.new( + # The description set for the API key when it was created. + description: + ) + end + + sig { override.returns({ description: T.nilable(String) }) } + def to_hash + end + end + class OAuthApplication < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -1017,10 +1017,10 @@ module Increase category:, # Internal Revenue Service (IRS) tax repayment information. Required if `category` # is equal to `tax`. - tax:, + tax: nil, # Unstructured remittance information. Required if `category` is equal to # `unstructured`. - unstructured: + unstructured: nil ) end diff --git a/sig/increase/models/account_transfer.rbs b/sig/increase/models/account_transfer.rbs index 2b9b5115..a28edbe4 100644 --- a/sig/increase/models/account_transfer.rbs +++ b/sig/increase/models/account_transfer.rbs @@ -117,45 +117,35 @@ module Increase type created_by = { - api_key: Increase::AccountTransfer::CreatedBy::APIKey?, category: Increase::Models::AccountTransfer::CreatedBy::category, + api_key: Increase::AccountTransfer::CreatedBy::APIKey?, oauth_application: Increase::AccountTransfer::CreatedBy::OAuthApplication?, user: Increase::AccountTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::AccountTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::AccountTransfer::CreatedBy::category + attr_accessor api_key: Increase::AccountTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::AccountTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::AccountTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::AccountTransfer::CreatedBy::APIKey?, category: Increase::Models::AccountTransfer::CreatedBy::category, - oauth_application: Increase::AccountTransfer::CreatedBy::OAuthApplication?, - user: Increase::AccountTransfer::CreatedBy::User? + ?api_key: Increase::AccountTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::AccountTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::AccountTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::AccountTransfer::CreatedBy::APIKey?, category: Increase::Models::AccountTransfer::CreatedBy::category, + api_key: Increase::AccountTransfer::CreatedBy::APIKey?, oauth_application: Increase::AccountTransfer::CreatedBy::OAuthApplication?, user: Increase::AccountTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -173,6 +163,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::AccountTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/ach_transfer.rbs b/sig/increase/models/ach_transfer.rbs index 59c78996..08e3c7f7 100644 --- a/sig/increase/models/ach_transfer.rbs +++ b/sig/increase/models/ach_transfer.rbs @@ -217,8 +217,8 @@ module Increase def initialize: ( category: Increase::Models::ACHTransfer::Addenda::category, - freeform: Increase::ACHTransfer::Addenda::Freeform?, - payment_order_remittance_advice: Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice? + ?freeform: Increase::ACHTransfer::Addenda::Freeform?, + ?payment_order_remittance_advice: Increase::ACHTransfer::Addenda::PaymentOrderRemittanceAdvice? ) -> void def to_hash: -> { @@ -328,45 +328,35 @@ module Increase type created_by = { - api_key: Increase::ACHTransfer::CreatedBy::APIKey?, category: Increase::Models::ACHTransfer::CreatedBy::category, + api_key: Increase::ACHTransfer::CreatedBy::APIKey?, oauth_application: Increase::ACHTransfer::CreatedBy::OAuthApplication?, user: Increase::ACHTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::ACHTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::ACHTransfer::CreatedBy::category + attr_accessor api_key: Increase::ACHTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::ACHTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::ACHTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::ACHTransfer::CreatedBy::APIKey?, category: Increase::Models::ACHTransfer::CreatedBy::category, - oauth_application: Increase::ACHTransfer::CreatedBy::OAuthApplication?, - user: Increase::ACHTransfer::CreatedBy::User? + ?api_key: Increase::ACHTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::ACHTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::ACHTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::ACHTransfer::CreatedBy::APIKey?, category: Increase::Models::ACHTransfer::CreatedBy::category, + api_key: Increase::ACHTransfer::CreatedBy::APIKey?, oauth_application: Increase::ACHTransfer::CreatedBy::OAuthApplication?, user: Increase::ACHTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -384,6 +374,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::ACHTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/card_dispute.rbs b/sig/increase/models/card_dispute.rbs index d6943c55..aced229a 100644 --- a/sig/increase/models/card_dispute.rbs +++ b/sig/increase/models/card_dispute.rbs @@ -204,11 +204,11 @@ module Increase { attachment_files: ::Array[Increase::CardDispute::Visa::NetworkEvent::AttachmentFile], category: Increase::Models::CardDispute::Visa::NetworkEvent::category, + created_at: Time, + dispute_financial_transaction_id: String?, chargeback_accepted: Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted?, chargeback_submitted: Increase::CardDispute::Visa::NetworkEvent::ChargebackSubmitted?, chargeback_timed_out: Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut?, - created_at: Time, - dispute_financial_transaction_id: String?, merchant_prearbitration_decline_submitted: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted?, merchant_prearbitration_received: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived?, merchant_prearbitration_timed_out: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationTimedOut?, @@ -226,16 +226,16 @@ module Increase attr_accessor category: Increase::Models::CardDispute::Visa::NetworkEvent::category + attr_accessor created_at: Time + + attr_accessor dispute_financial_transaction_id: String? + attr_accessor chargeback_accepted: Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted? attr_accessor chargeback_submitted: Increase::CardDispute::Visa::NetworkEvent::ChargebackSubmitted? attr_accessor chargeback_timed_out: Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut? - attr_accessor created_at: Time - - attr_accessor dispute_financial_transaction_id: String? - attr_accessor merchant_prearbitration_decline_submitted: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted? attr_accessor merchant_prearbitration_received: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived? @@ -259,31 +259,31 @@ module Increase def initialize: ( attachment_files: ::Array[Increase::CardDispute::Visa::NetworkEvent::AttachmentFile], category: Increase::Models::CardDispute::Visa::NetworkEvent::category, - chargeback_accepted: Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted?, - chargeback_submitted: Increase::CardDispute::Visa::NetworkEvent::ChargebackSubmitted?, - chargeback_timed_out: Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut?, created_at: Time, dispute_financial_transaction_id: String?, - merchant_prearbitration_decline_submitted: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted?, - merchant_prearbitration_received: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived?, - merchant_prearbitration_timed_out: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationTimedOut?, - represented: Increase::CardDispute::Visa::NetworkEvent::Represented?, - representment_timed_out: Increase::CardDispute::Visa::NetworkEvent::RepresentmentTimedOut?, - user_prearbitration_accepted: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationAccepted?, - user_prearbitration_declined: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationDeclined?, - user_prearbitration_submitted: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationSubmitted?, - user_prearbitration_timed_out: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationTimedOut?, - user_withdrawal_submitted: Increase::CardDispute::Visa::NetworkEvent::UserWithdrawalSubmitted? + ?chargeback_accepted: Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted?, + ?chargeback_submitted: Increase::CardDispute::Visa::NetworkEvent::ChargebackSubmitted?, + ?chargeback_timed_out: Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut?, + ?merchant_prearbitration_decline_submitted: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted?, + ?merchant_prearbitration_received: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived?, + ?merchant_prearbitration_timed_out: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationTimedOut?, + ?represented: Increase::CardDispute::Visa::NetworkEvent::Represented?, + ?representment_timed_out: Increase::CardDispute::Visa::NetworkEvent::RepresentmentTimedOut?, + ?user_prearbitration_accepted: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationAccepted?, + ?user_prearbitration_declined: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationDeclined?, + ?user_prearbitration_submitted: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationSubmitted?, + ?user_prearbitration_timed_out: Increase::CardDispute::Visa::NetworkEvent::UserPrearbitrationTimedOut?, + ?user_withdrawal_submitted: Increase::CardDispute::Visa::NetworkEvent::UserWithdrawalSubmitted? ) -> void def to_hash: -> { attachment_files: ::Array[Increase::CardDispute::Visa::NetworkEvent::AttachmentFile], category: Increase::Models::CardDispute::Visa::NetworkEvent::category, + created_at: Time, + dispute_financial_transaction_id: String?, chargeback_accepted: Increase::CardDispute::Visa::NetworkEvent::ChargebackAccepted?, chargeback_submitted: Increase::CardDispute::Visa::NetworkEvent::ChargebackSubmitted?, chargeback_timed_out: Increase::CardDispute::Visa::NetworkEvent::ChargebackTimedOut?, - created_at: Time, - dispute_financial_transaction_id: String?, merchant_prearbitration_decline_submitted: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationDeclineSubmitted?, merchant_prearbitration_received: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationReceived?, merchant_prearbitration_timed_out: Increase::CardDispute::Visa::NetworkEvent::MerchantPrearbitrationTimedOut?, @@ -1153,14 +1153,14 @@ module Increase amount: Integer?, attachment_files: ::Array[Increase::CardDispute::Visa::UserSubmission::AttachmentFile], category: Increase::Models::CardDispute::Visa::UserSubmission::category, - chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback?, created_at: Time, explanation: String?, further_information_requested_at: Time?, further_information_requested_reason: String?, - merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline?, status: Increase::Models::CardDispute::Visa::UserSubmission::status, updated_at: Time, + chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback?, + merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline?, user_prearbitration: Increase::CardDispute::Visa::UserSubmission::UserPrearbitration? } @@ -1173,8 +1173,6 @@ module Increase attr_accessor category: Increase::Models::CardDispute::Visa::UserSubmission::category - attr_accessor chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback? - attr_accessor created_at: Time attr_accessor explanation: String? @@ -1183,12 +1181,14 @@ module Increase attr_accessor further_information_requested_reason: String? - attr_accessor merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline? - attr_accessor status: Increase::Models::CardDispute::Visa::UserSubmission::status attr_accessor updated_at: Time + attr_accessor chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback? + + attr_accessor merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline? + attr_accessor user_prearbitration: Increase::CardDispute::Visa::UserSubmission::UserPrearbitration? def initialize: ( @@ -1196,15 +1196,15 @@ module Increase amount: Integer?, attachment_files: ::Array[Increase::CardDispute::Visa::UserSubmission::AttachmentFile], category: Increase::Models::CardDispute::Visa::UserSubmission::category, - chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback?, created_at: Time, explanation: String?, further_information_requested_at: Time?, further_information_requested_reason: String?, - merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline?, status: Increase::Models::CardDispute::Visa::UserSubmission::status, updated_at: Time, - user_prearbitration: Increase::CardDispute::Visa::UserSubmission::UserPrearbitration? + ?chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback?, + ?merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline?, + ?user_prearbitration: Increase::CardDispute::Visa::UserSubmission::UserPrearbitration? ) -> void def to_hash: -> { @@ -1212,14 +1212,14 @@ module Increase amount: Integer?, attachment_files: ::Array[Increase::CardDispute::Visa::UserSubmission::AttachmentFile], category: Increase::Models::CardDispute::Visa::UserSubmission::category, - chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback?, created_at: Time, explanation: String?, further_information_requested_at: Time?, further_information_requested_reason: String?, - merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline?, status: Increase::Models::CardDispute::Visa::UserSubmission::status, updated_at: Time, + chargeback: Increase::CardDispute::Visa::UserSubmission::Chargeback?, + merchant_prearbitration_decline: Increase::CardDispute::Visa::UserSubmission::MerchantPrearbitrationDecline?, user_prearbitration: Increase::CardDispute::Visa::UserSubmission::UserPrearbitration? } @@ -1253,6 +1253,30 @@ module Increase def self?.values: -> ::Array[Increase::Models::CardDispute::Visa::UserSubmission::category] end + type status = + :abandoned + | :accepted + | :further_information_requested + | :pending_reviewing + + module Status + extend Increase::Internal::Type::Enum + + # The User Submission was abandoned. + ABANDONED: :abandoned + + # The User Submission was accepted. + ACCEPTED: :accepted + + # Further information is requested, please resubmit with the requested information. + FURTHER_INFORMATION_REQUESTED: :further_information_requested + + # The User Submission is pending review. + PENDING_REVIEWING: :pending_reviewing + + def self?.values: -> ::Array[Increase::Models::CardDispute::Visa::UserSubmission::status] + end + type chargeback = { authorization: Increase::CardDispute::Visa::UserSubmission::Chargeback::Authorization?, @@ -3939,30 +3963,6 @@ module Increase def to_hash: -> { reason: String } end - type status = - :abandoned - | :accepted - | :further_information_requested - | :pending_reviewing - - module Status - extend Increase::Internal::Type::Enum - - # The User Submission was abandoned. - ABANDONED: :abandoned - - # The User Submission was accepted. - ACCEPTED: :accepted - - # Further information is requested, please resubmit with the requested information. - FURTHER_INFORMATION_REQUESTED: :further_information_requested - - # The User Submission is pending review. - PENDING_REVIEWING: :pending_reviewing - - def self?.values: -> ::Array[Increase::Models::CardDispute::Visa::UserSubmission::status] - end - type user_prearbitration = { category_change: Increase::CardDispute::Visa::UserSubmission::UserPrearbitration::CategoryChange?, diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index 863995c0..5c76da43 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -58,6 +58,8 @@ module Increase type element = { + category: Increase::Models::CardPayment::Element::category, + created_at: Time, card_authentication: Increase::CardPayment::Element::CardAuthentication?, card_authorization: Increase::CardPayment::Element::CardAuthorization?, card_authorization_expiration: Increase::CardPayment::Element::CardAuthorizationExpiration?, @@ -70,12 +72,14 @@ module Increase card_reversal: Increase::CardPayment::Element::CardReversal?, card_settlement: Increase::CardPayment::Element::CardSettlement?, card_validation: Increase::CardPayment::Element::CardValidation?, - category: Increase::Models::CardPayment::Element::category, - created_at: Time, other: Increase::CardPayment::Element::Other? } class Element < Increase::Internal::Type::BaseModel + attr_accessor category: Increase::Models::CardPayment::Element::category + + attr_accessor created_at: Time + attr_accessor card_authentication: Increase::CardPayment::Element::CardAuthentication? attr_accessor card_authorization: Increase::CardPayment::Element::CardAuthorization? @@ -100,31 +104,29 @@ module Increase attr_accessor card_validation: Increase::CardPayment::Element::CardValidation? - attr_accessor category: Increase::Models::CardPayment::Element::category - - attr_accessor created_at: Time - attr_accessor other: Increase::CardPayment::Element::Other? def initialize: ( - card_authentication: Increase::CardPayment::Element::CardAuthentication?, - card_authorization: Increase::CardPayment::Element::CardAuthorization?, - card_authorization_expiration: Increase::CardPayment::Element::CardAuthorizationExpiration?, - card_balance_inquiry: Increase::CardPayment::Element::CardBalanceInquiry?, - card_decline: Increase::CardPayment::Element::CardDecline?, - card_financial: Increase::CardPayment::Element::CardFinancial?, - card_fuel_confirmation: Increase::CardPayment::Element::CardFuelConfirmation?, - card_increment: Increase::CardPayment::Element::CardIncrement?, - card_refund: Increase::CardPayment::Element::CardRefund?, - card_reversal: Increase::CardPayment::Element::CardReversal?, - card_settlement: Increase::CardPayment::Element::CardSettlement?, - card_validation: Increase::CardPayment::Element::CardValidation?, category: Increase::Models::CardPayment::Element::category, created_at: Time, - other: Increase::CardPayment::Element::Other? + ?card_authentication: Increase::CardPayment::Element::CardAuthentication?, + ?card_authorization: Increase::CardPayment::Element::CardAuthorization?, + ?card_authorization_expiration: Increase::CardPayment::Element::CardAuthorizationExpiration?, + ?card_balance_inquiry: Increase::CardPayment::Element::CardBalanceInquiry?, + ?card_decline: Increase::CardPayment::Element::CardDecline?, + ?card_financial: Increase::CardPayment::Element::CardFinancial?, + ?card_fuel_confirmation: Increase::CardPayment::Element::CardFuelConfirmation?, + ?card_increment: Increase::CardPayment::Element::CardIncrement?, + ?card_refund: Increase::CardPayment::Element::CardRefund?, + ?card_reversal: Increase::CardPayment::Element::CardReversal?, + ?card_settlement: Increase::CardPayment::Element::CardSettlement?, + ?card_validation: Increase::CardPayment::Element::CardValidation?, + ?other: Increase::CardPayment::Element::Other? ) -> void def to_hash: -> { + category: Increase::Models::CardPayment::Element::category, + created_at: Time, card_authentication: Increase::CardPayment::Element::CardAuthentication?, card_authorization: Increase::CardPayment::Element::CardAuthorization?, card_authorization_expiration: Increase::CardPayment::Element::CardAuthorizationExpiration?, @@ -137,11 +139,69 @@ module Increase card_reversal: Increase::CardPayment::Element::CardReversal?, card_settlement: Increase::CardPayment::Element::CardSettlement?, card_validation: Increase::CardPayment::Element::CardValidation?, - category: Increase::Models::CardPayment::Element::category, - created_at: Time, other: Increase::CardPayment::Element::Other? } + type category = + :card_authorization + | :card_authentication + | :card_balance_inquiry + | :card_validation + | :card_decline + | :card_reversal + | :card_authorization_expiration + | :card_increment + | :card_settlement + | :card_refund + | :card_fuel_confirmation + | :card_financial + | :other + + module Category + extend Increase::Internal::Type::Enum + + # Card Authorization: details will be under the `card_authorization` object. + CARD_AUTHORIZATION: :card_authorization + + # Card Authentication: details will be under the `card_authentication` object. + CARD_AUTHENTICATION: :card_authentication + + # Card Balance Inquiry: details will be under the `card_balance_inquiry` object. + CARD_BALANCE_INQUIRY: :card_balance_inquiry + + # Inbound Card Validation: details will be under the `card_validation` object. + CARD_VALIDATION: :card_validation + + # Card Decline: details will be under the `card_decline` object. + CARD_DECLINE: :card_decline + + # Card Reversal: details will be under the `card_reversal` object. + CARD_REVERSAL: :card_reversal + + # Card Authorization Expiration: details will be under the `card_authorization_expiration` object. + CARD_AUTHORIZATION_EXPIRATION: :card_authorization_expiration + + # Card Increment: details will be under the `card_increment` object. + CARD_INCREMENT: :card_increment + + # Card Settlement: details will be under the `card_settlement` object. + CARD_SETTLEMENT: :card_settlement + + # Card Refund: details will be under the `card_refund` object. + CARD_REFUND: :card_refund + + # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object. + CARD_FUEL_CONFIRMATION: :card_fuel_confirmation + + # Card Financial: details will be under the `card_financial` object. + CARD_FINANCIAL: :card_financial + + # Unknown card payment element. + OTHER: :other + + def self?.values: -> ::Array[Increase::Models::CardPayment::Element::category] + end + type card_authentication = { id: String, @@ -7238,66 +7298,6 @@ module Increase end end - type category = - :card_authorization - | :card_authentication - | :card_balance_inquiry - | :card_validation - | :card_decline - | :card_reversal - | :card_authorization_expiration - | :card_increment - | :card_settlement - | :card_refund - | :card_fuel_confirmation - | :card_financial - | :other - - module Category - extend Increase::Internal::Type::Enum - - # Card Authorization: details will be under the `card_authorization` object. - CARD_AUTHORIZATION: :card_authorization - - # Card Authentication: details will be under the `card_authentication` object. - CARD_AUTHENTICATION: :card_authentication - - # Card Balance Inquiry: details will be under the `card_balance_inquiry` object. - CARD_BALANCE_INQUIRY: :card_balance_inquiry - - # Inbound Card Validation: details will be under the `card_validation` object. - CARD_VALIDATION: :card_validation - - # Card Decline: details will be under the `card_decline` object. - CARD_DECLINE: :card_decline - - # Card Reversal: details will be under the `card_reversal` object. - CARD_REVERSAL: :card_reversal - - # Card Authorization Expiration: details will be under the `card_authorization_expiration` object. - CARD_AUTHORIZATION_EXPIRATION: :card_authorization_expiration - - # Card Increment: details will be under the `card_increment` object. - CARD_INCREMENT: :card_increment - - # Card Settlement: details will be under the `card_settlement` object. - CARD_SETTLEMENT: :card_settlement - - # Card Refund: details will be under the `card_refund` object. - CARD_REFUND: :card_refund - - # Card Fuel Confirmation: details will be under the `card_fuel_confirmation` object. - CARD_FUEL_CONFIRMATION: :card_fuel_confirmation - - # Card Financial: details will be under the `card_financial` object. - CARD_FINANCIAL: :card_financial - - # Unknown card payment element. - OTHER: :other - - def self?.values: -> ::Array[Increase::Models::CardPayment::Element::category] - end - type other = { } class Other < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/card_push_transfer.rbs b/sig/increase/models/card_push_transfer.rbs index 9e4fb9d5..2e3b292c 100644 --- a/sig/increase/models/card_push_transfer.rbs +++ b/sig/increase/models/card_push_transfer.rbs @@ -287,45 +287,35 @@ module Increase type created_by = { - api_key: Increase::CardPushTransfer::CreatedBy::APIKey?, category: Increase::Models::CardPushTransfer::CreatedBy::category, + api_key: Increase::CardPushTransfer::CreatedBy::APIKey?, oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?, user: Increase::CardPushTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::CardPushTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::CardPushTransfer::CreatedBy::category + attr_accessor api_key: Increase::CardPushTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::CardPushTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::CardPushTransfer::CreatedBy::APIKey?, category: Increase::Models::CardPushTransfer::CreatedBy::category, - oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?, - user: Increase::CardPushTransfer::CreatedBy::User? + ?api_key: Increase::CardPushTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::CardPushTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::CardPushTransfer::CreatedBy::APIKey?, category: Increase::Models::CardPushTransfer::CreatedBy::category, + api_key: Increase::CardPushTransfer::CreatedBy::APIKey?, oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?, user: Increase::CardPushTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -343,6 +333,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::CardPushTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/card_validation.rbs b/sig/increase/models/card_validation.rbs index f7030740..cc77083a 100644 --- a/sig/increase/models/card_validation.rbs +++ b/sig/increase/models/card_validation.rbs @@ -290,45 +290,35 @@ module Increase type created_by = { - api_key: Increase::CardValidation::CreatedBy::APIKey?, category: Increase::Models::CardValidation::CreatedBy::category, + api_key: Increase::CardValidation::CreatedBy::APIKey?, oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?, user: Increase::CardValidation::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::CardValidation::CreatedBy::APIKey? - attr_accessor category: Increase::Models::CardValidation::CreatedBy::category + attr_accessor api_key: Increase::CardValidation::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication? attr_accessor user: Increase::CardValidation::CreatedBy::User? def initialize: ( - api_key: Increase::CardValidation::CreatedBy::APIKey?, category: Increase::Models::CardValidation::CreatedBy::category, - oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?, - user: Increase::CardValidation::CreatedBy::User? + ?api_key: Increase::CardValidation::CreatedBy::APIKey?, + ?oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?, + ?user: Increase::CardValidation::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::CardValidation::CreatedBy::APIKey?, category: Increase::Models::CardValidation::CreatedBy::category, + api_key: Increase::CardValidation::CreatedBy::APIKey?, oauth_application: Increase::CardValidation::CreatedBy::OAuthApplication?, user: Increase::CardValidation::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -346,6 +336,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::CardValidation::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/check_transfer.rbs b/sig/increase/models/check_transfer.rbs index 8d5bd9fb..8043efb6 100644 --- a/sig/increase/models/check_transfer.rbs +++ b/sig/increase/models/check_transfer.rbs @@ -176,45 +176,35 @@ module Increase type created_by = { - api_key: Increase::CheckTransfer::CreatedBy::APIKey?, category: Increase::Models::CheckTransfer::CreatedBy::category, + api_key: Increase::CheckTransfer::CreatedBy::APIKey?, oauth_application: Increase::CheckTransfer::CreatedBy::OAuthApplication?, user: Increase::CheckTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::CheckTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::CheckTransfer::CreatedBy::category + attr_accessor api_key: Increase::CheckTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::CheckTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::CheckTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::CheckTransfer::CreatedBy::APIKey?, category: Increase::Models::CheckTransfer::CreatedBy::category, - oauth_application: Increase::CheckTransfer::CreatedBy::OAuthApplication?, - user: Increase::CheckTransfer::CreatedBy::User? + ?api_key: Increase::CheckTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::CheckTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::CheckTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::CheckTransfer::CreatedBy::APIKey?, category: Increase::Models::CheckTransfer::CreatedBy::category, + api_key: Increase::CheckTransfer::CreatedBy::APIKey?, oauth_application: Increase::CheckTransfer::CreatedBy::OAuthApplication?, user: Increase::CheckTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -232,6 +222,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::CheckTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/declined_transaction.rbs b/sig/increase/models/declined_transaction.rbs index f2803f4b..a4d14258 100644 --- a/sig/increase/models/declined_transaction.rbs +++ b/sig/increase/models/declined_transaction.rbs @@ -91,9 +91,9 @@ module Increase type source = { + category: Increase::Models::DeclinedTransaction::Source::category, ach_decline: Increase::DeclinedTransaction::Source::ACHDecline?, card_decline: Increase::DeclinedTransaction::Source::CardDecline?, - category: Increase::Models::DeclinedTransaction::Source::category, check_decline: Increase::DeclinedTransaction::Source::CheckDecline?, check_deposit_rejection: Increase::DeclinedTransaction::Source::CheckDepositRejection?, inbound_fednow_transfer_decline: Increase::DeclinedTransaction::Source::InboundFednowTransferDecline?, @@ -103,12 +103,12 @@ module Increase } class Source < Increase::Internal::Type::BaseModel + attr_accessor category: Increase::Models::DeclinedTransaction::Source::category + attr_accessor ach_decline: Increase::DeclinedTransaction::Source::ACHDecline? attr_accessor card_decline: Increase::DeclinedTransaction::Source::CardDecline? - attr_accessor category: Increase::Models::DeclinedTransaction::Source::category - attr_accessor check_decline: Increase::DeclinedTransaction::Source::CheckDecline? attr_accessor check_deposit_rejection: Increase::DeclinedTransaction::Source::CheckDepositRejection? @@ -122,21 +122,21 @@ module Increase attr_accessor wire_decline: Increase::DeclinedTransaction::Source::WireDecline? def initialize: ( - ach_decline: Increase::DeclinedTransaction::Source::ACHDecline?, - card_decline: Increase::DeclinedTransaction::Source::CardDecline?, category: Increase::Models::DeclinedTransaction::Source::category, - check_decline: Increase::DeclinedTransaction::Source::CheckDecline?, - check_deposit_rejection: Increase::DeclinedTransaction::Source::CheckDepositRejection?, - inbound_fednow_transfer_decline: Increase::DeclinedTransaction::Source::InboundFednowTransferDecline?, - inbound_real_time_payments_transfer_decline: Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline?, - other: Increase::DeclinedTransaction::Source::Other?, - wire_decline: Increase::DeclinedTransaction::Source::WireDecline? + ?ach_decline: Increase::DeclinedTransaction::Source::ACHDecline?, + ?card_decline: Increase::DeclinedTransaction::Source::CardDecline?, + ?check_decline: Increase::DeclinedTransaction::Source::CheckDecline?, + ?check_deposit_rejection: Increase::DeclinedTransaction::Source::CheckDepositRejection?, + ?inbound_fednow_transfer_decline: Increase::DeclinedTransaction::Source::InboundFednowTransferDecline?, + ?inbound_real_time_payments_transfer_decline: Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline?, + ?other: Increase::DeclinedTransaction::Source::Other?, + ?wire_decline: Increase::DeclinedTransaction::Source::WireDecline? ) -> void def to_hash: -> { + category: Increase::Models::DeclinedTransaction::Source::category, ach_decline: Increase::DeclinedTransaction::Source::ACHDecline?, card_decline: Increase::DeclinedTransaction::Source::CardDecline?, - category: Increase::Models::DeclinedTransaction::Source::category, check_decline: Increase::DeclinedTransaction::Source::CheckDecline?, check_deposit_rejection: Increase::DeclinedTransaction::Source::CheckDepositRejection?, inbound_fednow_transfer_decline: Increase::DeclinedTransaction::Source::InboundFednowTransferDecline?, @@ -145,6 +145,46 @@ module Increase wire_decline: Increase::DeclinedTransaction::Source::WireDecline? } + type category = + :ach_decline + | :card_decline + | :check_decline + | :inbound_real_time_payments_transfer_decline + | :inbound_fednow_transfer_decline + | :wire_decline + | :check_deposit_rejection + | :other + + module Category + extend Increase::Internal::Type::Enum + + # ACH Decline: details will be under the `ach_decline` object. + ACH_DECLINE: :ach_decline + + # Card Decline: details will be under the `card_decline` object. + CARD_DECLINE: :card_decline + + # Check Decline: details will be under the `check_decline` object. + CHECK_DECLINE: :check_decline + + # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE: :inbound_real_time_payments_transfer_decline + + # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object. + INBOUND_FEDNOW_TRANSFER_DECLINE: :inbound_fednow_transfer_decline + + # Wire Decline: details will be under the `wire_decline` object. + WIRE_DECLINE: :wire_decline + + # Check Deposit Rejection: details will be under the `check_deposit_rejection` object. + CHECK_DEPOSIT_REJECTION: :check_deposit_rejection + + # The Declined Transaction was made for an undocumented or deprecated reason. + OTHER: :other + + def self?.values: -> ::Array[Increase::Models::DeclinedTransaction::Source::category] + end + type ach_decline = { id: String, @@ -1241,46 +1281,6 @@ module Increase end end - type category = - :ach_decline - | :card_decline - | :check_decline - | :inbound_real_time_payments_transfer_decline - | :inbound_fednow_transfer_decline - | :wire_decline - | :check_deposit_rejection - | :other - - module Category - extend Increase::Internal::Type::Enum - - # ACH Decline: details will be under the `ach_decline` object. - ACH_DECLINE: :ach_decline - - # Card Decline: details will be under the `card_decline` object. - CARD_DECLINE: :card_decline - - # Check Decline: details will be under the `check_decline` object. - CHECK_DECLINE: :check_decline - - # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object. - INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE: :inbound_real_time_payments_transfer_decline - - # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object. - INBOUND_FEDNOW_TRANSFER_DECLINE: :inbound_fednow_transfer_decline - - # Wire Decline: details will be under the `wire_decline` object. - WIRE_DECLINE: :wire_decline - - # Check Deposit Rejection: details will be under the `check_deposit_rejection` object. - CHECK_DEPOSIT_REJECTION: :check_deposit_rejection - - # The Declined Transaction was made for an undocumented or deprecated reason. - OTHER: :other - - def self?.values: -> ::Array[Increase::Models::DeclinedTransaction::Source::category] - end - type check_decline = { amount: Integer, diff --git a/sig/increase/models/fednow_transfer.rbs b/sig/increase/models/fednow_transfer.rbs index e8b5eaf5..3b4a6166 100644 --- a/sig/increase/models/fednow_transfer.rbs +++ b/sig/increase/models/fednow_transfer.rbs @@ -133,45 +133,35 @@ module Increase type created_by = { - api_key: Increase::FednowTransfer::CreatedBy::APIKey?, category: Increase::Models::FednowTransfer::CreatedBy::category, + api_key: Increase::FednowTransfer::CreatedBy::APIKey?, oauth_application: Increase::FednowTransfer::CreatedBy::OAuthApplication?, user: Increase::FednowTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::FednowTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::FednowTransfer::CreatedBy::category + attr_accessor api_key: Increase::FednowTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::FednowTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::FednowTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::FednowTransfer::CreatedBy::APIKey?, category: Increase::Models::FednowTransfer::CreatedBy::category, - oauth_application: Increase::FednowTransfer::CreatedBy::OAuthApplication?, - user: Increase::FednowTransfer::CreatedBy::User? + ?api_key: Increase::FednowTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::FednowTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::FednowTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::FednowTransfer::CreatedBy::APIKey?, category: Increase::Models::FednowTransfer::CreatedBy::category, + api_key: Increase::FednowTransfer::CreatedBy::APIKey?, oauth_application: Increase::FednowTransfer::CreatedBy::OAuthApplication?, user: Increase::FednowTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -189,6 +179,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::FednowTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/pending_transaction.rbs b/sig/increase/models/pending_transaction.rbs index 3e92ab25..56a76bf1 100644 --- a/sig/increase/models/pending_transaction.rbs +++ b/sig/increase/models/pending_transaction.rbs @@ -106,13 +106,13 @@ module Increase type source = { + category: Increase::Models::PendingTransaction::Source::category, account_transfer_instruction: Increase::PendingTransaction::Source::AccountTransferInstruction?, ach_transfer_instruction: Increase::PendingTransaction::Source::ACHTransferInstruction?, blockchain_offramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOfframpTransferInstruction?, blockchain_onramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOnrampTransferInstruction?, card_authorization: Increase::PendingTransaction::Source::CardAuthorization?, card_push_transfer_instruction: Increase::PendingTransaction::Source::CardPushTransferInstruction?, - category: Increase::Models::PendingTransaction::Source::category, check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?, @@ -126,6 +126,8 @@ module Increase } class Source < Increase::Internal::Type::BaseModel + attr_accessor category: Increase::Models::PendingTransaction::Source::category + attr_accessor account_transfer_instruction: Increase::PendingTransaction::Source::AccountTransferInstruction? attr_accessor ach_transfer_instruction: Increase::PendingTransaction::Source::ACHTransferInstruction? @@ -138,8 +140,6 @@ module Increase attr_accessor card_push_transfer_instruction: Increase::PendingTransaction::Source::CardPushTransferInstruction? - attr_accessor category: Increase::Models::PendingTransaction::Source::category - attr_accessor check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction? attr_accessor check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction? @@ -161,33 +161,33 @@ module Increase attr_accessor wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? def initialize: ( - account_transfer_instruction: Increase::PendingTransaction::Source::AccountTransferInstruction?, - ach_transfer_instruction: Increase::PendingTransaction::Source::ACHTransferInstruction?, - blockchain_offramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOfframpTransferInstruction?, - blockchain_onramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOnrampTransferInstruction?, - card_authorization: Increase::PendingTransaction::Source::CardAuthorization?, - card_push_transfer_instruction: Increase::PendingTransaction::Source::CardPushTransferInstruction?, category: Increase::Models::PendingTransaction::Source::category, - check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, - check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, - fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?, - inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?, - inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?, - other: Increase::PendingTransaction::Source::Other?, - real_time_payments_transfer_instruction: Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction?, - swift_transfer_instruction: Increase::PendingTransaction::Source::SwiftTransferInstruction?, - user_initiated_hold: ::Hash[Symbol, top]?, - wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? + ?account_transfer_instruction: Increase::PendingTransaction::Source::AccountTransferInstruction?, + ?ach_transfer_instruction: Increase::PendingTransaction::Source::ACHTransferInstruction?, + ?blockchain_offramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOfframpTransferInstruction?, + ?blockchain_onramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOnrampTransferInstruction?, + ?card_authorization: Increase::PendingTransaction::Source::CardAuthorization?, + ?card_push_transfer_instruction: Increase::PendingTransaction::Source::CardPushTransferInstruction?, + ?check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, + ?check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, + ?fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?, + ?inbound_funds_hold: Increase::PendingTransaction::Source::InboundFundsHold?, + ?inbound_wire_transfer_reversal: Increase::PendingTransaction::Source::InboundWireTransferReversal?, + ?other: Increase::PendingTransaction::Source::Other?, + ?real_time_payments_transfer_instruction: Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction?, + ?swift_transfer_instruction: Increase::PendingTransaction::Source::SwiftTransferInstruction?, + ?user_initiated_hold: ::Hash[Symbol, top]?, + ?wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? ) -> void def to_hash: -> { + category: Increase::Models::PendingTransaction::Source::category, account_transfer_instruction: Increase::PendingTransaction::Source::AccountTransferInstruction?, ach_transfer_instruction: Increase::PendingTransaction::Source::ACHTransferInstruction?, blockchain_offramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOfframpTransferInstruction?, blockchain_onramp_transfer_instruction: Increase::PendingTransaction::Source::BlockchainOnrampTransferInstruction?, card_authorization: Increase::PendingTransaction::Source::CardAuthorization?, card_push_transfer_instruction: Increase::PendingTransaction::Source::CardPushTransferInstruction?, - category: Increase::Models::PendingTransaction::Source::category, check_deposit_instruction: Increase::PendingTransaction::Source::CheckDepositInstruction?, check_transfer_instruction: Increase::PendingTransaction::Source::CheckTransferInstruction?, fednow_transfer_instruction: Increase::PendingTransaction::Source::FednowTransferInstruction?, @@ -200,6 +200,78 @@ module Increase wire_transfer_instruction: Increase::PendingTransaction::Source::WireTransferInstruction? } + type category = + :account_transfer_instruction + | :ach_transfer_instruction + | :card_authorization + | :check_deposit_instruction + | :check_transfer_instruction + | :fednow_transfer_instruction + | :inbound_funds_hold + | :user_initiated_hold + | :real_time_payments_transfer_instruction + | :wire_transfer_instruction + | :inbound_wire_transfer_reversal + | :swift_transfer_instruction + | :card_push_transfer_instruction + | :blockchain_onramp_transfer_instruction + | :blockchain_offramp_transfer_instruction + | :other + + module Category + extend Increase::Internal::Type::Enum + + # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. + ACCOUNT_TRANSFER_INSTRUCTION: :account_transfer_instruction + + # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object. + ACH_TRANSFER_INSTRUCTION: :ach_transfer_instruction + + # Card Authorization: details will be under the `card_authorization` object. + CARD_AUTHORIZATION: :card_authorization + + # Check Deposit Instruction: details will be under the `check_deposit_instruction` object. + CHECK_DEPOSIT_INSTRUCTION: :check_deposit_instruction + + # Check Transfer Instruction: details will be under the `check_transfer_instruction` object. + CHECK_TRANSFER_INSTRUCTION: :check_transfer_instruction + + # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object. + FEDNOW_TRANSFER_INSTRUCTION: :fednow_transfer_instruction + + # Inbound Funds Hold: details will be under the `inbound_funds_hold` object. + INBOUND_FUNDS_HOLD: :inbound_funds_hold + + # User Initiated Hold: details will be under the `user_initiated_hold` object. + USER_INITIATED_HOLD: :user_initiated_hold + + # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. + REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION: :real_time_payments_transfer_instruction + + # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object. + WIRE_TRANSFER_INSTRUCTION: :wire_transfer_instruction + + # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object. + INBOUND_WIRE_TRANSFER_REVERSAL: :inbound_wire_transfer_reversal + + # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object. + SWIFT_TRANSFER_INSTRUCTION: :swift_transfer_instruction + + # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object. + CARD_PUSH_TRANSFER_INSTRUCTION: :card_push_transfer_instruction + + # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object. + BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION: :blockchain_onramp_transfer_instruction + + # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object. + BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION: :blockchain_offramp_transfer_instruction + + # The Pending Transaction was made for an undocumented or deprecated reason. + OTHER: :other + + def self?.values: -> ::Array[Increase::Models::PendingTransaction::Source::category] + end + type account_transfer_instruction = { amount: Integer, @@ -1132,78 +1204,6 @@ module Increase def to_hash: -> { amount: Integer, transfer_id: String } end - type category = - :account_transfer_instruction - | :ach_transfer_instruction - | :card_authorization - | :check_deposit_instruction - | :check_transfer_instruction - | :fednow_transfer_instruction - | :inbound_funds_hold - | :user_initiated_hold - | :real_time_payments_transfer_instruction - | :wire_transfer_instruction - | :inbound_wire_transfer_reversal - | :swift_transfer_instruction - | :card_push_transfer_instruction - | :blockchain_onramp_transfer_instruction - | :blockchain_offramp_transfer_instruction - | :other - - module Category - extend Increase::Internal::Type::Enum - - # Account Transfer Instruction: details will be under the `account_transfer_instruction` object. - ACCOUNT_TRANSFER_INSTRUCTION: :account_transfer_instruction - - # ACH Transfer Instruction: details will be under the `ach_transfer_instruction` object. - ACH_TRANSFER_INSTRUCTION: :ach_transfer_instruction - - # Card Authorization: details will be under the `card_authorization` object. - CARD_AUTHORIZATION: :card_authorization - - # Check Deposit Instruction: details will be under the `check_deposit_instruction` object. - CHECK_DEPOSIT_INSTRUCTION: :check_deposit_instruction - - # Check Transfer Instruction: details will be under the `check_transfer_instruction` object. - CHECK_TRANSFER_INSTRUCTION: :check_transfer_instruction - - # FedNow Transfer Instruction: details will be under the `fednow_transfer_instruction` object. - FEDNOW_TRANSFER_INSTRUCTION: :fednow_transfer_instruction - - # Inbound Funds Hold: details will be under the `inbound_funds_hold` object. - INBOUND_FUNDS_HOLD: :inbound_funds_hold - - # User Initiated Hold: details will be under the `user_initiated_hold` object. - USER_INITIATED_HOLD: :user_initiated_hold - - # Real-Time Payments Transfer Instruction: details will be under the `real_time_payments_transfer_instruction` object. - REAL_TIME_PAYMENTS_TRANSFER_INSTRUCTION: :real_time_payments_transfer_instruction - - # Wire Transfer Instruction: details will be under the `wire_transfer_instruction` object. - WIRE_TRANSFER_INSTRUCTION: :wire_transfer_instruction - - # Inbound Wire Transfer Reversal: details will be under the `inbound_wire_transfer_reversal` object. - INBOUND_WIRE_TRANSFER_REVERSAL: :inbound_wire_transfer_reversal - - # Swift Transfer Instruction: details will be under the `swift_transfer_instruction` object. - SWIFT_TRANSFER_INSTRUCTION: :swift_transfer_instruction - - # Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object. - CARD_PUSH_TRANSFER_INSTRUCTION: :card_push_transfer_instruction - - # Blockchain On-Ramp Transfer Instruction: details will be under the `blockchain_onramp_transfer_instruction` object. - BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION: :blockchain_onramp_transfer_instruction - - # Blockchain Off-Ramp Transfer Instruction: details will be under the `blockchain_offramp_transfer_instruction` object. - BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION: :blockchain_offramp_transfer_instruction - - # The Pending Transaction was made for an undocumented or deprecated reason. - OTHER: :other - - def self?.values: -> ::Array[Increase::Models::PendingTransaction::Source::category] - end - type check_deposit_instruction = { amount: Integer, diff --git a/sig/increase/models/real_time_payments_transfer.rbs b/sig/increase/models/real_time_payments_transfer.rbs index 861938f5..3d0fcf1c 100644 --- a/sig/increase/models/real_time_payments_transfer.rbs +++ b/sig/increase/models/real_time_payments_transfer.rbs @@ -172,45 +172,35 @@ module Increase type created_by = { - api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey?, category: Increase::Models::RealTimePaymentsTransfer::CreatedBy::category, + api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey?, oauth_application: Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication?, user: Increase::RealTimePaymentsTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::RealTimePaymentsTransfer::CreatedBy::category + attr_accessor api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::RealTimePaymentsTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey?, category: Increase::Models::RealTimePaymentsTransfer::CreatedBy::category, - oauth_application: Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication?, - user: Increase::RealTimePaymentsTransfer::CreatedBy::User? + ?api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::RealTimePaymentsTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey?, category: Increase::Models::RealTimePaymentsTransfer::CreatedBy::category, + api_key: Increase::RealTimePaymentsTransfer::CreatedBy::APIKey?, oauth_application: Increase::RealTimePaymentsTransfer::CreatedBy::OAuthApplication?, user: Increase::RealTimePaymentsTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -228,6 +218,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::RealTimePaymentsTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/swift_transfer.rbs b/sig/increase/models/swift_transfer.rbs index 02193705..4359eaa6 100644 --- a/sig/increase/models/swift_transfer.rbs +++ b/sig/increase/models/swift_transfer.rbs @@ -123,45 +123,35 @@ module Increase type created_by = { - api_key: Increase::SwiftTransfer::CreatedBy::APIKey?, category: Increase::Models::SwiftTransfer::CreatedBy::category, + api_key: Increase::SwiftTransfer::CreatedBy::APIKey?, oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?, user: Increase::SwiftTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::SwiftTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::SwiftTransfer::CreatedBy::category + attr_accessor api_key: Increase::SwiftTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::SwiftTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::SwiftTransfer::CreatedBy::APIKey?, category: Increase::Models::SwiftTransfer::CreatedBy::category, - oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?, - user: Increase::SwiftTransfer::CreatedBy::User? + ?api_key: Increase::SwiftTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::SwiftTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::SwiftTransfer::CreatedBy::APIKey?, category: Increase::Models::SwiftTransfer::CreatedBy::category, + api_key: Increase::SwiftTransfer::CreatedBy::APIKey?, oauth_application: Increase::SwiftTransfer::CreatedBy::OAuthApplication?, user: Increase::SwiftTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -179,6 +169,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::SwiftTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index c1752c81..09d867f9 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -91,6 +91,7 @@ module Increase type source = { + category: Increase::Models::Transaction::Source::category, account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, @@ -107,7 +108,6 @@ module Increase card_revenue_payment: Increase::Transaction::Source::CardRevenuePayment?, card_settlement: Increase::Transaction::Source::CardSettlement?, cashback_payment: Increase::Transaction::Source::CashbackPayment?, - category: Increase::Models::Transaction::Source::category, check_deposit_acceptance: Increase::Transaction::Source::CheckDepositAcceptance?, check_deposit_return: Increase::Transaction::Source::CheckDepositReturn?, check_transfer_deposit: Increase::Transaction::Source::CheckTransferDeposit?, @@ -133,6 +133,8 @@ module Increase } class Source < Increase::Internal::Type::BaseModel + attr_accessor category: Increase::Models::Transaction::Source::category + attr_accessor account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment? attr_accessor account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention? @@ -165,8 +167,6 @@ module Increase attr_accessor cashback_payment: Increase::Transaction::Source::CashbackPayment? - attr_accessor category: Increase::Models::Transaction::Source::category - attr_accessor check_deposit_acceptance: Increase::Transaction::Source::CheckDepositAcceptance? attr_accessor check_deposit_return: Increase::Transaction::Source::CheckDepositReturn? @@ -212,48 +212,49 @@ module Increase attr_accessor wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention? def initialize: ( - account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, - account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, - ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, - ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, - ach_transfer_return: Increase::Transaction::Source::ACHTransferReturn?, - blockchain_offramp_transfer_settlement: Increase::Transaction::Source::BlockchainOfframpTransferSettlement?, - blockchain_onramp_transfer_intention: Increase::Transaction::Source::BlockchainOnrampTransferIntention?, - card_dispute_acceptance: Increase::Transaction::Source::CardDisputeAcceptance?, - card_dispute_financial: Increase::Transaction::Source::CardDisputeFinancial?, - card_dispute_loss: Increase::Transaction::Source::CardDisputeLoss?, - card_financial: Increase::Transaction::Source::CardFinancial?, - card_push_transfer_acceptance: Increase::Transaction::Source::CardPushTransferAcceptance?, - card_refund: Increase::Transaction::Source::CardRefund?, - card_revenue_payment: Increase::Transaction::Source::CardRevenuePayment?, - card_settlement: Increase::Transaction::Source::CardSettlement?, - cashback_payment: Increase::Transaction::Source::CashbackPayment?, category: Increase::Models::Transaction::Source::category, - check_deposit_acceptance: Increase::Transaction::Source::CheckDepositAcceptance?, - check_deposit_return: Increase::Transaction::Source::CheckDepositReturn?, - check_transfer_deposit: Increase::Transaction::Source::CheckTransferDeposit?, - fednow_transfer_acknowledgement: Increase::Transaction::Source::FednowTransferAcknowledgement?, - fee_payment: Increase::Transaction::Source::FeePayment?, - inbound_ach_transfer: Increase::Transaction::Source::InboundACHTransfer?, - inbound_ach_transfer_return_intention: Increase::Transaction::Source::InboundACHTransferReturnIntention?, - inbound_check_adjustment: Increase::Transaction::Source::InboundCheckAdjustment?, - inbound_check_deposit_return_intention: Increase::Transaction::Source::InboundCheckDepositReturnIntention?, - inbound_fednow_transfer_confirmation: Increase::Transaction::Source::InboundFednowTransferConfirmation?, - inbound_real_time_payments_transfer_confirmation: Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation?, - inbound_wire_reversal: Increase::Transaction::Source::InboundWireReversal?, - inbound_wire_transfer: Increase::Transaction::Source::InboundWireTransfer?, - inbound_wire_transfer_reversal: Increase::Transaction::Source::InboundWireTransferReversal?, - interest_payment: Increase::Transaction::Source::InterestPayment?, - internal_source: Increase::Transaction::Source::InternalSource?, - other: Increase::Transaction::Source::Other?, - real_time_payments_transfer_acknowledgement: Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement?, - sample_funds: Increase::Transaction::Source::SampleFunds?, - swift_transfer_intention: Increase::Transaction::Source::SwiftTransferIntention?, - swift_transfer_return: Increase::Transaction::Source::SwiftTransferReturn?, - wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention? + ?account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, + ?account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, + ?ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, + ?ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, + ?ach_transfer_return: Increase::Transaction::Source::ACHTransferReturn?, + ?blockchain_offramp_transfer_settlement: Increase::Transaction::Source::BlockchainOfframpTransferSettlement?, + ?blockchain_onramp_transfer_intention: Increase::Transaction::Source::BlockchainOnrampTransferIntention?, + ?card_dispute_acceptance: Increase::Transaction::Source::CardDisputeAcceptance?, + ?card_dispute_financial: Increase::Transaction::Source::CardDisputeFinancial?, + ?card_dispute_loss: Increase::Transaction::Source::CardDisputeLoss?, + ?card_financial: Increase::Transaction::Source::CardFinancial?, + ?card_push_transfer_acceptance: Increase::Transaction::Source::CardPushTransferAcceptance?, + ?card_refund: Increase::Transaction::Source::CardRefund?, + ?card_revenue_payment: Increase::Transaction::Source::CardRevenuePayment?, + ?card_settlement: Increase::Transaction::Source::CardSettlement?, + ?cashback_payment: Increase::Transaction::Source::CashbackPayment?, + ?check_deposit_acceptance: Increase::Transaction::Source::CheckDepositAcceptance?, + ?check_deposit_return: Increase::Transaction::Source::CheckDepositReturn?, + ?check_transfer_deposit: Increase::Transaction::Source::CheckTransferDeposit?, + ?fednow_transfer_acknowledgement: Increase::Transaction::Source::FednowTransferAcknowledgement?, + ?fee_payment: Increase::Transaction::Source::FeePayment?, + ?inbound_ach_transfer: Increase::Transaction::Source::InboundACHTransfer?, + ?inbound_ach_transfer_return_intention: Increase::Transaction::Source::InboundACHTransferReturnIntention?, + ?inbound_check_adjustment: Increase::Transaction::Source::InboundCheckAdjustment?, + ?inbound_check_deposit_return_intention: Increase::Transaction::Source::InboundCheckDepositReturnIntention?, + ?inbound_fednow_transfer_confirmation: Increase::Transaction::Source::InboundFednowTransferConfirmation?, + ?inbound_real_time_payments_transfer_confirmation: Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation?, + ?inbound_wire_reversal: Increase::Transaction::Source::InboundWireReversal?, + ?inbound_wire_transfer: Increase::Transaction::Source::InboundWireTransfer?, + ?inbound_wire_transfer_reversal: Increase::Transaction::Source::InboundWireTransferReversal?, + ?interest_payment: Increase::Transaction::Source::InterestPayment?, + ?internal_source: Increase::Transaction::Source::InternalSource?, + ?other: Increase::Transaction::Source::Other?, + ?real_time_payments_transfer_acknowledgement: Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement?, + ?sample_funds: Increase::Transaction::Source::SampleFunds?, + ?swift_transfer_intention: Increase::Transaction::Source::SwiftTransferIntention?, + ?swift_transfer_return: Increase::Transaction::Source::SwiftTransferReturn?, + ?wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention? ) -> void def to_hash: -> { + category: Increase::Models::Transaction::Source::category, account_revenue_payment: Increase::Transaction::Source::AccountRevenuePayment?, account_transfer_intention: Increase::Transaction::Source::AccountTransferIntention?, ach_transfer_intention: Increase::Transaction::Source::ACHTransferIntention?, @@ -270,7 +271,6 @@ module Increase card_revenue_payment: Increase::Transaction::Source::CardRevenuePayment?, card_settlement: Increase::Transaction::Source::CardSettlement?, cashback_payment: Increase::Transaction::Source::CashbackPayment?, - category: Increase::Models::Transaction::Source::category, check_deposit_acceptance: Increase::Transaction::Source::CheckDepositAcceptance?, check_deposit_return: Increase::Transaction::Source::CheckDepositReturn?, check_transfer_deposit: Increase::Transaction::Source::CheckTransferDeposit?, @@ -295,6 +295,166 @@ module Increase wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention? } + type category = + :account_transfer_intention + | :ach_transfer_intention + | :ach_transfer_rejection + | :ach_transfer_return + | :cashback_payment + | :card_dispute_acceptance + | :card_dispute_financial + | :card_dispute_loss + | :card_refund + | :card_settlement + | :card_financial + | :card_revenue_payment + | :check_deposit_acceptance + | :check_deposit_return + | :fednow_transfer_acknowledgement + | :check_transfer_deposit + | :fee_payment + | :inbound_ach_transfer + | :inbound_ach_transfer_return_intention + | :inbound_check_deposit_return_intention + | :inbound_check_adjustment + | :inbound_fednow_transfer_confirmation + | :inbound_real_time_payments_transfer_confirmation + | :inbound_wire_reversal + | :inbound_wire_transfer + | :inbound_wire_transfer_reversal + | :interest_payment + | :internal_source + | :real_time_payments_transfer_acknowledgement + | :sample_funds + | :wire_transfer_intention + | :swift_transfer_intention + | :swift_transfer_return + | :card_push_transfer_acceptance + | :account_revenue_payment + | :blockchain_onramp_transfer_intention + | :blockchain_offramp_transfer_settlement + | :other + + module Category + extend Increase::Internal::Type::Enum + + # Account Transfer Intention: details will be under the `account_transfer_intention` object. + ACCOUNT_TRANSFER_INTENTION: :account_transfer_intention + + # ACH Transfer Intention: details will be under the `ach_transfer_intention` object. + ACH_TRANSFER_INTENTION: :ach_transfer_intention + + # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object. + ACH_TRANSFER_REJECTION: :ach_transfer_rejection + + # ACH Transfer Return: details will be under the `ach_transfer_return` object. + ACH_TRANSFER_RETURN: :ach_transfer_return + + # Cashback Payment: details will be under the `cashback_payment` object. + CASHBACK_PAYMENT: :cashback_payment + + # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. + CARD_DISPUTE_ACCEPTANCE: :card_dispute_acceptance + + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL: :card_dispute_financial + + # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object. + CARD_DISPUTE_LOSS: :card_dispute_loss + + # Card Refund: details will be under the `card_refund` object. + CARD_REFUND: :card_refund + + # Card Settlement: details will be under the `card_settlement` object. + CARD_SETTLEMENT: :card_settlement + + # Card Financial: details will be under the `card_financial` object. + CARD_FINANCIAL: :card_financial + + # Card Revenue Payment: details will be under the `card_revenue_payment` object. + CARD_REVENUE_PAYMENT: :card_revenue_payment + + # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object. + CHECK_DEPOSIT_ACCEPTANCE: :check_deposit_acceptance + + # Check Deposit Return: details will be under the `check_deposit_return` object. + CHECK_DEPOSIT_RETURN: :check_deposit_return + + # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object. + FEDNOW_TRANSFER_ACKNOWLEDGEMENT: :fednow_transfer_acknowledgement + + # Check Transfer Deposit: details will be under the `check_transfer_deposit` object. + CHECK_TRANSFER_DEPOSIT: :check_transfer_deposit + + # Fee Payment: details will be under the `fee_payment` object. + FEE_PAYMENT: :fee_payment + + # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object. + INBOUND_ACH_TRANSFER: :inbound_ach_transfer + + # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object. + INBOUND_ACH_TRANSFER_RETURN_INTENTION: :inbound_ach_transfer_return_intention + + # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object. + INBOUND_CHECK_DEPOSIT_RETURN_INTENTION: :inbound_check_deposit_return_intention + + # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object. + INBOUND_CHECK_ADJUSTMENT: :inbound_check_adjustment + + # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object. + INBOUND_FEDNOW_TRANSFER_CONFIRMATION: :inbound_fednow_transfer_confirmation + + # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object. + INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION: :inbound_real_time_payments_transfer_confirmation + + # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object. + INBOUND_WIRE_REVERSAL: :inbound_wire_reversal + + # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object. + INBOUND_WIRE_TRANSFER: :inbound_wire_transfer + + # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object. + INBOUND_WIRE_TRANSFER_REVERSAL: :inbound_wire_transfer_reversal + + # Interest Payment: details will be under the `interest_payment` object. + INTEREST_PAYMENT: :interest_payment + + # Internal Source: details will be under the `internal_source` object. + INTERNAL_SOURCE: :internal_source + + # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object. + REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT: :real_time_payments_transfer_acknowledgement + + # Sample Funds: details will be under the `sample_funds` object. + SAMPLE_FUNDS: :sample_funds + + # Wire Transfer Intention: details will be under the `wire_transfer_intention` object. + WIRE_TRANSFER_INTENTION: :wire_transfer_intention + + # Swift Transfer Intention: details will be under the `swift_transfer_intention` object. + SWIFT_TRANSFER_INTENTION: :swift_transfer_intention + + # Swift Transfer Return: details will be under the `swift_transfer_return` object. + SWIFT_TRANSFER_RETURN: :swift_transfer_return + + # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. + CARD_PUSH_TRANSFER_ACCEPTANCE: :card_push_transfer_acceptance + + # Account Revenue Payment: details will be under the `account_revenue_payment` object. + ACCOUNT_REVENUE_PAYMENT: :account_revenue_payment + + # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object. + BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION: :blockchain_onramp_transfer_intention + + # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object. + BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT: :blockchain_offramp_transfer_settlement + + # The Transaction was made for an undocumented or deprecated reason. + OTHER: :other + + def self?.values: -> ::Array[Increase::Models::Transaction::Source::category] + end + type account_revenue_payment = { accrued_on_account_id: String, @@ -3876,166 +4036,6 @@ module Increase end end - type category = - :account_transfer_intention - | :ach_transfer_intention - | :ach_transfer_rejection - | :ach_transfer_return - | :cashback_payment - | :card_dispute_acceptance - | :card_dispute_financial - | :card_dispute_loss - | :card_refund - | :card_settlement - | :card_financial - | :card_revenue_payment - | :check_deposit_acceptance - | :check_deposit_return - | :fednow_transfer_acknowledgement - | :check_transfer_deposit - | :fee_payment - | :inbound_ach_transfer - | :inbound_ach_transfer_return_intention - | :inbound_check_deposit_return_intention - | :inbound_check_adjustment - | :inbound_fednow_transfer_confirmation - | :inbound_real_time_payments_transfer_confirmation - | :inbound_wire_reversal - | :inbound_wire_transfer - | :inbound_wire_transfer_reversal - | :interest_payment - | :internal_source - | :real_time_payments_transfer_acknowledgement - | :sample_funds - | :wire_transfer_intention - | :swift_transfer_intention - | :swift_transfer_return - | :card_push_transfer_acceptance - | :account_revenue_payment - | :blockchain_onramp_transfer_intention - | :blockchain_offramp_transfer_settlement - | :other - - module Category - extend Increase::Internal::Type::Enum - - # Account Transfer Intention: details will be under the `account_transfer_intention` object. - ACCOUNT_TRANSFER_INTENTION: :account_transfer_intention - - # ACH Transfer Intention: details will be under the `ach_transfer_intention` object. - ACH_TRANSFER_INTENTION: :ach_transfer_intention - - # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object. - ACH_TRANSFER_REJECTION: :ach_transfer_rejection - - # ACH Transfer Return: details will be under the `ach_transfer_return` object. - ACH_TRANSFER_RETURN: :ach_transfer_return - - # Cashback Payment: details will be under the `cashback_payment` object. - CASHBACK_PAYMENT: :cashback_payment - - # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. - CARD_DISPUTE_ACCEPTANCE: :card_dispute_acceptance - - # Card Dispute Financial: details will be under the `card_dispute_financial` object. - CARD_DISPUTE_FINANCIAL: :card_dispute_financial - - # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object. - CARD_DISPUTE_LOSS: :card_dispute_loss - - # Card Refund: details will be under the `card_refund` object. - CARD_REFUND: :card_refund - - # Card Settlement: details will be under the `card_settlement` object. - CARD_SETTLEMENT: :card_settlement - - # Card Financial: details will be under the `card_financial` object. - CARD_FINANCIAL: :card_financial - - # Card Revenue Payment: details will be under the `card_revenue_payment` object. - CARD_REVENUE_PAYMENT: :card_revenue_payment - - # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object. - CHECK_DEPOSIT_ACCEPTANCE: :check_deposit_acceptance - - # Check Deposit Return: details will be under the `check_deposit_return` object. - CHECK_DEPOSIT_RETURN: :check_deposit_return - - # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object. - FEDNOW_TRANSFER_ACKNOWLEDGEMENT: :fednow_transfer_acknowledgement - - # Check Transfer Deposit: details will be under the `check_transfer_deposit` object. - CHECK_TRANSFER_DEPOSIT: :check_transfer_deposit - - # Fee Payment: details will be under the `fee_payment` object. - FEE_PAYMENT: :fee_payment - - # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object. - INBOUND_ACH_TRANSFER: :inbound_ach_transfer - - # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object. - INBOUND_ACH_TRANSFER_RETURN_INTENTION: :inbound_ach_transfer_return_intention - - # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object. - INBOUND_CHECK_DEPOSIT_RETURN_INTENTION: :inbound_check_deposit_return_intention - - # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object. - INBOUND_CHECK_ADJUSTMENT: :inbound_check_adjustment - - # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object. - INBOUND_FEDNOW_TRANSFER_CONFIRMATION: :inbound_fednow_transfer_confirmation - - # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object. - INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION: :inbound_real_time_payments_transfer_confirmation - - # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object. - INBOUND_WIRE_REVERSAL: :inbound_wire_reversal - - # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object. - INBOUND_WIRE_TRANSFER: :inbound_wire_transfer - - # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object. - INBOUND_WIRE_TRANSFER_REVERSAL: :inbound_wire_transfer_reversal - - # Interest Payment: details will be under the `interest_payment` object. - INTEREST_PAYMENT: :interest_payment - - # Internal Source: details will be under the `internal_source` object. - INTERNAL_SOURCE: :internal_source - - # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object. - REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT: :real_time_payments_transfer_acknowledgement - - # Sample Funds: details will be under the `sample_funds` object. - SAMPLE_FUNDS: :sample_funds - - # Wire Transfer Intention: details will be under the `wire_transfer_intention` object. - WIRE_TRANSFER_INTENTION: :wire_transfer_intention - - # Swift Transfer Intention: details will be under the `swift_transfer_intention` object. - SWIFT_TRANSFER_INTENTION: :swift_transfer_intention - - # Swift Transfer Return: details will be under the `swift_transfer_return` object. - SWIFT_TRANSFER_RETURN: :swift_transfer_return - - # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object. - CARD_PUSH_TRANSFER_ACCEPTANCE: :card_push_transfer_acceptance - - # Account Revenue Payment: details will be under the `account_revenue_payment` object. - ACCOUNT_REVENUE_PAYMENT: :account_revenue_payment - - # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object. - BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION: :blockchain_onramp_transfer_intention - - # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object. - BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT: :blockchain_offramp_transfer_settlement - - # The Transaction was made for an undocumented or deprecated reason. - OTHER: :other - - def self?.values: -> ::Array[Increase::Models::Transaction::Source::category] - end - type check_deposit_acceptance = { account_number: String, diff --git a/sig/increase/models/wire_transfer.rbs b/sig/increase/models/wire_transfer.rbs index 96789f88..48491a61 100644 --- a/sig/increase/models/wire_transfer.rbs +++ b/sig/increase/models/wire_transfer.rbs @@ -157,45 +157,35 @@ module Increase type created_by = { - api_key: Increase::WireTransfer::CreatedBy::APIKey?, category: Increase::Models::WireTransfer::CreatedBy::category, + api_key: Increase::WireTransfer::CreatedBy::APIKey?, oauth_application: Increase::WireTransfer::CreatedBy::OAuthApplication?, user: Increase::WireTransfer::CreatedBy::User? } class CreatedBy < Increase::Internal::Type::BaseModel - attr_accessor api_key: Increase::WireTransfer::CreatedBy::APIKey? - attr_accessor category: Increase::Models::WireTransfer::CreatedBy::category + attr_accessor api_key: Increase::WireTransfer::CreatedBy::APIKey? + attr_accessor oauth_application: Increase::WireTransfer::CreatedBy::OAuthApplication? attr_accessor user: Increase::WireTransfer::CreatedBy::User? def initialize: ( - api_key: Increase::WireTransfer::CreatedBy::APIKey?, category: Increase::Models::WireTransfer::CreatedBy::category, - oauth_application: Increase::WireTransfer::CreatedBy::OAuthApplication?, - user: Increase::WireTransfer::CreatedBy::User? + ?api_key: Increase::WireTransfer::CreatedBy::APIKey?, + ?oauth_application: Increase::WireTransfer::CreatedBy::OAuthApplication?, + ?user: Increase::WireTransfer::CreatedBy::User? ) -> void def to_hash: -> { - api_key: Increase::WireTransfer::CreatedBy::APIKey?, category: Increase::Models::WireTransfer::CreatedBy::category, + api_key: Increase::WireTransfer::CreatedBy::APIKey?, oauth_application: Increase::WireTransfer::CreatedBy::OAuthApplication?, user: Increase::WireTransfer::CreatedBy::User? } - type api_key = { description: String? } - - class APIKey < Increase::Internal::Type::BaseModel - attr_accessor description: String? - - def initialize: (description: String?) -> void - - def to_hash: -> { description: String? } - end - type category = :api_key | :oauth_application | :user module Category @@ -213,6 +203,16 @@ module Increase def self?.values: -> ::Array[Increase::Models::WireTransfer::CreatedBy::category] end + type api_key = { description: String? } + + class APIKey < Increase::Internal::Type::BaseModel + attr_accessor description: String? + + def initialize: (description: String?) -> void + + def to_hash: -> { description: String? } + end + type oauth_application = { name: String } class OAuthApplication < Increase::Internal::Type::BaseModel @@ -389,8 +389,8 @@ module Increase def initialize: ( category: Increase::Models::WireTransfer::Remittance::category, - tax: Increase::WireTransfer::Remittance::Tax?, - unstructured: Increase::WireTransfer::Remittance::Unstructured? + ?tax: Increase::WireTransfer::Remittance::Tax?, + ?unstructured: Increase::WireTransfer::Remittance::Unstructured? ) -> void def to_hash: -> {