Class: HasOffersV3::Affiliate
- Inherits:
-
Base
- Object
- Base
- HasOffersV3::Affiliate
show all
- Defined in:
- lib/hasoffersv3/affiliate.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
#create(params = {}) ⇒ Object
25
26
27
28
29
|
# File 'lib/hasoffersv3/affiliate.rb', line 25
def create(params = {})
requires! params, [:data]
requires! params[:data], [:zipcode, :company]
post_request 'create', params
end
|
#find_all(params = {}) ⇒ Object
3
4
5
|
# File 'lib/hasoffersv3/affiliate.rb', line 3
def find_all(params = {})
post_request 'findAll', params
end
|
#find_by_id(params = {}) ⇒ Object
7
8
9
10
|
# File 'lib/hasoffersv3/affiliate.rb', line 7
def find_by_id(params = {})
requires! params, [:id]
get_request 'findById', params
end
|
#get_signup_answers(params = {}) ⇒ Object
36
37
38
39
|
# File 'lib/hasoffersv3/affiliate.rb', line 36
def get_signup_answers(params = {})
requires! params, [:id]
post_request 'getSignupAnswers', params
end
|
#get_tier(params = {}) ⇒ Object
31
32
33
34
|
# File 'lib/hasoffersv3/affiliate.rb', line 31
def get_tier(params = {})
requires! params, [:id]
post_request 'getAffiliateTier', params
end
|
#update(params = {}) ⇒ Object
12
13
14
15
|
# File 'lib/hasoffersv3/affiliate.rb', line 12
def update(params = {})
requires! params, [:id, :data]
post_request 'update', params
end
|
#update_payment_method_paypal(params = {}) ⇒ Object
21
22
23
|
# File 'lib/hasoffersv3/affiliate.rb', line 21
def update_payment_method_paypal(params = {})
post_request 'updatePaymentMethodPaypal', params
end
|
#update_payment_method_wire(params = {}) ⇒ Object
17
18
19
|
# File 'lib/hasoffersv3/affiliate.rb', line 17
def update_payment_method_wire(params = {})
post_request 'updatePaymentMethodWire', params
end
|