@@ -44,6 +44,12 @@ class PaymentCreateParams < Lithic::Internal::Type::BaseModel
4444 # @return [String, nil]
4545 optional :token , String
4646
47+ # @!attribute hold
48+ # Optional hold to settle when this payment is initiated.
49+ #
50+ # @return [Lithic::Models::PaymentCreateParams::Hold, nil]
51+ optional :hold , -> { Lithic ::PaymentCreateParams ::Hold }
52+
4753 # @!attribute memo
4854 #
4955 # @return [String, nil]
@@ -54,7 +60,7 @@ class PaymentCreateParams < Lithic::Internal::Type::BaseModel
5460 # @return [String, nil]
5561 optional :user_defined_id , String
5662
57- # @!method initialize(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, memo: nil, user_defined_id: nil, request_options: {})
63+ # @!method initialize(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, hold: nil, memo: nil, user_defined_id: nil, request_options: {})
5864 # Some parameter documentations has been truncated, see
5965 # {Lithic::Models::PaymentCreateParams} for more details.
6066 #
@@ -72,6 +78,8 @@ class PaymentCreateParams < Lithic::Internal::Type::BaseModel
7278 #
7379 # @param token [String] Customer-provided token that will serve as an idempotency token. This token will
7480 #
81+ # @param hold [Lithic::Models::PaymentCreateParams::Hold] Optional hold to settle when this payment is initiated.
82+ #
7583 # @param memo [String]
7684 #
7785 # @param user_defined_id [String]
@@ -134,6 +142,19 @@ module Type
134142 # @!method self.values
135143 # @return [Array<Symbol>]
136144 end
145+
146+ class Hold < Lithic ::Internal ::Type ::BaseModel
147+ # @!attribute token
148+ # Token of the hold to settle when this payment is initiated.
149+ #
150+ # @return [String]
151+ required :token , String
152+
153+ # @!method initialize(token:)
154+ # Optional hold to settle when this payment is initiated.
155+ #
156+ # @param token [String] Token of the hold to settle when this payment is initiated.
157+ end
137158 end
138159 end
139160end
0 commit comments