File tree 6 files changed +13
-7
lines changed
6 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ # [ 3.12.2] - 07-12-2021
6
+
7
+ ### Changes
8
+
9
+ - The type of getSubscription method parameter changed to string
10
+
5
11
# [ 3.12.1] - 03-12-2021
6
12
## Changes
7
13
Original file line number Diff line number Diff line change @@ -859,7 +859,7 @@ export declare class Subscription {
859
859
limit ?: number ,
860
860
status ?: string
861
861
) : Promise < AxiosResponse < GetSubscription > > ;
862
- getSubscription ( id : number ) : Promise < AxiosResponse < SubscriptionDetails > > ;
862
+ getSubscription ( id : string ) : Promise < AxiosResponse < SubscriptionDetails > > ;
863
863
cancelSubscription (
864
864
unsubscribeUrl : string
865
865
) : Promise < AxiosResponse < CancelSubscription > > ;
@@ -936,7 +936,7 @@ export interface ApiEndpoints {
936
936
validateReceipt : ( platform : string ) => string ;
937
937
// Subscription
938
938
getSubscriptions : ( limit : number , page : number ) => string ;
939
- getSubscription : ( id : number ) => string ;
939
+ getSubscription : ( id : string ) => string ;
940
940
subscribe : string ;
941
941
cancelSubscription : ( url : string ) => string ;
942
942
// Voucher
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export const API = {
95
95
}
96
96
return url ;
97
97
} ,
98
- getSubscription : ( id : number ) : string => `/subscriptions/${ id } ` ,
98
+ getSubscription : ( id : string ) : string => `/subscriptions/${ id } ` ,
99
99
cancelSubscription : ( url : string ) : string => `${ url } ` ,
100
100
subscribe : '/subscriptions' ,
101
101
subscribeV2 : '/v2/subscriptions' ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class Subscription extends BaseExtend {
82
82
* @method getSubscription
83
83
* @async
84
84
*
85
- * @param {number } id The subscription id.
85
+ * @param {string } id The subscription id.
86
86
* @example
87
87
* InPlayer.Subscription
88
88
* .getSubscription('abcdef')
@@ -106,7 +106,7 @@ class Subscription extends BaseExtend {
106
106
* }
107
107
* ```
108
108
*/
109
- async getSubscription ( id : number ) : Promise < AxiosResponse < SubscriptionDetails > > {
109
+ async getSubscription ( id : string ) : Promise < AxiosResponse < SubscriptionDetails > > {
110
110
const tokenObject = await this . request . getToken ( ) ;
111
111
112
112
return this . request . authenticatedGet ( API . getSubscription ( id ) , {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export interface ApiEndpoints {
69
69
) => string ;
70
70
// Subscriptions
71
71
getSubscriptions : ( limit : number , page : number ) => string ;
72
- getSubscription : ( id : number ) => string ;
72
+ getSubscription : ( id : string ) => string ;
73
73
cancelSubscription : ( url : string ) => string ;
74
74
subscribe : string ;
75
75
subscribeV2 : string ;
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export interface Subscription extends BaseExtend {
124
124
page ?: number ,
125
125
limit ?: number
126
126
) : Promise < AxiosResponse < GetSubscription > > ;
127
- getSubscription ( id : number ) : Promise < AxiosResponse < SubscriptionDetails > > ;
127
+ getSubscription ( id : string ) : Promise < AxiosResponse < SubscriptionDetails > > ;
128
128
cancelSubscription (
129
129
unsubscribeUrl : string
130
130
) : Promise < AxiosResponse < CancelSubscription > > ;
You can’t perform that action at this time.
0 commit comments