mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
new payment api changes
This commit is contained in:
18
src/models/response/paymentResponse.ts
Normal file
18
src/models/response/paymentResponse.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { BaseResponse } from './baseResponse';
|
||||
import { ProfileResponse } from './profileResponse';
|
||||
|
||||
export class PaymentResponse extends BaseResponse {
|
||||
userProfile: ProfileResponse;
|
||||
paymentIntentClientSecret: string;
|
||||
success: boolean;
|
||||
|
||||
constructor(response: any) {
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user