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 \ V1Methods
__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. |
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 |
|