Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jun 12, 2024
1 parent a456788 commit 318abeb
Show file tree
Hide file tree
Showing 33 changed files with 488 additions and 805 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 187
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase-313b105e56a987f7cec2472124dc400ae16436b51d68de6041d298835472c474.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase-348f1b0fd9d37f676059725d2ac7535252cec13d422f775f74ccf2f80b0d0930.yml
15 changes: 15 additions & 0 deletions lib/increase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
require "increase/pooled_net_requester"
require "increase/util"
require "increase/version"
require "increase/models/unnamed_schema_ref_14b420c48ea6aff1ebb11188af13903f"
require "increase/models/unnamed_schema_ref_170d970a8beefa16d8d0cb536d8a6393"
require "increase/models/unnamed_schema_ref_2aa12ad8358299c478e4658f636c9732"
require "increase/models/unnamed_schema_ref_2eb27343161bcb1aa714bd76fe027d77"
require "increase/models/unnamed_schema_ref_5af1efe3d974b3c8bf884988b11ffc95"
require "increase/models/unnamed_schema_ref_6ff8f32a8ee62a70f72bb8160f984371"
require "increase/models/unnamed_schema_ref_bd145cfbb61bff565c9c591f45b4b8fa"
require "increase/models/unnamed_schema_ref_d68ed2b3782b1efe94323ee7bcde82cc"
require "increase/models/account"
require "increase/models/balance_lookup"
require "increase/models/account_number"
Expand All @@ -32,6 +40,7 @@
require "increase/models/card_purchase_supplement"
require "increase/models/external_account"
require "increase/models/export"
require "increase/models/unnamed_schema_ref_57b69d41260167c23101790623b96103"
require "increase/models/digital_wallet_token"
require "increase/models/transaction"
require "increase/models/pending_transaction"
Expand All @@ -44,6 +53,12 @@
require "increase/models/wire_transfer"
require "increase/models/check_transfer"
require "increase/models/entity"
require "increase/models/unnamed_schema_ref_815ce0ce7770f278a32502e740610ade"
require "increase/models/unnamed_schema_ref_8277a5466fdc72e318924f0d9e546c99"
require "increase/models/unnamed_schema_ref_82face1aab784473d47c1f44bfd0d0d5"
require "increase/models/unnamed_schema_ref_85d9b6e2f6391f21b5ad0d89a833735d"
require "increase/models/unnamed_schema_ref_b203e0722790b1a1f72d433b7497494b"
require "increase/models/unnamed_schema_ref_d69f2dff7f6a581746aa74328e25d45d"
require "increase/models/supplemental_document"
require "increase/models/inbound_ach_transfer"
require "increase/models/inbound_wire_drawdown_request"
Expand Down
65 changes: 10 additions & 55 deletions lib/increase/models/account_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ class AccountTransfer < BaseModel

# @!attribute [rw] approval
# If your account requires approvals for transfers and the transfer was approved, this will contain details of the approval.
# @return [Increase::Models::AccountTransfer::Approval]
required :approval, -> { Increase::Models::AccountTransfer::Approval }
# @return [Increase::Models::UnnamedSchemaRefD68ed2b3782b1efe94323ee7bcde82cc]
required :approval, -> { Increase::Models::UnnamedSchemaRefD68ed2b3782b1efe94323ee7bcde82cc }

# @!attribute [rw] cancellation
# If your account requires approvals for transfers and the transfer was not approved, this will contain details of the cancellation.
# @return [Increase::Models::AccountTransfer::Cancellation]
required :cancellation, -> { Increase::Models::AccountTransfer::Cancellation }
# @return [Increase::Models::UnnamedSchemaRef2eb27343161bcb1aa714bd76fe027d77]
required :cancellation, -> { Increase::Models::UnnamedSchemaRef2eb27343161bcb1aa714bd76fe027d77 }

# @!attribute [rw] created_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was created.
Expand Down Expand Up @@ -88,35 +88,11 @@ class AccountTransfer < BaseModel
# @return [Symbol]
required :type, Increase::Enum.new(:account_transfer)

class Approval < BaseModel
# @!attribute [rw] approved_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was approved.
# @return [String]
required :approved_at, String

# @!attribute [rw] approved_by
# If the Transfer was approved by a user in the dashboard, the email address of that user.
# @return [String]
required :approved_by, String
end

class Cancellation < BaseModel
# @!attribute [rw] canceled_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the Transfer was canceled.
# @return [String]
required :canceled_at, String

# @!attribute [rw] canceled_by
# If the Transfer was canceled by a user in the dashboard, the email address of that user.
# @return [String]
required :canceled_by, String
end

class CreatedBy < BaseModel
# @!attribute [rw] api_key
# If present, details about the API key that created the transfer.
# @return [Increase::Models::AccountTransfer::CreatedBy::APIKey]
required :api_key, -> { Increase::Models::AccountTransfer::CreatedBy::APIKey }
# @return [Increase::Models::UnnamedSchemaRef6ff8f32a8ee62a70f72bb8160f984371]
required :api_key, -> { Increase::Models::UnnamedSchemaRef6ff8f32a8ee62a70f72bb8160f984371 }

