-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
4,975 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: AutoRelease | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Auto Increment Semver Action | ||
uses: MCKanpolat/[email protected] | ||
id: versioning | ||
with: | ||
releaseType: patch | ||
incrementPerCommit: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Next Release Number | ||
run: echo ${{ steps.versioning.outputs.version }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ steps.versioning.outputs.version }} | ||
make_latest: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
namespace Gw\AutoCustomerGroup\Api\Data; | ||
|
||
interface OrderTaxCollectedInterface | ||
{ | ||
/** | ||
* @param int $orderId | ||
* @return array | ||
*/ | ||
public function getTaxCollectedDetails(int $orderId): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?php | ||
namespace Gw\AutoCustomerGroup\Api\Data; | ||
|
||
interface OrderTaxSchemeInterface | ||
{ | ||
/** | ||
* @return $this | ||
*/ | ||
public function save(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getOrderId(): int; | ||
|
||
/** | ||
* @param int $orderId | ||
* @return void | ||
*/ | ||
public function setOrderId(int $orderId): void; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getReference(): ?string; | ||
|
||
/** | ||
* @param string|null $reference | ||
* @return void | ||
*/ | ||
public function setReference(?string $reference): void; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getName(): ?string; | ||
|
||
/** | ||
* @param string|null $name | ||
* @return void | ||
*/ | ||
public function setName(?string $name): void; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getStoreCurrency(): ?string; | ||
|
||
/** | ||
* @param string|null $currency | ||
* @return void | ||
*/ | ||
public function setStoreCurrency(?string $currency): void; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getBaseCurrency(): ?string; | ||
|
||
/** | ||
* @param string|null $currency | ||
* @return void | ||
*/ | ||
public function setBaseCurrency(?string $currency): void; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getSchemeCurrency(): ?string; | ||
|
||
/** | ||
* @param string|null $currency | ||
* @return void | ||
*/ | ||
public function setSchemeCurrency(?string $currency): void; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getExchangeRateBaseToStore(): float; | ||
|
||
/** | ||
* @param float $rate | ||
* @return void | ||
*/ | ||
public function setExchangeRateBaseToStore(float $rate): void; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getExchangeRateSchemeToBase(): float; | ||
|
||
/** | ||
* @param float $rate | ||
* @return void | ||
*/ | ||
public function setExchangeRateSchemeToBase(float $rate): void; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getImportThresholdStore(): float; | ||
|
||
/** | ||
* @param float $threshold | ||
* @return void | ||
*/ | ||
public function setImportThresholdStore(float $threshold): void; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getImportThresholdBase(): float; | ||
|
||
/** | ||
* @param float $threshold | ||
* @return void | ||
*/ | ||
public function setImportThresholdBase(float $threshold): void; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getImportThresholdScheme(): float; | ||
|
||
/** | ||
* @param float $threshold | ||
* @return void | ||
*/ | ||
public function setImportThresholdScheme(float $threshold): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
namespace Gw\AutoCustomerGroup\Api\Data; | ||
|
||
interface TaxIdCheckResponseInterface | ||
{ | ||
/** | ||
* @param bool $valid | ||
* @return void | ||
*/ | ||
public function setIsValid(bool $valid): void; | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function getIsValid(): bool; | ||
|
||
/** | ||
* @param bool $request_success | ||
* @return void | ||
*/ | ||
public function setRequestSuccess(bool $request_success): void; | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function getRequestSuccess(): bool; | ||
|
||
/** | ||
* @param string $date | ||
* @return void | ||
*/ | ||
public function setRequestDate(string $date): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getRequestDate(): string; | ||
|
||
/** | ||
* @param string $identifier | ||
* @return void | ||
*/ | ||
public function setRequestIdentifier(string $identifier): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getRequestIdentifier(): string; | ||
|
||
/** | ||
* @param string $message | ||
* @return void | ||
*/ | ||
public function setRequestMessage(string $message): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getRequestMessage(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?php | ||
namespace Gw\AutoCustomerGroup\Api\Data; | ||
|
||
use Magento\Directory\Model\Currency; | ||
use Magento\Quote\Model\Quote; | ||
|
||
interface TaxSchemeInterface | ||
{ | ||
/** | ||
* @param string $countryCode | ||
* @param string|null $taxId | ||
* @return TaxIdCheckResponseInterface | ||
*/ | ||
public function checkTaxId( | ||
string $countryCode, | ||
?string $taxId | ||
): TaxIdCheckResponseInterface; | ||
|
||
/** | ||
* @param string $customerCountryCode | ||
* @param string|null $customerPostCode | ||
* @param bool $taxIdValidated | ||
* @param float $orderValue | ||
* @param int|null $storeId | ||
* @return int|null | ||
*/ | ||
public function getCustomerGroup( | ||
string $customerCountryCode, | ||
?string $customerPostCode, | ||
bool $taxIdValidated, | ||
float $orderValue, | ||
?int $storeId | ||
): ?int; | ||
|
||
/** | ||
* @param Quote $quote | ||
* @return float | ||
*/ | ||
public function getOrderValue( | ||
Quote $quote | ||
): float; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSchemeName(): string; | ||
|
||
/** | ||
* @param int|null $storeId | ||
* @return string|null | ||
*/ | ||
public function getFrontEndPrompt(?int $storeId): ?string; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSchemeCurrencyCode(): string; | ||
|
||
/** | ||
* @param int|null $storeId | ||
* @return float | ||
*/ | ||
public function getThresholdInSchemeCurrency(?int $storeId): float; | ||
|
||
/** | ||
* @param int|null $storeId | ||
* @return string|null | ||
*/ | ||
public function getSchemeRegistrationNumber(?int $storeId): ?string; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSchemeId(): string; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getSchemeCountries(): array; | ||
|
||
/** | ||
* @param int|null $storeId | ||
* @return bool | ||
*/ | ||
public function isEnabled(?int $storeId): bool; | ||
|
||
/** | ||
* @param int|null $storeId | ||
* @return float | ||
*/ | ||
public function getSchemeExchangeRate(?int $storeId): float; | ||
} |
Oops, something went wrong.