|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import { RequestContext } from '../../api/common/request-context';
|
|
|
import { Channel, Order, Zone } from '../../entity';
|
|
import { Channel, Order, Zone } from '../../entity';
|
|
|
|
|
|
|
|
import { TaxZoneStrategy } from './tax-zone-strategy';
|
|
import { TaxZoneStrategy } from './tax-zone-strategy';
|
|
@@ -9,7 +10,7 @@ import { TaxZoneStrategy } from './tax-zone-strategy';
|
|
|
* @docsCategory tax
|
|
* @docsCategory tax
|
|
|
*/
|
|
*/
|
|
|
export class DefaultTaxZoneStrategy implements TaxZoneStrategy {
|
|
export class DefaultTaxZoneStrategy implements TaxZoneStrategy {
|
|
|
- determineTaxZone(zones: Zone[], channel: Channel, order?: Order): Zone {
|
|
|
|
|
|
|
+ determineTaxZone(ctx: RequestContext, zones: Zone[], channel: Channel, order?: Order): Zone {
|
|
|
return channel.defaultTaxZone;
|
|
return channel.defaultTaxZone;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|