// This is Generated Source. import AccountBusinessAddressResource from "../definitions/AccountBusinessAddressResource"; import GetAccountInfoResponse from "../definitions/GetAccountInfoResponse"; import ModifyAccountBusinessAddressRequest from "../definitions/ModifyAccountBusinessAddressRequest"; import PathSegment from "../PathSegment"; export default class BusinessAddress extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("business-address", id, prv, service); } /** *

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Light

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } /** *

Required Permissions

PermissionDescription
EditAccountsViewing and updating user account info (including name, business name, address and phone number/account number)
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Medium

*/ put(body: ModifyAccountBusinessAddressRequest): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }).then((res) => { return res.json(); }); } /** *

Required Permissions

PermissionDescription
EditAccountsViewing and updating user account info (including name, business name, address and phone number/account number)
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

Usage Plan Group

Medium

* return {ApiResponse} */ putRaw(body: ModifyAccountBusinessAddressRequest): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }); } }