UpdateRequestOwner
extends DomainValue
in package
Owner fields accepted when updating a payment method.
Table of Contents
Properties
- $address : UpdateRequestOwnerAddress|null
- Updated owner address. Optional request field. PHP type: `UpdateRequestOwnerAddress|null`; wire field: `address` (`object`).
- $name : string|null
- Updated owner name. Optional request field. PHP type: `string|null`; wire field: `name` (`string`).
Methods
- __construct() : mixed
- Builds the owner portion of a payment-method update.
- fromArray() : static
- Builds owner 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 owner fields explicitly supplied by the caller.
Properties
$address read-only
Updated owner address. Optional request field. PHP type: `UpdateRequestOwnerAddress|null`; wire field: `address` (`object`).
public
UpdateRequestOwnerAddress|null
$address
$name read-only
Updated owner name. Optional request field. PHP type: `string|null`; wire field: `name` (`string`).
public
string|null
$name
Methods
__construct()
Builds the owner portion of a payment-method update.
public
__construct([string|null $name = null ][, UpdateRequestOwnerAddress|null $address = null ]) : mixed
Parameters
- $name : string|null = null
- $address : UpdateRequestOwnerAddress|null = null
fromArray()
Builds owner 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_caseAPI 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
camelCaseor wiresnake_casefield name.
Return values
booloffsetGet()
Reads a typed property through PHP `ArrayAccess`.
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
-
PHP
camelCaseor wiresnake_casefield 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
offsetUnset()
Rejects unsetting because domain values are immutable.
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
-
Ignored field name.
Tags
toArray()
Returns only owner 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.