# @!attribute [rw] category
# The type of object that created this transfer.
Expand All @@ -125,34 +101,13 @@ class CreatedBy < BaseModel

# @!attribute [rw] oauth_application
# If present, details about the OAuth Application that created the transfer.
# @return [Increase::Models::AccountTransfer::CreatedBy::OAuthApplication]
required :oauth_application, -> { Increase::Models::AccountTransfer::CreatedBy::OAuthApplication }
# @return [Increase::Models::UnnamedSchemaRef2aa12ad8358299c478e4658f636c9732]
required :oauth_application, -> { Increase::Models::UnnamedSchemaRef2aa12ad8358299c478e4658f636c9732 }

# @!attribute [rw] user
# If present, details about the User that created the transfer.
# @return [Increase::Models::AccountTransfer::CreatedBy::User]
required :user, -> { Increase::Models::AccountTransfer::CreatedBy::User }

class APIKey < BaseModel
# @!attribute [rw] description
# The description set for the API key when it was created.
# @return [String]
required :description, String
end

class OAuthApplication < BaseModel
# @!attribute [rw] name_
# The name of the OAuth Application.
# @return [String]
required :name_, String
end

class User < BaseModel
# @!attribute [rw] email
# The email address of the User.
# @return [String]
required :email, String
end
# @return [Increase::Models::UnnamedSchemaRef5af1efe3d974b3c8bf884988b11ffc95]
required :user, -> { Increase::Models::UnnamedSchemaRef5af1efe3d974b3c8bf884988b11ffc95 }
end
end
end
Expand Down
76 changes: 12 additions & 64 deletions lib/increase/models/ach_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class ACHTransfer < BaseModel

# @!attribute [rw] approval
# If your account requires approvals for transfers and the transfer was approved, this will contain details of the approval.
# @return [Increase::Models::ACHTransfer::Approval]
required :approval, -> { Increase::Models::ACHTransfer::Approval }
# @return [Increase::Models::UnnamedSchemaRefD68ed2b3782b1efe94323ee7bcde82cc]
required :approval, -> { Increase::Models::UnnamedSchemaRefD68ed2b3782b1efe94323ee7bcde82cc }

# @!attribute [rw] cancellation
# If your account requires approvals for transfers and the transfer was not approved, this will contain details of the cancellation.
# @return [Increase::Models::ACHTransfer::Cancellation]
required :cancellation, -> { Increase::Models::ACHTransfer::Cancellation }
# @return [Increase::Models::UnnamedSchemaRef2eb27343161bcb1aa714bd76fe027d77]
required :cancellation, -> { Increase::Models::UnnamedSchemaRef2eb27343161bcb1aa714bd76fe027d77 }

# @!attribute [rw] company_descriptive_date
# The description of the date of the transfer.
Expand Down Expand Up @@ -212,20 +212,13 @@ class Addenda < BaseModel
class Freeform < BaseModel
# @!attribute [rw] entries
# Each entry represents an addendum sent with the transfer.
# @return [Array<Increase::Models::ACHTransfer::Addenda::Freeform::Entry>]
# @return [Array<Increase::Models::UnnamedSchemaRef14b420c48ea6aff1ebb11188af13903f>]
required :entries,
Increase::ArrayOf.new(
lambda {
Increase::Models::ACHTransfer::Addenda::Freeform::Entry
Increase::Models::UnnamedSchemaRef14b420c48ea6aff1ebb11188af13903f
}
)

class Entry < BaseModel
# @!attribute [rw] payment_related_information
# The payment related information passed in the addendum.
# @return [String]
required :payment_related_information, String
end
end

class PaymentOrderRemittanceAdvice < BaseModel
Expand Down Expand Up @@ -253,35 +246,11 @@ class Invoice < BaseModel
end
end

class Approval < BaseModel
# @!attribute [rw] approved_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was approved.
# @return [String]
required :approved_at, String

# @!attribute [rw] approved_by
# If the Transfer was approved by a user in the dashboard, the email address of that user.
# @return [String]
required :approved_by, String
end

class Cancellation < BaseModel
# @!attribute [rw] canceled_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the Transfer was canceled.
# @return [String]
required :canceled_at, String

# @!attribute [rw] canceled_by
# If the Transfer was canceled by a user in the dashboard, the email address of that user.
# @return [String]
required :canceled_by, String
end

class CreatedBy < BaseModel
# @!attribute [rw] api_key
# If present, details about the API key that created the transfer.
# @return [Increase::Models::ACHTransfer::CreatedBy::APIKey]
required :api_key, -> { Increase::Models::ACHTransfer::CreatedBy::APIKey }
# @return [Increase::Models::UnnamedSchemaRef6ff8f32a8ee62a70f72bb8160f984371]
required :api_key, -> { Increase::Models::UnnamedSchemaRef6ff8f32a8ee62a70f72bb8160f984371 }

# @!attribute [rw] category
# The type of object that created this transfer.
Expand All @@ -290,34 +259,13 @@ class CreatedBy < BaseModel

