balanced 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. data/.gitignore +3 -1
  2. data/.travis.yml +1 -0
  3. data/CONTRIBUTORS +3 -1
  4. data/README.md +19 -3
  5. data/Rakefile +17 -0
  6. data/examples/customers.rb +1 -1
  7. data/lib/balanced/resources.rb +1 -1
  8. data/lib/balanced/resources/credit.rb +18 -0
  9. data/lib/balanced/resources/invoice.rb +11 -0
  10. data/lib/balanced/resources/marketplace.rb +3 -1
  11. data/lib/balanced/resources/reversal.rb +20 -0
  12. data/lib/balanced/resources/transaction.rb +1 -2
  13. data/lib/balanced/version.rb +1 -1
  14. data/scenario.cache +540 -0
  15. data/scenarios/account_add_card/definition.rb +1 -0
  16. data/scenarios/account_add_card/request.rb +3 -0
  17. data/scenarios/account_add_card/ruby.mako +11 -0
  18. data/scenarios/account_capture_hold/definition.rb +1 -0
  19. data/scenarios/account_capture_hold/request.rb +3 -0
  20. data/scenarios/account_capture_hold/ruby.mako +11 -0
  21. data/scenarios/account_create/definition.rb +1 -0
  22. data/scenarios/account_create/request.rb +2 -0
  23. data/scenarios/account_create/ruby.mako +10 -0
  24. data/scenarios/account_create_buyer/definition.rb +1 -0
  25. data/scenarios/account_create_buyer/request.rb +4 -0
  26. data/scenarios/account_create_buyer/ruby.mako +12 -0
  27. data/scenarios/account_create_debit/definition.rb +1 -0
  28. data/scenarios/account_create_debit/request.rb +3 -0
  29. data/scenarios/account_create_debit/ruby.mako +11 -0
  30. data/scenarios/account_create_hold/definition.rb +1 -0
  31. data/scenarios/account_create_hold/request.rb +3 -0
  32. data/scenarios/account_create_hold/ruby.mako +11 -0
  33. data/scenarios/account_create_merchant/definition.rb +1 -0
  34. data/scenarios/account_create_merchant/request.rb +3 -0
  35. data/scenarios/account_create_merchant/ruby.mako +11 -0
  36. data/scenarios/account_underwrite_business/definition.rb +1 -0
  37. data/scenarios/account_underwrite_business/request.rb +19 -0
  38. data/scenarios/account_underwrite_business/ruby.mako +27 -0
  39. data/scenarios/account_underwrite_person/definition.rb +1 -0
  40. data/scenarios/account_underwrite_person/request.rb +18 -0
  41. data/scenarios/account_underwrite_person/ruby.mako +26 -0
  42. data/scenarios/bank_account_create/definition.rb +1 -0
  43. data/scenarios/bank_account_create/request.rb +4 -0
  44. data/scenarios/bank_account_create/ruby.mako +12 -0
  45. data/scenarios/bank_account_delete/definition.rb +1 -0
  46. data/scenarios/bank_account_delete/request.rb +3 -0
  47. data/scenarios/bank_account_delete/ruby.mako +11 -0
  48. data/scenarios/bank_account_find_and_credit/definition.rb +1 -0
  49. data/scenarios/bank_account_find_and_credit/request.rb +5 -0
  50. data/scenarios/bank_account_find_and_credit/ruby.mako +13 -0
  51. data/scenarios/bank_account_find_and_delete/definition.rb +1 -0
  52. data/scenarios/bank_account_find_and_delete/request.rb +3 -0
  53. data/scenarios/bank_account_find_and_delete/ruby.mako +10 -0
  54. data/scenarios/bank_account_invalid_routing_number/definition.rb +1 -0
  55. data/scenarios/bank_account_invalid_routing_number/request.rb +8 -0
  56. data/scenarios/bank_account_invalid_routing_number/ruby.mako +16 -0
  57. data/scenarios/bank_account_list/definition.rb +1 -0
  58. data/scenarios/bank_account_list/request.rb +2 -0
  59. data/scenarios/bank_account_list/ruby.mako +10 -0
  60. data/scenarios/bank_account_show/definition.rb +1 -0
  61. data/scenarios/bank_account_show/request.rb +2 -0
  62. data/scenarios/bank_account_show/ruby.mako +10 -0
  63. data/scenarios/bank_account_verification_create/definition.rb +1 -0
  64. data/scenarios/bank_account_verification_create/request.rb +3 -0
  65. data/scenarios/bank_account_verification_create/ruby.mako +11 -0
  66. data/scenarios/bank_account_verification_show/definition.rb +1 -0
  67. data/scenarios/bank_account_verification_show/request.rb +2 -0
  68. data/scenarios/bank_account_verification_show/ruby.mako +10 -0
  69. data/scenarios/bank_account_verification_update/definition.rb +1 -0
  70. data/scenarios/bank_account_verification_update/request.rb +7 -0
  71. data/scenarios/bank_account_verification_update/ruby.mako +17 -0
  72. data/scenarios/callback_create/definition.rb +1 -0
  73. data/scenarios/callback_create/request.rb +4 -0
  74. data/scenarios/callback_create/ruby.mako +0 -0
  75. data/scenarios/callback_delete/definition.rb +1 -0
  76. data/scenarios/callback_delete/request.rb +3 -0
  77. data/scenarios/callback_delete/ruby.mako +0 -0
  78. data/scenarios/callback_list/definition.rb +1 -0
  79. data/scenarios/callback_list/request.rb +3 -0
  80. data/scenarios/callback_list/ruby.mako +0 -0
  81. data/scenarios/callback_show/definition.rb +1 -0
  82. data/scenarios/callback_show/request.rb +2 -0
  83. data/scenarios/callback_show/ruby.mako +0 -0
  84. data/scenarios/card_create/definition.rb +1 -0
  85. data/scenarios/card_create/request.rb +5 -0
  86. data/scenarios/card_create/ruby.mako +13 -0
  87. data/scenarios/card_invalidate/definition.rb +1 -0
  88. data/scenarios/card_invalidate/request.rb +3 -0
  89. data/scenarios/card_invalidate/ruby.mako +10 -0
  90. data/scenarios/card_list/definition.rb +1 -0
  91. data/scenarios/card_list/request.rb +2 -0
  92. data/scenarios/card_list/ruby.mako +9 -0
  93. data/scenarios/card_show/definition.rb +1 -0
  94. data/scenarios/card_show/request.rb +2 -0
  95. data/scenarios/card_show/ruby.mako +9 -0
  96. data/scenarios/card_update/definition.rb +1 -0
  97. data/scenarios/card_update/request.rb +6 -0
  98. data/scenarios/card_update/ruby.mako +14 -0
  99. data/scenarios/credit_account_list/definition.rb +1 -0
  100. data/scenarios/credit_account_list/request.rb +3 -0
  101. data/scenarios/credit_account_list/ruby.mako +10 -0
  102. data/scenarios/credit_account_merchant_create/definition.rb +1 -0
  103. data/scenarios/credit_account_merchant_create/request.rb +5 -0
  104. data/scenarios/credit_account_merchant_create/ruby.mako +12 -0
  105. data/scenarios/credit_bank_account_list/definition.rb +1 -0
  106. data/scenarios/credit_bank_account_list/request.rb +5 -0
  107. data/scenarios/credit_bank_account_list/ruby.mako +12 -0
  108. data/scenarios/credit_create_existing_bank_account/definition.rb +1 -0
  109. data/scenarios/credit_create_existing_bank_account/request.rb +5 -0
  110. data/scenarios/credit_create_existing_bank_account/ruby.mako +12 -0
  111. data/scenarios/credit_create_new_bank_account/definition.rb +1 -0
  112. data/scenarios/credit_create_new_bank_account/request.rb +10 -0
  113. data/scenarios/credit_create_new_bank_account/ruby.mako +18 -0
  114. data/scenarios/credit_customer_list/definition.rb +1 -0
  115. data/scenarios/credit_customer_list/request.rb +4 -0
  116. data/scenarios/credit_customer_list/ruby.mako +12 -0
  117. data/scenarios/credit_failed_state/definition.rb +1 -0
  118. data/scenarios/credit_failed_state/request.rb +10 -0
  119. data/scenarios/credit_failed_state/ruby.mako +18 -0
  120. data/scenarios/credit_list/definition.rb +1 -0
  121. data/scenarios/credit_list/request.rb +4 -0
  122. data/scenarios/credit_list/ruby.mako +11 -0
  123. data/scenarios/credit_paid_state/definition.rb +1 -0
  124. data/scenarios/credit_paid_state/request.rb +11 -0
  125. data/scenarios/credit_paid_state/ruby.mako +19 -0
  126. data/scenarios/credit_pending_state/definition.rb +1 -0
  127. data/scenarios/credit_pending_state/request.rb +9 -0
  128. data/scenarios/credit_pending_state/ruby.mako +17 -0
  129. data/scenarios/credit_show/definition.rb +1 -0
  130. data/scenarios/credit_show/request.rb +4 -0
  131. data/scenarios/credit_show/ruby.mako +11 -0
  132. data/scenarios/customer_add_bank_account/definition.rb +1 -0
  133. data/scenarios/customer_add_bank_account/request.rb +3 -0
  134. data/scenarios/customer_add_bank_account/ruby.mako +11 -0
  135. data/scenarios/customer_add_card/definition.rb +1 -0
  136. data/scenarios/customer_add_card/request.rb +3 -0
  137. data/scenarios/customer_add_card/ruby.mako +11 -0
  138. data/scenarios/customer_capture_hold/definition.rb +1 -0
  139. data/scenarios/customer_capture_hold/request.rb +3 -0
  140. data/scenarios/customer_capture_hold/ruby.mako +0 -0
  141. data/scenarios/customer_create/definition.rb +1 -0
  142. data/scenarios/customer_create/request.rb +2 -0
  143. data/scenarios/customer_create/ruby.mako +10 -0
  144. data/scenarios/customer_create_debit/definition.rb +1 -0
  145. data/scenarios/customer_create_debit/request.rb +3 -0
  146. data/scenarios/customer_create_debit/ruby.mako +11 -0
  147. data/scenarios/customer_create_hold/definition.rb +1 -0
  148. data/scenarios/customer_create_hold/request.rb +3 -0
  149. data/scenarios/customer_create_hold/ruby.mako +11 -0
  150. data/scenarios/customer_credit/definition.rb +1 -0
  151. data/scenarios/customer_credit/request.rb +2 -0
  152. data/scenarios/customer_credit/ruby.mako +8 -0
  153. data/scenarios/debit_account_list/definition.rb +1 -0
  154. data/scenarios/debit_account_list/request.rb +3 -0
  155. data/scenarios/debit_account_list/ruby.mako +10 -0
  156. data/scenarios/debit_create/definition.rb +1 -0
  157. data/scenarios/debit_create/request.rb +3 -0
  158. data/scenarios/debit_create/ruby.mako +11 -0
  159. data/scenarios/debit_customer_list/definition.rb +1 -0
  160. data/scenarios/debit_customer_list/request.rb +4 -0
  161. data/scenarios/debit_customer_list/ruby.mako +12 -0
  162. data/scenarios/debit_list/definition.rb +1 -0
  163. data/scenarios/debit_list/request.rb +4 -0
  164. data/scenarios/debit_list/ruby.mako +11 -0
  165. data/scenarios/debit_refund/definition.rb +1 -0
  166. data/scenarios/debit_refund/request.rb +3 -0
  167. data/scenarios/debit_refund/ruby.mako +10 -0
  168. data/scenarios/debit_show/definition.rb +1 -0
  169. data/scenarios/debit_show/request.rb +2 -0
  170. data/scenarios/debit_show/ruby.mako +10 -0
  171. data/scenarios/debit_update/definition.rb +1 -0
  172. data/scenarios/debit_update/request.rb +5 -0
  173. data/scenarios/debit_update/ruby.mako +13 -0
  174. data/scenarios/delete.rb +7 -0
  175. data/scenarios/event_list/definition.rb +1 -0
  176. data/scenarios/event_list/request.rb +3 -0
  177. data/scenarios/event_list/ruby.mako +10 -0
  178. data/scenarios/event_replay/definition.rb +0 -0
  179. data/scenarios/event_replay/request.rb +1 -0
  180. data/scenarios/event_replay/ruby.mako +0 -0
  181. data/scenarios/event_show/definition.rb +1 -0
  182. data/scenarios/event_show/request.rb +2 -0
  183. data/scenarios/event_show/ruby.mako +10 -0
  184. data/scenarios/execute.rb +27 -0
  185. data/scenarios/helpers.rb +15 -0
  186. data/scenarios/hold_account_list/definition.rb +1 -0
  187. data/scenarios/hold_account_list/request.rb +3 -0
  188. data/scenarios/hold_account_list/ruby.mako +10 -0
  189. data/scenarios/hold_capture/definition.rb +1 -0
  190. data/scenarios/hold_capture/request.rb +5 -0
  191. data/scenarios/hold_capture/ruby.mako +13 -0
  192. data/scenarios/hold_create/definition.rb +1 -0
  193. data/scenarios/hold_create/request.rb +5 -0
  194. data/scenarios/hold_create/ruby.mako +13 -0
  195. data/scenarios/hold_customer_list/definition.rb +1 -0
  196. data/scenarios/hold_customer_list/request.rb +3 -0
  197. data/scenarios/hold_customer_list/ruby.mako +11 -0
  198. data/scenarios/hold_list/definition.rb +1 -0
  199. data/scenarios/hold_list/request.rb +4 -0
  200. data/scenarios/hold_list/ruby.mako +11 -0
  201. data/scenarios/hold_show/definition.rb +1 -0
  202. data/scenarios/hold_show/request.rb +2 -0
  203. data/scenarios/hold_show/ruby.mako +10 -0
  204. data/scenarios/hold_update/definition.rb +1 -0
  205. data/scenarios/hold_update/request.rb +5 -0
  206. data/scenarios/hold_update/ruby.mako +13 -0
  207. data/scenarios/hold_void/definition.rb +1 -0
  208. data/scenarios/hold_void/request.rb +3 -0
  209. data/scenarios/hold_void/ruby.mako +10 -0
  210. data/scenarios/refund_account_list/definition.rb +1 -0
  211. data/scenarios/refund_account_list/request.rb +3 -0
  212. data/scenarios/refund_account_list/ruby.mako +10 -0
  213. data/scenarios/refund_create/definition.rb +1 -0
  214. data/scenarios/refund_create/request.rb +6 -0
  215. data/scenarios/refund_create/ruby.mako +14 -0
  216. data/scenarios/refund_customer_list/definition.rb +1 -0
  217. data/scenarios/refund_customer_list/request.rb +3 -0
  218. data/scenarios/refund_list/definition.rb +1 -0
  219. data/scenarios/refund_list/request.rb +4 -0
  220. data/scenarios/refund_list/ruby.mako +11 -0
  221. data/scenarios/refund_show/definition.rb +1 -0
  222. data/scenarios/refund_show/request.rb +2 -0
  223. data/scenarios/refund_show/ruby.mako +10 -0
  224. data/scenarios/refund_update/definition.rb +1 -0
  225. data/scenarios/refund_update/request.rb +5 -0
  226. data/scenarios/refund_update/ruby.mako +13 -0
  227. data/scenarios/render.rb +32 -0
  228. data/scenarios/render_mako.rb +43 -0
  229. data/scenarios/render_one.rb +32 -0
  230. data/spec/balanced/resources/credit_spec.rb +23 -0
  231. data/spec/scenarios_spec.rb +39 -0
  232. data/spec/spec_helper.rb +2 -1
  233. metadata +237 -11
  234. checksums.yaml +0 -7
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+ require 'rake'
3
+
4
+ # load rakefile and run task to create executable files
5
+ load File.open('Rakefile')
6
+ Rake::Task['render_executables'].invoke
7
+
8
+ SCENARIOS_TO_SKIP = []
9
+
10
+ parsed_data = JSON.parse(File.read('./scenario.cache'))
11
+
12
+ # list all directories in scenarios directory
13
+
14
+ subdir_list = Dir["./scenarios/*"].reject { |o| not File.directory?(o) }
15
+ subdir_list.reject! { |item| SCENARIOS_TO_SKIP.include?(item.split("/").last) }
16
+
17
+ describe "Scenarios", :vcr do
18
+ subdir_list.each do |scenario|
19
+ next unless File.exist?("#{scenario}/executable.rb")
20
+ response = nil
21
+ describe "#{scenario.split("/").last}", :vcr do
22
+ before do
23
+ file = File.read("#{scenario}/executable.rb")
24
+ begin
25
+ # response = eval(file)
26
+ Dir.chdir("#{scenario}")
27
+ response = `ruby -c executable.rb`
28
+ puts response
29
+ Dir.chdir("../../")
30
+ rescue
31
+ puts "#{scenario.split("/").last}'s executable raised an error"
32
+ end
33
+ end
34
+ it "#{scenario.split("/").last}" do
35
+ response.should eq("Syntax OK\n")
36
+ end
37
+ end
38
+ end
39
+ end
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'bundler/setup'
3
3
  require 'balanced'
