UNPKG

@coinbase/cdp-sdk

Version:

SDK for interacting with the Coinbase Developer Platform Wallet API

28 lines (26 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPaymentMethod = exports.listPaymentMethods = void 0; const cdpApiClient_js_1 = require("../../cdpApiClient.js"); /** * List payment methods linked to your entity. Payment methods represent external financial instruments that can be used as a target for transfers. The list will not include disabled or deleted payment methods. **Currently Supported Types:** - `fedwire`: Domestic USD wire transfers - `swift`: International wire transfers - `sepa`: SEPA EUR transfers **Note:** Payment methods are created and verified through your linked CDP entity. Currently, fetching payment methods is only supported for Prime investment vehicles linked to CDP. * @summary List payment methods */ const listPaymentMethods = (params, options) => { return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/payment-methods`, method: "GET", params }, options); }; exports.listPaymentMethods = listPaymentMethods; /** * Get details of a specific payment method by its ID. Returns 404 if the payment method is not found or not owned by the requesting entity. * @summary Get payment method */ const getPaymentMethod = (paymentMethodId, options) => { return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/payment-methods/${paymentMethodId}`, method: "GET" }, options); }; exports.getPaymentMethod = getPaymentMethod; //# sourceMappingURL=payment-methods.js.map