Permalink
Browse files

update to 2011-09-20 for updated GetVerificationState responses

  • Loading branch information...
1 parent bf47529 commit 381afadf794b62d9aeffc431e7bb0d3e4ec1d72d @cainlevy cainlevy committed Nov 14, 2011
@@ -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
@@ -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)
@@ -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)
@@ -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
@@ -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>

0 comments on commit 381afad

Please sign in to comment.