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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The full name of the item. |
↳ value |
float
The value per item that the user is paying, in the transaction currency, after discounts. |
↳ quantity |
int|string
The quantity of this item that is being purchased. |
↳ merchant_account_id |
string
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions. |
getName
The full name of the item.
Returns | |
---|---|
Type | Description |
string |
setName
The full name of the item.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getValue
The value per item that the user is paying, in the transaction currency, after discounts.
Returns | |
---|---|
Type | Description |
float |
setValue
The value per item that the user is paying, in the transaction currency, after discounts.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getQuantity
The quantity of this item that is being purchased.
Returns | |
---|---|
Type | Description |
int|string |
setQuantity
The quantity of this item that is being purchased.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getMerchantAccountId
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
Returns | |
---|---|
Type | Description |
string |
setMerchantAccountId
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |