Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
update to 2011-09-20 for revised GetRecipientVerificationStatus respo…
Browse files Browse the repository at this point in the history
…nses
  • Loading branch information
cainlevy committed Nov 14, 2011
1 parent bf47529 commit 74b020f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/amazon_flex_pay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

module AmazonFlexPay
VERSION = '0.9.6'
API_VERSION = '2010-08-28'
API_VERSION = '2011-09-20'
PIPELINE_VERSION = '2009-01-09'

class << self
Expand Down
4 changes: 1 addition & 3 deletions lib/amazon_flex_pay/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def get_account_balance
API::GetAccountBalance.new.submit
end

# Returns the status of a recipient's Amazon account. This is a high-level status indicating whether
# the recipient can receive up to $10k per month (VerificationComplete) or has no receiving limitations
# at all (VerificationCompleteNoLimits).
# Returns the status of a recipient's Amazon account.
#
# See http://docs.amazonwebservices.com/AmazonFPS/latest/FPSAdvancedGuide/GetRecipientVerificationStatus.html
def get_recipient_verification_status(recipient_token_id)
Expand Down
2 changes: 1 addition & 1 deletion lib/amazon_flex_pay/enumerations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module AmazonFlexPay::Enumerations
InstrumentStatus = %w(Active All Cancelled)
MarketplaceRefundPolicy = %w(MarketplaceTxnOnly MasterAndMarketplaceTxn MasterTxnOnly) # moved from DataTypes
PaymentMethod = %w(ABT ACH CC Debt Prepaid)
RecipientVerificationStatus = %w(VerificationComplete VerificationPending VerificationCompleteNoLimits) # moved from DataTypes
RecipientVerificationStatus = %w(PendingUserAction PendingReview Closed Active) # moved from DataTypes
RelationType = %w(MarketplaceFee Parent Refund RefundReversal Reserve Settle)
SoftDescriptorType = %w(Static Dynamic) # undocumented
SortOrderByDate = %w(Ascending Descending)
Expand Down
4 changes: 2 additions & 2 deletions test/amazon_flex_pay_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ class Response < AmazonFlexPay::API::BaseRequest::BaseResponse; end
# standard additions
assert_equal 'foo', params['AWSAccessKeyId']
assert_equal 'TestRequest', params['Action']
assert_equal '2010-08-28', params['Version']
assert_equal '2011-09-20', params['Version']

# the signature is backwards-calculated for regression testing
assert_equal 'kVNr+W7L3Z/A6sBrcz1FHdshQqPFU0YOPZJpMglofNk=', params['Signature']
assert_equal 'WVrkmK7qt/T+gtHWcdzqtkLRH8c06l/mPv3ZfxyvNyg=', params['Signature']
assert_equal 'HmacSHA256', params['SignatureMethod']
assert_equal 2, params['SignatureVersion']
end
Expand Down
2 changes: 1 addition & 1 deletion test/response_samples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def get_recipient_verification_status_response
<GetRecipientVerificationResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
<GetRecipientVerificationResult>
<RecipientVerificationStatus>
VerificationComplete
PendingUserAction
</RecipientVerificationStatus>
</GetRecipientVerificationResult>
<ResponseMetadata>
Expand Down

0 comments on commit 74b020f

Please sign in to comment.