4
4
  require 'vcr'
5
+ require 'json'
5
6
 
6
7
  begin
7
8
  require 'ruby-debug'
@@ -29,7 +30,7 @@ end
29
30
 
30
31
  RSpec.configure do |c|
31
32
  c.treat_symbols_as_metadata_keys_with_true_values = true
32
-
33
+
33
34
  # @return [Balanced::Marketplace]
34
35
  def make_marketplace
35
36
  api_key = Balanced::ApiKey.new.save
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Mahmoud Abdelkader
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-05-15 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: faraday
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 0.8.6
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.8.6
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: faraday_middleware
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,12 +38,13 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: 0.9.0
41
- description: "Balanced is the payments platform for marketplaces.\n Integrate a
42
- payments experience just like Amazon for your marketplace.\n Forget about dealing
46
+ description: ! "Balanced is the payments platform for marketplaces.\n Integrate
47
+ a payments experience just like Amazon for your marketplace.\n Forget about dealing
43
48
  with banking systems, compliance, fraud, and security.\n "
44
49
  email:
45
50
  - mahmoud@poundpay.com
@@ -87,14 +92,232 @@ files:
87
92
  - lib/balanced/resources/debit.rb
88
93
  - lib/balanced/resources/event.rb
89
94
  - lib/balanced/resources/hold.rb
