remit 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ Using with Rails
49
49
  To use Remit in a Rails application, you must first specify a dependency on the
50
50
  Remit gem in your Gemfile:
51
51
 
52
- gem 'remit', :git => "git://github.com/nyc-ruby-meetup/remit.git"
52
+ gem 'remit'
53
53
 
54
54
  Then you should create an initializer to configure your Amazon keys. Create the
55
55
  file config/initializers/remit.rb with the following contents:
@@ -7,7 +7,6 @@ module Remit
7
7
  parameter :transaction_ids
8
8
  parameter :caller_description
9
9
  parameter :caller_reference, :required => true
10
- parameter :charge_fee_to, :required => true
11
10
  parameter :funding_amount, :type => Remit::RequestTypes::Amount, :required => true
12
11
  parameter :prepaid_instrument_id, :required => true
13
12
  parameter :recipient_reference
@@ -14,6 +14,8 @@ module Remit
14
14
  parameter :charge_fee_to, :required => true
15
15
  parameter :sender_description
16
16
  parameter :caller_description
17
+ parameter :marketplace_fixed_fee, :type => Remit::RequestTypes::Amount
18
+ parameter :marketplace_variable_fee
17
19
  end
18
20
 
19
21
  class Response < Remit::Response
@@ -26,3 +28,4 @@ module Remit
26
28
  end
27
29
  end
28
30
  end
31
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease: false
4
+ hash: 11
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Hunt
@@ -16,8 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-03 00:00:00 -05:00
20
- default_executable:
19
+ date: 2011-08-14 00:00:00 Z
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: relax
@@ -88,72 +87,71 @@ files:
88
87
  - lib/remit/verify_signature.rb
89
88
  - LICENSE
90
89
  - README.markdown
91
- - spec/integrations/get_account_activity_spec.rb
92
- - spec/integrations/get_tokens_spec.rb
93
- - spec/integrations/ipn_request_spec.rb
94
- - spec/integrations/pipeline_response_spec.rb
95
- - spec/integrations/verify_signature_spec.rb
90
+ - spec/units/refund_spec.rb
96
91
  - spec/units/cancel_subscription_and_refund_spec.rb
92
+ - spec/units/get_pipeline_spec.rb
93
+ - spec/units/reserve_spec.rb
97
94
  - spec/units/cancel_token_spec.rb
95
+ - spec/units/get_transaction_spec.rb
98
96
  - spec/units/fund_prepaid_spec.rb
99
- - spec/units/get_account_activity_spec.rb
100
- - spec/units/get_account_balance_spec.rb
101
- - spec/units/get_debt_balance_spec.rb
102
- - spec/units/get_outstanding_debt_balance_spec.rb
103
- - spec/units/get_pipeline_spec.rb
104
- - spec/units/get_prepaid_balance_spec.rb
105
- - spec/units/get_recipient_verification_status_spec.rb
106
- - spec/units/get_token_by_caller_spec.rb
107
- - spec/units/get_token_usage_spec.rb
108
- - spec/units/get_tokens_spec.rb
109
97
  - spec/units/get_total_prepaid_liability_spec.rb
110
- - spec/units/get_transaction_spec.rb
98
+ - spec/units/get_token_by_caller_spec.rb
99
+ - spec/units/get_outstanding_debt_balance_spec.rb
100
+ - spec/units/settle_debt_spec.rb
111
101
  - spec/units/get_transaction_status_spec.rb
102
+ - spec/units/get_account_activity_spec.rb
103
+ - spec/units/write_off_debt_spec.rb
112
104
  - spec/units/pay_spec.rb
113
- - spec/units/refund_spec.rb
114
- - spec/units/reserve_spec.rb
115
- - spec/units/settle_debt_spec.rb
105
+ - spec/units/get_recipient_verification_status_spec.rb
106
+ - spec/units/get_prepaid_balance_spec.rb
116
107
  - spec/units/settle_spec.rb
117
- - spec/units/write_off_debt_spec.rb
118
- - spec/integrations/integrations_helper.rb
108
+ - spec/units/get_account_balance_spec.rb
109
+ - spec/units/get_token_usage_spec.rb
110
+ - spec/units/get_tokens_spec.rb
111
+ - spec/units/get_debt_balance_spec.rb
112
+ - spec/integrations/pipeline_response_spec.rb
113
+ - spec/integrations/ipn_request_spec.rb
114
+ - spec/integrations/verify_signature_spec.rb
115
+ - spec/integrations/get_account_activity_spec.rb
116
+ - spec/integrations/get_tokens_spec.rb
119
117
  - spec/spec_helper.rb
120
118
  - spec/units/units_helper.rb
