amazon-fps-ruby 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +0 -3
- data/README.txt +1 -1
- data/lib/AmazonFPSClient.rb +85 -157
- data/lib/amazon_fps.rb +9 -9
- data/lib/default.rb +1027 -1308
- data/lib/defaultDriver.rb +87 -135
- data/lib/defaultMappingRegistry.rb +638 -795
- data/test/test_amazon_fps.rb +11 -33
- metadata +5 -8
- data/certs/afps-sdk-keystore.p12 +0 -0
- data/certs/aws.cer +0 -16
- data/certs/aws.cer.key +0 -14
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -10,7 +10,7 @@ Provides a simple wrapper around the Amazon FPS SOAP web service.
|
|
10
10
|
|
11
11
|
Supports all features in the WSDL from Amazon:
|
12
12
|
|
13
|
-
|
13
|
+
https://fps.amazonaws.com/doc/2008-09-17/AmazonFPS.wsdl
|
14
14
|
|
15
15
|
== SYNOPSIS:
|
16
16
|
|
data/lib/AmazonFPSClient.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# auto-generated from wsdl2ruby. Only included for reference.
|
2
3
|
|
3
|
-
# Auto-generated file from wsdl2ruby.rb, not used
|
4
4
|
require 'defaultDriver.rb'
|
5
5
|
|
6
6
|
endpoint_url = ARGV.shift
|
@@ -10,351 +10,279 @@ obj = AmazonFPSPortType.new(endpoint_url)
|
|
10
10
|
obj.wiredump_dev = STDERR if $DEBUG
|
11
11
|
|
12
12
|
# SYNOPSIS
|
13
|
-
#
|
13
|
+
# CancelToken(body)
|
14
14
|
#
|
15
15
|
# ARGS
|
16
|
-
# body
|
16
|
+
# body CancelToken - {http://fps.amazonaws.com/doc/2008-09-17/}CancelToken
|
17
17
|
#
|
18
18
|
# RETURNS
|
19
|
-
# body
|
19
|
+
# body CancelTokenResponse - {http://fps.amazonaws.com/doc/2008-09-17/}CancelTokenResponse
|
20
20
|
#
|
21
21
|
body = nil
|
22
|
-
puts obj.
|
22
|
+
puts obj.cancelToken(body)
|
23
23
|
|
24
24
|
# SYNOPSIS
|
25
|
-
#
|
25
|
+
# Cancel(body)
|
26
26
|
#
|
27
27
|
# ARGS
|
28
|
-
# body
|
28
|
+
# body Cancel - {http://fps.amazonaws.com/doc/2008-09-17/}Cancel
|
29
29
|
#
|
30
30
|
# RETURNS
|
31
|
-
# body
|
31
|
+
# body CancelResponse - {http://fps.amazonaws.com/doc/2008-09-17/}CancelResponse
|
32
32
|
#
|
33
33
|
body = nil
|
34
|
-
puts obj.
|
34
|
+
puts obj.cancel(body)
|
35
35
|
|
36
36
|
# SYNOPSIS
|
37
|
-
#
|
37
|
+
# FundPrepaid(body)
|
38
38
|
#
|
39
39
|
# ARGS
|
40
|
-
# body
|
40
|
+
# body FundPrepaid - {http://fps.amazonaws.com/doc/2008-09-17/}FundPrepaid
|
41
41
|
#
|
42
42
|
# RETURNS
|
43
|
-
# body
|
43
|
+
# body FundPrepaidResponse - {http://fps.amazonaws.com/doc/2008-09-17/}FundPrepaidResponse
|
44
44
|
#
|
45
45
|
body = nil
|
46
|
-
puts obj.
|
46
|
+
puts obj.fundPrepaid(body)
|
47
47
|
|
48
48
|
# SYNOPSIS
|
49
|
-
#
|
49
|
+
# GetAccountActivity(body)
|
50
50
|
#
|
51
51
|
# ARGS
|
52
|
-
# body
|
52
|
+
# body GetAccountActivity - {http://fps.amazonaws.com/doc/2008-09-17/}GetAccountActivity
|
53
53
|
#
|
54
54
|
# RETURNS
|
55
|
-
# body
|
55
|
+
# body GetAccountActivityResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetAccountActivityResponse
|
56
56
|
#
|
57
57
|
body = nil
|
58
|
-
puts obj.
|
58
|
+
puts obj.getAccountActivity(body)
|
59
59
|
|
60
60
|
# SYNOPSIS
|
61
|
-
#
|
61
|
+
# GetAccountBalance(body)
|
62
62
|
#
|
63
63
|
# ARGS
|
64
|
-
# body
|
64
|
+
# body GetAccountBalance - {http://fps.amazonaws.com/doc/2008-09-17/}GetAccountBalance
|
65
65
|
#
|
66
66
|
# RETURNS
|
67
|
-
# body
|
67
|
+
# body GetAccountBalanceResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetAccountBalanceResponse
|
68
68
|
#
|
69
69
|
body = nil
|
70
|
-
puts obj.
|
70
|
+
puts obj.getAccountBalance(body)
|
71
71
|
|
72
72
|
# SYNOPSIS
|
73
|
-
#
|
73
|
+
# GetDebtBalance(body)
|
74
74
|
#
|
75
75
|
# ARGS
|
76
|
-
# body
|
76
|
+
# body GetDebtBalance - {http://fps.amazonaws.com/doc/2008-09-17/}GetDebtBalance
|
77
77
|
#
|
78
78
|
# RETURNS
|
79
|
-
# body
|
79
|
+
# body GetDebtBalanceResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetDebtBalanceResponse
|
80
80
|
#
|
81
81
|
body = nil
|
82
|
-
puts obj.
|
82
|
+
puts obj.getDebtBalance(body)
|
83
83
|
|
84
84
|
# SYNOPSIS
|
85
85
|
# GetOutstandingDebtBalance(body)
|
86
86
|
#
|
87
87
|
# ARGS
|
88
|
-
# body
|
88
|
+
# body GetOutstandingDebtBalance - {http://fps.amazonaws.com/doc/2008-09-17/}GetOutstandingDebtBalance
|
89
89
|
#
|
90
90
|
# RETURNS
|
91
|
-
# body GetOutstandingDebtBalanceResponse - {http://fps.amazonaws.com/doc/
|
91
|
+
# body GetOutstandingDebtBalanceResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetOutstandingDebtBalanceResponse
|
92
92
|
#
|
93
93
|
body = nil
|
94
94
|
puts obj.getOutstandingDebtBalance(body)
|
95
95
|
|
96
96
|
# SYNOPSIS
|
97
|
-
#
|
98
|
-
#
|
99
|
-
# ARGS
|
100
|
-
# body SettleDebtRequest - {http://fps.amazonaws.com/doc/2007-01-08/}SettleDebtRequest
|
101
|
-
#
|
102
|
-
# RETURNS
|
103
|
-
# body SettleDebtResponse - {http://fps.amazonaws.com/doc/2007-01-08/}SettleDebtResponse
|
104
|
-
#
|
105
|
-
body = nil
|
106
|
-
puts obj.settleDebt(body)
|
107
|
-
|
108
|
-
# SYNOPSIS
|
109
|
-
# WriteOffDebt(body)
|
110
|
-
#
|
111
|
-
# ARGS
|
112
|
-
# body WriteOffDebtRequest - {http://fps.amazonaws.com/doc/2007-01-08/}WriteOffDebtRequest
|
113
|
-
#
|
114
|
-
# RETURNS
|
115
|
-
# body WriteOffDebtResponse - {http://fps.amazonaws.com/doc/2007-01-08/}WriteOffDebtResponse
|
116
|
-
#
|
117
|
-
body = nil
|
118
|
-
puts obj.writeOffDebt(body)
|
119
|
-
|
120
|
-
# SYNOPSIS
|
121
|
-
# FundPrepaid(body)
|
97
|
+
# GetPrepaidBalance(body)
|
122
98
|
#
|
123
99
|
# ARGS
|
124
|
-
# body
|
100
|
+
# body GetPrepaidBalance - {http://fps.amazonaws.com/doc/2008-09-17/}GetPrepaidBalance
|
125
101
|
#
|
126
102
|
# RETURNS
|
127
|
-
# body
|
103
|
+
# body GetPrepaidBalanceResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetPrepaidBalanceResponse
|
128
104
|
#
|
129
105
|
body = nil
|
130
|
-
puts obj.
|
106
|
+
puts obj.getPrepaidBalance(body)
|
131
107
|
|
132
108
|
# SYNOPSIS
|
133
|
-
#
|
109
|
+
# GetTokenByCaller(body)
|
134
110
|
#
|
135
111
|
# ARGS
|
136
|
-
# body
|
112
|
+
# body GetTokenByCaller - {http://fps.amazonaws.com/doc/2008-09-17/}GetTokenByCaller
|
137
113
|
#
|
138
114
|
# RETURNS
|
139
|
-
# body
|
115
|
+
# body GetTokenByCallerResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetTokenByCallerResponse
|
140
116
|
#
|
141
117
|
body = nil
|
142
|
-
puts obj.
|
118
|
+
puts obj.getTokenByCaller(body)
|
143
119
|
|
144
120
|
# SYNOPSIS
|
145
|
-
#
|
121
|
+
# CancelSubscriptionAndRefund(body)
|
146
122
|
#
|
147
123
|
# ARGS
|
148
|
-
# body
|
124
|
+
# body CancelSubscriptionAndRefund - {http://fps.amazonaws.com/doc/2008-09-17/}CancelSubscriptionAndRefund
|
149
125
|
#
|
150
126
|
# RETURNS
|
151
|
-
# body
|
127
|
+
# body CancelSubscriptionAndRefundResponse - {http://fps.amazonaws.com/doc/2008-09-17/}CancelSubscriptionAndRefundResponse
|
152
128
|
#
|
153
129
|
body = nil
|
154
|
-
puts obj.
|
130
|
+
puts obj.cancelSubscriptionAndRefund(body)
|
155
131
|
|
156
132
|
# SYNOPSIS
|
157
|
-
#
|
133
|
+
# GetTokenUsage(body)
|
158
134
|
#
|
159
135
|
# ARGS
|
160
|
-
# body
|
136
|
+
# body GetTokenUsage - {http://fps.amazonaws.com/doc/2008-09-17/}GetTokenUsage
|
161
137
|
#
|
162
138
|
# RETURNS
|
163
|
-
# body
|
139
|
+
# body GetTokenUsageResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetTokenUsageResponse
|
164
140
|
#
|
165
141
|
body = nil
|
166
|
-
puts obj.
|
142
|
+
puts obj.getTokenUsage(body)
|
167
143
|
|
168
144
|
# SYNOPSIS
|
169
|
-
#
|
145
|
+
# GetTokens(body)
|
170
146
|
#
|
171
147
|
# ARGS
|
172
|
-
# body
|
148
|
+
# body GetTokens - {http://fps.amazonaws.com/doc/2008-09-17/}GetTokens
|
173
149
|
#
|
174
150
|
# RETURNS
|
175
|
-
# body
|
151
|
+
# body GetTokensResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetTokensResponse
|
176
152
|
#
|
177
153
|
body = nil
|
178
|
-
puts obj.
|
154
|
+
puts obj.getTokens(body)
|
179
155
|
|
180
156
|
# SYNOPSIS
|
181
|
-
#
|
157
|
+
# GetTotalPrepaidLiability(body)
|
182
158
|
#
|
183
159
|
# ARGS
|
184
|
-
# body
|
160
|
+
# body GetTotalPrepaidLiability - {http://fps.amazonaws.com/doc/2008-09-17/}GetTotalPrepaidLiability
|
185
161
|
#
|
186
162
|
# RETURNS
|
187
|
-
# body
|
163
|
+
# body GetTotalPrepaidLiabilityResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetTotalPrepaidLiabilityResponse
|
188
164
|
#
|
189
165
|
body = nil
|
190
|
-
puts obj.
|
166
|
+
puts obj.getTotalPrepaidLiability(body)
|
191
167
|
|
192
168
|
# SYNOPSIS
|
193
|
-
#
|
169
|
+
# GetTransaction(body)
|
194
170
|
#
|
195
171
|
# ARGS
|
196
|
-
# body
|
172
|
+
# body GetTransaction - {http://fps.amazonaws.com/doc/2008-09-17/}GetTransaction
|
197
173
|
#
|
198
174
|
# RETURNS
|
199
|
-
# body
|
175
|
+
# body GetTransactionResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetTransactionResponse
|
200
176
|
#
|
201
177
|
body = nil
|
202
|
-
puts obj.
|
178
|
+
puts obj.getTransaction(body)
|
203
179
|
|
204
180
|
# SYNOPSIS
|
205
|
-
#
|
181
|
+
# GetTransactionStatus(body)
|
206
182
|
#
|
207
183
|
# ARGS
|
208
|
-
# body
|
184
|
+
# body GetTransactionStatus - {http://fps.amazonaws.com/doc/2008-09-17/}GetTransactionStatus
|
209
185
|
#
|
210
186
|
# RETURNS
|
211
|
-
# body
|
187
|
+
# body GetTransactionStatusResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetTransactionStatusResponse
|
212
188
|
#
|
213
189
|
body = nil
|
214
|
-
puts obj.
|
190
|
+
puts obj.getTransactionStatus(body)
|
215
191
|
|
216
192
|
# SYNOPSIS
|
217
193
|
# GetPaymentInstruction(body)
|
218
194
|
#
|
219
195
|
# ARGS
|
220
|
-
# body
|
196
|
+
# body GetPaymentInstruction - {http://fps.amazonaws.com/doc/2008-09-17/}GetPaymentInstruction
|
221
197
|
#
|
222
198
|
# RETURNS
|
223
|
-
# body GetPaymentInstructionResponse - {http://fps.amazonaws.com/doc/
|
199
|
+
# body GetPaymentInstructionResponse - {http://fps.amazonaws.com/doc/2008-09-17/}GetPaymentInstructionResponse
|
224
200
|
#
|
225
201
|
body = nil
|
226
202
|
puts obj.getPaymentInstruction(body)
|
227
203
|
|
228
204
|
# SYNOPSIS
|
229
|
-
#
|
230
|
-
#
|
231
|
-
# ARGS
|
232
|
-
# body CancelTokenRequest - {http://fps.amazonaws.com/doc/2007-01-08/}CancelTokenRequest
|
233
|
-
#
|
234
|
-
# RETURNS
|
235
|
-
# body CancelTokenResponse - {http://fps.amazonaws.com/doc/2007-01-08/}CancelTokenResponse
|
236
|
-
#
|
237
|
-
body = nil
|
238
|
-
puts obj.cancelToken(body)
|
239
|
-
|
240
|
-
# SYNOPSIS
|
241
|
-
# PayBatch(body)
|
205
|
+
# InstallPaymentInstruction(body)
|
242
206
|
#
|
243
207
|
# ARGS
|
244
|
-
# body
|
208
|
+
# body InstallPaymentInstruction - {http://fps.amazonaws.com/doc/2008-09-17/}InstallPaymentInstruction
|
245
209
|
#
|
246
210
|
# RETURNS
|
247
|
-
# body
|
211
|
+
# body InstallPaymentInstructionResponse - {http://fps.amazonaws.com/doc/2008-09-17/}InstallPaymentInstructionResponse
|
248
212
|
#
|
249
213
|
body = nil
|
250
|
-
puts obj.
|
214
|
+
puts obj.installPaymentInstruction(body)
|
251
215
|
|
252
216
|
# SYNOPSIS
|
253
217
|
# Pay(body)
|
254
218
|
#
|
255
219
|
# ARGS
|
256
|
-
# body
|
220
|
+
# body Pay - {http://fps.amazonaws.com/doc/2008-09-17/}Pay
|
257
221
|
#
|
258
222
|
# RETURNS
|
259
|
-
# body PayResponse - {http://fps.amazonaws.com/doc/
|
223
|
+
# body PayResponse - {http://fps.amazonaws.com/doc/2008-09-17/}PayResponse
|
260
224
|
#
|
261
225
|
body = nil
|
262
226
|
puts obj.pay(body)
|
263
227
|
|
264
|
-
# SYNOPSIS
|
265
|
-
# Reserve(body)
|
266
|
-
#
|
267
|
-
# ARGS
|
268
|
-
# body ReserveRequest - {http://fps.amazonaws.com/doc/2007-01-08/}ReserveRequest
|
269
|
-
#
|
270
|
-
# RETURNS
|
271
|
-
# body ReserveResponse - {http://fps.amazonaws.com/doc/2007-01-08/}ReserveResponse
|
272
|
-
#
|
273
|
-
body = nil
|
274
|
-
puts obj.reserve(body)
|
275
|
-
|
276
|
-
# SYNOPSIS
|
277
|
-
# Settle(body)
|
278
|
-
#
|
279
|
-
# ARGS
|
280
|
-
# body SettleRequest - {http://fps.amazonaws.com/doc/2007-01-08/}SettleRequest
|
281
|
-
#
|
282
|
-
# RETURNS
|
283
|
-
# body SettleResponse - {http://fps.amazonaws.com/doc/2007-01-08/}SettleResponse
|
284
|
-
#
|
285
|
-
body = nil
|
286
|
-
puts obj.settle(body)
|
287
|
-
|
288
228
|
# SYNOPSIS
|
289
229
|
# Refund(body)
|
290
230
|
#
|
291
231
|
# ARGS
|
292
|
-
# body
|
232
|
+
# body Refund - {http://fps.amazonaws.com/doc/2008-09-17/}Refund
|
293
233
|
#
|
294
234
|
# RETURNS
|
295
|
-
# body RefundResponse - {http://fps.amazonaws.com/doc/
|
235
|
+
# body RefundResponse - {http://fps.amazonaws.com/doc/2008-09-17/}RefundResponse
|
296
236
|
#
|
297
237
|
body = nil
|
298
238
|
puts obj.refund(body)
|
299
239
|
|
300
240
|
# SYNOPSIS
|
301
|
-
#
|
302
|
-
#
|
303
|
-
# ARGS
|
304
|
-
# body GetResultsRequest - {http://fps.amazonaws.com/doc/2007-01-08/}GetResultsRequest
|
305
|
-
#
|
306
|
-
# RETURNS
|
307
|
-
# body GetResultsResponse - {http://fps.amazonaws.com/doc/2007-01-08/}GetResultsResponse
|
308
|
-
#
|
309
|
-
body = nil
|
310
|
-
puts obj.getResults(body)
|
311
|
-
|
312
|
-
# SYNOPSIS
|
313
|
-
# DiscardResults(body)
|
241
|
+
# Reserve(body)
|
314
242
|
#
|
315
243
|
# ARGS
|
316
|
-
# body
|
244
|
+
# body Reserve - {http://fps.amazonaws.com/doc/2008-09-17/}Reserve
|
317
245
|
#
|
318
246
|
# RETURNS
|
319
|
-
# body
|
247
|
+
# body ReserveResponse - {http://fps.amazonaws.com/doc/2008-09-17/}ReserveResponse
|
320
248
|
#
|
321
249
|
body = nil
|
322
|
-
puts obj.
|
250
|
+
puts obj.reserve(body)
|
323
251
|
|
324
252
|
# SYNOPSIS
|
325
|
-
#
|
253
|
+
# Settle(body)
|
326
254
|
#
|
327
255
|
# ARGS
|
328
|
-
# body
|
256
|
+
# body Settle - {http://fps.amazonaws.com/doc/2008-09-17/}Settle
|
329
257
|
#
|
330
258
|
# RETURNS
|
331
|
-
# body
|
259
|
+
# body SettleResponse - {http://fps.amazonaws.com/doc/2008-09-17/}SettleResponse
|
332
260
|
#
|
333
261
|
body = nil
|
334
|
-
puts obj.
|
262
|
+
puts obj.settle(body)
|
335
263
|
|
336
264
|
# SYNOPSIS
|
337
|
-
#
|
265
|
+
# SettleDebt(body)
|
338
266
|
#
|
339
267
|
# ARGS
|
340
|
-
# body
|
268
|
+
# body SettleDebt - {http://fps.amazonaws.com/doc/2008-09-17/}SettleDebt
|
341
269
|
#
|
342
270
|
# RETURNS
|
343
|
-
# body
|
271
|
+
# body SettleDebtResponse - {http://fps.amazonaws.com/doc/2008-09-17/}SettleDebtResponse
|
344
272
|
#
|
345
273
|
body = nil
|
346
|
-
puts obj.
|
274
|
+
puts obj.settleDebt(body)
|
347
275
|
|
348
276
|
# SYNOPSIS
|
349
|
-
#
|
277
|
+
# WriteOffDebt(body)
|
350
278
|
#
|
351
279
|
# ARGS
|
352
|
-
# body
|
280
|
+
# body WriteOffDebt - {http://fps.amazonaws.com/doc/2008-09-17/}WriteOffDebt
|
353
281
|
#
|
354
282
|
# RETURNS
|
355
|
-
# body
|
283
|
+
# body WriteOffDebtResponse - {http://fps.amazonaws.com/doc/2008-09-17/}WriteOffDebtResponse
|
356
284
|
#
|
357
285
|
body = nil
|
358
|
-
puts obj.
|
286
|
+
puts obj.writeOffDebt(body)
|
359
287
|
|
360
288
|
|