BitPay PHP SDK

ItemizedDetails
in package

Class ItemizedDetails

Tags
author

BitPay Integrations integrations@bitpay.com

license

http://www.opensource.org/licenses/mit-license.php MIT

see
https://bitpay.readme.io/reference/invoices

REST API Invoices

Table of Contents

Properties

$amount  : float|null
$description  : string|null
$isFee  : bool|null

Methods

__construct()  : mixed
getAmount()  : float|null
Gets The amount of currency.
getDescription()  : string|null
Gets description
getIsFee()  : bool|null
Gets is fee
setAmount()  : void
Sets The amount of currency.
setDescription()  : void
Sets string for the item.
setIsFee()  : void
Sets is fee
toArray()  : array<string|int, mixed>
Gets Item details data as array

Properties

Methods

getAmount()

Gets The amount of currency.

public getAmount() : float|null
Return values
float|null

the amount

getDescription()

Gets description

public getDescription() : string|null

Display string for the item.

Return values
string|null

the description

getIsFee()

Gets is fee

public getIsFee() : bool|null

Indicates whether or not the item is considered a fee/tax or part of the main purchase.

Return values
bool|null

is fee

setAmount()

Sets The amount of currency.

public setAmount(float|null $amount) : void
Parameters
$amount : float|null

the amount

setDescription()

Sets string for the item.

public setDescription(string|null $description) : void
Parameters
$description : string|null

the description

setIsFee()

Sets is fee

public setIsFee(bool|null $isFee) : void

Gets Indicates whether or not the item is considered a fee/tax or part of the main purchase.

Parameters
$isFee : bool|null

is fee

toArray()

Gets Item details data as array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

item details data as array


        
On this page

Search results