import {
  __esm,
  __objRest
} from "./chunk-OBKEW4AQ.mjs";

// src/resources/virtual-accounts/index.ts
function createVirtualAccountsResource(instanceId, client) {
  return {
    list(receiver_id) {
      return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
    },
    get({
      receiver_id,
      id
    }) {
      return client.get(
        `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
      );
    },
    create(_a) {
      var _b = _a, {
        receiver_id
      } = _b, data = __objRest(_b, [
        "receiver_id"
      ]);
      return client.post(
        `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
        data
      );
    },
    update(_c) {
      var _d = _c, {
        receiver_id,
        id
      } = _d, data = __objRest(_d, [
        "receiver_id",
        "id"
      ]);
      return client.put(
        `/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
        data
      );
    }
  };
}
var init_virtual_accounts = __esm({
  "src/resources/virtual-accounts/index.ts"() {
  }
});

export {
  createVirtualAccountsResource,
  init_virtual_accounts
};
