Skip to content

Commit 6d3b7c1

Browse files
authored
Merge pull request #226 from companieshouse/feature/BI-8867_remove_company_type_from_req_model
BI-8867 Remove company_type field from request model
2 parents 6c35352 + 71e7532 commit 6d3b7c1

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/services/order/certificates/mapping.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export default class CertificateMapping {
5656
customer_reference: certificateItemRequest.customerReference,
5757
company_number: certificateItemRequest.companyNumber,
5858
item_options: {
59-
company_type: itemOptions.companyType,
6059
certificate_type: itemOptions.certificateType,
6160
collection_location: itemOptions.collectionLocation,
6261
contact_number: itemOptions.contactNumber,

src/services/order/certificates/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ItemCostsResource {
3131
export interface ItemOptionsResource {
3232
certificate_type: string;
3333
collection_location: string;
34-
company_type: string;
34+
company_type?: string;
3535
contact_number: string;
3636
delivery_method: string;
3737
delivery_timescale: string;
@@ -219,7 +219,6 @@ export interface CertificateItemPatchRequest {
219219
export interface ItemOptionsRequest {
220220
certificateType?: string;
221221
collectionLocation?: string;
222-
companyType?: string;
223222
contactNumber?: string;
224223
deliveryMethod?: string;
225224
deliveryTimescale?: string;

test/services/certificates/service.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ describe("create a certificate POST", () => {
347347
itemOptions: {
348348
certificateType: "cert type",
349349
collectionLocation: "location",
350-
companyType: "llp",
351350
contactNumber: "010100",
352351
deliveryMethod: "delivery",
353352
deliveryTimescale: "timescale",
@@ -530,7 +529,6 @@ describe("update a certificate PATCH", () => {
530529
itemOptions: {
531530
certificateType: "cert type",
532531
collectionLocation: "location",
533-
companyType: "llp",
534532
contactNumber: "010100",
535533
deliveryMethod: "delivery",
536534
deliveryTimescale: "timescale",

0 commit comments

Comments
 (0)