Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: d691eb2845a0108278fe81faa111d29f
openapi_spec_hash: 85e424bee4fe449466ceada88117613e
config_hash: 1ca082e374ef7000e2a5971e8da740e0
30 changes: 15 additions & 15 deletions lib/increase/models/account_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,28 @@ class Loan < Increase::Internal::Type::BaseModel
# The number of days after the statement date that the Account can be past due
# before being considered delinquent.
#
# @return [Integer]
required :grace_period_days, Integer
# @return [Integer, nil]
optional :grace_period_days, Integer

# @!attribute maturity_date
# The date on which the loan matures.
#
# @return [Date, nil]
optional :maturity_date, Date

# @!attribute statement_day_of_month
# The day of the month on which the loan statement is generated.
#
# @return [Integer]
required :statement_day_of_month, Integer
# @return [Integer, nil]
optional :statement_day_of_month, Integer

# @!attribute statement_payment_type
# The type of statement payment for the account.
#
# @return [Symbol, Increase::Models::AccountCreateParams::Loan::StatementPaymentType]
required :statement_payment_type, enum: -> { Increase::AccountCreateParams::Loan::StatementPaymentType }

# @!attribute maturity_date
# The date on which the loan matures.
#
# @return [Date, nil]
optional :maturity_date, Date
# @return [Symbol, Increase::Models::AccountCreateParams::Loan::StatementPaymentType, nil]
optional :statement_payment_type, enum: -> { Increase::AccountCreateParams::Loan::StatementPaymentType }

# @!method initialize(credit_limit:, grace_period_days:, statement_day_of_month:, statement_payment_type:, maturity_date: nil)
# @!method initialize(credit_limit:, grace_period_days: nil, maturity_date: nil, statement_day_of_month: nil, statement_payment_type: nil)
# The loan details for the account.
#
# @param credit_limit [Integer] The maximum amount of money that can be drawn from the Account.
Expand All @@ -122,12 +122,12 @@ class Loan < Increase::Internal::Type::BaseModel
# The number of days after the statement date that the Account can be past due
# before being considered delinquent.
#
# @param maturity_date [Date] The date on which the loan matures.
#
# @param statement_day_of_month [Integer] The day of the month on which the loan statement is generated.
#
# @param statement_payment_type [Symbol, Increase::Models::AccountCreateParams::Loan::StatementPaymentType]
# The type of statement payment for the account.
#
# @param maturity_date [Date] The date on which the loan matures.

# The type of statement payment for the account.
#
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ module Category
# Occurs whenever a Physical Check is updated.
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED = :"plaid_processor_token.created"

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED = :"checkbook.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ module In
# Occurs whenever a Physical Check is updated.
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED = :"plaid_processor_token.created"

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED = :"checkbook.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ module EventCategory
# Occurs whenever a Physical Check is updated.
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED = :"plaid_processor_token.created"

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED = :"checkbook.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_subscription_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ module EventCategory
# Occurs whenever a Physical Check is updated.
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED = :"plaid_processor_token.created"

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED = :"checkbook.created"

Expand Down
14 changes: 7 additions & 7 deletions lib/increase/models/pending_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class PendingTransaction < Increase::Internal::Type::BaseModel

# @!attribute amount
# The Pending Transaction amount in the minor unit of its currency. For dollars,
# for example, this is cents. This amount does not change after the Pending
# Transaction is created. If a card authorization settles for a different amount,
# the settled amount is available on the resulting Transaction and on the Card
# for example, this is cents. For a card authorization this is the amount still
# held: it decreases when the merchant reverses part of the authorization. The
# amount that settled is available on the resulting Transaction and on the Card
# Payment's `state.settled_amount`.
#
# @return [Integer]
Expand Down Expand Up @@ -111,9 +111,9 @@ class PendingTransaction < Increase::Internal::Type::BaseModel
#
# @param amount [Integer]
# The Pending Transaction amount in the minor unit of its currency. For dollars,
# for example, this is cents. This amount does not change after the Pending
# Transaction is created. If a card authorization settles for a different amount,
# the settled amount is available on the resulting Transaction and on the Card
# for example, this is cents. For a card authorization this is the amount still
# held: it decreases when the merchant reverses part of the authorization. The
# amount that settled is available on the resulting Transaction and on the Card
# Payment's `state.settled_amount`.
#
# @param completed_at [Time, nil]
Expand Down Expand Up @@ -2811,7 +2811,7 @@ module Status
# The Pending Transaction is still awaiting confirmation.
PENDING = :pending

# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
COMPLETE = :complete

# @!method self.values
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/models/pending_transaction_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module In
# The Pending Transaction is still awaiting confirmation.
PENDING = :pending

# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
COMPLETE = :complete

# @!method self.values
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/unwrap_webhook_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ module Category
# Occurs whenever a Physical Check is updated.
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED = :"plaid_processor_token.created"

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED = :"checkbook.created"

