import { BaseResponse } from "./baseResponse" ; import { ProfileResponse } from "./profileResponse" ; export class PaymentResponse extends BaseResponse { userProfile : ProfileResponse ; paymentIntentClientSecret : string ; success : boolean ; constructor ( response ) { super ( response ) ; const userProfile = this . getResponseProperty ( "UserProfile" ) ; if ( userProfile != null ) { this . userProfile = new ProfileResponse ( userProfile ) ; } this . paymentIntentClientSecret = this . getResponseProperty ( "PaymentIntentClientSecret" ) ; this . success = this . getResponseProperty ( "Success" ) ; } }