File tree 3 files changed +11
-12
lines changed
3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " simpay-typescript-api" ,
3
3
"author" : " Rafał Więcek" ,
4
- "version" : " 3.0.1 " ,
4
+ "version" : " 3.0.2 " ,
5
5
"description" : " SimPay.pl API wrapper" ,
6
6
"main" : " dist/index.js" ,
7
7
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ import type { PartialDbTransaction } from '../models/directbilling/transaction/p
11
11
import type { PaginatedResponse } from '../models/response/paginated.response.js' ;
12
12
13
13
export class DirectBilling {
14
- private readonly key : string ;
15
- private readonly password : string ;
16
14
private readonly client : AxiosInstance ;
17
15
18
- constructor ( key : string , password : string ) {
16
+ constructor (
17
+ private readonly key : string ,
18
+ private readonly password : string ,
19
+ ) {
19
20
this . key = key ;
20
21
this . password = password ;
21
22
@@ -24,7 +25,7 @@ export class DirectBilling {
24
25
headers : {
25
26
'X-SIM-KEY' : this . key ,
26
27
'X-SIM-PASSWORD' : this . password ,
27
- 'X-SIM-VERSION' : '2.2 .2' ,
28
+ 'X-SIM-VERSION' : '3.0 .2' ,
28
29
'X-SIM-PLATFORM' : 'TYPESCRIPT' ,
29
30
} ,
30
31
} ) ;
Original file line number Diff line number Diff line change @@ -6,20 +6,18 @@ import type { SmsTransaction } from '../models/sms/transaction/sms.transaction.j
6
6
import type { VerificationResponse } from '../models/sms/verification.response.js' ;
7
7
8
8
export class Sms {
9
- private readonly key : string ;
10
- private readonly password : string ;
11
9
private readonly client : AxiosInstance ;
12
10
13
- constructor ( key : string , password : string ) {
14
- this . key = key ;
15
- this . password = password ;
16
-
11
+ constructor (
12
+ private readonly key : string ,
13
+ private readonly password : string ,
14
+ ) {
17
15
this . client = axios . create ( {
18
16
baseURL : 'https://api.simpay.pl/sms' ,
19
17
headers : {
20
18
'X-SIM-KEY' : this . key ,
21
19
'X-SIM-PASSWORD' : this . password ,
22
- 'X-SIM-VERSION' : '2.2 .2' ,
20
+ 'X-SIM-VERSION' : '3.0 .2' ,
23
21
'X-SIM-PLATFORM' : 'TYPESCRIPT' ,
24
22
} ,
25
23
} ) ;
You can’t perform that action at this time.
0 commit comments