Skip to content

Commit

Permalink
stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheipashkevich committed Feb 18, 2021
1 parent 59eabf2 commit 30b3ee8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/Resources/Discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ class Discount extends Resource
*
* @var array
*/
public array $stores = [];
public array $stores;

/**
* If true, the password verification is necessary in order to apply this discount on POS.
*
* @var bool
*/
public bool $restrictedAccess = false;
public bool $restrictedAccess;

/**
* The time when this resource was created.
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Employee extends Resource
*
* @var array
*/
public array $stores = [];
public array $stores;

/**
* Determine if the employee is owner.
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Merchant.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Merchant extends Resource
*
* @var array
*/
public array $currency = [];
public array $currency;

/**
* The date and time when the merchant account was created.
Expand Down
30 changes: 15 additions & 15 deletions src/Resources/Receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Receipt extends Resource
/**
* The receipt's note
*
* @var string
* @var string|null
*/
public string $note;
public ?string $note;

/**
* The type of the receipt.
Expand All @@ -35,14 +35,14 @@ class Receipt extends Resource
*
* @var string|null
*/
public ?string $refundFor = null;
public ?string $refundFor;

/**
* The order name or number associated with this receipt.
*
* @var string
* @var string|null
*/
public string $order;
public ?string $order;

/**
* The autogenerated date and time when the receipt was created in Loyverse.
Expand All @@ -68,9 +68,9 @@ class Receipt extends Resource
/**
* The time when this receipt was cancelled.
*
* @var string
* @var string|null
*/
public string $cancelledAt;
public ?string $cancelledAt;

/**
* The name of the the source this receipt comes from.
Expand Down Expand Up @@ -117,9 +117,9 @@ class Receipt extends Resource
/**
* The customer id associated with the receipt.
*
* @var string
* @var string|null
*/
public string $customerId;
public ?string $customerId;

/**
* The total amount of all discounts applied in the receipt (including discount by points).
Expand Down Expand Up @@ -152,23 +152,23 @@ class Receipt extends Resource
/**
* The dining option selected for the receipt.
*
* @var string
* @var string|null
*/
public string $diningOption;
public ?string $diningOption;

/**
* The list of discounts and it's amounts applied to the receipt.
*
* @var array
*/
public array $totalDiscounts = [];
public array $totalDiscounts;

/**
* An array of tax line objects.
*
* @var array
*/
public array $totalTaxes = [];
public array $totalTaxes;

/**
* The total tip money amount for the receipt.
Expand All @@ -189,14 +189,14 @@ class Receipt extends Resource
*
* @var array
*/
public array $lineItems = [];
public array $lineItems;

/**
* The list of receipt payments.
*
* @var array
*/
public array $payments = [];
public array $payments;

/**
* Create a refund for the given receipt.
Expand Down

0 comments on commit 30b3ee8

Please sign in to comment.