# @!attribute [rw] oauth_application
# If present, details about the OAuth Application that created the transfer.
# @return [Increase::Models::ACHTransfer::CreatedBy::OAuthApplication]
required :oauth_application, -> { Increase::Models::ACHTransfer::CreatedBy::OAuthApplication }
# @return [Increase::Models::UnnamedSchemaRef2aa12ad8358299c478e4658f636c9732]
required :oauth_application, -> { Increase::Models::UnnamedSchemaRef2aa12ad8358299c478e4658f636c9732 }

# @!attribute [rw] user
# If present, details about the User that created the transfer.
# @return [Increase::Models::ACHTransfer::CreatedBy::User]
required :user, -> { Increase::Models::ACHTransfer::CreatedBy::User }

class APIKey < BaseModel
# @!attribute [rw] description
# The description set for the API key when it was created.
# @return [String]
required :description, String
end

class OAuthApplication < BaseModel
# @!attribute [rw] name_
# The name of the OAuth Application.
# @return [String]
required :name_, String
end

class User < BaseModel
# @!attribute [rw] email
# The email address of the User.
# @return [String]
required :email, String
end
# @return [Increase::Models::UnnamedSchemaRef5af1efe3d974b3c8bf884988b11ffc95]
required :user, -> { Increase::Models::UnnamedSchemaRef5af1efe3d974b3c8bf884988b11ffc95 }
end

class NotificationsOfChange < BaseModel
Expand Down
46 changes: 8 additions & 38 deletions lib/increase/models/card_authorization_simulation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ class CardDecline < BaseModel

# @!attribute [rw] network_identifiers
# Network-specific identifiers for a specific request or transaction.
# @return [Increase::Models::CardAuthorizationSimulation::DeclinedTransaction::Source::CardDecline::NetworkIdentifiers]
# @return [Increase::Models::UnnamedSchemaRef170d970a8beefa16d8d0cb536d8a6393]
required :network_identifiers,
-> { Increase::Models::CardAuthorizationSimulation::DeclinedTransaction::Source::CardDecline::NetworkIdentifiers }
lambda {
Increase::Models::UnnamedSchemaRef170d970a8beefa16d8d0cb536d8a6393
}

# @!attribute [rw] network_risk_score
# The risk score generated by the card network. For Visa this is the Visa Advanced Authorization risk score, from 0 to 99, where 99 is the riskiest.
Expand Down Expand Up @@ -393,23 +395,6 @@ class Visa < BaseModel
end
end

class NetworkIdentifiers < BaseModel
# @!attribute [rw] retrieval_reference_number
# A life-cycle identifier used across e.g., an authorization and a reversal. Expected to be unique per acquirer within a window of time. For some card networks the retrieval reference number includes the trace counter.
# @return [String]
required :retrieval_reference_number, String

# @!attribute [rw] trace_number
# A counter used to verify an individual authorization. Expected to be unique per acquirer within a window of time.
# @return [String]
required :trace_number, String

# @!attribute [rw] transaction_id
# A globally unique transaction identifier provided by the card network, used across multiple life-cycle requests.
# @return [String]
required :transaction_id, String
end

class Verification < BaseModel
# @!attribute [rw] card_verification_code
# Fields related to verification of the Card Verification Code, a 3-digit code on the back of the card.
Expand Down Expand Up @@ -1075,9 +1060,11 @@ class CardAuthorization < BaseModel

# @!attribute [rw] network_identifiers
# Network-specific identifiers for a specific request or transaction.
# @return [Increase::Models::CardAuthorizationSimulation::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers]
# @return [Increase::Models::UnnamedSchemaRef170d970a8beefa16d8d0cb536d8a6393]
required :network_identifiers,
-> { Increase::Models::CardAuthorizationSimulation::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers }
lambda {
Increase::Models::UnnamedSchemaRef170d970a8beefa16d8d0cb536d8a6393
}

# @!attribute [rw] network_risk_score
# The risk score generated by the card network. For Visa this is the Visa Advanced Authorization risk score, from 0 to 99, where 99 is the riskiest.
Expand Down Expand Up @@ -1180,23 +1167,6 @@ class Visa < BaseModel
end
end

class NetworkIdentifiers < BaseModel
# @!attribute [rw] retrieval_reference_number
# A life-cycle identifier used across e.g., an authorization and a reversal. Expected to be unique per acquirer within a window of time. For some card networks the retrieval reference number includes the trace counter.
# @return [String]
required :retrieval_reference_number, String

# @!attribute [rw] trace_number
# A counter used to verify an individual authorization. Expected to be unique per acquirer within a window of time.
# @return [String]
required :trace_number, String

# @!attribute [rw] transaction_id
# A globally unique transaction identifier provided by the card network, used across multiple life-cycle requests.
# @return [String]
required :transaction_id, String
end

class Verification < BaseModel
# @!attribute [rw] card_verification_code
# Fields related to verification of the Card Verification Code, a 3-digit code on the back of the card.
Expand Down
Loading

0 comments on commit 318abeb

Please sign in to comment.