11import { AxiosResponse } from 'axios' ;
22
3- // eslint-disable-next-line no-shadow
43export enum Env {
54 Development = 'development' ,
65 Production = 'production' ,
@@ -450,7 +449,6 @@ export interface RequestDataCaptureAccessData {
450449}
451450
452451export declare class Asset {
453- // eslint-disable-next-line no-shadow
454452 constructor ( config : Record < string , unknown > , Account : Account ) ;
455453
456454 checkAccessForAsset ( id : number ) : Promise < AxiosResponse < GetItemAccessV1 > > ;
@@ -703,7 +701,6 @@ export declare interface GoogleOrApplePaymentData {
703701 voucherCode ?: string ;
704702}
705703
706- // eslint-disable-next-line no-shadow
707704export enum ReceiptValidationPlatform {
708705 AMAZON = 'amazon' ,
709706 APPLE = 'apple' ,
@@ -744,7 +741,6 @@ type ReceiptData =
744741export type ValidateReceiptData = CommonPlatformData & ReceiptData ;
745742
746743export declare class Payment {
747- // eslint-disable-next-line no-shadow
748744 constructor ( config : Record < string , unknown > , Account : Account ) ;
749745
750746 getPaymentMethods ( ) : Promise < AxiosResponse < MerchantPaymentMethod [ ] > > ;
@@ -860,7 +856,6 @@ export interface ChangeSubscriptionPlanResponse {
860856 message : string ;
861857}
862858export declare class Subscription {
863- // eslint-disable-next-line no-shadow
864859 constructor ( config : Record < string , unknown > , Account : Account ) ;
865860
866861 getSubscriptions (
@@ -891,12 +886,108 @@ export interface VoucherDiscountPrice {
891886}
892887
893888export declare class Voucher {
894- // eslint-disable-next-line no-shadow
895889 constructor ( config : Record < string , unknown > , Account : Account ) ;
896890
897891 getDiscount ( data : DiscountData ) : Promise < AxiosResponse < VoucherDiscountPrice > > ;
898892}
899893
894+ type FiatCurrency = string ;
895+
896+ export enum CryptoCurrency {
897+ ETH = 'ETH' ,
898+ MATIC = 'MATIC' ,
899+ USDC = 'USDC' ,
900+ }
901+
902+ export interface GetMerchantMarketplaceResponse {
903+ id : number ;
904+ merchant_uuid : string ;
905+ name : string ;
906+ logo_url : string ;
907+ banner_url : string ;
908+ created_at : number ;
909+ updated_at : number ;
910+ engagement_mode : boolean ;
911+ url : string ;
912+ currency : FiatCurrency ;
913+ }
914+
915+ export interface CryptoPrice {
916+ amount : number ;
917+ currency : CryptoCurrency ;
918+ }
919+
920+ export enum Prices {
921+ CRYPTO = 'crypto' ,
922+ FIAT = 'fiat' ,
923+ }
924+
925+ export interface GetMerchantNFTResponse {
926+ id : number ;
927+ title : string ;
928+ description : string ;
929+ thumbnail : string ;
930+ token_uri : string ;
931+ merchant_uuid : string ;
932+ prices : Partial < {
933+ [ Prices . CRYPTO ] : CryptoPrice ;
934+ [ Prices . FIAT ] : GetAccessFee
935+ } > ;
936+ published : boolean ;
937+ supply : number ;
938+ created_at : number ;
939+ updated_at : number ;
940+ }
941+
942+ export interface GetMerchantNFTListResponse {
943+ collection : GetMerchantNFTResponse [ ] | null ;
944+ page : number ;
945+ size : number ;
946+ total : number ;
947+ }
948+
949+ interface ExchangeRate {
950+ asset_id_quote : CryptoCurrency ;
951+ rate : number ;
952+ }
953+
954+ export interface GetExchangeRatesResponse {
955+ asset_id_base : FiatCurrency ;
956+ rates : ExchangeRate [ ] ;
957+ }
958+
959+ export type GetUserBoughtNFTsResponse = GetMerchantNFTListResponse ;
960+
961+ export interface MakeReservationResponse {
962+ created_at : number ;
963+ updated_at : number ;
964+ description : string ;
965+ id : number ;
966+ merchant_uuid : string ;
967+ prices : Record < string , unknown > ;
968+ published : boolean ;
969+ reservation_expires_at : number ;
970+ reservation_id : number ;
971+ reservation_owner_id : number ;
972+ supply : number ;
973+ thumbnail : string ;
974+ title : string ;
975+ token_id : number ;
976+ token_uri : string ;
977+ }
978+
979+ export declare class NFTs {
980+ constructor ( config : Record < string , unknown > , Account : Account ) ;
981+
982+ getMerchantMarketplace ( merchantUuid : string ) : Promise < AxiosResponse < GetMerchantMarketplaceResponse > > ;
983+ getMerchantNFTList ( merchantUuid : string , page ?: number , size ?: number , filter ?: string ) :
984+ Promise < AxiosResponse < GetMerchantNFTListResponse > > ;
985+ getMerchantNFT ( merchantUuid : string , nftId : number ) : Promise < AxiosResponse < GetMerchantNFTResponse > > ;
986+ getExchangeRates ( fiat : string , invert ?: boolean ) : Promise < AxiosResponse < GetExchangeRatesResponse > > ;
987+ getUserBoughtNFTs ( page ?: number , size ?: number ) : Promise < AxiosResponse < GetUserBoughtNFTsResponse > > ;
988+ makeReservation ( merchantUuid : string , nftId : number ) : Promise < AxiosResponse < MakeReservationResponse > > ;
989+ }
990+
900991export interface ApiEndpoints {
901992 // Account
902993 signIn : string ;
@@ -956,6 +1047,13 @@ export interface ApiEndpoints {
9561047 getDiscount : string ;
9571048 // Branding
9581049 getBranding : ( clientId : string , brandingId : string ) => string ;
1050+ // NFTs
1051+ getMerchantMarketplace : ( merchantUuid : string ) => string ,
1052+ getMerchantNFTList : ( merchantUuid : string , page : number , size : number , filter : string ) => string ;
1053+ getMerchantNFT : ( merchantUuid : string , nftId : number ) => string ;
1054+ getExchangeRates : ( fiat : string , invert : boolean ) => string ;
1055+ getUserBoughtNFTs : ( page : number , size : number ) => string ;
1056+ makeReservation : ( merchantUuid : string , nftId : number ) => string ;
9591057}
9601058
9611059export interface ApiConfig {
@@ -970,7 +1068,6 @@ export interface ApiConfig {
9701068export declare const API : ApiEndpoints ;
9711069
9721070export declare class Notifications {
973- // eslint-disable-next-line no-shadow
9741071 constructor ( config : Record < string , unknown > , Account : Account ) ;
9751072
9761073 getIotToken ( ) : Promise < Record < string , unknown > > ;
@@ -1003,6 +1100,7 @@ declare const InPlayer: {
10031100 Subscription : Subscription ;
10041101 Voucher : Voucher ;
10051102 Branding : Branding ;
1103+ NFTs : NFTs ;
10061104 Notifications : Notifications ;
10071105 tokenStorage : TokenStorageType ;
10081106
0 commit comments