Skip to content

Commit 832895f

Browse files
feat(api): add WIRE_DRAWDOWN_REQUEST transfer type
docs(api): clarify description of token / retry_token when it serves as idempotency key feat(api): remove unnecessary X-Lithic-Pagination header
1 parent 0bad1d9 commit 832895f

17 files changed

+75
-19
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1916ba0e95ce59f0feeebd6f3d2130990c812be7eabcda6e23c5fa096db912c7.yml
3-
openapi_spec_hash: b465e7cb5c2dee36b5bdc6d540b2a530
4-
config_hash: a8a802e2c916a5d36a025bf64ab55ee7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-854de7cc8f79e150ffe98f038ce9f39367010b2bdfffc9992be2738697dc4880.yml
3+
openapi_spec_hash: fd471b20f3eda1e00cdebf028cbfe867
4+
config_hash: 9dddee5f7af579864599849cb28a0770

lib/lithic/client.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,14 @@ def initialize(
181181
raise ArgumentError.new("api_key is required, and can be set via environ: \"LITHIC_API_KEY\"")
182182
end
183183

184-
headers = {
185-
"x-lithic-pagination" => "cursor"
186-
}
187-
188184
@api_key = api_key.to_s
189185

190186
super(
191187
base_url: base_url,
192188
timeout: timeout,
193189
max_retries: max_retries,
194190
initial_retry_delay: initial_retry_delay,
195-
max_retry_delay: max_retry_delay,
196-
headers: headers
191+
max_retry_delay: max_retry_delay
197192
)
198193

199194
@accounts = Lithic::Resources::Accounts.new(client: self)

lib/lithic/models/book_transfer_retry_params.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ class BookTransferRetryParams < Lithic::Internal::Type::BaseModel
88
include Lithic::Internal::Type::RequestParameters
99

1010
# @!attribute retry_token
11-
# Globally unique identifier for the retry.
11+
# Customer-provided token that will serve as an idempotency token. This token will
12+
# become the transaction token.
1213
#
1314
# @return [String]
1415
required :retry_token, String
1516

1617
# @!method initialize(retry_token:, request_options: {})
17-
# @param retry_token [String] Globally unique identifier for the retry.
18+
# Some parameter documentations has been truncated, see
19+
# {Lithic::Models::BookTransferRetryParams} for more details.
20+
#
21+
# @param retry_token [String] Customer-provided token that will serve as an idempotency token. This token will
1822
#
1923
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
2024
end

lib/lithic/models/external_payment_create_params.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class ExternalPaymentCreateParams < Lithic::Internal::Type::BaseModel
3333
required :payment_type, enum: -> { Lithic::ExternalPaymentCreateParams::PaymentType }
3434

3535
# @!attribute token
36+
# Customer-provided token that will serve as an idempotency token. This token will
37+
# become the transaction token.
3638
#
3739
# @return [String, nil]
3840
optional :token, String
@@ -53,15 +55,27 @@ class ExternalPaymentCreateParams < Lithic::Internal::Type::BaseModel
5355
optional :user_defined_id, String
5456

5557
# @!method initialize(amount:, category:, effective_date:, financial_account_token:, payment_type:, token: nil, memo: nil, progress_to: nil, user_defined_id: nil, request_options: {})
58+
# Some parameter documentations has been truncated, see
59+
# {Lithic::Models::ExternalPaymentCreateParams} for more details.
60+
#
5661
# @param amount [Integer]
62+
#
5763
# @param category [Symbol, Lithic::Models::ExternalPaymentCreateParams::Category]
64+
#
5865
# @param effective_date [Date]
66+
#
5967
# @param financial_account_token [String]
68+
#
6069
# @param payment_type [Symbol, Lithic::Models::ExternalPaymentCreateParams::PaymentType]
61-
# @param token [String]
70+
#
71+
# @param token [String] Customer-provided token that will serve as an idempotency token. This token will
72+
#
6273
# @param memo [String]
74+
#
6375
# @param progress_to [Symbol, Lithic::Models::ExternalPaymentCreateParams::ProgressTo]
76+
#
6477
# @param user_defined_id [String]
78+
#
6579
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
6680

6781
module Category

lib/lithic/models/management_operation_create_params.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class ManagementOperationCreateParams < Lithic::Internal::Type::BaseModel
3838
required :financial_account_token, String
3939

4040
# @!attribute token
41+
# Customer-provided token that will serve as an idempotency token. This token will
42+
# become the transaction token.
4143
#
4244
# @return [String, nil]
4345
optional :token, String
@@ -64,6 +66,9 @@ class ManagementOperationCreateParams < Lithic::Internal::Type::BaseModel
6466
optional :user_defined_id, String
6567

6668
# @!method initialize(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {})
69+
# Some parameter documentations has been truncated, see
70+
# {Lithic::Models::ManagementOperationCreateParams} for more details.
71+
#
6772
# @param amount [Integer]
6873
#
6974
# @param category [Symbol, Lithic::Models::ManagementOperationCreateParams::Category]
@@ -76,7 +81,7 @@ class ManagementOperationCreateParams < Lithic::Internal::Type::BaseModel
7681
#
7782
# @param financial_account_token [String]
7883
#
79-
# @param token [String]
84+
# @param token [String] Customer-provided token that will serve as an idempotency token. This token will
8085
#
8186
# @param memo [String]
8287
#

lib/lithic/models/payment.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ module Type
650650
WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN
651651
WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
652652
WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
653+
WIRE_DRAWDOWN_REQUEST = :WIRE_DRAWDOWN_REQUEST
653654

654655
# @!method self.values
655656
# @return [Array<Symbol>]

lib/lithic/resources/book_transfers.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ def list(params = {})
113113
)
114114
end
115115

