fix(payment): Return and set the correct status when a session is created with stripe (#12769)

This commit is contained in:
Stevche Radevski
2025-06-21 20:36:58 +02:00
committed by GitHub
parent a263d8818d
commit b116f75fbf
3 changed files with 54 additions and 36 deletions
+15 -7
View File
@@ -190,7 +190,8 @@ export interface UpdateAccountHolderInput extends PaymentProviderInput {
/**
* The data to delete an account holder.
*/
export interface DeleteAccountHolderInput extends Omit<PaymentProviderInput, "context"> {
export interface DeleteAccountHolderInput
extends Omit<PaymentProviderInput, "context"> {
/**
* The context of deleting the account holder.
*/
@@ -237,6 +238,10 @@ export interface InitiatePaymentOutput extends PaymentProviderOutput {
* The ID of the payment session in the payment provider.
*/
id: string
/**
* The status of the payment session, which will be stored in the payment session's `status` field.
*/
status?: PaymentSessionStatus
}
/**
@@ -305,12 +310,15 @@ export interface DeleteAccountHolderOutput extends PaymentProviderOutput {}
/**
* The result of listing payment methods for an account holder in the third-party payment provider.
*/
export interface ListPaymentMethodsOutput extends Array<PaymentProviderOutput & {
/**
* The ID of the payment method in the payment provider.
*/
id: string
}> {}
export interface ListPaymentMethodsOutput
extends Array<
PaymentProviderOutput & {
/**
* The ID of the payment method in the payment provider.
*/
id: string
}
> {}
/**
* The result of saving a payment method.