Skip to content

Commit

Permalink
fix: convert address interface types to optional (as per klarna docs)
Browse files Browse the repository at this point in the history
  • Loading branch information
meetdave3 committed Jan 7, 2021
1 parent 696f636 commit e987a0c
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/api/checkout-v3/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface IOrderBody {
merchant_urls: IMerchantObj;
recurring?: boolean;
shipping_options?: IShippingOption[];
shipping_address?: IAddress;
}

export interface IShippingOption {
Expand Down Expand Up @@ -67,21 +68,21 @@ export interface IShippingOption {
}

export interface IAddress {
given_name: string;
family_name: string;
email: string;
title: string;
street_address: string;
street_address2: string;
street_number: string;
postal_code: string;
city: string;
region: string;
phone: string;
country: string;
reference: string;
attention: string;
care_of: string;
given_name?: string;
family_name?: string;
email?: string;
title?: string;
street_address?: string;
street_address2?: string;
street_number?: string;
postal_code?: string;
city?: string;
region?: string;
phone?: string;
country?: string;
reference?: string;
attention?: string;
care_of?: string;
}

export interface IOrder {
Expand Down

0 comments on commit e987a0c

Please sign in to comment.