Skip to content

Latest commit

 

History

History
executable file
·
93 lines (67 loc) · 5.11 KB

File metadata and controls

executable file
·
93 lines (67 loc) · 5.11 KB

industrySelection

Available Operations

getV1CompanyIndustry

Get industry selection for the company.

Example Usage

import { Gusto } from "@speakeasy-sdks/gusto";
import { GetV1CompanyIndustryRequest, GetV1CompanyIndustryResponse } from "@speakeasy-sdks/gusto/dist/sdk/models/operations";

const sdk = new Gusto({
  security: {
    authorization: "",
  },
});
const companyId: string = "tempora";

sdk.industrySelection.getV1CompanyIndustry(companyId).then((res: GetV1CompanyIndustryResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Parameters

Parameter Type Required Description
companyId string ✔️ The UUID of the company
config AxiosRequestConfig Available config options for making requests.

Response

Promise<operations.GetV1CompanyIndustryResponse>

putV1CompanyIndustry

Update the company industry selection by passing in industry classification codes: NAICS code, SICS code and industry title. Our UI is leveraging Middesk API to determine industry classification codes.

Example Usage

import { Gusto } from "@speakeasy-sdks/gusto";
import {
  PutV1CompanyIndustryRequest,
  PutV1CompanyIndustryRequestBody,
  PutV1CompanyIndustryResponse,
} from "@speakeasy-sdks/gusto/dist/sdk/models/operations";

const sdk = new Gusto({
  security: {
    authorization: "",
  },
});
const companyId: string = "aspernatur";
const requestBody: PutV1CompanyIndustryRequestBody = {
  naicsCode: "voluptas",
  sicCodes: [
    "voluptas",
    "minima",
  ],
  title: "Miss",
};

sdk.industrySelection.putV1CompanyIndustry(companyId, requestBody).then((res: PutV1CompanyIndustryResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Parameters

Parameter Type Required Description
companyId string ✔️ The UUID of the company
requestBody operations.PutV1CompanyIndustryRequestBody N/A
config AxiosRequestConfig Available config options for making requests.

Response

Promise<operations.PutV1CompanyIndustryResponse>