@@ -181,7 +181,7 @@ export declare class Account {
181
181
setToken < R = void > (
182
182
token : string ,
183
183
refreshToken : string ,
184
- expiresAt : number ,
184
+ expiresAt : number
185
185
) : R | void ;
186
186
removeToken < R = void > ( ) : R | void ;
187
187
@@ -200,7 +200,7 @@ export declare class Account {
200
200
token ?: string
201
201
) : Promise < AxiosResponse < void > > ;
202
202
getAccountInfo ( ) : Promise < AxiosResponse < AccountData > > ;
203
- updateAccount ( data : UpdateAccountData ) : Promise < AxiosResponse < void > > ;
203
+ updateAccount ( data : UpdateAccountData ) : Promise < AxiosResponse < AccountData > > ;
204
204
exportData ( data : AccountAuthData ) : Promise < AxiosResponse < CommonResponse > > ;
205
205
deleteAccount ( data : AccountAuthData ) : Promise < AxiosResponse < CommonResponse > > ;
206
206
getSocialLoginUrls ( state : string ) : Promise < AxiosResponse < ListSocialURLs > > ;
@@ -217,9 +217,13 @@ export declare class Account {
217
217
loadMerchantRestrictionSettings (
218
218
merchantUuid : string
219
219
) : Promise < AxiosResponse < RestrictionSettingsData > > ;
220
- syncWithExternalAccount ( integration : string , itemId : number ) : Promise < AxiosResponse < ExternalAccount > > ;
220
+ syncWithExternalAccount (
221
+ integration : string ,
222
+ itemId : number
223
+ ) : Promise < AxiosResponse < ExternalAccount > > ;
221
224
updateExternalAccount (
222
- integration : string , body : Record < string , string | number >
225
+ integration : string ,
226
+ body : Record < string , string | number >
223
227
) : Promise < AxiosResponse < CommonResponse > > ;
224
228
}
225
229
@@ -470,7 +474,7 @@ export declare class Asset {
470
474
page ?: number ,
471
475
startDate ?: string ,
472
476
endDate ?: string ,
473
- type ?: string ,
477
+ type ?: string
474
478
) : Promise < AxiosResponse < Record < string , unknown > [ ] > > ;
475
479
getAccessCode ( assetId : number | string ) : CodeAccessData ;
476
480
requestCodeAccess (
@@ -479,7 +483,9 @@ export declare class Asset {
479
483
getAccesCodeSessions (
480
484
codeId : number
481
485
) : Promise < AxiosResponse < Array < CodeAccessSessionsData > > > ;
482
- terminateSession ( assetId : number ) : Promise < AxiosResponse < CommonResponse > | null > ;
486
+ terminateSession (
487
+ assetId : number
488
+ ) : Promise < AxiosResponse < CommonResponse > | null > ;
483
489
getCloudfrontURL (
484
490
assetId : number ,
485
491
videoUrl : string
@@ -715,7 +721,10 @@ interface AmazonPlatformData {
715
721
}
716
722
717
723
interface NonAmazonPlatformData {
718
- platform : Exclude < ReceiptValidationPlatform , ReceiptValidationPlatform . AMAZON > ;
724
+ platform : Exclude <
725
+ ReceiptValidationPlatform ,
726
+ ReceiptValidationPlatform . AMAZON
727
+ > ;
719
728
amazonUserId ?: never ;
720
729
}
721
730
@@ -745,8 +754,12 @@ export declare class Payment {
745
754
constructor ( config : Record < string , unknown > , Account : Account ) ;
746
755
747
756
getPaymentMethods ( ) : Promise < AxiosResponse < MerchantPaymentMethod [ ] > > ;
748
- createPayment ( data : CreatePaymentData ) : Promise < AxiosResponse < CommonResponse > > ;
749
- createDonationPayment ( data : CreateDonationPaymentData ) : Promise < AxiosResponse < CommonResponse > > ;
757
+ createPayment (
758
+ data : CreatePaymentData
759
+ ) : Promise < AxiosResponse < CommonResponse > > ;
760
+ createDonationPayment (
761
+ data : CreateDonationPaymentData
762
+ ) : Promise < AxiosResponse < CommonResponse > > ;
750
763
getPayPalParams (
751
764
data : PayPalParamsData
752
765
) : Promise < AxiosResponse < GeneratePayPalParameters > > ;
@@ -873,7 +886,7 @@ export declare class Subscription {
873
886
) : Promise < AxiosResponse < CommonResponse > > ;
874
887
changeSubscriptionPlan (
875
888
data : ChangeSubscriptionPlanRequestBody
876
- ) : Promise < AxiosResponse < ChangeSubscriptionPlanResponse > > ;
889
+ ) : Promise < AxiosResponse < ChangeSubscriptionPlanResponse > > ;
877
890
}
878
891
879
892
export interface DiscountData {
@@ -932,7 +945,7 @@ export interface GetMerchantNFTResponse {
932
945
merchant_uuid : string ;
933
946
prices : Partial < {
934
947
[ Prices . CRYPTO ] : CryptoPrice ;
935
- [ Prices . FIAT ] : GetAccessFee
948
+ [ Prices . FIAT ] : GetAccessFee ;
936
949
} > ;
937
950
published : boolean ;
938
951
supply : number ;
@@ -980,13 +993,31 @@ export interface MakeReservationResponse {
980
993
export declare class NFTs {
981
994
constructor ( config : Record < string , unknown > , Account : Account ) ;
982
995
983
- getMerchantMarketplace ( merchantUuid : string ) : Promise < AxiosResponse < GetMerchantMarketplaceResponse > > ;
984
- getMerchantNFTList ( merchantUuid : string , page ?: number , size ?: number , filter ?: string ) :
985
- Promise < AxiosResponse < GetMerchantNFTListResponse > > ;
986
- getMerchantNFT ( merchantUuid : string , nftId : number ) : Promise < AxiosResponse < GetMerchantNFTResponse > > ;
987
- getExchangeRates ( fiat : string , invert ?: boolean ) : Promise < AxiosResponse < GetExchangeRatesResponse > > ;
988
- getUserBoughtNFTs ( page ?: number , size ?: number ) : Promise < AxiosResponse < GetUserBoughtNFTsResponse > > ;
989
- makeReservation ( merchantUuid : string , nftId : number ) : Promise < AxiosResponse < MakeReservationResponse > > ;
996
+ getMerchantMarketplace (
997
+ merchantUuid : string
998
+ ) : Promise < AxiosResponse < GetMerchantMarketplaceResponse > > ;
999
+ getMerchantNFTList (
1000
+ merchantUuid : string ,
1001
+ page ?: number ,
1002
+ size ?: number ,
1003
+ filter ?: string
1004
+ ) : Promise < AxiosResponse < GetMerchantNFTListResponse > > ;
1005
+ getMerchantNFT (
1006
+ merchantUuid : string ,
1007
+ nftId : number
1008
+ ) : Promise < AxiosResponse < GetMerchantNFTResponse > > ;
1009
+ getExchangeRates (
1010
+ fiat : string ,
1011
+ invert ?: boolean
1012
+ ) : Promise < AxiosResponse < GetExchangeRatesResponse > > ;
1013
+ getUserBoughtNFTs (
1014
+ page ?: number ,
1015
+ size ?: number
1016
+ ) : Promise < AxiosResponse < GetUserBoughtNFTsResponse > > ;
1017
+ makeReservation (
1018
+ merchantUuid : string ,
1019
+ nftId : number
1020
+ ) : Promise < AxiosResponse < MakeReservationResponse > > ;
990
1021
}
991
1022
992
1023
export interface ApiEndpoints {
@@ -1007,7 +1038,7 @@ export interface ApiEndpoints {
1007
1038
page : number ,
1008
1039
startDate : string ,
1009
1040
endDate : string ,
1010
- type ?: string ,
1041
+ type ?: string
1011
1042
) => string ;
1012
1043
deleteAccount : string ;
1013
1044
exportData : string ;
@@ -1043,14 +1074,22 @@ export interface ApiEndpoints {
1043
1074
getSubscription : ( id : string ) => string ;
1044
1075
subscribe : string ;
1045
1076
cancelSubscription : ( url : string ) => string ;
1046
- changeSubscriptionPlan : ( accessFeeId : number , inplayerToken : string ) => string ;
1077
+ changeSubscriptionPlan : (
1078
+ accessFeeId : number ,
1079
+ inplayerToken : string
1080
+ ) => string ;
1047
1081
// Voucher
1048
1082
getDiscount : string ;
1049
1083
// Branding
1050
1084
getBranding : ( clientId : string , brandingId : string ) => string ;
1051
1085
// NFTs
1052
- getMerchantMarketplace : ( merchantUuid : string ) => string ,
1053
- getMerchantNFTList : ( merchantUuid : string , page : number , size : number , filter : string ) => string ;
1086
+ getMerchantMarketplace : ( merchantUuid : string ) => string ;
1087
+ getMerchantNFTList : (
1088
+ merchantUuid : string ,
1089
+ page : number ,
1090
+ size : number ,
1091
+ filter : string
1092
+ ) => string ;
1054
1093
getMerchantNFT : ( merchantUuid : string , nftId : number ) => string ;
1055
1094
getExchangeRates : ( fiat : string , invert : boolean ) => string ;
1056
1095
getUserBoughtNFTs : ( page : number , size : number ) => string ;
0 commit comments