Skip to content

Commit

Permalink
feat: add deprecation notice to enum members and resources (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-ci-bot committed Feb 25, 2025
1 parent 3a44bf4 commit fb72692
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/modern_treasury/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ class Client < ModernTreasury::BaseClient
# Default max retry delay in seconds.
DEFAULT_MAX_RETRY_DELAY = 8.0

# Client option
# @return [String]
attr_reader :api_key

# Client option
# @return [String]
attr_reader :organization_id

Expand Down
2 changes: 1 addition & 1 deletion lib/modern_treasury/models/counterparty_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ class PaymentType < ModernTreasury::Enum
#
# @deprecated
#
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
# or `vendor`.
#
# @example
Expand Down
8 changes: 8 additions & 0 deletions lib/modern_treasury/models/ledger_event_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module ModernTreasury
module Models
# @deprecated
#
class LedgerEventHandler < ModernTreasury::BaseModel
# @!attribute id
#
Expand Down Expand Up @@ -114,6 +116,8 @@ class LedgerEventHandler < ModernTreasury::BaseModel

# def initialize: (Hash | ModernTreasury::BaseModel) -> void

# @deprecated
#
class Conditions < ModernTreasury::BaseModel
# @!attribute field
# The LHS of the conditional.
Expand Down Expand Up @@ -143,6 +147,8 @@ class Conditions < ModernTreasury::BaseModel
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
end

# @deprecated
#
class LedgerTransactionTemplate < ModernTreasury::BaseModel
# @!attribute description
# An optional description for internal use.
Expand Down Expand Up @@ -180,6 +186,8 @@ class LedgerTransactionTemplate < ModernTreasury::BaseModel

# def initialize: (Hash | ModernTreasury::BaseModel) -> void

# @deprecated
#
class LedgerEntry < ModernTreasury::BaseModel
# @!attribute amount
# The LHS of the conditional.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ class LedgerEventHandlerCreateParams < ModernTreasury::BaseModel

# def initialize: (Hash | ModernTreasury::BaseModel) -> void

# @deprecated
#
class LedgerTransactionTemplate < ModernTreasury::BaseModel
# @!attribute description
# An optional description for internal use.
Expand Down Expand Up @@ -119,6 +121,8 @@ class LedgerTransactionTemplate < ModernTreasury::BaseModel

# def initialize: (Hash | ModernTreasury::BaseModel) -> void

# @deprecated
#
class LedgerEntry < ModernTreasury::BaseModel
# @!attribute amount
# The LHS of the conditional.
Expand Down Expand Up @@ -149,6 +153,8 @@ class LedgerEntry < ModernTreasury::BaseModel
end
end

# @deprecated
#
class Conditions < ModernTreasury::BaseModel
# @!attribute field
# The LHS of the conditional.
Expand Down
4 changes: 4 additions & 0 deletions lib/modern_treasury/models/ledger_event_handler_variable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module ModernTreasury
module Models
# @deprecated
#
class LedgerEventHandlerVariable < ModernTreasury::BaseModel
# @!attribute query
#
Expand All @@ -23,6 +25,8 @@ class LedgerEventHandlerVariable < ModernTreasury::BaseModel

# def initialize: (Hash | ModernTreasury::BaseModel) -> void

# @deprecated
#
class Query < ModernTreasury::BaseModel
# @!attribute field
# The LHS of the conditional.
Expand Down
2 changes: 2 additions & 0 deletions lib/modern_treasury/models/ledgerable_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module ModernTreasury
module Models
# @deprecated
#
class LedgerableEvent < ModernTreasury::BaseModel
# @!attribute id
#
Expand Down

0 comments on commit fb72692

Please sign in to comment.