Skip to content

Commit

Permalink
(partially) revert order billingAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Jan 29, 2025
1 parent 4546ab3 commit b695cf3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/data/orders/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface OrderData extends Model<'order'> {
*
* @see https://docs.mollie.com/reference/v2/orders-api/get-order?path=billingAddress#response
*/
billingAddress: Address;
billingAddress: OrderAddress;
/**
* The date of birth of your customer, if available.
*
Expand All @@ -90,7 +90,7 @@ export interface OrderData extends Model<'order'> {
*
* @see https://docs.mollie.com/reference/v2/orders-api/get-order?path=shippingAddress#response
*/
shippingAddress: Address;
shippingAddress: OrderAddress;
/**
* The locale used during checkout. Note that the locale may have been changed by your customer during checkout.
*
Expand Down Expand Up @@ -221,6 +221,21 @@ export enum OrderStatus {
pending = 'pending',
}

export interface OrderAddress extends Address {
/**
* The name of the organization, in case the addressee is an organization.
*
* @see https://docs.mollie.com/reference/v2/orders-api/get-order?path=organizationName#response
*/
organizationName: string;
/**
* If provided, it must be in the [E.164](https://en.wikipedia.org/wiki/E.164) format. For example: +31208202070.
*
* @see https://docs.mollie.com/reference/v2/orders-api/get-order?path=phone#response
*/
phone: string;
}

export enum OrderEmbed {
payments = 'payments',
refunds = 'refunds',
Expand Down

0 comments on commit b695cf3

Please sign in to comment.