121
- - spec/mocks/CancelResponse.xml
122
- - spec/mocks/CancelSubscriptionAndRefundResponse.xml
123
- - spec/mocks/CancelTokenResponse.xml
124
- - spec/mocks/ErrorResponse.xml
125
- - spec/mocks/errors/InvalidParameterValue.xml
126
- - spec/mocks/errors/InvalidParams_certificateUrl.xml
127
- - spec/mocks/errors/RequestExpired.xml
128
- - spec/mocks/FundPrepaidResponse.xml
119
+ - spec/integrations/integrations_helper.rb
120
+ - spec/mocks/PayResponse.xml
129
121
  - spec/mocks/GetAccountActivityResponse.xml
122
+ - spec/mocks/SettleResponse.xml
123
+ - spec/mocks/GetRecipientVerificationStatusResponse.xml
130
124
  - spec/mocks/GetAccountBalanceResponse.xml
131
- - spec/mocks/GetDebtBalanceResponse.xml
125
+ - spec/mocks/GetTotalPrepaidLiabilityResponse.xml
126
+ - spec/mocks/ReserveResponse.xml
132
127
  - spec/mocks/GetOutstandingDebtBalanceResponse.xml
128
+ - spec/mocks/GetTokenUsageResponse.xml
133
129
  - spec/mocks/GetPaymentInstructionResponse.xml
134
130
  - spec/mocks/GetPrepaidBalanceResponse.xml
135
- - spec/mocks/GetRecipientVerificationStatusResponse.xml
136
- - spec/mocks/GetTokenByCallerResponse.xml
131
+ - spec/mocks/GetDebtBalanceResponse.xml
137
132
  - spec/mocks/GetTokensResponse.xml
138
- - spec/mocks/GetTokenUsageResponse.xml
139
- - spec/mocks/GetTotalPrepaidLiabilityResponse.xml
140
- - spec/mocks/GetTransactionResponse.xml
141
- - spec/mocks/GetTransactionStatusResponse.xml
142
133
  - spec/mocks/InstallPaymentInstructionResponse.xml
143
- - spec/mocks/PayResponse.xml
144
- - spec/mocks/RefundResponse.xml
145
- - spec/mocks/ReserveResponse.xml
146
- - spec/mocks/SettleDebtResponse.xml
147
- - spec/mocks/SettleResponse.xml
134
+ - spec/mocks/errors/InvalidParameterValue.xml
135
+ - spec/mocks/errors/InvalidParams_certificateUrl.xml
136
+ - spec/mocks/errors/RequestExpired.xml
137
+ - spec/mocks/ErrorResponse.xml
148
138
  - spec/mocks/VerifySignatureResponse.xml
139
+ - spec/mocks/CancelTokenResponse.xml
140
+ - spec/mocks/SettleDebtResponse.xml
141
+ - spec/mocks/RefundResponse.xml
149
142
  - spec/mocks/WriteOffDebtResponse.xml
150
- has_rdoc: true
143
+ - spec/mocks/GetTokenByCallerResponse.xml
144
+ - spec/mocks/GetTransactionStatusResponse.xml
145
+ - spec/mocks/GetTransactionResponse.xml
146
+ - spec/mocks/FundPrepaidResponse.xml
147
+ - spec/mocks/CancelSubscriptionAndRefundResponse.xml
148
+ - spec/mocks/CancelResponse.xml
151
149
  homepage: http://github.com/nyc-ruby-meetup/remit
152
150
  licenses: []
153
151
 
154
152
  post_install_message:
155
- rdoc_options:
156
- - --charset=UTF-8
153
+ rdoc_options: []
154
+
157
155
  require_paths:
158
156
  - lib
159
157
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -177,67 +175,67 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
175
  requirements: []
178
176
 
179
177
  rubyforge_project: remit-nyc
180
- rubygems_version: 1.3.7
178
+ rubygems_version: 1.8.8
181
179
  signing_key:
182
180
  specification_version: 3
183
181
  summary: An API for using the Amazon Flexible Payment Service (FPS).
184
182
  test_files:
185
- - spec/integrations/get_account_activity_spec.rb
186
- - spec/integrations/get_tokens_spec.rb
187
- - spec/integrations/ipn_request_spec.rb
188
- - spec/integrations/pipeline_response_spec.rb
189
- - spec/integrations/verify_signature_spec.rb
183
+ - spec/units/refund_spec.rb
190
184
  - spec/units/cancel_subscription_and_refund_spec.rb
185
+ - spec/units/get_pipeline_spec.rb
186
+ - spec/units/reserve_spec.rb
191
187
  - spec/units/cancel_token_spec.rb
188
+ - spec/units/get_transaction_spec.rb
192
189
  - spec/units/fund_prepaid_spec.rb
193
- - spec/units/get_account_activity_spec.rb
194
- - spec/units/get_account_balance_spec.rb
195
- - spec/units/get_debt_balance_spec.rb
196
- - spec/units/get_outstanding_debt_balance_spec.rb
197
- - spec/units/get_pipeline_spec.rb
198
- - spec/units/get_prepaid_balance_spec.rb
199
- - spec/units/get_recipient_verification_status_spec.rb
200
- - spec/units/get_token_by_caller_spec.rb
201
- - spec/units/get_token_usage_spec.rb
202
- - spec/units/get_tokens_spec.rb
203
190
  - spec/units/get_total_prepaid_liability_spec.rb
