Inttegro PHP SDK

UpdateRequestOwnerAddress extends DomainValue
in package

FinalYes

Postal address fields accepted when updating a payment-method owner.

Table of Contents

Properties

$city  : string|null
Updated city or locality. Optional request field. PHP type: `string|null`; wire field: `city` (`string`).
$country  : string|null
Updated two-letter country code. Optional request field. PHP type: `string|null`; wire field: `country` (`string`).
$line1  : string|null
Updated first address line. Optional request field. PHP type: `string|null`; wire field: `line1` (`string`).
$line2  : string|null
Updated second address line. Optional request field. PHP type: `string|null`; wire field: `line2` (`string`).
$name  : string|null
Updated recipient name. Optional request field. PHP type: `string|null`; wire field: `name` (`string`).
$phoneNumber  : string|null
Updated phone number. Optional request field. PHP type: `string|null`; wire field: `phone_number` (`string`).
$postCode  : string|null
Updated postal code. Optional request field. PHP type: `string|null`; wire field: `post_code` (`string`).
$region  : string|null
Updated region, state, or province. Optional request field. PHP type: `string|null`; wire field: `region` (`string`).

Methods

__construct()  : mixed
Builds the address portion of a payment-method owner update.
fromArray()  : static
Builds address fields from API wire names.
jsonSerialize()  : array<string, mixed>
Returns the same API wire object as `toArray()` for `json_encode()`.
offsetExists()  : bool
Reports whether a non-null property exists for a PHP or API field name.
offsetGet()  : mixed
Reads a typed property through PHP `ArrayAccess`.
offsetSet()  : void
Rejects mutation because domain values are immutable.
offsetUnset()  : void
Rejects unsetting because domain values are immutable.
toArray()  : array<string, mixed>
Returns only address fields explicitly supplied by the caller.

Properties

$city read-only

Updated city or locality. Optional request field. PHP type: `string|null`; wire field: `city` (`string`).

public string|null $city

$country read-only

Updated two-letter country code. Optional request field. PHP type: `string|null`; wire field: `country` (`string`).

public string|null $country

$line1 read-only

Updated first address line. Optional request field. PHP type: `string|null`; wire field: `line1` (`string`).

public string|null $line1

$line2 read-only

Updated second address line. Optional request field. PHP type: `string|null`; wire field: `line2` (`string`).

public string|null $line2

$name read-only

Updated recipient name. Optional request field. PHP type: `string|null`; wire field: `name` (`string`).

public string|null $name

$phoneNumber read-only

Updated phone number. Optional request field. PHP type: `string|null`; wire field: `phone_number` (`string`).

public string|null $phoneNumber

$postCode read-only

Updated postal code. Optional request field. PHP type: `string|null`; wire field: `post_code` (`string`).

public string|null $postCode

$region read-only

Updated region, state, or province. Optional request field. PHP type: `string|null`; wire field: `region` (`string`).

public string|null $region

Methods

__construct()

Builds the address portion of a payment-method owner update.

public __construct([string|null $city = null ][, string|null $country = null ][, string|null $line1 = null ][, string|null $line2 = null ][, string|null $name = null ][, string|null $phoneNumber = null ][, string|null $postCode = null ][, string|null $region = null ]) : mixed
Parameters
$city : string|null = null
$country : string|null = null
$line1 : string|null = null
$line2 : string|null = null
$name : string|null = null
$phoneNumber : string|null = null
$postCode : string|null = null
$region : string|null = null

fromArray()

Builds address fields from API wire names.

public static fromArray(array<string|int, mixed> $data) : static

@param array<string, mixed> $data

Parameters
$data : array<string|int, mixed>

Wire object keyed by snake_case API field names.

Return values
static —

A typed, immutable domain value.

jsonSerialize()

Returns the same API wire object as `toArray()` for `json_encode()`.

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>

offsetExists()

Reports whether a non-null property exists for a PHP or API field name.

public offsetExists(mixed $offset) : bool

Both paymentId and payment_id address the same typed property.

Parameters
$offset : mixed

PHP camelCase or wire snake_case field name.

Return values
bool

offsetGet()

Reads a typed property through PHP `ArrayAccess`.

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

PHP camelCase or wire snake_case field name.

Return values
mixed —

The PHP-native property value.

offsetSet()

Rejects mutation because domain values are immutable.

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed

Ignored field name.

$value : mixed

Ignored replacement value.

Tags
throws
LogicException

Always.

offsetUnset()

Rejects unsetting because domain values are immutable.

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

Ignored field name.

Tags
throws
LogicException

Always.

toArray()

Returns only address fields explicitly supplied by the caller.

public toArray() : array<string, mixed>

@return array<string, mixed>

Return values
array<string, mixed> —

The recursively normalized API object.

On this page

Search results