Skip to content

Commit

Permalink
fix: there's no type on the metadata object
Browse files Browse the repository at this point in the history
  • Loading branch information
igorp1 committed Dec 11, 2023
1 parent 4f485e9 commit 79f5022
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/booking/Offers/OfferTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export interface OfferAvailableServiceCFARMetadata {
* The amount the customer will receive back if the service is used, in
* `offer.total_currency`.
*/

refund_amount: string

/**
* Information to display to customers.
*/
Expand All @@ -185,8 +185,6 @@ export interface OfferAvailableServiceCFARMetadata {
* URL with the T&Cs for customers.
*/
terms_and_conditions_url: string

type: 'cancel_for_any_reason'
}

export interface OfferAvailableServiceCommon {
Expand Down
1 change: 0 additions & 1 deletion src/booking/Offers/mockOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export const mockOffer: Offer = {
merchant_copy: 'some information for the merchant',
refund_amount: '33.75',
terms_and_conditions_url: 'this is a link',
type: 'cancel_for_any_reason',
},
passenger_ids: ['pas_00009hj8USM7Ncg31cBCL'],
segment_ids: ['seg_00009htYpSCXrwaB9Dn456'],
Expand Down
1 change: 0 additions & 1 deletion src/booking/Offers/mockPartialOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export const mockPartialOffer: Offer = {
merchant_copy: 'some information for the merchant',
refund_amount: '33.75',
terms_and_conditions_url: 'this is a link',
type: 'cancel_for_any_reason',
},
passenger_ids: ['pas_00009hj8USM7Ncg31cBCL'],
segment_ids: ['seg_00009htYpSCXrwaB9Dn456'],
Expand Down

0 comments on commit 79f5022

Please sign in to comment.