Expand Down
58 changes: 37 additions & 21 deletions rbi/increase/models/account_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -144,51 +144,67 @@ module Increase

# The number of days after the statement date that the Account can be past due
# before being considered delinquent.
sig { returns(Integer) }
attr_accessor :grace_period_days
sig { returns(T.nilable(Integer)) }
attr_reader :grace_period_days

sig { params(grace_period_days: Integer).void }
attr_writer :grace_period_days

# The date on which the loan matures.
sig { returns(T.nilable(Date)) }
attr_reader :maturity_date

sig { params(maturity_date: Date).void }
attr_writer :maturity_date

# The day of the month on which the loan statement is generated.
sig { returns(Integer) }
attr_accessor :statement_day_of_month
sig { returns(T.nilable(Integer)) }
attr_reader :statement_day_of_month

sig { params(statement_day_of_month: Integer).void }
attr_writer :statement_day_of_month

# The type of statement payment for the account.
sig do
returns(
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
T.nilable(
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
)
)
end
attr_accessor :statement_payment_type
attr_reader :statement_payment_type

# The date on which the loan matures.
sig { returns(T.nilable(Date)) }
attr_reader :maturity_date

sig { params(maturity_date: Date).void }
attr_writer :maturity_date
sig do
params(
statement_payment_type:
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
).void
end
attr_writer :statement_payment_type

# The loan details for the account.
sig do
params(
credit_limit: Integer,
grace_period_days: Integer,
maturity_date: Date,
statement_day_of_month: Integer,
statement_payment_type:
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol,
maturity_date: Date
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
).returns(T.attached_class)
end
def self.new(
# The maximum amount of money that can be drawn from the Account.
credit_limit:,
# The number of days after the statement date that the Account can be past due
# before being considered delinquent.
grace_period_days:,
grace_period_days: nil,
# The date on which the loan matures.
maturity_date: nil,
# The day of the month on which the loan statement is generated.
statement_day_of_month:,
statement_day_of_month: nil,
# The type of statement payment for the account.
statement_payment_type:,
# The date on which the loan matures.
maturity_date: nil
statement_payment_type: nil
)
end

Expand All @@ -197,10 +213,10 @@ module Increase
{
credit_limit: Integer,
grace_period_days: Integer,
maturity_date: Date,
statement_day_of_month: Integer,
statement_payment_type:
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol,
maturity_date: Date
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
}
)
end
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,13 @@ module Increase
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED =
T.let(
:"plaid_processor_token.created",
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED =
T.let(:"checkbook.created", Increase::Event::Category::TaggedSymbol)
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,13 @@ module Increase
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED =
T.let(
:"plaid_processor_token.created",
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_subscription.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,13 @@ module Increase
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED =
T.let(
:"plaid_processor_token.created",
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_subscription_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,13 @@ module Increase
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED =
T.let(
:"plaid_processor_token.created",
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED =
T.let(
Expand Down
14 changes: 7 additions & 7 deletions rbi/increase/models/pending_transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ module Increase
attr_accessor :account_id

# The Pending Transaction amount in the minor unit of its currency. For dollars,
# for example, this is cents. This amount does not change after the Pending
# Transaction is created. If a card authorization settles for a different amount,
# the settled amount is available on the resulting Transaction and on the Card
# for example, this is cents. For a card authorization this is the amount still
# held: it decreases when the merchant reverses part of the authorization. The
# amount that settled is available on the resulting Transaction and on the Card
# Payment's `state.settled_amount`.
sig { returns(Integer) }
attr_accessor :amount
Expand Down Expand Up @@ -112,9 +112,9 @@ module Increase
# The identifier for the account this Pending Transaction belongs to.
account_id:,
# The Pending Transaction amount in the minor unit of its currency. For dollars,
# for example, this is cents. This amount does not change after the Pending
# Transaction is created. If a card authorization settles for a different amount,
# the settled amount is available on the resulting Transaction and on the Card
# for example, this is cents. For a card authorization this is the amount still
# held: it decreases when the merchant reverses part of the authorization. The
# amount that settled is available on the resulting Transaction and on the Card
# Payment's `state.settled_amount`.
amount:,
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
Expand Down Expand Up @@ -5004,7 +5004,7 @@ module Increase
PENDING =
T.let(:pending, Increase::PendingTransaction::Status::TaggedSymbol)

# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
COMPLETE =
T.let(:complete, Increase::PendingTransaction::Status::TaggedSymbol)

Expand Down
2 changes: 1 addition & 1 deletion rbi/increase/models/pending_transaction_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ module Increase
Increase::PendingTransactionListParams::Status::In::TaggedSymbol
)

# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
# The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
COMPLETE =
T.let(
:complete,
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/unwrap_webhook_event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,13 @@ module Increase
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever a Plaid Processor Token is created.
PLAID_PROCESSOR_TOKEN_CREATED =
T.let(
:"plaid_processor_token.created",
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever a Checkbook is created.
CHECKBOOK_CREATED =
T.let(
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Loading