Skip to main content

SwishTransactionMetadata


SwishTransactionMetadata

Properties

amount

public float $amount

currencyCode

public string $currencyCode

status

public \Onslip360\API\SwishTransaction\Status $status

swishTransaction

public int $swishTransaction

transactionDate

public string $transactionDate

type

public \Onslip360\API\SwishTransaction\Type $type

customer

public string|null $customer

transactionId

public string|null $transactionId

Methods

__construct

public __construct(float $amount, string $currencyCode, \Onslip360\API\SwishTransaction\Status $status, int $swishTransaction, string $transactionDate, \Onslip360\API\SwishTransaction\Type $type, string|null $customer = null, string|null $transactionId = null): mixed

Parameters:

ParameterTypeDescription
$amountfloat
$currencyCodestring
$status\Onslip360\API\SwishTransaction\Status
$swishTransactionint
$transactionDatestring
$type\Onslip360\API\SwishTransaction\Type
$customerstring|null
$transactionIdstring|null

Inherited methods

getExtended

public getExtended(string $name): string|null|\Onslip360\Nil

Parameters:

ParameterTypeDescription
$namestring

setExtended

public setExtended(string $name, string|null|\Onslip360\Nil $value): static

Parameters:

ParameterTypeDescription
$namestring
$valuestring|null|\Onslip360\Nil

fromJson

public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring|array|\JsonSerializable|\stdClass

fromJsonArray

public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring[]|array[]|\JsonSerializable[]|\stdClass[]

jsonSerialize

public jsonSerialize(): array|object


Automatically generated on 2024-11-05