Skip to content

Commit

Permalink
First Issue of Updated Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gwharton committed Sep 9, 2024
1 parent 033b3e2 commit fd7fdcd
Show file tree
Hide file tree
Showing 76 changed files with 4,975 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/autorelease.yaml
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
11 changes: 11 additions & 0 deletions Api/Data/OrderTaxCollectedInterface.php
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;
}
131 changes: 131 additions & 0 deletions Api/Data/OrderTaxSchemeInterface.php
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;
}
60 changes: 60 additions & 0 deletions Api/Data/TaxIdCheckResponseInterface.php
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;
}
92 changes: 92 additions & 0 deletions Api/Data/TaxSchemeInterface.php
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;
}
Loading

0 comments on commit fd7fdcd

Please sign in to comment.