Skip to content

Commit

Permalink
Added the type field to the Tax Category model
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Feb 10, 2024
1 parent fe7a641 commit 65b5b49
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- Added the `type` field to the TaxCategory model
- Added the `Taxable` interface
- Added the extendable `TaxEngine` (facade) that can resolve tax rates from taxables, billing/shipping addresses (a place for various country-specific taxation drivers)
- Added the `Merchant` interface
- BC: Added the `?CheckoutSubject` return type to the `getCart()` method of the `Checkout` interface
- BC: Changed `Checkout::getShippingAddress()` return type to be nullable
- BC: Added the void return type to `Checkout::setShippingAddress()`
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
php: ['8.2']
laravel: ['10.0', '10.35']
laravel: ['10.0', '10.43']
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions src/Contracts/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Dropped PHP 8.0 & PHP 8.1 Support
- Dropped Laravel 9 Support
- Added the `Stockable` interface
- Added the `Merchant` interface

## 3.x Series

Expand Down
30 changes: 30 additions & 0 deletions src/Contracts/Merchant.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

/**
* Contains the Merchant interface.
*
* @copyright Copyright (c) 2024 Vanilo UG
* @author Attila Fulop
* @license MIT
* @since 2024-02-10
*
*/

namespace Vanilo\Contracts;

interface Merchant extends Contactable
{
public function getLegalName(): string;

public function getBrandAliasName(): ?string;

public function getTaxNumber(): ?string;

public function getRegistrationNumber(): ?string;

public function isEuRegistered(): bool;

public function getAddress(): Address;
}

0 comments on commit 65b5b49

Please sign in to comment.