gomarketme-react-native
Version:
Affiliate Marketing for React Native-Based iOS and Android Apps.
72 lines (71 loc) • 2.54 kB
TypeScript
export declare class GoMarketMeAffiliateMarketingData {
campaign: Campaign;
affiliate: Affiliate;
saleDistribution: SaleDistribution;
affiliateCampaignCode: string;
deviceId: string;
offerCode?: string;
constructor(campaign: Campaign, affiliate: Affiliate, saleDistribution: SaleDistribution, affiliateCampaignCode: string, deviceId: string, offerCode?: string);
static fromJson(json: Record<string, any>): GoMarketMeAffiliateMarketingData | null;
}
export declare class Campaign {
id: string;
name: string;
status: string;
type: string;
publicLinkUrl?: string;
constructor(id: string, name: string, status: string, type: string, publicLinkUrl?: string);
static fromJson(json: Record<string, any>): Campaign;
}
export declare class Affiliate {
id: string;
firstName: string;
lastName: string;
countryCode: string;
instagramAccount: string;
tiktokAccount: string;
xAccount: string;
constructor(id: string, firstName: string, lastName: string, countryCode: string, instagramAccount: string, tiktokAccount: string, xAccount: string);
static fromJson(json: Record<string, any>): Affiliate;
}
export declare class SaleDistribution {
platformPercentage: string;
affiliatePercentage: string;
constructor(platformPercentage: string, affiliatePercentage: string);
static fromJson(json: Record<string, any>): SaleDistribution;
}
declare class GoMarketMe {
private static instance;
private sdkType;
private sdkVersion;
private sdkInitializedKey;
private sdkInitializationUrl;
private systemInfoUrl;
private eventUrl;
private _affiliateCampaignCode;
private _deviceId;
private _packageName;
private _purchaseUpdateUnsub?;
private _purchaseErrorUnsub?;
affiliateMarketingData?: GoMarketMeAffiliateMarketingData | null;
private constructor();
static getInstance(): GoMarketMe;
initialize(apiKey: string): Promise<void>;
removeListeners(): void;
private _addListeners;
private _getSystemInfo;
private _postSDKInitialization;
private _postSystemInfo;
private _readAndroidDeviceInfo;
private _readIosDeviceInfo;
private _fetchConsolidatedPurchases;
private _sendEventToServer;
private _serializePurchaseDetails;
private _serializeProductDetails;
private _markSDKAsInitialized;
private _isSDKInitialized;
private _isProduction;
private _fetchExistingPurchases;
}
declare const _default: GoMarketMe;
export default _default;