Google Shopping Merchant Products V1 Client - Class ProductInstallment (1.8.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class ProductInstallment.

A message that represents installment.

Generated from protobuf message google.shopping.merchant.products.v1.ProductInstallment

Namespace

Google \ Shopping \ Merchant \ Products \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ months int|string

The number of installments the buyer has to pay.

↳ amount Google\Shopping\Type\Price

The amount the buyer has to pay per month.

↳ downpayment Google\Shopping\Type\Price

The up-front down payment amount the buyer has to pay.

↳ credit_type int

Type of installment payments.

↳ annual_percentage_rate float

Optional. Annual percentage rate for credit_type finance

↳ total_amount Google\Shopping\Type\Price

Optional. Total amount the buyer has to pay, including interest.

↳ mileage_allowance ProductAttributes\Mileage

Optional. The mileage allowance for the lease of the vehicle. Only applicable to vehicle products.

getMonths

The number of installments the buyer has to pay.

Returns
Type Description
int|string

setMonths

The number of installments the buyer has to pay.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getAmount

The amount the buyer has to pay per month.

Returns
Type Description
Google\Shopping\Type\Price|null

hasAmount

clearAmount

setAmount

The amount the buyer has to pay per month.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getDownpayment

The up-front down payment amount the buyer has to pay.

Returns
Type Description
Google\Shopping\Type\Price|null

hasDownpayment

clearDownpayment

setDownpayment

The up-front down payment amount the buyer has to pay.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getCreditType

Type of installment payments.

Returns
Type Description
int

hasCreditType

clearCreditType

setCreditType

Type of installment payments.

Parameter
Name Description
var int
Returns
Type Description
$this

getAnnualPercentageRate

Optional. Annual percentage rate for credit_type finance

Returns
Type Description
float

hasAnnualPercentageRate

clearAnnualPercentageRate

setAnnualPercentageRate

Optional. Annual percentage rate for credit_type finance

Parameter
Name Description
var float
Returns
Type Description
$this

getTotalAmount

Optional. Total amount the buyer has to pay, including interest.

Returns
Type Description
Google\Shopping\Type\Price|null

hasTotalAmount

clearTotalAmount

setTotalAmount

Optional. Total amount the buyer has to pay, including interest.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getMileageAllowance

Optional. The mileage allowance for the lease of the vehicle. Only applicable to vehicle products.

Returns
Type Description
ProductAttributes\Mileage|null

hasMileageAllowance

clearMileageAllowance

setMileageAllowance

Optional. The mileage allowance for the lease of the vehicle. Only applicable to vehicle products.

Parameter
Name Description
var ProductAttributes\Mileage
Returns
Type Description
$this