Google Shopping Merchant Products V1beta Client - Class SubscriptionCost (0.1.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class SubscriptionCost.

The SubscriptionCost of the product.

Generated from protobuf message google.shopping.merchant.products.v1beta.SubscriptionCost

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ period int

The type of subscription period. Supported values are: * "month" * "year"

↳ period_length int|string

The number of subscription periods the buyer has to pay.

↳ amount Google\Shopping\Type\Price

The amount the buyer has to pay per subscription period.

getPeriod

The type of subscription period.

Supported values are:

  • "month"
  • "year"
Returns
Type Description
int

setPeriod

The type of subscription period.

Supported values are:

  • "month"
  • "year"
Parameter
Name Description
var int
Returns
Type Description
$this

getPeriodLength

The number of subscription periods the buyer has to pay.

Returns
Type Description
int|string

setPeriodLength

The number of subscription periods the buyer has to pay.

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

getAmount

The amount the buyer has to pay per subscription period.

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

hasAmount

clearAmount

setAmount

The amount the buyer has to pay per subscription period.

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