95
+ - lib/balanced/resources/invoice.rb
90
96
  - lib/balanced/resources/marketplace.rb
91
97
  - lib/balanced/resources/merchant.rb
92
98
  - lib/balanced/resources/refund.rb
93
99
  - lib/balanced/resources/resource.rb
100
+ - lib/balanced/resources/reversal.rb
94
101
  - lib/balanced/resources/transaction.rb
95
102
  - lib/balanced/response/balanced_exception_middleware.rb
96
103
  - lib/balanced/utils.rb
97
104
  - lib/balanced/version.rb
105
+ - scenario.cache
106
+ - scenarios/account_add_card/definition.rb
107
+ - scenarios/account_add_card/request.rb
108
+ - scenarios/account_add_card/ruby.mako
109
+ - scenarios/account_capture_hold/definition.rb
110
+ - scenarios/account_capture_hold/request.rb
111
+ - scenarios/account_capture_hold/ruby.mako
112
+ - scenarios/account_create/definition.rb
113
+ - scenarios/account_create/request.rb
114
+ - scenarios/account_create/ruby.mako
115
+ - scenarios/account_create_buyer/definition.rb
116
+ - scenarios/account_create_buyer/request.rb
117
+ - scenarios/account_create_buyer/ruby.mako
118
+ - scenarios/account_create_debit/definition.rb
119
+ - scenarios/account_create_debit/request.rb
120
+ - scenarios/account_create_debit/ruby.mako
121
+ - scenarios/account_create_hold/definition.rb
122
+ - scenarios/account_create_hold/request.rb
123
+ - scenarios/account_create_hold/ruby.mako
124
+ - scenarios/account_create_merchant/definition.rb
125
+ - scenarios/account_create_merchant/request.rb
126
+ - scenarios/account_create_merchant/ruby.mako
127
+ - scenarios/account_underwrite_business/definition.rb
128
+ - scenarios/account_underwrite_business/request.rb
129
+ - scenarios/account_underwrite_business/ruby.mako
130
+ - scenarios/account_underwrite_person/definition.rb
131
+ - scenarios/account_underwrite_person/request.rb
132
+ - scenarios/account_underwrite_person/ruby.mako
133
+ - scenarios/bank_account_create/definition.rb
134
+ - scenarios/bank_account_create/request.rb
135
+ - scenarios/bank_account_create/ruby.mako
136
+ - scenarios/bank_account_delete/definition.rb
137
+ - scenarios/bank_account_delete/request.rb
138
+ - scenarios/bank_account_delete/ruby.mako
139
+ - scenarios/bank_account_find_and_credit/definition.rb
140
+ - scenarios/bank_account_find_and_credit/request.rb
141
+ - scenarios/bank_account_find_and_credit/ruby.mako
142
+ - scenarios/bank_account_find_and_delete/definition.rb
143
+ - scenarios/bank_account_find_and_delete/request.rb
144
+ - scenarios/bank_account_find_and_delete/ruby.mako
145
+ - scenarios/bank_account_invalid_routing_number/definition.rb
146
+ - scenarios/bank_account_invalid_routing_number/request.rb
147
+ - scenarios/bank_account_invalid_routing_number/ruby.mako
148
+ - scenarios/bank_account_list/definition.rb
149
+ - scenarios/bank_account_list/request.rb
150
+ - scenarios/bank_account_list/ruby.mako
151
+ - scenarios/bank_account_show/definition.rb
152
+ - scenarios/bank_account_show/request.rb
153
+ - scenarios/bank_account_show/ruby.mako
154
+ - scenarios/bank_account_verification_create/definition.rb
155
+ - scenarios/bank_account_verification_create/request.rb
156
+ - scenarios/bank_account_verification_create/ruby.mako
157
+ - scenarios/bank_account_verification_show/definition.rb
158
+ - scenarios/bank_account_verification_show/request.rb
159
+ - scenarios/bank_account_verification_show/ruby.mako
160
+ - scenarios/bank_account_verification_update/definition.rb
161
+ - scenarios/bank_account_verification_update/request.rb
162
+ - scenarios/bank_account_verification_update/ruby.mako
163
+ - scenarios/callback_create/definition.rb
164
+ - scenarios/callback_create/request.rb
165
+ - scenarios/callback_create/ruby.mako
166
+ - scenarios/callback_delete/definition.rb
167
+ - scenarios/callback_delete/request.rb
168
+ - scenarios/callback_delete/ruby.mako
169
+ - scenarios/callback_list/definition.rb
170
+ - scenarios/callback_list/request.rb
171
+ - scenarios/callback_list/ruby.mako
172
+ - scenarios/callback_show/definition.rb
173
+ - scenarios/callback_show/request.rb
174
+ - scenarios/callback_show/ruby.mako
175
+ - scenarios/card_create/definition.rb
176
+ - scenarios/card_create/request.rb
177
+ - scenarios/card_create/ruby.mako
178
+ - scenarios/card_invalidate/definition.rb
179
+ - scenarios/card_invalidate/request.rb
180
+ - scenarios/card_invalidate/ruby.mako
181
+ - scenarios/card_list/definition.rb
182
+ - scenarios/card_list/request.rb
183
+ - scenarios/card_list/ruby.mako
184
+ - scenarios/card_show/definition.rb
185
+ - scenarios/card_show/request.rb
186
+ - scenarios/card_show/ruby.mako
187
+ - scenarios/card_update/definition.rb
188
+ - scenarios/card_update/request.rb
189
+ - scenarios/card_update/ruby.mako
190
+ - scenarios/credit_account_list/definition.rb
191
+ - scenarios/credit_account_list/request.rb
192
+ - scenarios/credit_account_list/ruby.mako
193
+ - scenarios/credit_account_merchant_create/definition.rb
194
+ - scenarios/credit_account_merchant_create/request.rb
195
+ - scenarios/credit_account_merchant_create/ruby.mako
196
+ - scenarios/credit_bank_account_list/definition.rb
197
+ - scenarios/credit_bank_account_list/request.rb
198
+ - scenarios/credit_bank_account_list/ruby.mako
199
+ - scenarios/credit_create_existing_bank_account/definition.rb
200
+ - scenarios/credit_create_existing_bank_account/request.rb
201
+ - scenarios/credit_create_existing_bank_account/ruby.mako
202
+ - scenarios/credit_create_new_bank_account/definition.rb
203
+ - scenarios/credit_create_new_bank_account/request.rb
204
+ - scenarios/credit_create_new_bank_account/ruby.mako
205
+ - scenarios/credit_customer_list/definition.rb
206
+ - scenarios/credit_customer_list/request.rb
207
+ - scenarios/credit_customer_list/ruby.mako
208
+ - scenarios/credit_failed_state/definition.rb
209
+ - scenarios/credit_failed_state/request.rb
210
+ - scenarios/credit_failed_state/ruby.mako
211
+ - scenarios/credit_list/definition.rb
212
+ - scenarios/credit_list/request.rb
213
+ - scenarios/credit_list/ruby.mako
214
+ - scenarios/credit_paid_state/definition.rb
215
+ - scenarios/credit_paid_state/request.rb
216
+ - scenarios/credit_paid_state/ruby.mako
217
+ - scenarios/credit_pending_state/definition.rb
218
+ - scenarios/credit_pending_state/request.rb
219
+ - scenarios/credit_pending_state/ruby.mako
220
+ - scenarios/credit_show/definition.rb
221
+ - scenarios/credit_show/request.rb
222
+ - scenarios/credit_show/ruby.mako
223
+ - scenarios/customer_add_bank_account/definition.rb
224
+ - scenarios/customer_add_bank_account/request.rb
225
+ - scenarios/customer_add_bank_account/ruby.mako
226
+ - scenarios/customer_add_card/definition.rb
227
+ - scenarios/customer_add_card/request.rb
228
+ - scenarios/customer_add_card/ruby.mako
229
+ - scenarios/customer_capture_hold/definition.rb
230
+ - scenarios/customer_capture_hold/request.rb
231
+ - scenarios/customer_capture_hold/ruby.mako
232
+ - scenarios/customer_create/definition.rb
233
+ - scenarios/customer_create/request.rb
234
+ - scenarios/customer_create/ruby.mako
235
+ - scenarios/customer_create_debit/definition.rb
236
+ - scenarios/customer_create_debit/request.rb
237
+ - scenarios/customer_create_debit/ruby.mako
238
+ - scenarios/customer_create_hold/definition.rb
239
+ - scenarios/customer_create_hold/request.rb
240
+ - scenarios/customer_create_hold/ruby.mako
241
+ - scenarios/customer_credit/definition.rb
242
+ - scenarios/customer_credit/request.rb
243
+ - scenarios/customer_credit/ruby.mako
244
+ - scenarios/debit_account_list/definition.rb
245
+ - scenarios/debit_account_list/request.rb
246
+ - scenarios/debit_account_list/ruby.mako
247
+ - scenarios/debit_create/definition.rb
248
+ - scenarios/debit_create/request.rb
249
+ - scenarios/debit_create/ruby.mako
250
+ - scenarios/debit_customer_list/definition.rb
251
+ - scenarios/debit_customer_list/request.rb
252
+ - scenarios/debit_customer_list/ruby.mako
253
+ - scenarios/debit_list/definition.rb
254
+ - scenarios/debit_list/request.rb
255
+ - scenarios/debit_list/ruby.mako
256
+ - scenarios/debit_refund/definition.rb
257
+ - scenarios/debit_refund/request.rb
258
+ - scenarios/debit_refund/ruby.mako
259
+ - scenarios/debit_show/definition.rb
260
+ - scenarios/debit_show/request.rb
261
+ - scenarios/debit_show/ruby.mako
262
+ - scenarios/debit_update/definition.rb
263
+ - scenarios/debit_update/request.rb
264
+ - scenarios/debit_update/ruby.mako
265
+ - scenarios/delete.rb
266
+ - scenarios/event_list/definition.rb
267
+ - scenarios/event_list/request.rb
268
+ - scenarios/event_list/ruby.mako
269
+ - scenarios/event_replay/definition.rb
270
+ - scenarios/event_replay/request.rb
271
+ - scenarios/event_replay/ruby.mako
272
+ - scenarios/event_show/definition.rb
273
+ - scenarios/event_show/request.rb
274
+ - scenarios/event_show/ruby.mako
275
+ - scenarios/execute.rb
276
+ - scenarios/helpers.rb
277
+ - scenarios/hold_account_list/definition.rb
278
+ - scenarios/hold_account_list/request.rb
279
+ - scenarios/hold_account_list/ruby.mako
280
+ - scenarios/hold_capture/definition.rb
281
+ - scenarios/hold_capture/request.rb
282
+ - scenarios/hold_capture/ruby.mako
283
+ - scenarios/hold_create/definition.rb
284
+ - scenarios/hold_create/request.rb
285
+ - scenarios/hold_create/ruby.mako
286
+ - scenarios/hold_customer_list/definition.rb
287
+ - scenarios/hold_customer_list/request.rb
288
+ - scenarios/hold_customer_list/ruby.mako
289
+ - scenarios/hold_list/definition.rb
290
+ - scenarios/hold_list/request.rb
291
+ - scenarios/hold_list/ruby.mako
292
+ - scenarios/hold_show/definition.rb
293
+ - scenarios/hold_show/request.rb
294
+ - scenarios/hold_show/ruby.mako
295
+ - scenarios/hold_update/definition.rb
296
+ - scenarios/hold_update/request.rb
297
+ - scenarios/hold_update/ruby.mako
298
+ - scenarios/hold_void/definition.rb
299
+ - scenarios/hold_void/request.rb
300
+ - scenarios/hold_void/ruby.mako
301
+ - scenarios/refund_account_list/definition.rb
302
+ - scenarios/refund_account_list/request.rb
303
+ - scenarios/refund_account_list/ruby.mako
304
+ - scenarios/refund_create/definition.rb
305
+ - scenarios/refund_create/request.rb
306
+ - scenarios/refund_create/ruby.mako
307
+ - scenarios/refund_customer_list/definition.rb
308
+ - scenarios/refund_customer_list/request.rb
309
+ - scenarios/refund_list/definition.rb
310
+ - scenarios/refund_list/request.rb
311
+ - scenarios/refund_list/ruby.mako
312
+ - scenarios/refund_show/definition.rb
313
+ - scenarios/refund_show/request.rb
314
+ - scenarios/refund_show/ruby.mako
315
+ - scenarios/refund_update/definition.rb
316
+ - scenarios/refund_update/request.rb
317
+ - scenarios/refund_update/ruby.mako
318
+ - scenarios/render.rb
319
+ - scenarios/render_mako.rb
320
+ - scenarios/render_one.rb
98
321
  - spec/balanced/error_spec.rb
