import { gracely } from "gracely" import { http } from "cloudly-http" import { Rail } from "../../Rail" export class Counterparts { constructor(private readonly client: http.Client) {} async replace(account: string, code: string, address: Rail.Address): Promise { return this.client.put(`/account/${account}/counterpart/${code}`, address) } async remove(account: string, code: string): Promise { return this.client.delete(`/account/${account}/counterpart/${code}`) } }