@@ -19,12 +19,14 @@ export class Sms {
1919 headers : {
2020 'X-SIM-KEY' : this . key ,
2121 'X-SIM-PASSWORD' : this . password ,
22+ 'X-SIM-VERSION' : '2.2.2' ,
23+ 'X-SIM-PLATFORM' : 'TYPESCRIPT' ,
2224 }
2325 } ) ;
2426 }
2527
2628 /*
27- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-listy-uslug
29+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-listy-uslug
2830 */
2931 async getServices ( ) : Promise < SmsService [ ] > {
3032 const result = [ ] ;
@@ -66,7 +68,7 @@ export class Sms {
6668 }
6769
6870 /*
69- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-informacji-o-usludze
71+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-informacji-o-usludze
7072 */
7173 async getService ( id : number ) : Promise < SmsService | undefined > {
7274 const service = ( await this . client . get ( `/${ id } ` ) ) . data . data ;
@@ -77,7 +79,7 @@ export class Sms {
7779 }
7880
7981 /*
80- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-listy-transakcji
82+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-listy-transakcji
8183 */
8284 async getTransactions ( serviceId : number ) : Promise < SmsTransaction [ ] > {
8385 const result = [ ] ;
@@ -119,7 +121,7 @@ export class Sms {
119121 }
120122
121123 /*
122- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-informacji-o-transakcji
124+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-informacji-o-transakcji
123125 */
124126 async getTransaction ( serviceId : number , transactionId : number ) : Promise < SmsTransaction | undefined > {
125127 const transaction = ( await this . client . get ( `/${ serviceId } /transactions/${ transactionId } ` ) ) . data . data ;
@@ -130,7 +132,7 @@ export class Sms {
130132 }
131133
132134 /*
133- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-dostepnych-numerow-dla-uslugi
135+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-dostepnych-numerow-dla-uslugi
134136 */
135137 async getServiceNumbers ( serviceId : number ) : Promise < SmsNumber [ ] > {
136138 const result = [ ] ;
@@ -160,14 +162,14 @@ export class Sms {
160162 }
161163
162164 /*
163- https://docs.simpay.pl/typescript/?typescript#sms-informacji-o-pojedynczym-numerze-uslugi
165+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-informacji-o-pojedynczym-numerze-uslugi
164166 */
165167 async getServiceNumber ( serviceId : number , number : number ) : Promise < SmsNumber > {
166168 return ( await this . client . get ( `/${ serviceId } /numbers/${ number } ` ) ) . data . data ;
167169 }
168170
169171 /*
170- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-wszystkich-dostepnych-numerow
172+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-wszystkich-dostepnych-numerow
171173 */
172174 async getNumbers ( ) : Promise < SmsNumber [ ] > {
173175 const result = [ ] ;
@@ -197,14 +199,14 @@ export class Sms {
197199 }
198200
199201 /*
200- https://docs.simpay.pl/typescript/?typescript#sms-pobieranie-pojedynczego-numeru-sms
202+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-pobieranie-pojedynczego-numeru-sms
201203 */
202204 async getNumber ( number : number ) : Promise < SmsNumber | undefined > {
203205 return ( await this . client . get ( `/numbers/${ number } ` ) ) . data . data ;
204206 }
205207
206208 /*
207- https://docs.simpay.pl/typescript/?typescript#sms-weryfikacja-poprawnosci-kodu
209+ https://docs.simpay.pl/pl/ typescript/?typescript#sms-weryfikacja-poprawnosci-kodu
208210 */
209211 async verifySmsCode ( serviceId : number , code : string , number ?: number ) : Promise < VerificationResponse | undefined > {
210212 const response = ( await this . client . post ( `/${ serviceId } ` , { code, number } ) ) . data . data ;
0 commit comments