PaymentMethod
in package
implements
JsonSerializable
Class PaymentMethod
Tags
Table of Contents
Interfaces
- JsonSerializable
Constants
Properties
- $details : array<string|int, mixed>
- $id : int|null
- $isPrimary : bool
- $paymentSourceId : string|null
- $type : int|null
- $userAccount : UserAccount|null
Methods
- getDetails() : array<string|int, mixed>
- getId() : int|null
- getIsPrimary() : bool|null
- getPaymentSourceId() : string|null
- getType() : int|null
- getUserAccount() : UserAccount|null
- jsonSerialize() : mixed
- setDetails() : self
- setId() : mixed
- setIsPrimary() : mixed
- setPaymentSourceId() : mixed
- setType() : mixed
- setUserAccount() : mixed
Constants
CREDIT_CARD_METHOD
public
mixed
CREDIT_CARD_METHOD
= 2
DIRECT_DEBIT_METHOD
public
mixed
DIRECT_DEBIT_METHOD
= 1
Properties
$details
private
array<string|int, mixed>
$details
Tags
$id
private
int|null
$id
Tags
$isPrimary
private
bool
$isPrimary
Tags
$paymentSourceId
private
string|null
$paymentSourceId
Tags
$type
private
int|null
$type
Tags
$userAccount
private
UserAccount|null
$userAccount
Tags
Methods
getDetails()
public
getDetails() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
public
getId() : int|null
Return values
int|nullgetIsPrimary()
public
getIsPrimary() : bool|null
Return values
bool|nullgetPaymentSourceId()
public
getPaymentSourceId() : string|null
Return values
string|nullgetType()
public
getType() : int|null
Return values
int|nullgetUserAccount()
public
getUserAccount() : UserAccount|null
Return values
UserAccount|nulljsonSerialize()
public
jsonSerialize() : mixed
setDetails()
public
setDetails(array<string|int, mixed> $details) : self
Parameters
- $details : array<string|int, mixed>
Return values
selfsetId()
public
setId(int|null $id) : mixed
Parameters
- $id : int|null
setIsPrimary()
public
setIsPrimary(bool|null $isPrimary) : mixed
Parameters
- $isPrimary : bool|null
setPaymentSourceId()
public
setPaymentSourceId(string|null $paymentSourceId) : mixed
Parameters
- $paymentSourceId : string|null
setType()
public
setType(int|null $type) : mixed
Parameters
- $type : int|null
setUserAccount()
public
setUserAccount(UserAccount|null $userAccount) : mixed
Parameters
- $userAccount : UserAccount|null