Skip to content

Commit

Permalink
Merge pull request #946 from duffelhq/more-logo-urls
Browse files Browse the repository at this point in the history
Read more logo urls from updated api
  • Loading branch information
jekku authored Aug 20, 2024
2 parents 61ef419 + 142b5ad commit a278370
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@duffel/api",
"version": "2.14.1",
"version": "2.14.2",
"description": "Javascript client library for the Duffel API",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
4 changes: 3 additions & 1 deletion src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,5 +677,7 @@ export interface StaysSearchResult {
export interface StaysLoyaltyProgramme {
reference: StaysLoyaltyProgrammeReference
name: string
logo_url: string | null
logo_url: string
logo_url_svg: string
logo_url_png_small: string
}
4 changes: 4 additions & 0 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,9 @@ export const MOCK_LOYALTY_PROGRAMMES: StaysLoyaltyProgramme[] = [
name: 'Duffel Hotel Group Rewards',
logo_url:
'https://assets.duffel.com/img/stays/loyalty-programmes/full-color-logo/duffel_hotel_group_rewards-square.svg',
logo_url_svg:
'https://assets.duffel.com/img/stays/loyalty-programmes/full-color-logo/duffel_hotel_group_rewards-square.svg',
logo_url_png_small:
'https://assets.duffel.com/img/stays/loyalty-programmes/transparent-logo/duffel_hotel_group_rewards.png',
},
]

0 comments on commit a278370

Please sign in to comment.