SwishTransaction
SwishTransaction
- Full name:
\Onslip360\API\SwishTransaction
- Parent class:
\Onslip360\Onslip360Object
Properties
amount
public float $amount
currency
public string $currency
paymentMethod
public int $paymentMethod
created
public string|null $created
createdDate
public string|null $createdDate
customer
public string|null $customer
deleted
public string|null $deleted
errors
public array|null $errors
id
public int|null $id
labels
public array|null $labels
merchant
public string|null $merchant
message
public string|null $message
originalPaymentReference
public string|null $originalPaymentReference
paidDate
public string|null $paidDate
payerPaymentReference
public string|null $payerPaymentReference
paymentReference
public string|null $paymentReference
paymentReferenceUrl
public string|null $paymentReferenceUrl
paymentRequestToken
public string|null $paymentRequestToken
status
public \Onslip360\API\SwishTransaction\Status|null $status
tags
public array|null $tags
type
public \Onslip360\API\SwishTransaction\Type|null $type
updated
public string|null $updated
updatedBy
public int|null $updatedBy
updatedFrom
public int|null $updatedFrom
Methods
__construct
public __construct(float $amount, string $currency, int $paymentMethod, string|null $created = null, string|null $createdDate = null, string|null $customer = null, string|null $deleted = null, \Onslip360\API\SwishError[]|null $errors = null, int|null $id = null, int[]|null $labels = null, string|null $merchant = null, string|null $message = null, string|null $originalPaymentReference = null, string|null $paidDate = null, string|null $payerPaymentReference = null, string|null $paymentReference = null, string|null $paymentReferenceUrl = null, string|null $paymentRequestToken = null, \Onslip360\API\SwishTransaction\Status|null $status = null, string[]|null $tags = null, \Onslip360\API\SwishTransaction\Type|null $type = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$amount | float | |
$currency | string | |
$paymentMethod | int | |
$created | string|null | |
$createdDate | string|null | |
$customer | string|null | |
$deleted | string|null | |
$errors | \Onslip360\API\SwishError[]|null | |
$id | int|null | |
$labels | int[]|null | |
$merchant | string|null | |
$message | string|null | |
$originalPaymentReference | string|null | |
$paidDate | string|null | |
$payerPaymentReference | string|null | |
$paymentReference | string|null | |
$paymentReferenceUrl | string|null | |
$paymentRequestToken | string|null | |
$status | \Onslip360\API\SwishTransaction\Status|null | |
$tags | string[]|null | |
$type | \Onslip360\API\SwishTransaction\Type|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05