Skip to content

Commit

Permalink
fix: add missing status type
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 31, 2023
1 parent 3761948 commit 96e26c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/data/methods/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export interface MethodData extends Model<'method', PaymentMethodEnum> {
* @see https://docs.mollie.com/reference/v2/methods-api/get-method?path=_links#response
*/
_links: Links;
/**
* The status of the payment method.
*
* @see https://docs.mollie.com/reference/v2/methods-api/get-method?path=status#response
*/
status: MethodStatus | null;
}

export interface Image {
Expand All @@ -62,6 +68,8 @@ export interface Image {
svg: string;
}

export type MethodStatus = 'activated' | 'pending-boarding' | 'pending-review' | 'pending-external' | 'rejected';

export enum MethodImageSize {
size1x = 'size1x',
size2x = 'size2x',
Expand Down

0 comments on commit 96e26c1

Please sign in to comment.