diff --git a/.changeset/eight-cups-reflect.md b/.changeset/eight-cups-reflect.md new file mode 100644 index 00000000..fc8a8fbd --- /dev/null +++ b/.changeset/eight-cups-reflect.md @@ -0,0 +1,5 @@ +--- +'@interledger/open-payments': patch +--- + +Changes return type of outgoingPayment.create to OutgoingPaymentWithSpentAmounts to reflect correct return type. diff --git a/packages/open-payments/src/client/outgoing-payment.ts b/packages/open-payments/src/client/outgoing-payment.ts index 3a5a33a8..93fd461a 100644 --- a/packages/open-payments/src/client/outgoing-payment.ts +++ b/packages/open-payments/src/client/outgoing-payment.ts @@ -10,6 +10,7 @@ import { getRSPath, OutgoingPayment, OutgoingPaymentPaginationResult, + OutgoingPaymentWithSpentAmounts, PaginationArgs } from '../types' import { get, post } from './requests' @@ -24,7 +25,7 @@ export interface OutgoingPaymentRoutes { create( requestArgs: ResourceRequestArgs, createArgs: CreateOutgoingPaymentArgs - ): Promise + ): Promise } export const createOutgoingPaymentRoutes = (