116+
# Some parameter documentations has been truncated, see
117+
# {Lithic::Models::BookTransferRetryParams} for more details.
118+
#
116119
# Retry a book transfer that has been declined
117120
#
118121
# @overload retry_(book_transfer_token, retry_token:, request_options: {})
119122
#
120123
# @param book_transfer_token [String] Token of the book transfer to retry
121124
#
122-
# @param retry_token [String] Globally unique identifier for the retry.
125+
# @param retry_token [String] Customer-provided token that will serve as an idempotency token. This token will
123126
#
124127
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
125128
#

lib/lithic/resources/external_payments.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,31 @@
33
module Lithic
44
module Resources
55
class ExternalPayments
6+
# Some parameter documentations has been truncated, see
7+
# {Lithic::Models::ExternalPaymentCreateParams} for more details.
8+
#
69
# Create external payment
710
#
811
# @overload create(amount:, category:, effective_date:, financial_account_token:, payment_type:, token: nil, memo: nil, progress_to: nil, user_defined_id: nil, request_options: {})
912
#
1013
# @param amount [Integer]
14+
#
1115
# @param category [Symbol, Lithic::Models::ExternalPaymentCreateParams::Category]
16+
#
1217
# @param effective_date [Date]
18+
#
1319
# @param financial_account_token [String]
20+
#
1421
# @param payment_type [Symbol, Lithic::Models::ExternalPaymentCreateParams::PaymentType]
15-
# @param token [String]
22+
#
23+
# @param token [String] Customer-provided token that will serve as an idempotency token. This token will
24+
#
1625
# @param memo [String]
26+
#
1727
# @param progress_to [Symbol, Lithic::Models::ExternalPaymentCreateParams::ProgressTo]
28+
#
1829
# @param user_defined_id [String]
30+
#
1931
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
2032
#
2133
# @return [Lithic::Models::ExternalPayment]

lib/lithic/resources/management_operations.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
module Lithic
44
module Resources
55
class ManagementOperations
6+
# Some parameter documentations has been truncated, see
7+
# {Lithic::Models::ManagementOperationCreateParams} for more details.
8+
#
69
# Create management operation
710
#
811
# @overload create(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {})
@@ -19,7 +22,7 @@ class ManagementOperations
1922
#
2023
# @param financial_account_token [String]
2124
#
22-
# @param token [String]
25+
# @param token [String] Customer-provided token that will serve as an idempotency token. This token will
2326
#
2427
# @param memo [String]
2528
#

rbi/lithic/models/book_transfer_retry_params.rbi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module Lithic
1111
T.any(Lithic::BookTransferRetryParams, Lithic::Internal::AnyHash)
1212
end
1313

14-
# Globally unique identifier for the retry.
14+
# Customer-provided token that will serve as an idempotency token. This token will
15+
# become the transaction token.
1516
sig { returns(String) }
1617
attr_accessor :retry_token
1718

@@ -22,7 +23,8 @@ module Lithic
2223
).returns(T.attached_class)
2324
end
2425
def self.new(
25-
# Globally unique identifier for the retry.
26+
# Customer-provided token that will serve as an idempotency token. This token will
27+
# become the transaction token.
2628
retry_token:,
2729
request_options: {}
2830
)

0 commit comments

Comments
 (0)