@apihawk/billia-sdk
Version:
The ApiHawk Billia SDK
87 lines • 2.28 kB
TypeScript
import { ICatalogCategory, ICatalogProduct } from './billia-sdk.types';
export interface IDiscountPromocodeEntity {
name: string;
group: string;
limit: number | string;
success_message: string;
start_date: string | null;
end_date: string | null;
affiliate_id: number | null;
_links?: any;
promocode_products?: IDiscountPromocodeProductsEntity[];
}
export interface IDiscountProductEntity {
id: number;
product_id: number;
type: string;
discount: number;
min_quantity: number;
max_quantity: number;
hook: string;
item_type: string;
price: any;
_links: any;
_language: any;
}
export interface IDiscountPromocodeProductsEntity {
id: number;
code_name: string;
product_id: number | string;
discount_id: number | string;
_links: any;
product?: ICatalogProduct;
discount?: IDiscountProductEntity;
multiTierLevel?: IAffiliateMultiTierLevelEntity;
}
export interface IAffiliateMultiTierLevelEntity {
multi_tier_level_id: number;
level: number;
amount: number;
type: string;
product_id: number;
affiliate_type: string;
_links: any;
_language: any;
product?: ICatalogProduct;
category?: ICatalogCategory;
_populated?: boolean;
}
export interface IAffiliateCommissionEntity {
commission_id: number;
affiliate_id: number;
order_id: number;
multi_tier_level_id: number;
wallet_record_id: number;
amount: number;
status: string;
date: string;
user_id: number;
reseller: string;
_links: any;
_language: any;
multi_tier_level: IAffiliateMultiTierLevelEntity;
order_amount: number;
purchase_id: number;
product?: ICatalogProduct;
category?: ICatalogCategory;
_populated?: boolean;
}
export interface IAffiliateEntity {
affiliate_id: number;
date_created: string;
date_reset: string;
affiliate_name: string;
url: string;
type: string;
status: string;
hits: number;
sales: number;
level: number;
parent_affiliate_id: number | string;
user_id: number;
reseller: string;
waiting_commissions: number;
approved_commissions: number;
_populated?: boolean;
}
//# sourceMappingURL=billia-sdk-affiliate.types.d.ts.map