7
7
* Do not edit this class manually.
8
8
*/
9
9
10
- import { CheckoutAwaitAction } from '.. /models/CheckoutAwaitAction ' ;
11
- import { CheckoutBankTransferAction } from '.. /models/CheckoutBankTransferAction ' ;
12
- import { CheckoutDelegatedAuthenticationAction } from '.. /models/CheckoutDelegatedAuthenticationAction ' ;
13
- import { CheckoutNativeRedirectAction } from '.. /models/CheckoutNativeRedirectAction ' ;
14
- import { CheckoutQrCodeAction } from '.. /models/CheckoutQrCodeAction ' ;
15
- import { CheckoutRedirectAction } from '.. /models/CheckoutRedirectAction ' ;
16
- import { CheckoutSDKAction } from '.. /models/CheckoutSDKAction ' ;
17
- import { CheckoutThreeDS2Action } from '.. /models/CheckoutThreeDS2Action ' ;
18
- import { CheckoutVoucherAction } from '.. /models/CheckoutVoucherAction ' ;
10
+ import { CheckoutAwaitAction } from './models' ;
11
+ import { CheckoutBankTransferAction } from './models' ;
12
+ import { CheckoutDelegatedAuthenticationAction } from './models' ;
13
+ import { CheckoutNativeRedirectAction } from './models' ;
14
+ import { CheckoutQrCodeAction } from './models' ;
15
+ import { CheckoutRedirectAction } from './models' ;
16
+ import { CheckoutSDKAction } from './models' ;
17
+ import { CheckoutThreeDS2Action } from './models' ;
18
+ import { CheckoutVoucherAction } from './models' ;
19
19
20
20
/**
21
21
* Action to be taken for completing the payment.
22
22
*/
23
+
23
24
/**
24
25
* @type PaymentResponseAction
25
26
* Type
@@ -33,9 +34,19 @@ export type PaymentResponseAction = CheckoutAwaitAction | CheckoutBankTransferAc
33
34
* @export
34
35
*/
35
36
export class PaymentResponseActionClass {
36
- static readonly discriminator : string | undefined = undefined ;
37
-
38
- static readonly mapping : { [ index : string ] : string } | undefined = undefined ;
37
+ // static readonly discriminator: string | undefined = undefined;
38
+ static readonly discriminator : string = "type" ;
39
+
40
+ //static readonly mapping: {[index: string]: string} | undefined = undefined;
41
+ static readonly mapping : { [ key : string ] : string } = {
42
+ "await" : "CheckoutAwaitAction" ,
43
+ "bankTransfer" : "CheckoutBankTransferAction" ,
44
+ "redirect" : "CheckoutRedirectAction" ,
45
+ "threeDS2" : "CheckoutThreeDS2Action" ,
46
+ "sdk" : "CheckoutSDKAction" ,
47
+ "voucher" : "CheckoutVoucherAction" ,
48
+ // Add all other action types...
49
+ } ;
39
50
}
40
51
41
52
0 commit comments