-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaCouponsGroupService.js
67 lines (61 loc) · 1.82 KB
/
KalturaCouponsGroupService.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
*Class definition for the Kaltura service: couponsGroup.
**/
var KalturaCouponsGroupService = {
/**
* Add coupons group.
* @param couponsGroup KalturaCouponsGroup Coupons group (optional)
**/
add: function(couponsGroup){
var kparams = new Object();
kparams.couponsGroup = couponsGroup;
return new KalturaRequestBuilder("couponsgroup", "add", kparams);
},
/**
* Delete a coupons group.
* @param id int Coupons group identifier (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("couponsgroup", "delete", kparams);
},
/**
* Generate a coupon.
* @param id int Coupon group identifier (optional)
* @param couponGenerationOptions KalturaCouponGenerationOptions Coupon generation options (optional)
**/
generate: function(id, couponGenerationOptions){
var kparams = new Object();
kparams.id = id;
kparams.couponGenerationOptions = couponGenerationOptions;
return new KalturaRequestBuilder("couponsgroup", "generate", kparams);
},
/**
* Returns information about coupons group.
* @param id int Coupons group ID (optional)
**/
get: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("couponsgroup", "get", kparams);
},
/**
* Returns information about partner coupons groups.
**/
listAction: function(){
var kparams = new Object();
return new KalturaRequestBuilder("couponsgroup", "list", kparams);
},
/**
* Update coupons group.
* @param id int Coupons group identifier (optional)
* @param couponsGroup KalturaCouponsGroup Coupons group (optional)
**/
update: function(id, couponsGroup){
var kparams = new Object();
kparams.id = id;
kparams.couponsGroup = couponsGroup;
return new KalturaRequestBuilder("couponsgroup", "update", kparams);
}
}