99
322
  - spec/balanced/pager_spec.rb
100
323
  - spec/balanced/resources/account_spec.rb
@@ -110,31 +333,33 @@ files:
110
333
  - spec/balanced/response/balanced_exception_middleware_spec.rb
111
334
  - spec/balanced_spec.rb
112
335
  - spec/client_spec.rb
336
+ - spec/scenarios_spec.rb
113
337
  - spec/spec_helper.rb
114
338
  - spec/utils_spec.rb
115
339
  - upload_docs.rb
116
340
  homepage: https://balancedpayments.com
117
341
  licenses: []
118
- metadata: {}
119
342
  post_install_message:
120
343
  rdoc_options: []
121
344
  require_paths:
122
345
  - lib
123
346
  required_ruby_version: !ruby/object:Gem::Requirement
347
+ none: false
124
348
  requirements:
125
- - - '>='
349
+ - - ! '>='
126
350
  - !ruby/object:Gem::Version
127
351
  version: '0'
128
352
  required_rubygems_version: !ruby/object:Gem::Requirement
353
+ none: false
129
354
  requirements:
130
- - - '>='
355
+ - - ! '>='
131
356
  - !ruby/object:Gem::Version
132
357
  version: '0'
133
358
  requirements: []
134
359
  rubyforge_project:
