Menu

## Buyer
in package

Buyer.php : 17

##### Tags

author

  BitPay Integrations integrations@bitpay.com

license

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

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

  REST API Ledgers

### Table of Contents

#### Properties

$buyerAddress1 : string|null
$buyerAddress2 : string|null
$buyerCity : string|null
$buyerCountry : string|null
$buyerEmail : string|null
$buyerName : string|null
$buyerNotify : bool|null
$buyerPhone : string|null
$buyerState : string|null
$buyerZip : string|null

#### Methods

__construct() : mixed
getBuyerAddress1() : string|null
  Gets address 1
getBuyerAddress2() : string|null
  Gets address2
getBuyerCity() : string|null
  Gets city
getBuyerCountry() : string|null
  Gets country
getBuyerEmail() : string|null
  Gets email
getBuyerName() : string|null
  Gets name
getBuyerNotify() : bool|null
  Gets notify
getBuyerPhone() : string|null
  Gets phone
getBuyerState() : string|null
  Gets state
getBuyerZip() : string|null
  Gets zip
setBuyerAddress1() : void
  Sets address1
setBuyerAddress2() : void
  Sets address2
setBuyerCity() : void
  Sets city
setBuyerCountry() : void
  Sets country
setBuyerEmail() : void
  Sets email
setBuyerName() : void
  Sets name
setBuyerNotify() : void
  Sets notify
setBuyerPhone() : void
  Sets phone
setBuyerState() : void
  Sets state
setBuyerZip() : void
  Sets zip
toArray() : array<string|int, mixed>
  Gets Buyer as array

### Properties

#### $buyerAddress1

Buyer.php : 20
`protected string|null $buyerAddress1 = null`

#### $buyerAddress2

Buyer.php : 21
`protected string|null $buyerAddress2 = null`

#### $buyerCity

Buyer.php : 22
`protected string|null $buyerCity = null`

#### $buyerCountry

Buyer.php : 25
`protected string|null $buyerCountry = null`

#### $buyerEmail

Buyer.php : 28
`protected string|null $buyerEmail = null`

#### $buyerName

Buyer.php : 19
`protected string|null $buyerName = null`

#### $buyerNotify

Buyer.php : 27
`protected bool|null $buyerNotify = null`

#### $buyerPhone

Buyer.php : 26
`protected string|null $buyerPhone = null`

#### $buyerState

Buyer.php : 23
`protected string|null $buyerState = null`

#### $buyerZip

Buyer.php : 24
`protected string|null $buyerZip = null`

### Methods

#### __construct()

Buyer.php : 30
`public __construct() : mixed`

#### getBuyerAddress1()

Buyer.php : 59

Gets address 1

`public getBuyerAddress1() : string|null`

##### Return values

string|null —

the address1

#### getBuyerAddress2()

Buyer.php : 79

Gets address2

`public getBuyerAddress2() : string|null`

##### Return values

string|null —

the address2

#### getBuyerCity()

Buyer.php : 99

Gets city

`public getBuyerCity() : string|null`

##### Return values

string|null —

the city

#### getBuyerCountry()

Buyer.php : 159

Gets country

`public getBuyerCountry() : string|null`

##### Return values

string|null —

the country

#### getBuyerEmail()

Buyer.php : 179

Gets email

`public getBuyerEmail() : string|null`

##### Return values

string|null —

the email

#### getBuyerName()

Buyer.php : 39

Gets name

`public getBuyerName() : string|null`

##### Return values

string|null —

the name

#### getBuyerNotify()

Buyer.php : 219

Gets notify

`public getBuyerNotify() : bool|null`

##### Return values

bool|null —

notify

#### getBuyerPhone()

Buyer.php : 199

Gets phone

`public getBuyerPhone() : string|null`

##### Return values

string|null —

the phone

#### getBuyerState()

Buyer.php : 119

Gets state

`public getBuyerState() : string|null`

##### Return values

string|null —

the state

#### getBuyerZip()

Buyer.php : 139

Gets zip

`public getBuyerZip() : string|null`

##### Return values

string|null —

the zip

#### setBuyerAddress1()

Buyer.php : 69

Sets address1

`public setBuyerAddress1(string $address1) : void`

##### Parameters

$address1 : string

  the address1

#### setBuyerAddress2()

Buyer.php : 89

Sets address2

`public setBuyerAddress2(string $address2) : void`

##### Parameters

$address2 : string

  the address2

#### setBuyerCity()

Buyer.php : 109

Sets city

`public setBuyerCity(string $city) : void`

##### Parameters

$city : string

  the city

#### setBuyerCountry()

Buyer.php : 169

Sets country

`public setBuyerCountry(string $country) : void`

##### Parameters

$country : string

  the country

#### setBuyerEmail()

Buyer.php : 189

Sets email

`public setBuyerEmail(string $email) : void`

##### Parameters

$email : string

  the email

#### setBuyerName()

Buyer.php : 49

Sets name

`public setBuyerName(string $name) : void`

##### Parameters

$name : string

  the name

#### setBuyerNotify()

Buyer.php : 229

Sets notify

`public setBuyerNotify(bool $notify) : void`

##### Parameters

$notify : bool

  notify

#### setBuyerPhone()

Buyer.php : 209

Sets phone

`public setBuyerPhone(string $phone) : void`

##### Parameters

$phone : string

  the phone

#### setBuyerState()

Buyer.php : 129

Sets state

`public setBuyerState(string $state) : void`

##### Parameters

$state : string

  the state

#### setBuyerZip()

Buyer.php : 149

Sets zip

`public setBuyerZip(string $zip) : void`

##### Parameters

$zip : string

  the zip

#### toArray()

Buyer.php : 239

Gets Buyer as array

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

##### Return values

array<string|int, mixed> —

Buyer as array

## Search results