Class: HasOffersV3::Offer
- Inherits:
-
Base
- Object
- Base
- HasOffersV3::Offer
show all
- Defined in:
- lib/hasoffersv3/offer.rb
Instance Method Summary
collapse
Methods inherited from Base
#client, client, #get_request, #initialize, #make_request, method_missing, #post_request, #requires!, #target, target
Instance Method Details
#add_group(params) ⇒ Object
3
4
5
6
|
# File 'lib/hasoffersv3/offer.rb', line 3
def add_group(params)
requires! params, [:id, :group_id]
post_request 'addGroup', params
end
|
#add_target_country(params) ⇒ Object
8
9
10
11
|
# File 'lib/hasoffersv3/offer.rb', line 8
def add_target_country(params)
requires! params, [:id, :country_code]
post_request 'addTargetCountry', params
end
|
#create(params = {}) ⇒ Object
13
14
15
16
|
# File 'lib/hasoffersv3/offer.rb', line 13
def create(params = {})
requires! params, [:data]
post_request 'create', params
end
|
#find_all(params = {}) ⇒ Object
18
19
20
|
# File 'lib/hasoffersv3/offer.rb', line 18
def find_all(params = {})
post_request 'findAll', params
end
|
#find_all_by_ids(params = {}) ⇒ Object
22
23
24
25
|
# File 'lib/hasoffersv3/offer.rb', line 22
def find_all_by_ids(params = {})
requires! params, [:ids]
post_request 'findAllByIds', params
end
|
#find_all_ids_by_advertiser_id(params = {}) ⇒ Object
27
28
29
30
|
# File 'lib/hasoffersv3/offer.rb', line 27
def find_all_ids_by_advertiser_id(params = {})
requires! params, [:advertiser_id]
post_request 'findAllIdsByAdvertiserId', params
end
|
#find_all_ids_by_affiliate_id(params = {}) ⇒ Object
32
33
34
35
|
# File 'lib/hasoffersv3/offer.rb', line 32
def find_all_ids_by_affiliate_id(params = {})
requires! params, [:affiliate_id]
post_request 'findAllIdsByAffiliateId', params
end
|
#find_by_id(params = {}) ⇒ Object
37
38
39
40
|
# File 'lib/hasoffersv3/offer.rb', line 37
def find_by_id(params = {})
requires! params, [:id]
post_request 'findById', params
end
|
#generate_tracking_link(params = {}) ⇒ Object
72
73
74
75
|
# File 'lib/hasoffersv3/offer.rb', line 72
def generate_tracking_link(params = {})
requires! params, [:offer_id, :affiliate_id]
post_request 'generateTrackingLink', params
end
|
#get_approved_affiliate_ids(params = {}) ⇒ Object
47
48
49
50
|
# File 'lib/hasoffersv3/offer.rb', line 47
def get_approved_affiliate_ids(params = {})
requires! params, [:id]
post_request 'getApprovedAffiliateIds', params
end
|
#get_groups(params = {}) ⇒ Object
42
43
44
45
|
# File 'lib/hasoffersv3/offer.rb', line 42
def get_groups(params = {})
requires! params, [:id]
post_request 'getGroups', params
end
|
#get_tier_payouts(params = {}) ⇒ Object
77
78
79
80
|
# File 'lib/hasoffersv3/offer.rb', line 77
def get_tier_payouts(params = {})
requires! params, [:id]
post_request 'getTierPayouts', params
end
|
#remove_payout(params = {}) ⇒ Object
67
68
69
70
|
# File 'lib/hasoffersv3/offer.rb', line 67
def remove_payout(params = {})
requires! params, [:id, :affiliate_id]
post_request 'removePayout', params
end
|
#set_affiliate_approval(params = {}) ⇒ Object
52
53
54
55
|
# File 'lib/hasoffersv3/offer.rb', line 52
def set_affiliate_approval(params = {})
requires! params, [:id, :affiliate_id, :status]
post_request 'setAffiliateApproval', params
end
|
#set_payout(params = {}) ⇒ Object
57
58
59
60
|
# File 'lib/hasoffersv3/offer.rb', line 57
def set_payout(params = {})
requires! params, [:id, :affiliate_id]
post_request 'setPayout', params
end
|
#set_tier_payout(params = {}) ⇒ Object
62
63
64
65
|
# File 'lib/hasoffersv3/offer.rb', line 62
def set_tier_payout(params = {})
requires! params, [:id, :affiliate_tier_id]
post_request 'setTierPayout', params
end
|
#unblock_affiliate(params = {}) ⇒ Object
82
83
84
85
|
# File 'lib/hasoffersv3/offer.rb', line 82
def unblock_affiliate(params = {})
requires! params, [:id, :affiliate_id]
post_request 'unblockAffiliate', params
end
|