amazon_flex_pay 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/amazon_flex_pay/api/{base.rb → base_request.rb} +1 -1
- data/lib/amazon_flex_pay/api/cancel.rb +1 -1
- data/lib/amazon_flex_pay/api/cancel_token.rb +1 -1
- data/lib/amazon_flex_pay/api/get_account_activity.rb +1 -1
- data/lib/amazon_flex_pay/api/get_account_balance.rb +1 -1
- data/lib/amazon_flex_pay/api/get_recipient_verification_status.rb +1 -1
- data/lib/amazon_flex_pay/api/get_token_by_caller.rb +1 -1
- data/lib/amazon_flex_pay/api/get_token_usage.rb +1 -1
- data/lib/amazon_flex_pay/api/get_tokens.rb +1 -1
- data/lib/amazon_flex_pay/api/get_transaction.rb +1 -1
- data/lib/amazon_flex_pay/api/get_transaction_status.rb +1 -1
- data/lib/amazon_flex_pay/api/pay.rb +1 -1
- data/lib/amazon_flex_pay/api/refund.rb +1 -1
- data/lib/amazon_flex_pay/api/reserve.rb +1 -1
- data/lib/amazon_flex_pay/api/settle.rb +1 -1
- data/lib/amazon_flex_pay/api/verify_signature.rb +1 -1
- data/lib/amazon_flex_pay/api.rb +2 -4
- data/lib/amazon_flex_pay/enumerations.rb +1 -1
- data/lib/amazon_flex_pay.rb +2 -2
- data/test/amazon_flex_pay_test.rb +4 -4
- data/test/response_samples.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +32 -32
data/Rakefile
CHANGED
data/lib/amazon_flex_pay/api.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# load all api classes
|
2
|
-
require 'amazon_flex_pay/api/
|
2
|
+
require 'amazon_flex_pay/api/base_request'
|
3
3
|
Dir[File.dirname(__FILE__) + '/api/*'].each do |p| require "amazon_flex_pay/api/#{File.basename(p)}" end
|
4
4
|
|
5
5
|
module AmazonFlexPay
|
@@ -33,9 +33,7 @@ module AmazonFlexPay
|
|
33
33
|
API::GetAccountBalance.new.submit
|
34
34
|
end
|
35
35
|
|
36
|
-
# Returns the status of a recipient's Amazon account.
|
37
|
-
# the recipient can receive up to $10k per month (VerificationComplete) or has no receiving limitations
|
38
|
-
# at all (VerificationCompleteNoLimits).
|
36
|
+
# Returns the status of a recipient's Amazon account.
|
39
37
|
#
|
40
38
|
# See http://docs.amazonwebservices.com/AmazonFPS/latest/FPSAdvancedGuide/GetRecipientVerificationStatus.html
|
41
39
|
def get_recipient_verification_status(recipient_token_id)
|
@@ -11,7 +11,7 @@ module AmazonFlexPay::Enumerations
|
|
11
11
|
InstrumentStatus = %w(Active All Cancelled)
|
12
12
|
MarketplaceRefundPolicy = %w(MarketplaceTxnOnly MasterAndMarketplaceTxn MasterTxnOnly) # moved from DataTypes
|
13
13
|
PaymentMethod = %w(ABT ACH CC Debt Prepaid)
|
14
|
-
RecipientVerificationStatus = %w(
|
14
|
+
RecipientVerificationStatus = %w(PendingUserAction PendingReview Closed Active) # moved from DataTypes
|
15
15
|
RelationType = %w(MarketplaceFee Parent Refund RefundReversal Reserve Settle)
|
16
16
|
SoftDescriptorType = %w(Static Dynamic) # undocumented
|
17
17
|
SortOrderByDate = %w(Ascending Descending)
|
data/lib/amazon_flex_pay.rb
CHANGED
@@ -41,12 +41,12 @@ class AmazonFlexPayTest < AmazonFlexPay::Test
|
|
41
41
|
|
42
42
|
# api basics
|
43
43
|
|
44
|
-
class TestRequest < AmazonFlexPay::API::
|
44
|
+
class TestRequest < AmazonFlexPay::API::BaseRequest
|
45
45
|
attribute :foo
|
46
46
|
attribute :amount, :type => :amount
|
47
47
|
attribute :stuffs, :collection => :amount
|
48
48
|
|
49
|
-
class Response < AmazonFlexPay::API::
|
49
|
+
class Response < AmazonFlexPay::API::BaseRequest::BaseResponse; end
|
50
50
|
end
|
51
51
|
|
52
52
|
should "respond with data structures even when models are empty" do
|
@@ -73,10 +73,10 @@ class AmazonFlexPayTest < AmazonFlexPay::Test
|
|
73
73
|
# standard additions
|
74
74
|
assert_equal 'foo', params['AWSAccessKeyId']
|
75
75
|
assert_equal 'TestRequest', params['Action']
|
76
|
-
assert_equal '
|
76
|
+
assert_equal '2011-09-20', params['Version']
|
77
77
|
|
78
78
|
# the signature is backwards-calculated for regression testing
|
79
|
-
assert_equal '
|
79
|
+
assert_equal 'WVrkmK7qt/T+gtHWcdzqtkLRH8c06l/mPv3ZfxyvNyg=', params['Signature']
|
80
80
|
assert_equal 'HmacSHA256', params['SignatureMethod']
|
81
81
|
assert_equal 2, params['SignatureVersion']
|
82
82
|
end
|
data/test/response_samples.rb
CHANGED
@@ -352,7 +352,7 @@ module ResponseSamples
|
|
352
352
|
<GetRecipientVerificationResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
353
353
|
<GetRecipientVerificationResult>
|
354
354
|
<RecipientVerificationStatus>
|
355
|
-
|
355
|
+
PendingUserAction
|
356
356
|
</RecipientVerificationStatus>
|
357
357
|
</GetRecipientVerificationResult>
|
358
358
|
<ResponseMetadata>
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon_flex_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 53
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 7
|
10
|
+
version: 0.9.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lance Ivy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-14 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -89,42 +89,42 @@ extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
|
91
91
|
files:
|
92
|
-
- lib/amazon_flex_pay/
|
93
|
-
- lib/amazon_flex_pay/enumerations.rb
|
94
|
-
- lib/amazon_flex_pay/signing.rb
|
95
|
-
- lib/amazon_flex_pay/pipelines/base.rb
|
96
|
-
- lib/amazon_flex_pay/pipelines/single_use.rb
|
97
|
-
- lib/amazon_flex_pay/pipelines/edit_token.rb
|
98
|
-
- lib/amazon_flex_pay/pipelines/recipient.rb
|
99
|
-
- lib/amazon_flex_pay/pipelines/multi_use.rb
|
100
|
-
- lib/amazon_flex_pay/model.rb
|
101
|
-
- lib/amazon_flex_pay/api/get_transaction.rb
|
102
|
-
- lib/amazon_flex_pay/api/get_token_usage.rb
|
103
|
-
- lib/amazon_flex_pay/api/reserve.rb
|
104
|
-
- lib/amazon_flex_pay/api/base.rb
|
105
|
-
- lib/amazon_flex_pay/api/get_transaction_status.rb
|
106
|
-
- lib/amazon_flex_pay/api/verify_signature.rb
|
107
|
-
- lib/amazon_flex_pay/api/get_account_balance.rb
|
108
|
-
- lib/amazon_flex_pay/api/get_recipient_verification_status.rb
|
109
|
-
- lib/amazon_flex_pay/api/get_account_activity.rb
|
110
|
-
- lib/amazon_flex_pay/api/refund.rb
|
111
|
-
- lib/amazon_flex_pay/api/pay.rb
|
92
|
+
- lib/amazon_flex_pay/api/base_request.rb
|
112
93
|
- lib/amazon_flex_pay/api/cancel.rb
|
113
94
|
- lib/amazon_flex_pay/api/cancel_token.rb
|
95
|
+
- lib/amazon_flex_pay/api/get_account_activity.rb
|
96
|
+
- lib/amazon_flex_pay/api/get_account_balance.rb
|
97
|
+
- lib/amazon_flex_pay/api/get_recipient_verification_status.rb
|
114
98
|
- lib/amazon_flex_pay/api/get_token_by_caller.rb
|
99
|
+
- lib/amazon_flex_pay/api/get_token_usage.rb
|
115
100
|
- lib/amazon_flex_pay/api/get_tokens.rb
|
101
|
+
- lib/amazon_flex_pay/api/get_transaction.rb
|
102
|
+
- lib/amazon_flex_pay/api/get_transaction_status.rb
|
103
|
+
- lib/amazon_flex_pay/api/pay.rb
|
104
|
+
- lib/amazon_flex_pay/api/refund.rb
|
105
|
+
- lib/amazon_flex_pay/api/reserve.rb
|
116
106
|
- lib/amazon_flex_pay/api/settle.rb
|
107
|
+
- lib/amazon_flex_pay/api/verify_signature.rb
|
117
108
|
- lib/amazon_flex_pay/api.rb
|
118
109
|
- lib/amazon_flex_pay/data_types.rb
|
110
|
+
- lib/amazon_flex_pay/enumerations.rb
|
111
|
+
- lib/amazon_flex_pay/model.rb
|
112
|
+
- lib/amazon_flex_pay/pipelines/base.rb
|
113
|
+
- lib/amazon_flex_pay/pipelines/edit_token.rb
|
114
|
+
- lib/amazon_flex_pay/pipelines/multi_use.rb
|
115
|
+
- lib/amazon_flex_pay/pipelines/recipient.rb
|
116
|
+
- lib/amazon_flex_pay/pipelines/single_use.rb
|
117
|
+
- lib/amazon_flex_pay/pipelines.rb
|
118
|
+
- lib/amazon_flex_pay/signing.rb
|
119
119
|
- lib/amazon_flex_pay.rb
|
120
120
|
- LICENSE
|
121
121
|
- README.rdoc
|
122
122
|
- Rakefile
|
123
|
-
- test/test_helper.rb
|
124
|
-
- test/response_samples.rb
|
125
123
|
- test/amazon_flex_pay_test.rb
|
126
|
-
- test/pipelines_test.rb
|
127
124
|
- test/api_test.rb
|
125
|
+
- test/pipelines_test.rb
|
126
|
+
- test/response_samples.rb
|
127
|
+
- test/test_helper.rb
|
128
128
|
has_rdoc: true
|
129
129
|
homepage: http://github.com/kickstarter/amazon_flex_pay
|
130
130
|
licenses: []
|
@@ -155,13 +155,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements: []
|
156
156
|
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 1.
|
158
|
+
rubygems_version: 1.6.2
|
159
159
|
signing_key:
|
160
160
|
specification_version: 3
|
161
161
|
summary: API layer for Amazon FPS
|
162
162
|
test_files:
|
163
|
-
- test/test_helper.rb
|
164
|
-
- test/response_samples.rb
|
165
163
|
- test/amazon_flex_pay_test.rb
|
166
|
-
- test/pipelines_test.rb
|
167
164
|
- test/api_test.rb
|
165
|
+
- test/pipelines_test.rb
|
166
|
+
- test/response_samples.rb
|
167
|
+
- test/test_helper.rb
|