Skip to content

Commit 67d5bca

Browse files
authored
Merge pull request #859 from duffelhq/new-type
fix: there's no type on the metadata object
2 parents f838c5b + 79f5022 commit 67d5bca

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/booking/Offers/OfferTypes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ export interface OfferAvailableServiceCFARMetadata {
174174
* The amount the customer will receive back if the service is used, in
175175
* `offer.total_currency`.
176176
*/
177-
178177
refund_amount: string
178+
179179
/**
180180
* Information to display to customers.
181181
*/
@@ -185,8 +185,6 @@ export interface OfferAvailableServiceCFARMetadata {
185185
* URL with the T&Cs for customers.
186186
*/
187187
terms_and_conditions_url: string
188-
189-
type: 'cancel_for_any_reason'
190188
}
191189

192190
export interface OfferAvailableServiceCommon {

src/booking/Offers/mockOffer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ export const mockOffer: Offer = {
205205
merchant_copy: 'some information for the merchant',
206206
refund_amount: '33.75',
207207
terms_and_conditions_url: 'this is a link',
208-
type: 'cancel_for_any_reason',
209208
},
210209
passenger_ids: ['pas_00009hj8USM7Ncg31cBCL'],
211210
segment_ids: ['seg_00009htYpSCXrwaB9Dn456'],

src/booking/Offers/mockPartialOffer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ export const mockPartialOffer: Offer = {
205205
merchant_copy: 'some information for the merchant',
206206
refund_amount: '33.75',
207207
terms_and_conditions_url: 'this is a link',
208-
type: 'cancel_for_any_reason',
209208
},
210209
passenger_ids: ['pas_00009hj8USM7Ncg31cBCL'],
211210
segment_ids: ['seg_00009htYpSCXrwaB9Dn456'],

0 commit comments

Comments
 (0)