Skip to content

Commit ad64d5d

Browse files
feat(api): adds support for unpauseing external bank accounts
- adds support for CONDITIONAL_ACTION Auth Rule
1 parent af68269 commit ad64d5d

73 files changed

Lines changed: 16182 additions & 547 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 169
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-117e0ee9b030a2efc3b09e189e445fb1a26fd32f1c563f385b9d7071a959c550.yml
3-
openapi_spec_hash: e529a3fa8c3a79d3664db391683334c3
4-
config_hash: 22e4b128e110e2767daa9d95428ebf9d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
3+
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
4+
config_hash: ac676e77c8ca051c7aad978c26e96345

lib/lithic/models/account_activity_list_params.rb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class AccountActivityListParams < Lithic::Internal::Type::BaseModel
6161
# @!attribute result
6262
# Filter by transaction result
6363
#
64-
# @return [Array<Symbol, Lithic::Models::AccountActivityListParams::Result>, nil]
65-
optional :result, -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::AccountActivityListParams::Result] }
64+
# @return [Symbol, Lithic::Models::AccountActivityListParams::Result, nil]
65+
optional :result, enum: -> { Lithic::AccountActivityListParams::Result }
6666

6767
# @!attribute starting_after
6868
# A cursor representing an item's token after which a page of results should
@@ -74,8 +74,8 @@ class AccountActivityListParams < Lithic::Internal::Type::BaseModel
7474
# @!attribute status
7575
# Filter by transaction status
7676
#
77-
# @return [Array<Symbol, Lithic::Models::AccountActivityListParams::Status>, nil]
78-
optional :status, -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::AccountActivityListParams::Status] }
77+
# @return [Symbol, Lithic::Models::AccountActivityListParams::Status, nil]
78+
optional :status, enum: -> { Lithic::AccountActivityListParams::Status }
7979

8080
# @!method initialize(account_token: nil, begin_: nil, business_account_token: nil, category: nil, end_: nil, ending_before: nil, financial_account_token: nil, page_size: nil, result: nil, starting_after: nil, status: nil, request_options: {})
8181
# Some parameter documentations has been truncated, see
@@ -97,11 +97,11 @@ class AccountActivityListParams < Lithic::Internal::Type::BaseModel
9797
#
9898
# @param page_size [Integer] Page size (for pagination).
9999
#
100-
# @param result [Array<Symbol, Lithic::Models::AccountActivityListParams::Result>] Filter by transaction result
100+
# @param result [Symbol, Lithic::Models::AccountActivityListParams::Result] Filter by transaction result
101101
#
102102
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
103103
#
104-
# @param status [Array<Symbol, Lithic::Models::AccountActivityListParams::Status>] Filter by transaction status
104+
# @param status [Symbol, Lithic::Models::AccountActivityListParams::Status] Filter by transaction status
105105
#
106106
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
107107

@@ -127,6 +127,7 @@ module Category
127127
# @return [Array<Symbol>]
128128
end
129129

130+
# Filter by transaction result
130131
module Result
131132
extend Lithic::Internal::Type::Enum
132133

@@ -137,16 +138,17 @@ module Result
137138
# @return [Array<Symbol>]
138139
end
139140

141+
# Filter by transaction status
140142
module Status
141143
extend Lithic::Internal::Type::Enum
142144

143145
DECLINED = :DECLINED
144146
EXPIRED = :EXPIRED
145147
PENDING = :PENDING
146-
SETTLED = :SETTLED
147-
VOIDED = :VOIDED
148148
RETURNED = :RETURNED
149149
REVERSED = :REVERSED
150+
SETTLED = :SETTLED
151+
VOIDED = :VOIDED
150152

151153
# @!method self.values
152154
# @return [Array<Symbol>]

lib/lithic/models/auth_rules/v2_apply_params.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ class V2ApplyParams < Lithic::Internal::Type::BaseModel
1111
# @!attribute account_tokens
1212
# Account tokens to which the Auth Rule applies.
1313
#
14-
# @return [Array<String>]
15-
required :account_tokens, Lithic::Internal::Type::ArrayOf[String]
14+
# @return [Array<String>, nil]
15+
optional :account_tokens, Lithic::Internal::Type::ArrayOf[String]
16+
17+
# @!attribute business_account_tokens
18+
# Business Account tokens to which the Auth Rule applies.
19+
#
20+
# @return [Array<String>, nil]
21+
optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
1622

1723
# @!attribute card_tokens
1824
# Card tokens to which the Auth Rule applies.
@@ -32,13 +38,15 @@ class V2ApplyParams < Lithic::Internal::Type::BaseModel
3238
# @return [Array<String>, nil]
3339
optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
3440

35-
# @!method initialize(account_tokens:, card_tokens:, program_level:, excluded_card_tokens: nil, request_options: {})
36-
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
37-
#
41+
# @!method initialize(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, excluded_card_tokens: nil, request_options: {})
3842
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
3943
#
4044
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
4145
#
46+
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
47+
#
48+
# @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
49+
#
4250
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
4351
#
4452
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]

0 commit comments

Comments
 (0)