Skip to content

Commit

Permalink
fix!: FE-2118 - update the DeleteCarrierOptions path (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cysword authored May 31, 2024
1 parent a338adf commit b56fe5a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/endpoints/private/carrier-options/DeleteCarrierOptions.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {type HttpMethod} from '@/types';
import {AbstractPrivateEndpoint} from '@/model/endpoint/AbstractPrivateEndpoint';
import {type CarrierId} from '@myparcel/constants';
import {type CreateDefinition} from '@/model/endpoint/AbstractEndpoint.types';
import {type HttpMethod} from '@/types';

type DeleteCarrierOptionsDefinition = CreateDefinition<{
name: typeof DeleteCarrierOptions.name;
path: {
// eslint-disable-next-line @typescript-eslint/naming-convention
carrier_id: CarrierId;
contract_id: number;
// eslint-disable-next-line @typescript-eslint/naming-convention
account_id: number;
};
Expand All @@ -16,6 +15,6 @@ type DeleteCarrierOptionsDefinition = CreateDefinition<{
export class DeleteCarrierOptions extends AbstractPrivateEndpoint<DeleteCarrierOptionsDefinition> {
public readonly method: HttpMethod = 'DELETE';
public readonly name = 'deleteCarrierOption';
public readonly path = 'accounts/:account_id/carrier_options/:carrier_id';
public readonly path = 'accounts/:account_id/carrier_options/:contract_id';
public readonly property = 'carrier_options';
}

0 comments on commit b56fe5a

Please sign in to comment.