fix(payment): add account holder methods to the manual provider (#12751)
This commit is contained in:
5
.changeset/stale-forks-cover.md
Normal file
5
.changeset/stale-forks-cover.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/payment": patch
|
||||
---
|
||||
|
||||
fix(payment): add account holder methods to the manual provider
|
||||
@@ -7,6 +7,10 @@ import {
|
||||
CancelPaymentOutput,
|
||||
CapturePaymentInput,
|
||||
CapturePaymentOutput,
|
||||
CreateAccountHolderInput,
|
||||
CreateAccountHolderOutput,
|
||||
DeleteAccountHolderInput,
|
||||
DeleteAccountHolderOutput,
|
||||
DeletePaymentInput,
|
||||
DeletePaymentOutput,
|
||||
GetPaymentStatusInput,
|
||||
@@ -77,6 +81,18 @@ export class SystemProviderService extends AbstractPaymentProvider {
|
||||
return { data: {} }
|
||||
}
|
||||
|
||||
async createAccountHolder(
|
||||
input: CreateAccountHolderInput
|
||||
): Promise<CreateAccountHolderOutput> {
|
||||
return { id: input.context.customer.id }
|
||||
}
|
||||
|
||||
async deleteAccountHolder(
|
||||
input: DeleteAccountHolderInput
|
||||
): Promise<DeleteAccountHolderOutput> {
|
||||
return { data: {} }
|
||||
}
|
||||
|
||||
async refundPayment(input: RefundPaymentInput): Promise<RefundPaymentOutput> {
|
||||
return { data: {} }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user