lithic 0.1.0.pre.alpha.43 → 0.1.0.pre.alpha.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/lithic/models.rb +0 -3
- data/lib/lithic/resources/transactions.rb +0 -36
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +0 -2
- data/rbi/lithic/models.rbi +0 -3
- data/rbi/lithic/resources/transactions.rbi +0 -33
- data/sig/lithic/models.rbs +0 -2
- data/sig/lithic/resources/transactions.rbs +0 -9
- metadata +1 -7
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +0 -61
- data/lib/lithic/models/transaction_simulate_credit_authorization_response.rb +0 -25
- data/rbi/lithic/models/transaction_simulate_credit_authorization_params.rbi +0 -92
- data/rbi/lithic/models/transaction_simulate_credit_authorization_response.rbi +0 -46
- data/sig/lithic/models/transaction_simulate_credit_authorization_params.rbs +0 -50
- data/sig/lithic/models/transaction_simulate_credit_authorization_response.rbs +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2373f4ab03be865331281e30220b9ebfb84c36390b816a7ff82a599919882d64
|
4
|
+
data.tar.gz: 8be0a80d5a6a3ebdd440b05ed742cd5984e1ba9dbecbdd2a90762b4082e1ec27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da6d8d1e5c1c3a38ae2bcfa4a539d125f478957760049c02a9f7476479112f8402af424f338dc4b006ad6a88e4982f9840ac9b56316ba05b1c068cc1989067b5
|
7
|
+
data.tar.gz: 11d60d3ff30217537f1cc4152496663e41bc4260ecbf1daa9e714c470d8246fa0bcfdd50cf1e91500b30ac3d612d63968f31a21fbba1930bb36d5e27e89577aa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.44 (2025-09-11)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.43...v0.1.0-alpha.44](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.43...v0.1.0-alpha.44)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** correct deprecation ([5f3c64b](https://github.com/lithic-com/lithic-ruby/commit/5f3c64b290779e9eeeae4bc6207adb702d10bcfb))
|
10
|
+
|
3
11
|
## 0.1.0-alpha.43 (2025-09-11)
|
4
12
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.42...v0.1.0-alpha.43](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.42...v0.1.0-alpha.43)
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
15
15
|
<!-- x-release-please-start-version -->
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "lithic", "~> 0.1.0.pre.alpha.
|
18
|
+
gem "lithic", "~> 0.1.0.pre.alpha.44"
|
19
19
|
```
|
20
20
|
|
21
21
|
<!-- x-release-please-end -->
|
data/lib/lithic/models.rb
CHANGED
@@ -378,9 +378,6 @@ module Lithic
|
|
378
378
|
TransactionSimulateCreditAuthorizationAdviceParams =
|
379
379
|
Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams
|
380
380
|
|
381
|
-
TransactionSimulateCreditAuthorizationParams =
|
382
|
-
Lithic::Models::TransactionSimulateCreditAuthorizationParams
|
383
|
-
|
384
381
|
TransactionSimulateReturnParams = Lithic::Models::TransactionSimulateReturnParams
|
385
382
|
|
386
383
|
TransactionSimulateReturnReversalParams = Lithic::Models::TransactionSimulateReturnReversalParams
|
@@ -204,42 +204,6 @@ module Lithic
|
|
204
204
|
)
|
205
205
|
end
|
206
206
|
|
207
|
-
# @deprecated use `simulate_credit_authorization_advice` instead
|
208
|
-
#
|
209
|
-
# Some parameter documentations has been truncated, see
|
210
|
-
# {Lithic::Models::TransactionSimulateCreditAuthorizationParams} for more details.
|
211
|
-
#
|
212
|
-
# Simulates a credit authorization advice from the card network. This message
|
213
|
-
# indicates that the network approved a credit authorization on your behalf.
|
214
|
-
#
|
215
|
-
# @overload simulate_credit_authorization(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, request_options: {})
|
216
|
-
#
|
217
|
-
# @param amount [Integer] Amount (in cents). Any value entered will be converted into a negative amount in
|
218
|
-
#
|
219
|
-
# @param descriptor [String] Merchant descriptor.
|
220
|
-
#
|
221
|
-
# @param pan [String] Sixteen digit card number.
|
222
|
-
#
|
223
|
-
# @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
|
224
|
-
#
|
225
|
-
# @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
|
226
|
-
#
|
227
|
-
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
228
|
-
#
|
229
|
-
# @return [Lithic::Models::TransactionSimulateCreditAuthorizationResponse]
|
230
|
-
#
|
231
|
-
# @see Lithic::Models::TransactionSimulateCreditAuthorizationParams
|
232
|
-
def simulate_credit_authorization(params)
|
233
|
-
parsed, options = Lithic::TransactionSimulateCreditAuthorizationParams.dump_request(params)
|
234
|
-
@client.request(
|
235
|
-
method: :post,
|
236
|
-
path: "v1/simulate/credit_authorization_advice",
|
237
|
-
body: parsed,
|
238
|
-
model: Lithic::Models::TransactionSimulateCreditAuthorizationResponse,
|
239
|
-
options: options
|
240
|
-
)
|
241
|
-
end
|
242
|
-
|
243
207
|
# Some parameter documentations has been truncated, see
|
244
208
|
# {Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams} for more
|
245
209
|
# details.
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
@@ -341,8 +341,6 @@ require_relative "lithic/models/transaction_simulate_clearing_params"
|
|
341
341
|
require_relative "lithic/models/transaction_simulate_clearing_response"
|
342
342
|
require_relative "lithic/models/transaction_simulate_credit_authorization_advice_params"
|
343
343
|
require_relative "lithic/models/transaction_simulate_credit_authorization_advice_response"
|
344
|
-
require_relative "lithic/models/transaction_simulate_credit_authorization_params"
|
345
|
-
require_relative "lithic/models/transaction_simulate_credit_authorization_response"
|
346
344
|
require_relative "lithic/models/transaction_simulate_return_params"
|
347
345
|
require_relative "lithic/models/transaction_simulate_return_response"
|
348
346
|
require_relative "lithic/models/transaction_simulate_return_reversal_params"
|
data/rbi/lithic/models.rbi
CHANGED
@@ -370,9 +370,6 @@ module Lithic
|
|
370
370
|
TransactionSimulateCreditAuthorizationAdviceParams =
|
371
371
|
Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams
|
372
372
|
|
373
|
-
TransactionSimulateCreditAuthorizationParams =
|
374
|
-
Lithic::Models::TransactionSimulateCreditAuthorizationParams
|
375
|
-
|
376
373
|
TransactionSimulateReturnParams =
|
377
374
|
Lithic::Models::TransactionSimulateReturnParams
|
378
375
|
|
@@ -208,39 +208,6 @@ module Lithic
|
|
208
208
|
)
|
209
209
|
end
|
210
210
|
|
211
|
-
# Simulates a credit authorization advice from the card network. This message
|
212
|
-
# indicates that the network approved a credit authorization on your behalf.
|
213
|
-
sig do
|
214
|
-
params(
|
215
|
-
amount: Integer,
|
216
|
-
descriptor: String,
|
217
|
-
pan: String,
|
218
|
-
mcc: String,
|
219
|
-
merchant_acceptor_id: String,
|
220
|
-
request_options: Lithic::RequestOptions::OrHash
|
221
|
-
).returns(
|
222
|
-
Lithic::Models::TransactionSimulateCreditAuthorizationResponse
|
223
|
-
)
|
224
|
-
end
|
225
|
-
def simulate_credit_authorization(
|
226
|
-
# Amount (in cents). Any value entered will be converted into a negative amount in
|
227
|
-
# the simulated transaction. For example, entering 100 in this field will appear
|
228
|
-
# as a -100 amount in the transaction.
|
229
|
-
amount:,
|
230
|
-
# Merchant descriptor.
|
231
|
-
descriptor:,
|
232
|
-
# Sixteen digit card number.
|
233
|
-
pan:,
|
234
|
-
# Merchant category code for the transaction to be simulated. A four-digit number
|
235
|
-
# listed in ISO 18245. Supported merchant category codes can be found
|
236
|
-
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
237
|
-
mcc: nil,
|
238
|
-
# Unique identifier to identify the payment card acceptor.
|
239
|
-
merchant_acceptor_id: nil,
|
240
|
-
request_options: {}
|
241
|
-
)
|
242
|
-
end
|
243
|
-
|
244
211
|
# Simulates a credit authorization advice from the card network. This message
|
245
212
|
# indicates that the network approved a credit authorization on your behalf.
|
246
213
|
sig do
|
data/sig/lithic/models.rbs
CHANGED
@@ -335,8 +335,6 @@ module Lithic
|
|
335
335
|
|
336
336
|
class TransactionSimulateCreditAuthorizationAdviceParams = Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams
|
337
337
|
|
338
|
-
class TransactionSimulateCreditAuthorizationParams = Lithic::Models::TransactionSimulateCreditAuthorizationParams
|
339
|
-
|
340
338
|
class TransactionSimulateReturnParams = Lithic::Models::TransactionSimulateReturnParams
|
341
339
|
|
342
340
|
class TransactionSimulateReturnReversalParams = Lithic::Models::TransactionSimulateReturnReversalParams
|
@@ -54,15 +54,6 @@ module Lithic
|
|
54
54
|
?request_options: Lithic::request_opts
|
55
55
|
) -> Lithic::Models::TransactionSimulateClearingResponse
|
56
56
|
|
57
|
-
def simulate_credit_authorization: (
|
58
|
-
amount: Integer,
|
59
|
-
descriptor: String,
|
60
|
-
pan: String,
|
61
|
-
?mcc: String,
|
62
|
-
?merchant_acceptor_id: String,
|
63
|
-
?request_options: Lithic::request_opts
|
64
|
-
) -> Lithic::Models::TransactionSimulateCreditAuthorizationResponse
|
65
|
-
|
66
57
|
def simulate_credit_authorization_advice: (
|
67
58
|
amount: Integer,
|
68
59
|
descriptor: String,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lithic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.alpha.
|
4
|
+
version: 0.1.0.pre.alpha.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lithic
|
@@ -342,8 +342,6 @@ files:
|
|
342
342
|
- lib/lithic/models/transaction_simulate_clearing_response.rb
|
343
343
|
- lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb
|
344
344
|
- lib/lithic/models/transaction_simulate_credit_authorization_advice_response.rb
|
345
|
-
- lib/lithic/models/transaction_simulate_credit_authorization_params.rb
|
346
|
-
- lib/lithic/models/transaction_simulate_credit_authorization_response.rb
|
347
345
|
- lib/lithic/models/transaction_simulate_return_params.rb
|
348
346
|
- lib/lithic/models/transaction_simulate_return_response.rb
|
349
347
|
- lib/lithic/models/transaction_simulate_return_reversal_params.rb
|
@@ -720,8 +718,6 @@ files:
|
|
720
718
|
- rbi/lithic/models/transaction_simulate_clearing_response.rbi
|
721
719
|
- rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi
|
722
720
|
- rbi/lithic/models/transaction_simulate_credit_authorization_advice_response.rbi
|
723
|
-
- rbi/lithic/models/transaction_simulate_credit_authorization_params.rbi
|
724
|
-
- rbi/lithic/models/transaction_simulate_credit_authorization_response.rbi
|
725
721
|
- rbi/lithic/models/transaction_simulate_return_params.rbi
|
726
722
|
- rbi/lithic/models/transaction_simulate_return_response.rbi
|
727
723
|
- rbi/lithic/models/transaction_simulate_return_reversal_params.rbi
|
@@ -1097,8 +1093,6 @@ files:
|
|
1097
1093
|
- sig/lithic/models/transaction_simulate_clearing_response.rbs
|
1098
1094
|
- sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs
|
1099
1095
|
- sig/lithic/models/transaction_simulate_credit_authorization_advice_response.rbs
|
1100
|
-
- sig/lithic/models/transaction_simulate_credit_authorization_params.rbs
|
1101
|
-
- sig/lithic/models/transaction_simulate_credit_authorization_response.rbs
|
1102
1096
|
- sig/lithic/models/transaction_simulate_return_params.rbs
|
1103
1097
|
- sig/lithic/models/transaction_simulate_return_response.rbs
|
1104
1098
|
- sig/lithic/models/transaction_simulate_return_reversal_params.rbs
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Lithic
|
4
|
-
module Models
|
5
|
-
# @see Lithic::Resources::Transactions#simulate_credit_authorization
|
6
|
-
class TransactionSimulateCreditAuthorizationParams < Lithic::Internal::Type::BaseModel
|
7
|
-
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
-
include Lithic::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!attribute amount
|
11
|
-
# Amount (in cents). Any value entered will be converted into a negative amount in
|
12
|
-
# the simulated transaction. For example, entering 100 in this field will appear
|
13
|
-
# as a -100 amount in the transaction.
|
14
|
-
#
|
15
|
-
# @return [Integer]
|
16
|
-
required :amount, Integer
|
17
|
-
|
18
|
-
# @!attribute descriptor
|
19
|
-
# Merchant descriptor.
|
20
|
-
#
|
21
|
-
# @return [String]
|
22
|
-
required :descriptor, String
|
23
|
-
|
24
|
-
# @!attribute pan
|
25
|
-
# Sixteen digit card number.
|
26
|
-
#
|
27
|
-
# @return [String]
|
28
|
-
required :pan, String
|
29
|
-
|
30
|
-
# @!attribute mcc
|
31
|
-
# Merchant category code for the transaction to be simulated. A four-digit number
|
32
|
-
# listed in ISO 18245. Supported merchant category codes can be found
|
33
|
-
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
34
|
-
#
|
35
|
-
# @return [String, nil]
|
36
|
-
optional :mcc, String
|
37
|
-
|
38
|
-
# @!attribute merchant_acceptor_id
|
39
|
-
# Unique identifier to identify the payment card acceptor.
|
40
|
-
#
|
41
|
-
# @return [String, nil]
|
42
|
-
optional :merchant_acceptor_id, String
|
43
|
-
|
44
|
-
# @!method initialize(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, request_options: {})
|
45
|
-
# Some parameter documentations has been truncated, see
|
46
|
-
# {Lithic::Models::TransactionSimulateCreditAuthorizationParams} for more details.
|
47
|
-
#
|
48
|
-
# @param amount [Integer] Amount (in cents). Any value entered will be converted into a negative amount in
|
49
|
-
#
|
50
|
-
# @param descriptor [String] Merchant descriptor.
|
51
|
-
#
|
52
|
-
# @param pan [String] Sixteen digit card number.
|
53
|
-
#
|
54
|
-
# @param mcc [String] Merchant category code for the transaction to be simulated. A four-digit number
|
55
|
-
#
|
56
|
-
# @param merchant_acceptor_id [String] Unique identifier to identify the payment card acceptor.
|
57
|
-
#
|
58
|
-
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Lithic
|
4
|
-
module Models
|
5
|
-
# @see Lithic::Resources::Transactions#simulate_credit_authorization
|
6
|
-
class TransactionSimulateCreditAuthorizationResponse < Lithic::Internal::Type::BaseModel
|
7
|
-
# @!attribute token
|
8
|
-
# A unique token to reference this transaction.
|
9
|
-
#
|
10
|
-
# @return [String, nil]
|
11
|
-
optional :token, String
|
12
|
-
|
13
|
-
# @!attribute debugging_request_id
|
14
|
-
# Debugging request ID to share with Lithic Support team.
|
15
|
-
#
|
16
|
-
# @return [String, nil]
|
17
|
-
optional :debugging_request_id, String
|
18
|
-
|
19
|
-
# @!method initialize(token: nil, debugging_request_id: nil)
|
20
|
-
# @param token [String] A unique token to reference this transaction.
|
21
|
-
#
|
22
|
-
# @param debugging_request_id [String] Debugging request ID to share with Lithic Support team.
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,92 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Lithic
|
4
|
-
module Models
|
5
|
-
class TransactionSimulateCreditAuthorizationParams < Lithic::Internal::Type::BaseModel
|
6
|
-
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
|
-
include Lithic::Internal::Type::RequestParameters
|
8
|
-
|
9
|
-
OrHash =
|
10
|
-
T.type_alias do
|
11
|
-
T.any(
|
12
|
-
Lithic::TransactionSimulateCreditAuthorizationParams,
|
13
|
-
Lithic::Internal::AnyHash
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
# Amount (in cents). Any value entered will be converted into a negative amount in
|
18
|
-
# the simulated transaction. For example, entering 100 in this field will appear
|
19
|
-
# as a -100 amount in the transaction.
|
20
|
-
sig { returns(Integer) }
|
21
|
-
attr_accessor :amount
|
22
|
-
|
23
|
-
# Merchant descriptor.
|
24
|
-
sig { returns(String) }
|
25
|
-
attr_accessor :descriptor
|
26
|
-
|
27
|
-
# Sixteen digit card number.
|
28
|
-
sig { returns(String) }
|
29
|
-
attr_accessor :pan
|
30
|
-
|
31
|
-
# Merchant category code for the transaction to be simulated. A four-digit number
|
32
|
-
# listed in ISO 18245. Supported merchant category codes can be found
|
33
|
-
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
34
|
-
sig { returns(T.nilable(String)) }
|
35
|
-
attr_reader :mcc
|
36
|
-
|
37
|
-
sig { params(mcc: String).void }
|
38
|
-
attr_writer :mcc
|
39
|
-
|
40
|
-
# Unique identifier to identify the payment card acceptor.
|
41
|
-
sig { returns(T.nilable(String)) }
|
42
|
-
attr_reader :merchant_acceptor_id
|
43
|
-
|
44
|
-
sig { params(merchant_acceptor_id: String).void }
|
45
|
-
attr_writer :merchant_acceptor_id
|
46
|
-
|
47
|
-
sig do
|
48
|
-
params(
|
49
|
-
amount: Integer,
|
50
|
-
descriptor: String,
|
51
|
-
pan: String,
|
52
|
-
mcc: String,
|
53
|
-
merchant_acceptor_id: String,
|
54
|
-
request_options: Lithic::RequestOptions::OrHash
|
55
|
-
).returns(T.attached_class)
|
56
|
-
end
|
57
|
-
def self.new(
|
58
|
-
# Amount (in cents). Any value entered will be converted into a negative amount in
|
59
|
-
# the simulated transaction. For example, entering 100 in this field will appear
|
60
|
-
# as a -100 amount in the transaction.
|
61
|
-
amount:,
|
62
|
-
# Merchant descriptor.
|
63
|
-
descriptor:,
|
64
|
-
# Sixteen digit card number.
|
65
|
-
pan:,
|
66
|
-
# Merchant category code for the transaction to be simulated. A four-digit number
|
67
|
-
# listed in ISO 18245. Supported merchant category codes can be found
|
68
|
-
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
69
|
-
mcc: nil,
|
70
|
-
# Unique identifier to identify the payment card acceptor.
|
71
|
-
merchant_acceptor_id: nil,
|
72
|
-
request_options: {}
|
73
|
-
)
|
74
|
-
end
|
75
|
-
|
76
|
-
sig do
|
77
|
-
override.returns(
|
78
|
-
{
|
79
|
-
amount: Integer,
|
80
|
-
descriptor: String,
|
81
|
-
pan: String,
|
82
|
-
mcc: String,
|
83
|
-
merchant_acceptor_id: String,
|
84
|
-
request_options: Lithic::RequestOptions
|
85
|
-
}
|
86
|
-
)
|
87
|
-
end
|
88
|
-
def to_hash
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Lithic
|
4
|
-
module Models
|
5
|
-
class TransactionSimulateCreditAuthorizationResponse < Lithic::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
7
|
-
T.type_alias do
|
8
|
-
T.any(
|
9
|
-
Lithic::Models::TransactionSimulateCreditAuthorizationResponse,
|
10
|
-
Lithic::Internal::AnyHash
|
11
|
-
)
|
12
|
-
end
|
13
|
-
|
14
|
-
# A unique token to reference this transaction.
|
15
|
-
sig { returns(T.nilable(String)) }
|
16
|
-
attr_reader :token
|
17
|
-
|
18
|
-
sig { params(token: String).void }
|
19
|
-
attr_writer :token
|
20
|
-
|
21
|
-
# Debugging request ID to share with Lithic Support team.
|
22
|
-
sig { returns(T.nilable(String)) }
|
23
|
-
attr_reader :debugging_request_id
|
24
|
-
|
25
|
-
sig { params(debugging_request_id: String).void }
|
26
|
-
attr_writer :debugging_request_id
|
27
|
-
|
28
|
-
sig do
|
29
|
-
params(token: String, debugging_request_id: String).returns(
|
30
|
-
T.attached_class
|
31
|
-
)
|
32
|
-
end
|
33
|
-
def self.new(
|
34
|
-
# A unique token to reference this transaction.
|
35
|
-
token: nil,
|
36
|
-
# Debugging request ID to share with Lithic Support team.
|
37
|
-
debugging_request_id: nil
|
38
|
-
)
|
39
|
-
end
|
40
|
-
|
41
|
-
sig { override.returns({ token: String, debugging_request_id: String }) }
|
42
|
-
def to_hash
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
module Lithic
|
2
|
-
module Models
|
3
|
-
type transaction_simulate_credit_authorization_params =
|
4
|
-
{
|
5
|
-
amount: Integer,
|
6
|
-
descriptor: String,
|
7
|
-
pan: String,
|
8
|
-
mcc: String,
|
9
|
-
merchant_acceptor_id: String
|
10
|
-
}
|
11
|
-
& Lithic::Internal::Type::request_parameters
|
12
|
-
|
13
|
-
class TransactionSimulateCreditAuthorizationParams < Lithic::Internal::Type::BaseModel
|
14
|
-
extend Lithic::Internal::Type::RequestParameters::Converter
|
15
|
-
include Lithic::Internal::Type::RequestParameters
|
16
|
-
|
17
|
-
attr_accessor amount: Integer
|
18
|
-
|
19
|
-
attr_accessor descriptor: String
|
20
|
-
|
21
|
-
attr_accessor pan: String
|
22
|
-
|
23
|
-
attr_reader mcc: String?
|
24
|
-
|
25
|
-
def mcc=: (String) -> String
|
26
|
-
|
27
|
-
attr_reader merchant_acceptor_id: String?
|
28
|
-
|
29
|
-
def merchant_acceptor_id=: (String) -> String
|
30
|
-
|
31
|
-
def initialize: (
|
32
|
-
amount: Integer,
|
33
|
-
descriptor: String,
|
34
|
-
pan: String,
|
35
|
-
?mcc: String,
|
36
|
-
?merchant_acceptor_id: String,
|
37
|
-
?request_options: Lithic::request_opts
|
38
|
-
) -> void
|
39
|
-
|
40
|
-
def to_hash: -> {
|
41
|
-
amount: Integer,
|
42
|
-
descriptor: String,
|
43
|
-
pan: String,
|
44
|
-
mcc: String,
|
45
|
-
merchant_acceptor_id: String,
|
46
|
-
request_options: Lithic::RequestOptions
|
47
|
-
}
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Lithic
|
2
|
-
module Models
|
3
|
-
type transaction_simulate_credit_authorization_response =
|
4
|
-
{ token: String, debugging_request_id: String }
|
5
|
-
|
6
|
-
class TransactionSimulateCreditAuthorizationResponse < Lithic::Internal::Type::BaseModel
|
7
|
-
attr_reader token: String?
|
8
|
-
|
9
|
-
def token=: (String) -> String
|
10
|
-
|
11
|
-
attr_reader debugging_request_id: String?
|
12
|
-
|
13
|
-
def debugging_request_id=: (String) -> String
|
14
|
-
|
15
|
-
def initialize: (?token: String, ?debugging_request_id: String) -> void
|
16
|
-
|
17
|
-
def to_hash: -> { token: String, debugging_request_id: String }
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|