Skip to content

Commit 82d726f

Browse files
feat(client): adds endpoint to register an account number on a Financial Account
- Add YEAR to Spend Velocity windows - Add CUSTOMER_RULES to decision_made_by enum for 3DS authentication - Add COLLECTION to financial account types
1 parent 2492542 commit 82d726f

29 files changed

Lines changed: 199 additions & 12 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 161
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-89dfdedd460a673d9addf6d763389f59895e986036296d99baf89366ba622034.yml
3-
openapi_spec_hash: b6183fb775fc8bfa3d40ed7130b17976
4-
config_hash: fa3481d1d8505e4157f6cebe93211bd0
1+
configured_endpoints: 162
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0c08d769e7a549e40ed9ab9b0298c687cc14e6c2fbe4fdd4544467906a05a613.yml
3+
openapi_spec_hash: 2ea548eacd1af68ec19e847250a65b7d
4+
config_hash: 227ad54062905d4ae964b24cef0505b0

lib/lithic.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
require_relative "lithic/models/financial_account"
212212
require_relative "lithic/models/financial_account_create_params"
213213
require_relative "lithic/models/financial_account_list_params"
214+
require_relative "lithic/models/financial_account_register_account_number_params"
214215
require_relative "lithic/models/financial_account_retrieve_params"
215216
require_relative "lithic/models/financial_accounts/balance_list_params"
216217
require_relative "lithic/models/financial_accounts/balance_list_response"

lib/lithic/models.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ module Lithic
230230

231231
FinancialAccountListParams = Lithic::Models::FinancialAccountListParams
232232

233+
FinancialAccountRegisterAccountNumberParams = Lithic::Models::FinancialAccountRegisterAccountNumberParams
234+
233235
FinancialAccountRetrieveParams = Lithic::Models::FinancialAccountRetrieveParams
234236

235237
FinancialAccounts = Lithic::Models::FinancialAccounts

lib/lithic/models/auth_rules/velocity_limit_params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ module Period
113113
# * `DAY`: Velocity over the current day since midnight Eastern Time.
114114
# * `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time.
115115
# * `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time.
116+
# * `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time.
116117
variant enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow }
117118

118119
# @!method self.variants

lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ module AuthRules
1010
# Eastern Time.
1111
# - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
1212
# the month in Eastern Time.
13+
# - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
14+
# Eastern Time.
1315
module VelocityLimitParamsPeriodWindow
1416
extend Lithic::Internal::Type::Enum
1517

1618
DAY = :DAY
1719
WEEK = :WEEK
1820
MONTH = :MONTH
21+
YEAR = :YEAR
1922

2023
# @!method self.values
2124
# @return [Array<Symbol>]

lib/lithic/models/financial_account.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ module Type
209209
CHARGED_OFF_PRINCIPAL = :CHARGED_OFF_PRINCIPAL
210210
SECURITY = :SECURITY
211211
PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
212+
COLLECTION = :COLLECTION
212213

213214
# @!method self.values
214215
# @return [Array<Symbol>]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# frozen_string_literal: true
2+
3+
module Lithic
4+
module Models
5+
# @see Lithic::Resources::FinancialAccounts#register_account_number
6+
class FinancialAccountRegisterAccountNumberParams < Lithic::Internal::Type::BaseModel
7+
extend Lithic::Internal::Type::RequestParameters::Converter
8+
include Lithic::Internal::Type::RequestParameters
9+
10+
# @!attribute account_number
11+
#
12+
# @return [String]
13+
required :account_number, String
14+
15+
# @!method initialize(account_number:, request_options: {})
16+
# @param account_number [String]
17+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
18+
end
19+
end
20+
end

lib/lithic/models/instance_financial_account_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module InstanceFinancialAccountType
1414
CHARGED_OFF_PRINCIPAL = :CHARGED_OFF_PRINCIPAL
1515
SECURITY = :SECURITY
1616
PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
17+
COLLECTION = :COLLECTION
1718

1819
# @!method self.values
1920
# @return [Array<Symbol>]

lib/lithic/models/settlement_detail.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel
9898
required :report_date, String
9999

100100
# @!attribute settlement_date
101-
# Date of when money movement is triggered for the transaction.
101+
# Date of when money movement is triggered for the transaction. One exception
102+
# applies - for Mastercard dual message settlement, this is the settlement
103+
# advisement date, which is distinct from the date of money movement.
102104
#
103105
# @return [String]
104106
required :settlement_date, String
@@ -168,7 +170,7 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel
168170
#
169171
# @param report_date [String] Date of when the report was first generated.
170172
#
171-
# @param settlement_date [String] Date of when money movement is triggered for the transaction.
173+
# @param settlement_date [String] Date of when money movement is triggered for the transaction. One exception appl
172174
#
173175
# @param transaction_token [String] Globally unique identifier denoting the associated Transaction object.
174176
#

lib/lithic/models/transaction.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ module AuthenticationResult
508508
module DecisionMadeBy
509509
extend Lithic::Internal::Type::Enum
510510

511+
CUSTOMER_RULES = :CUSTOMER_RULES
511512
CUSTOMER_ENDPOINT = :CUSTOMER_ENDPOINT
512513
LITHIC_DEFAULT = :LITHIC_DEFAULT
513514
LITHIC_RULES = :LITHIC_RULES

0 commit comments

Comments
 (0)