import {
  afterEach,
  describe,
  globalExpect,
  init_dist,
  it
} from "../../chunk-D6N3USMR.mjs";
import {
  BlindPay,
  init_client
} from "../../chunk-VWWGGMMT.mjs";
import "../../chunk-FG25JHDX.mjs";
import "../../chunk-KMU6V4LW.mjs";
import "../../chunk-QGNLMN6Z.mjs";
import "../../chunk-ISHZTBAN.mjs";
import "../../chunk-UDRMLZWT.mjs";
import "../../chunk-LEPGLH7Q.mjs";
import "../../chunk-UC57SCKQ.mjs";
import "../../chunk-E7M4CJKR.mjs";
import "../../chunk-F5Z45GCA.mjs";
import "../../chunk-TBTA7A2P.mjs";
import "../../chunk-YIZJM2GU.mjs";
import "../../chunk-Z6EYX4D3.mjs";
import "../../chunk-ALHMJWQN.mjs";
import "../../chunk-B5T7AQLH.mjs";
import "../../chunk-RC5NN5UF.mjs";
import "../../chunk-VGU72ZNI.mjs";
import "../../chunk-LRHWT4JU.mjs";
import "../../chunk-WE73MTQL.mjs";
import "../../chunk-UOAM7SX3.mjs";
import {
  __async,
  __commonJS
} from "../../chunk-OBKEW4AQ.mjs";

// src/resources/fees/fees.test.ts
var require_fees_test = __commonJS({
  "src/resources/fees/fees.test.ts"(exports) {
    init_dist();
    init_client();
    var mockFeeOptions = {
      payin_flat: 0,
      payin_percentage: 0,
      payout_flat: 100,
      payout_percentage: 0
    };
    describe("Fees", () => {
      afterEach(() => fetchMock.resetMocks());
      const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
      describe("Get fees", () => {
        it("should get instance fees", () => __async(null, null, function* () {
          const mockedFees = {
            id: "fe_000000000000",
            instance_id: "in_000000000000",
            ach: mockFeeOptions,
            domestic_wire: mockFeeOptions,
            rtp: mockFeeOptions,
            international_swift: mockFeeOptions,
            pix: mockFeeOptions,
            pix_safe: mockFeeOptions,
            ach_colombia: mockFeeOptions,
            transfers_3: mockFeeOptions,
            spei: mockFeeOptions,
            tron: mockFeeOptions,
            ethereum: mockFeeOptions,
            polygon: mockFeeOptions,
            base: mockFeeOptions,
            arbitrum: mockFeeOptions,
            stellar: mockFeeOptions,
            solana: mockFeeOptions,
            created_at: "2025-01-01T00:00:00Z",
            updated_at: "2025-01-01T00:00:00Z"
          };
          fetchMock.mockResponseOnce(JSON.stringify(mockedFees), {
            headers: { "Content-Type": "application/json" }
          });
          const { data, error } = yield blindpay.fees.get();
          globalExpect(error).toBeNull();
          globalExpect(data).toEqual(mockedFees);
        }));
      });
    });
  }
});
export default require_fees_test();