204
- - spec/units/get_transaction_spec.rb
191
+ - spec/units/get_token_by_caller_spec.rb
192
+ - spec/units/get_outstanding_debt_balance_spec.rb
193
+ - spec/units/settle_debt_spec.rb
205
194
  - spec/units/get_transaction_status_spec.rb
195
+ - spec/units/get_account_activity_spec.rb
196
+ - spec/units/write_off_debt_spec.rb
206
197
  - spec/units/pay_spec.rb
207
- - spec/units/refund_spec.rb
208
- - spec/units/reserve_spec.rb
209
- - spec/units/settle_debt_spec.rb
198
+ - spec/units/get_recipient_verification_status_spec.rb
199
+ - spec/units/get_prepaid_balance_spec.rb
210
200
  - spec/units/settle_spec.rb
211
- - spec/units/write_off_debt_spec.rb
212
- - spec/integrations/integrations_helper.rb
201
+ - spec/units/get_account_balance_spec.rb
202
+ - spec/units/get_token_usage_spec.rb
203
+ - spec/units/get_tokens_spec.rb
204
+ - spec/units/get_debt_balance_spec.rb
205
+ - spec/integrations/pipeline_response_spec.rb
206
+ - spec/integrations/ipn_request_spec.rb
207
+ - spec/integrations/verify_signature_spec.rb
208
+ - spec/integrations/get_account_activity_spec.rb
209
+ - spec/integrations/get_tokens_spec.rb
213
210
  - spec/spec_helper.rb
214
211
  - spec/units/units_helper.rb
215
- - spec/mocks/CancelResponse.xml
216
- - spec/mocks/CancelSubscriptionAndRefundResponse.xml
217
- - spec/mocks/CancelTokenResponse.xml
218
- - spec/mocks/ErrorResponse.xml
219
- - spec/mocks/errors/InvalidParameterValue.xml
220
- - spec/mocks/errors/InvalidParams_certificateUrl.xml
221
- - spec/mocks/errors/RequestExpired.xml
222
- - spec/mocks/FundPrepaidResponse.xml
212
+ - spec/integrations/integrations_helper.rb
213
+ - spec/mocks/PayResponse.xml
223
214
  - spec/mocks/GetAccountActivityResponse.xml
215
+ - spec/mocks/SettleResponse.xml
216
+ - spec/mocks/GetRecipientVerificationStatusResponse.xml
224
217
  - spec/mocks/GetAccountBalanceResponse.xml
225
- - spec/mocks/GetDebtBalanceResponse.xml
218
+ - spec/mocks/GetTotalPrepaidLiabilityResponse.xml
219
+ - spec/mocks/ReserveResponse.xml
226
220
  - spec/mocks/GetOutstandingDebtBalanceResponse.xml
221
+ - spec/mocks/GetTokenUsageResponse.xml
227
222
  - spec/mocks/GetPaymentInstructionResponse.xml
228
223
  - spec/mocks/GetPrepaidBalanceResponse.xml
229
- - spec/mocks/GetRecipientVerificationStatusResponse.xml
230
- - spec/mocks/GetTokenByCallerResponse.xml
224
+ - spec/mocks/GetDebtBalanceResponse.xml
231
225
  - spec/mocks/GetTokensResponse.xml
232
- - spec/mocks/GetTokenUsageResponse.xml
233
- - spec/mocks/GetTotalPrepaidLiabilityResponse.xml
234
- - spec/mocks/GetTransactionResponse.xml
235
- - spec/mocks/GetTransactionStatusResponse.xml
236
226
  - spec/mocks/InstallPaymentInstructionResponse.xml
237
- - spec/mocks/PayResponse.xml
238
- - spec/mocks/RefundResponse.xml
239
- - spec/mocks/ReserveResponse.xml
240
- - spec/mocks/SettleDebtResponse.xml
241
- - spec/mocks/SettleResponse.xml
227
+ - spec/mocks/errors/InvalidParameterValue.xml
228
+ - spec/mocks/errors/InvalidParams_certificateUrl.xml
229
+ - spec/mocks/errors/RequestExpired.xml
230
+ - spec/mocks/ErrorResponse.xml
242
231
  - spec/mocks/VerifySignatureResponse.xml
232
+ - spec/mocks/CancelTokenResponse.xml
233
+ - spec/mocks/SettleDebtResponse.xml
234
+ - spec/mocks/RefundResponse.xml
243
235
  - spec/mocks/WriteOffDebtResponse.xml
236
+ - spec/mocks/GetTokenByCallerResponse.xml
237
+ - spec/mocks/GetTransactionStatusResponse.xml
238
+ - spec/mocks/GetTransactionResponse.xml
239
+ - spec/mocks/FundPrepaidResponse.xml
240
+ - spec/mocks/CancelSubscriptionAndRefundResponse.xml
241
+ - spec/mocks/CancelResponse.xml