Class: Google::Apis::ContentV2_1::Installment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Installment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Details of a monthly installment payment offering. Learn more about installments.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount the buyer has to pay per month.
-
#credit_type ⇒ String
Optional.
-
#downpayment ⇒ Google::Apis::ContentV2_1::Price
Optional.
-
#months ⇒ Fixnum
The number of installments the buyer has to pay.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Installment
constructor
A new instance of Installment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Installment
Returns a new instance of Installment.
5548 5549 5550 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5548 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount the buyer has to pay per month.
Corresponds to the JSON property amount
5530 5531 5532 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5530 def amount @amount end |
#credit_type ⇒ String
Optional. Type of installment payments. Supported values are: - "finance
" - "
lease
"
Corresponds to the JSON property creditType
5536 5537 5538 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5536 def credit_type @credit_type end |
#downpayment ⇒ Google::Apis::ContentV2_1::Price
Optional. The initial down payment amount the buyer has to pay.
Corresponds to the JSON property downpayment
5541 5542 5543 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5541 def downpayment @downpayment end |
#months ⇒ Fixnum
The number of installments the buyer has to pay.
Corresponds to the JSON property months
5546 5547 5548 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5546 def months @months end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5553 5554 5555 5556 5557 5558 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5553 def update!(**args) @amount = args[:amount] if args.key?(:amount) @credit_type = args[:credit_type] if args.key?(:credit_type) @downpayment = args[:downpayment] if args.key?(:downpayment) @months = args[:months] if args.key?(:months) end |