freelancer4r 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
- == Freelancer4r 1.0.1 (2010.07.21)
1
+ == Freelancer4r 1.0.3 (2010.07.21)
2
+ * Updated freelancer api new functions
3
+
4
+ == Freelancer4r 1.0.2 (2010.07.21)
2
5
  * Widget API completed
3
6
  * RDoc correction
4
7
  * Github project url added to gemspec
data/lib/freelancer.rb CHANGED
@@ -20,7 +20,7 @@ require 'net/http'
20
20
  #
21
21
  #Load all Freelancer modules
22
22
  module Freelancer
23
- VERSION = "1.0.2"
23
+ VERSION = "1.0.3"
24
24
  #Initialize the Freelancer Wrapper Class
25
25
  #
26
26
  #Parameters
@@ -116,5 +116,22 @@ module Freelancer
116
116
  request "/Common/getPendingFeedback.json", options
117
117
  end
118
118
 
119
+ #Return the current config version
120
+ #
121
+ #http://developer.freelancer.com/GetConfigVersion
122
+ #
123
+ #<b>Required:</b>
124
+ # :function => withdrawalfee | projectfee | joblist | terms
125
+ def getConfigVersion *args
126
+ options=fill_args [:function],[:function],*args
127
+ request "/Common/getConfigVersion.json", options
128
+ end
129
+
130
+ #Retrieve Terms and Conditions
131
+ #
132
+ #http://developer.freelancer.com/GetTerms
133
+ def getTerms
134
+ request "/Common/getTerms.json"
135
+ end
119
136
  end
120
137
  end
@@ -119,4 +119,11 @@ module Freelancer
119
119
  options=fill_args [:projectid,:projectdesc,:jobtypecsv],[:projectid],*args
120
120
  request "/Employer/updateProjectDetails.json", options
121
121
  end
122
+
123
+ #Retrieve the eligibility for current user to post a trial project.
124
+ #
125
+ #http://developer.freelancer.com/EligibleForTrialProject
126
+ def eligibleForTrialProject
127
+ request "/Employer/eligibleForTrialProject.json"
128
+ end
122
129
  end
@@ -6,5 +6,19 @@ module Freelancer
6
6
  def getJobList
7
7
  request "/Job/getJobList.json"
8
8
  end
9
+
10
+ #Retrieve job list with super category.
11
+ #
12
+ #http://developer.freelancer.com/GetCategoryJobList
13
+ def getCategoryJobList
14
+ request "/Job/getCategoryJobList.json"
15
+ end
16
+
17
+ #Retrieve job(skill) list for current user.
18
+ #
19
+ #http://developer.freelancer.com/GetMyJobList
20
+ def getMyJobList
21
+ request "/Job/getMyJobList.json"
22
+ end
9
23
  end
10
24
  end
@@ -66,5 +66,21 @@ module Freelancer
66
66
  options=fill_args [:id],[:id],*args
67
67
  request "/Message/markMessageAsRead.json", options
68
68
  end
69
+
70
+ #Retrieve private messages sent between two users for same project.
71
+ #
72
+ #http://developer.freelancer.com/LoadMessageThread
73
+ #
74
+ #<b>Required:</b>
75
+ # :projectid => Get the private messages for the specific project
76
+ # :betweenuserid => The user Id for conversation between
77
+ #
78
+ #<b>Optional:</b>
79
+ # :count => items per page
80
+ # :page => page
81
+ def loadMessageThread *args
82
+ options=fill_args [:projectid,:betweenuserid,:count,:page],[:projectid,:betweenuserid],*args
83
+ request "/Message/loadMessageThread.json", options
84
+ end
69
85
  end
70
86
  end
@@ -149,5 +149,40 @@ module Freelancer
149
149
  options=fill_args [:transactionid,:fullname],[:transactionid,:fullname],*args
150
150
  request "/Payment/releaseMilestone.json", options
151
151
  end
152
+
153
+ #Retrieve the balance for current user.
154
+ #
155
+ #http://developer.freelancer.com/GetBalance
156
+ def getBalance
157
+ request "/Payment/getBalance.json"
158
+ end
159
+
160
+ #Validate the transfer action before actually transfer.
161
+ #
162
+ #http://developer.freelancer.com/PrepareTransfer
163
+ #
164
+ #<b>Required:</b>
165
+ # :projectid => Mandatory if Partial or Full payment for a project.
166
+ # :amount => Min $30 Validation
167
+ # :touserid => Userid transfer money to.
168
+ # :reasontype => partial|full|other
169
+ def prepareTransfer *args
170
+ options=fill_args [:projectid,:amount,:touserid,:reasontype],[:projectid,:amount,:touserid,:reasontype],*args
171
+ request "/Payment/prepareTransfer.json", options
172
+ end
173
+
174
+ #Retrieve the withdrawal fee
175
+ #
176
+ #http://developer.freelancer.com/GetWithdrawalFees
177
+ def getWithdrawalFees
178
+ request "/Payment/getWithdrawalFees.json"
179
+ end
180
+
181
+ #Retrieve the project list and selected freelancer for transferring.
182
+ #
183
+ #http://developer.freelancer.com/GetProjectListForTransfer
184
+ def getProjectListForTransfer
185
+ request "/Payment/getProjectListForTransfer.json"
186
+ end
152
187
  end
153
188
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freelancer4r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Janos Haber