Google Cloud Recaptcha Enterprise V1 Client - Class Item (1.7.0)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class Item.

Line items being purchased in this transaction.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.TransactionData.Item

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1 \ TransactionData

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Optional. The full name of the item.

↳ value float

Optional. The value per item that the user is paying, in the transaction currency, after discounts.

↳ quantity int|string

Optional. The quantity of this item that is being purchased.

↳ merchant_account_id string

Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.

getName

Optional. The full name of the item.

Returns
TypeDescription
string

setName

Optional. The full name of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

Optional. The value per item that the user is paying, in the transaction currency, after discounts.

Returns
TypeDescription
float

setValue

Optional. The value per item that the user is paying, in the transaction currency, after discounts.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getQuantity

Optional. The quantity of this item that is being purchased.

Returns
TypeDescription
int|string

setQuantity

Optional. The quantity of this item that is being purchased.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getMerchantAccountId

Optional. When a merchant is specified, its corresponding account_id.

Necessary to populate marketplace-style transactions.

Returns
TypeDescription
string

setMerchantAccountId

Optional. When a merchant is specified, its corresponding account_id.

Necessary to populate marketplace-style transactions.

Parameter
NameDescription
var string
Returns
TypeDescription
$this