remit 0.0.6 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +36 -5
- data/lib/remit.rb +35 -39
- data/lib/remit/common.rb +79 -24
- data/lib/remit/data_types.rb +118 -17
- data/lib/remit/get_pipeline.rb +160 -80
- data/lib/remit/inbound_request.rb +85 -0
- data/lib/remit/ipn_request.rb +4 -39
- data/lib/remit/operations/cancel.rb +20 -0
- data/lib/remit/operations/cancel_subscription_and_refund.rb +5 -1
- data/lib/remit/operations/cancel_token.rb +1 -0
- data/lib/remit/operations/fund_prepaid.rb +6 -4
- data/lib/remit/operations/get_account_activity.rb +5 -34
- data/lib/remit/operations/get_account_balance.rb +14 -11
- data/lib/remit/operations/get_all_credit_instruments.rb +2 -0
- data/lib/remit/operations/get_all_prepaid_instruments.rb +2 -0
- data/lib/remit/operations/get_debt_balance.rb +9 -4
- data/lib/remit/operations/get_outstanding_debt_balance.rb +8 -5
- data/lib/remit/operations/get_payment_instruction.rb +2 -0
- data/lib/remit/operations/get_prepaid_balance.rb +9 -5
- data/lib/remit/operations/get_recipient_verification_status.rb +25 -0
- data/lib/remit/operations/get_token_by_caller.rb +5 -1
- data/lib/remit/operations/get_token_usage.rb +5 -1
- data/lib/remit/operations/get_tokens.rb +5 -1
- data/lib/remit/operations/get_total_prepaid_liability.rb +9 -5
- data/lib/remit/operations/get_transaction.rb +1 -25
- data/lib/remit/operations/get_transaction_status.rb +28 -0
- data/lib/remit/operations/install_payment_instruction.rb +8 -1
- data/lib/remit/operations/pay.rb +5 -9
- data/lib/remit/operations/refund.rb +20 -11
- data/lib/remit/operations/reserve.rb +2 -4
- data/lib/remit/operations/settle.rb +2 -1
- data/lib/remit/operations/settle_debt.rb +2 -4
- data/lib/remit/operations/subscribe_for_caller_notification.rb +2 -0
- data/lib/remit/operations/unsubscribe_for_caller_notification.rb +2 -0
- data/lib/remit/operations/write_off_debt.rb +2 -4
- data/lib/remit/pipeline_response.rb +8 -41
- data/lib/remit/signature_utils_for_outbound.rb +74 -0
- data/lib/remit/verify_signature.rb +21 -0
- data/spec/integrations/get_account_activity_spec.rb +25 -19
- data/spec/integrations/get_tokens_spec.rb +9 -7
- data/spec/integrations/integrations_helper.rb +7 -0
- data/spec/integrations/ipn_request_spec.rb +28 -20
- data/spec/integrations/pipeline_response_spec.rb +27 -0
- data/spec/integrations/verify_signature_spec.rb +140 -0
- data/spec/mocks/CancelResponse.xml +13 -0
- data/spec/mocks/CancelSubscriptionAndRefundResponse.xml +10 -0
- data/spec/mocks/CancelTokenResponse.xml +6 -0
- data/spec/mocks/ErrorResponse.xml +15 -0
- data/spec/mocks/FundPrepaidResponse.xml +11 -0
- data/spec/mocks/GetAccountActivityResponse.xml +68 -0
- data/spec/mocks/GetAccountBalanceResponse.xml +34 -0
- data/spec/mocks/GetDebtBalanceResponse.xml +21 -0
- data/spec/mocks/GetOutstandingDebtBalanceResponse.xml +21 -0
- data/spec/mocks/GetPaymentInstructionResponse.xml +25 -0
- data/spec/mocks/GetPrepaidBalanceResponse.xml +21 -0
- data/spec/mocks/GetRecipientVerificationStatusResponse.xml +9 -0
- data/spec/mocks/GetTokenByCallerResponse.xml +22 -0
- data/spec/mocks/GetTokenUsageResponse.xml +28 -0
- data/spec/mocks/GetTokensResponse.xml +22 -0
- data/spec/mocks/GetTotalPrepaidLiabilityResponse.xml +21 -0
- data/spec/mocks/GetTransactionResponse.xml +76 -0
- data/spec/mocks/GetTransactionStatusResponse.xml +16 -0
- data/spec/mocks/InstallPaymentInstructionResponse.xml +10 -0
- data/spec/mocks/PayResponse.xml +11 -0
- data/spec/mocks/RefundResponse.xml +11 -0
- data/spec/mocks/ReserveResponse.xml +11 -0
- data/spec/mocks/SettleDebtResponse.xml +11 -0
- data/spec/mocks/SettleResponse.xml +11 -0
- data/spec/mocks/VerifySignatureResponse.xml +11 -0
- data/spec/mocks/WriteOffDebtResponse.xml +11 -0
- data/spec/mocks/errors/InvalidParameterValue.xml +10 -0
- data/spec/mocks/errors/InvalidParams_certificateUrl.xml +2 -0
- data/spec/mocks/errors/RequestExpired.xml +10 -0
- data/spec/spec_helper.rb +59 -10
- data/spec/units/cancel_subscription_and_refund_spec.rb +29 -0
- data/spec/units/cancel_token_spec.rb +24 -0
- data/spec/units/fund_prepaid_spec.rb +28 -0
- data/spec/units/get_account_activity_spec.rb +58 -0
- data/spec/units/get_account_balance_spec.rb +28 -0
- data/spec/units/get_debt_balance_spec.rb +29 -0
- data/spec/units/get_outstanding_debt_balance_spec.rb +29 -0
- data/spec/units/get_pipeline_spec.rb +16 -0
- data/spec/units/get_prepaid_balance_spec.rb +29 -0
- data/spec/units/get_recipient_verification_status_spec.rb +26 -0
- data/spec/units/get_token_by_caller_spec.rb +56 -0
- data/spec/units/get_token_usage_spec.rb +51 -0
- data/spec/units/get_tokens_spec.rb +56 -0
- data/spec/units/get_total_prepaid_liability_spec.rb +26 -0
- data/spec/units/get_transaction_spec.rb +103 -0
- data/spec/units/get_transaction_status_spec.rb +44 -0
- data/spec/units/pay_spec.rb +36 -57
- data/spec/units/refund_spec.rb +41 -0
- data/spec/units/reserve_spec.rb +41 -0
- data/spec/units/settle_debt_spec.rb +41 -0
- data/spec/units/settle_spec.rb +41 -0
- data/spec/units/units_helper.rb +23 -2
- data/spec/units/write_off_debt_spec.rb +41 -0
- metadata +116 -12
- data/lib/remit/operations/discard_results.rb +0 -18
- data/lib/remit/operations/get_results.rb +0 -27
- data/lib/remit/operations/retry_transaction.rb +0 -18
- data/spec/units/get_results_spec.rb +0 -49
@@ -0,0 +1,27 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/integrations_helper'
|
2
|
+
#require 'uri'
|
3
|
+
#require 'remit/common'
|
4
|
+
|
5
|
+
#TODO: Turn this into an integration test...
|
6
|
+
#describe "Pipeline Response should work" do
|
7
|
+
#
|
8
|
+
# before(:each) do
|
9
|
+
# params = { :status => "SA",
|
10
|
+
# :tokenID => "foo",
|
11
|
+
# :callerReference => "bar",
|
12
|
+
# :awsSignature => "7QrCpQ1nMng3Usaj8LFkeo4zorM="}
|
13
|
+
# url = URI.parse("http://example.com/payment?#{params.to_url_params}")
|
14
|
+
# @pipeline_response = Remit::PipelineResponse.new(url.path, url.query, SECRET_KEY)
|
15
|
+
# end
|
16
|
+
#
|
17
|
+
#
|
18
|
+
# it "should be valid" do
|
19
|
+
# puts "#{@pipeline_response.inspect}"
|
20
|
+
# @pipeline_response.should be_valid
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# it "should be successful" do
|
24
|
+
# @pipeline_response.successful?.should == true
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
#end
|
@@ -0,0 +1,140 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/integrations_helper'
|
2
|
+
|
3
|
+
describe "VerifySignature API" do
|
4
|
+
|
5
|
+
#Not sure if other KEYS can validate this signature or not. Taken from a test sandbox transaction.
|
6
|
+
def correct_params
|
7
|
+
{"tokenID"=>"F36RX66AJJF8S3QZ9MP656MAZD2CL3UH5HMIFT75D5ACN6Z9FKCHESAQQXNLVSBM",
|
8
|
+
"signatureVersion"=>"2",
|
9
|
+
"callerReference"=>"OrderToken-00b6fad394cdef8f95c1dcc72e2bfae06dc09c4f",
|
10
|
+
"signature"=>"Jy7oVloTqVl1BKTnFmpiBW0Jpzr3x4E4WoIPxUQMz1vefNO3bhceHTg+zAvB52JcyS2oYmUHltep\n3ifJb+eEciRDCP+T7GjocXG9LNuGpt76MUXxbV2CGGq+gVvTs/kE5oN5kH2/51skjiFkgwl9Qfao\nuGYK9uWVGuRvL9dmhxk=",
|
11
|
+
"certificateUrl"=>"https://fps.sandbox.amazonaws.com/certs/090910/PKICert.pem?requestId=bjyoi7ibdlseql3rkc05z9rexucetcjqkdw8eneo5qlto7zp7ap",
|
12
|
+
"signatureMethod"=>"RSA-SHA1",
|
13
|
+
"expiry"=>"08/2014",
|
14
|
+
"status"=>"SC"}
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'with bad certificateUrl (whitespace)' do
|
18
|
+
before(:all) do
|
19
|
+
@params = {"tokenID"=>"F36RX66AJJF8S3QZ9MP656MAZD2CL3UH5HMIFT75D5ACN6Z9FKCHESAQQXNLVSBM",
|
20
|
+
"signatureVersion"=>"2",
|
21
|
+
"callerReference"=>"OrderToken-00b6fad394cdef8f95c1dcc72e2bfae06dc09c4f",
|
22
|
+
"signature"=>"Jy7oVloTqVl1BKTnFmpiBW0Jpzr3x4E4WoIPxUQMz1vefNO3bhceHTg+zAvB52JcyS2oYmUHltep\n3ifJb+eEciRDCP+T7GjocXG9LNuGpt76MUXxbV2CGGq+gVvTs/kE5oN5kH2/51skjiFkgwl9Qfao\nuGYK9uWVGuRvL9dmhxk=",
|
23
|
+
"certificateUrl"=>"https://fps.sandbox.amazonaws.com/certs/090
|
24
|
+
910/PKICert.pem?requestId=bjyoi7ibdlseql3rkc05z9rexucetcjqkdw8eneo5qlto7zp7ap",
|
25
|
+
"signatureMethod"=>"RSA-SHA1",
|
26
|
+
"expiry"=>"08/2014",
|
27
|
+
"status"=>"SC"}
|
28
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou", @params, remit)
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'should not be valid' do
|
32
|
+
@pipeline_response.should_not be_valid
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'with bad signature (whitespace)' do
|
37
|
+
before(:all) do
|
38
|
+
@params = {"tokenID"=>"F36RX66AJJF8S3QZ9MP656MAZD2CL3UH5HMIFT75D5ACN6Z9FKCHESAQQXNLVSBM",
|
39
|
+
"signatureVersion"=>"2",
|
40
|
+
"callerReference"=>"OrderToken-00b6fad394cdef8f95c1dcc72e2bfae06dc09c4f",
|
41
|
+
"signature"=>"Jy7oVl
|
42
|
+
oTqVl1BKTnFmpiBW0Jpzr3x4E4WoIPxUQMz1vefNO3bhceHTg+zAvB52JcyS2oYmUHltep\n3ifJb+eEciRDCP+T7GjocXG9LNuGpt76MUXxbV2CGGq+gVvTs/kE5oN5kH2/51skjiFkgwl9Qfao\nuGYK9uWVGuRvL9dmhxk=",
|
43
|
+
"certificateUrl"=>"https://fps.sandbox.amazonaws.com/certs/090910/PKICert.pem?requestId=bjyoi7ibdlseql3rkc05z9rexucetcjqkdw8eneo5qlto7zp7ap",
|
44
|
+
"signatureMethod"=>"RSA-SHA1",
|
45
|
+
"expiry"=>"08/2014",
|
46
|
+
"status"=>"SC"}
|
47
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou", @params, remit)
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'should not be valid' do
|
51
|
+
@pipeline_response.should_not be_valid
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#'action' and 'controller' are auto removed by remit.
|
56
|
+
describe 'with parameters created by rails (not from Amazon, like "id")' do
|
57
|
+
before(:all) do
|
58
|
+
@params = correct_params.merge({
|
59
|
+
"action"=>"thankyou",
|
60
|
+
"id"=>"31",
|
61
|
+
"controller"=>"member/restaurants"})
|
62
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou", @params, remit)
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'should not be valid' do
|
66
|
+
@pipeline_response.should_not be_valid
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'with trailing slash on endpoint' do
|
71
|
+
before(:all) do
|
72
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou/", correct_params, remit)
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'should not be valid' do
|
76
|
+
@pipeline_response.should_not be_valid
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
describe "with correct parameters hash" do
|
81
|
+
#'action' and 'controller' are auto removed by remit.
|
82
|
+
describe 'including action and controller added by rails' do
|
83
|
+
before(:all) do
|
84
|
+
@params = correct_params.merge({
|
85
|
+
"action"=>"thankyou",
|
86
|
+
"controller"=>"member/restaurants"})
|
87
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou", @params, remit)
|
88
|
+
end
|
89
|
+
|
90
|
+
it 'should be valid' do
|
91
|
+
@pipeline_response.should be_valid
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'with trailing slash on endpoint URL' do
|
96
|
+
before(:all) do
|
97
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou/", correct_params, remit)
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'should not be valid' do
|
101
|
+
@pipeline_response.should_not be_valid
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe 'without trailing slash on endpoint URL' do
|
106
|
+
before(:all) do
|
107
|
+
@pipeline_response = Remit::PipelineResponse.new("https://staging.timeperks.net/member/restaurants/31/thankyou", correct_params, remit)
|
108
|
+
end
|
109
|
+
|
110
|
+
it 'should be valid' do
|
111
|
+
@pipeline_response.should be_valid
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
describe "with invalid query params (id comes from rails) and building Endpoint URL from request URI" do
|
117
|
+
before(:all) do
|
118
|
+
@parameters = {"tokenID"=>"977B36S3GQ5VRXSNSZ4V2BHJEB9YB3A7MFQSF5GCK5ULGGDMNDJT6AMU1TU6A6XX", "signatureVersion"=>"2", "callerReference"=>"OrderToken-a0fff5d468263da9672a4a939a5b28086764d049", "action"=>"thankyou", "signature"=>"gaumxsAIf4SoY9gp2KWpZK9JRhPhnQ/w+DgC/VWSgw/9pur/RDVlnzGt9Btr9iX6Goc7UNB3nso7\nmm8ocodEtz8Fnsj85OD4NdQZLuFV0PIzsIWYwYfe3nOxUm08uCCJo6dPJMwIocYnGTneqYMGoFZD\nawjzOEpAz8/50lViGvs=", "certificateUrl"=>"https://fps.sandbox.amazonaws.com/certs/090910/PKICert.pem?requestId=bjyoi7ibdlseql3rkc05z9rexucetcjqkdw8eneo5qlto7zp7aq", "id"=>"38", "signatureMethod"=>"RSA-SHA1", "controller"=>"member/restaurants", "expiry"=>"07/2015", "status"=>"SC"}
|
119
|
+
url = "https://staging.timeperks.net/member/restaurants/38/thankyou?signature=gaumxsAIf4SoY9gp2KWpZK9JRhPhnQ%2Fw%2BDgC%2FVWSgw%2F9pur%2FRDVlnzGt9Btr9iX6Goc7UNB3nso7%0Amm8ocodEtz8Fnsj85OD4NdQZLuFV0PIzsIWYwYfe3nOxUm08uCCJo6dPJMwIocYnGTneqYMGoFZD%0AawjzOEpAz8%2F50lViGvs%3D&expiry=07%2F2015&signatureVersion=2&signatureMethod=RSA-SHA1&certificateUrl=https%3A%2F%2Ffps.sandbox.amazonaws.com%2Fcerts%2F090910%2FPKICert.pem%3FrequestId%3Dbjyoi7ibdlseql3rkc05z9rexucetcjqkdw8eneo5qlto7zp7aq&tokenID=977B36S3GQ5VRXSNSZ4V2BHJEB9YB3A7MFQSF5GCK5ULGGDMNDJT6AMU1TU6A6XX&status=SC&callerReference=OrderToken-a0fff5d468263da9672a4a939a5b28086764d049"
|
120
|
+
@url = URI.parse("#{url}")
|
121
|
+
end
|
122
|
+
|
123
|
+
it 'should work when using URL to parse out params instead' do
|
124
|
+
@pipeline_response = Remit::PipelineResponse.new("#{@url.scheme}://#{@url.host}#{@url.path}", @url.query, remit)
|
125
|
+
@pipeline_response.should be_valid
|
126
|
+
end
|
127
|
+
|
128
|
+
it 'should be valid when using :skip_param_keys' do
|
129
|
+
@pipeline_response = Remit::PipelineResponse.new("#{@url.scheme}://#{@url.host}#{@url.path}", @parameters, remit, {:skip_param_keys => ['action','controller','id']})
|
130
|
+
@pipeline_response.should be_valid
|
131
|
+
end
|
132
|
+
|
133
|
+
it 'should be valid when relying on :skip_param_keys to remove action and controller params' do
|
134
|
+
@pipeline_response = Remit::PipelineResponse.new("#{@url.scheme}://#{@url.host}#{@url.path}", @parameters, remit, {:skip_param_keys => ['id']})
|
135
|
+
@pipeline_response.should be_valid
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<CancelResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<CancelResult>
|
5
|
+
<!--Optional:-->
|
6
|
+
<TransactionId>string</TransactionId>
|
7
|
+
<!--Optional:-->
|
8
|
+
<TransactionStatus>string</TransactionStatus>
|
9
|
+
</CancelResult>
|
10
|
+
<ResponseMetadata>
|
11
|
+
<RequestId>string</RequestId>
|
12
|
+
</ResponseMetadata>
|
13
|
+
</CancelResponse>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<CancelSubscriptionAndRefundResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<CancelSubscriptionAndRefundResult>
|
5
|
+
<RefundTransactionId>string</RefundTransactionId>
|
6
|
+
</CancelSubscriptionAndRefundResult>
|
7
|
+
<ResponseMetadata>
|
8
|
+
<RequestId>string</RequestId>
|
9
|
+
</ResponseMetadata>
|
10
|
+
</CancelSubscriptionAndRefundResponse>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ErrorResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--1 or more repetitions:-->
|
4
|
+
<Error>
|
5
|
+
<Type>string</Type>
|
6
|
+
<Code>string</Code>
|
7
|
+
<Message>string</Message>
|
8
|
+
<!--Optional:-->
|
9
|
+
<Detail>
|
10
|
+
<!--You may enter ANY elements at this point-->
|
11
|
+
<AnyElement xmlns=""/>
|
12
|
+
</Detail>
|
13
|
+
</Error>
|
14
|
+
<RequestId>string</RequestId>
|
15
|
+
</ErrorResponse>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<FundPrepaidResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<FundPrepaidResult>
|
5
|
+
<TransactionId>string</TransactionId>
|
6
|
+
<TransactionStatus>string</TransactionStatus>
|
7
|
+
</FundPrepaidResult>
|
8
|
+
<ResponseMetadata>
|
9
|
+
<RequestId>string</RequestId>
|
10
|
+
</ResponseMetadata>
|
11
|
+
</FundPrepaidResponse>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetAccountActivityResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<GetAccountActivityResult>
|
5
|
+
<!--Optional:-->
|
6
|
+
<BatchSize>100</BatchSize>
|
7
|
+
<!--Zero or more repetitions:-->
|
8
|
+
<Transaction>
|
9
|
+
<TransactionId>string</TransactionId>
|
10
|
+
<CallerTransactionDate>2008-09-28T18:49:45</CallerTransactionDate>
|
11
|
+
<DateReceived>2014-09-18T16:18:33</DateReceived>
|
12
|
+
<!--Optional:-->
|
13
|
+
<DateCompleted>2006-08-19T10:27:14-07:00</DateCompleted>
|
14
|
+
<TransactionAmount>
|
15
|
+
<CurrencyCode>string</CurrencyCode>
|
16
|
+
<Value>string</Value>
|
17
|
+
</TransactionAmount>
|
18
|
+
<FPSOperation>string</FPSOperation>
|
19
|
+
<TransactionStatus>string</TransactionStatus>
|
20
|
+
<!--Optional:-->
|
21
|
+
<StatusMessage>string</StatusMessage>
|
22
|
+
<!--Optional:-->
|
23
|
+
<StatusCode>string</StatusCode>
|
24
|
+
<!--Optional:-->
|
25
|
+
<OriginalTransactionId>string</OriginalTransactionId>
|
26
|
+
<!--1 or more repetitions:-->
|
27
|
+
<TransactionPart>
|
28
|
+
<!--Optional:-->
|
29
|
+
<InstrumentId>string</InstrumentId>
|
30
|
+
<Role>string</Role>
|
31
|
+
<!--Optional:-->
|
32
|
+
<Name>string</Name>
|
33
|
+
<!--Optional:-->
|
34
|
+
<Reference>string</Reference>
|
35
|
+
<!--Optional:-->
|
36
|
+
<Description>string</Description>
|
37
|
+
<!--Optional:-->
|
38
|
+
<FeesPaid>
|
39
|
+
<CurrencyCode>string</CurrencyCode>
|
40
|
+
<Value>string</Value>
|
41
|
+
</FeesPaid>
|
42
|
+
</TransactionPart>
|
43
|
+
<PaymentMethod>string</PaymentMethod>
|
44
|
+
<!--Optional:-->
|
45
|
+
<SenderName>string</SenderName>
|
46
|
+
<CallerName>string</CallerName>
|
47
|
+
<!--Optional:-->
|
48
|
+
<RecipientName>string</RecipientName>
|
49
|
+
<FPSFees>
|
50
|
+
<CurrencyCode>string</CurrencyCode>
|
51
|
+
<Value>string</Value>
|
52
|
+
</FPSFees>
|
53
|
+
<Balance>
|
54
|
+
<CurrencyCode>string</CurrencyCode>
|
55
|
+
<Value>string</Value>
|
56
|
+
</Balance>
|
57
|
+
<!--Optional:-->
|
58
|
+
<SenderTokenId>string</SenderTokenId>
|
59
|
+
<!--Optional:-->
|
60
|
+
<RecipientTokenId>string</RecipientTokenId>
|
61
|
+
</Transaction>
|
62
|
+
<!--Optional:-->
|
63
|
+
<StartTimeForNextTransaction>2009-05-16T05:42:28</StartTimeForNextTransaction>
|
64
|
+
</GetAccountActivityResult>
|
65
|
+
<ResponseMetadata>
|
66
|
+
<RequestId>string</RequestId>
|
67
|
+
</ResponseMetadata>
|
68
|
+
</GetAccountActivityResponse>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetAccountBalanceResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<GetAccountBalanceResult>
|
5
|
+
<!--Optional:-->
|
6
|
+
<AccountBalance>
|
7
|
+
<TotalBalance>
|
8
|
+
<CurrencyCode>string</CurrencyCode>
|
9
|
+
<Value>string</Value>
|
10
|
+
</TotalBalance>
|
11
|
+
<PendingInBalance>
|
12
|
+
<CurrencyCode>string</CurrencyCode>
|
13
|
+
<Value>string</Value>
|
14
|
+
</PendingInBalance>
|
15
|
+
<PendingOutBalance>
|
16
|
+
<CurrencyCode>string</CurrencyCode>
|
17
|
+
<Value>string</Value>
|
18
|
+
</PendingOutBalance>
|
19
|
+
<AvailableBalances>
|
20
|
+
<DisburseBalance>
|
21
|
+
<CurrencyCode>string</CurrencyCode>
|
22
|
+
<Value>string</Value>
|
23
|
+
</DisburseBalance>
|
24
|
+
<RefundBalance>
|
25
|
+
<CurrencyCode>string</CurrencyCode>
|
26
|
+
<Value>string</Value>
|
27
|
+
</RefundBalance>
|
28
|
+
</AvailableBalances>
|
29
|
+
</AccountBalance>
|
30
|
+
</GetAccountBalanceResult>
|
31
|
+
<ResponseMetadata>
|
32
|
+
<RequestId>string</RequestId>
|
33
|
+
</ResponseMetadata>
|
34
|
+
</GetAccountBalanceResponse>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetDebtBalanceResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<GetDebtBalanceResult>
|
5
|
+
<!--Optional:-->
|
6
|
+
<DebtBalance>
|
7
|
+
<AvailableBalance>
|
8
|
+
<CurrencyCode>string</CurrencyCode>
|
9
|
+
<Value>string</Value>
|
10
|
+
</AvailableBalance>
|
11
|
+
<!--Optional:-->
|
12
|
+
<PendingOutBalance>
|
13
|
+
<CurrencyCode>string</CurrencyCode>
|
14
|
+
<Value>string</Value>
|
15
|
+
</PendingOutBalance>
|
16
|
+
</DebtBalance>
|
17
|
+
</GetDebtBalanceResult>
|
18
|
+
<ResponseMetadata>
|
19
|
+
<RequestId>string</RequestId>
|
20
|
+
</ResponseMetadata>
|
21
|
+
</GetDebtBalanceResponse>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetOutstandingDebtBalanceResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<GetOutstandingDebtBalanceResult>
|
5
|
+
<!--Optional:-->
|
6
|
+
<OutstandingDebt>
|
7
|
+
<OutstandingBalance>
|
8
|
+
<CurrencyCode>string</CurrencyCode>
|
9
|
+
<Value>string</Value>
|
10
|
+
</OutstandingBalance>
|
11
|
+
<!--Optional:-->
|
12
|
+
<PendingOutBalance>
|
13
|
+
<CurrencyCode>string</CurrencyCode>
|
14
|
+
<Value>string</Value>
|
15
|
+
</PendingOutBalance>
|
16
|
+
</OutstandingDebt>
|
17
|
+
</GetOutstandingDebtBalanceResult>
|
18
|
+
<ResponseMetadata>
|
19
|
+
<RequestId>string</RequestId>
|
20
|
+
</ResponseMetadata>
|
21
|
+
</GetOutstandingDebtBalanceResponse>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetPaymentInstructionResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<GetPaymentInstructionResult>
|
5
|
+
<Token>
|
6
|
+
<TokenId>string</TokenId>
|
7
|
+
<FriendlyName>string</FriendlyName>
|
8
|
+
<TokenStatus>string</TokenStatus>
|
9
|
+
<DateInstalled>2008-09-28T18:49:45</DateInstalled>
|
10
|
+
<CallerReference>string</CallerReference>
|
11
|
+
<TokenType>string</TokenType>
|
12
|
+
<!--Optional:-->
|
13
|
+
<OldTokenId>string</OldTokenId>
|
14
|
+
<!--Optional:-->
|
15
|
+
<PaymentReason>string</PaymentReason>
|
16
|
+
</Token>
|
17
|
+
<PaymentInstruction>string</PaymentInstruction>
|
18
|
+
<CallerReference>string</CallerReference>
|
19
|
+
<!--Optional:-->
|
20
|
+
<TokenFriendlyName>string</TokenFriendlyName>
|
21
|
+
</GetPaymentInstructionResult>
|
22
|
+
<ResponseMetadata>
|
23
|
+
<RequestId>string</RequestId>
|
24
|
+
</ResponseMetadata>
|
25
|
+
</GetPaymentInstructionResponse>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetPrepaidBalanceResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<!--Optional:-->
|
4
|
+
<GetPrepaidBalanceResult>
|
5
|
+
<!--Optional:-->
|
6
|
+
<PrepaidBalance>
|
7
|
+
<AvailableBalance>
|
8
|
+
<CurrencyCode>string</CurrencyCode>
|
9
|
+
<Value>string</Value>
|
10
|
+
</AvailableBalance>
|
11
|
+
<!--Optional:-->
|
12
|
+
<PendingInBalance>
|
13
|
+
<CurrencyCode>string</CurrencyCode>
|
14
|
+
<Value>string</Value>
|
15
|
+
</PendingInBalance>
|
16
|
+
</PrepaidBalance>
|
17
|
+
</GetPrepaidBalanceResult>
|
18
|
+
<ResponseMetadata>
|
19
|
+
<RequestId>string</RequestId>
|
20
|
+
</ResponseMetadata>
|
21
|
+
</GetPrepaidBalanceResponse>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<GetRecipientVerificationStatusResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
|
3
|
+
<GetRecipientVerificationStatusResult>
|
4
|
+
<RecipientVerificationStatus>string</RecipientVerificationStatus>
|
5
|
+
</GetRecipientVerificationStatusResult>
|
6
|
+
<ResponseMetadata>
|
7
|
+
<RequestId>string</RequestId>
|
8
|
+
</ResponseMetadata>
|
9
|
+
</GetRecipientVerificationStatusResponse>
|