135
- rubygems_version: 2.0.3
360
+ rubygems_version: 1.8.25
136
361
  signing_key:
137
- specification_version: 4
362
+ specification_version: 3
138
363
  summary: Sign up on https://balancedpayments.com/
139
364
  test_files:
140
365
  - spec/balanced/error_spec.rb
@@ -152,5 +377,6 @@ test_files:
152
377
  - spec/balanced/response/balanced_exception_middleware_spec.rb
153
378
  - spec/balanced_spec.rb
154
379
  - spec/client_spec.rb
380
+ - spec/scenarios_spec.rb
155
381
  - spec/spec_helper.rb
156
382
  - spec/utils_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e69cc58c7b89500cead1e3ed9a7e87488942aa72
4
- data.tar.gz: 845faa189939c479db8234bbe615ad68c0fbcc59
5
- SHA512:
6
- metadata.gz: 00a427992fe65be31e2caeb435dc4ee25fa6e85c26559ae321fd53a3f83be55305541e4f2f16e14f4e9838d190888d4458c15aa2389d60ec612085bd77a08090
7
- data.tar.gz: 69f1756cee7c1c263b341502299bcbe4102cdb128c982f2393354b85738e315ec70d310058c4ef17448ef6987f60e8d70409b4c2aa46fd5ec46b2b0511a87ac8