Skip to content

Commit

Permalink
fix(open-payments): change outgoingPayment.create return type (#488)
Browse files Browse the repository at this point in the history
* fix(open-payments)!: change outgoingPayment.create return type

BREAKING: consumers should update code to account for new return type of OutgoingPaymentWithSpentAmount for outgoingPayment.create method

* fix: bump type to patch
  • Loading branch information
BlairCurrey authored Jul 9, 2024
1 parent 867f733 commit c9e1d15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-cups-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@interledger/open-payments': patch
---

Changes return type of outgoingPayment.create to OutgoingPaymentWithSpentAmounts to reflect correct return type.
3 changes: 2 additions & 1 deletion packages/open-payments/src/client/outgoing-payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
getRSPath,
OutgoingPayment,
OutgoingPaymentPaginationResult,
OutgoingPaymentWithSpentAmounts,
PaginationArgs
} from '../types'
import { get, post } from './requests'
Expand All @@ -24,7 +25,7 @@ export interface OutgoingPaymentRoutes {
create(
requestArgs: ResourceRequestArgs,
createArgs: CreateOutgoingPaymentArgs
): Promise<OutgoingPayment>
): Promise<OutgoingPaymentWithSpentAmounts>
}

export const createOutgoingPaymentRoutes = (
Expand Down

0 comments on commit c9e1d15

Please sign in to comment.