Skip to content

Commit

Permalink
Merge pull request #374 from janpaepke/feature/method-includes
Browse files Browse the repository at this point in the history
Methods: fix types for pricing and issuer
  • Loading branch information
Pimm authored Sep 16, 2024
2 parents 2f62b15 + 2862cf4 commit a678b3a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/data/methods/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ export interface MethodData extends Model<'method', PaymentMethodEnum> {
*/
image: Image;
/**
* Pricing set of the payment method what will be include if you add the parameter.
* Array of objects describing the pricing configuration applicable for this payment method on your account.
*
* @see https://docs.mollie.com/reference/v2/methods-api/get-method?path=pricing#response
*/
pricing: MethodPricing;
pricing?: MethodPricing[];
/**
* Array of objects for each 'issuer' that is available for this payment method. Only relevant for iDEAL, KBC/CBC,
* gift cards, and vouchers.
*
* @see https://docs.mollie.com/reference/v2/methods-api/get-method?path=pricing#response
*/
issuers?: MethodIssuers[];
/**
* An object with several URL objects relevant to the payment method. Every URL object will contain an `href` and a `type` field.
*
Expand Down Expand Up @@ -93,3 +100,10 @@ export interface MethodPricing {
variable: string;
feeRegion: FeeRegion;
}

export interface MethodIssuers {
resource: string;
id: string;
name: string;
image: Image;
}

0 comments on commit a678b3a

Please sign in to comment.