balanced-ach 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +29 -0
- data/Gemfile +1 -1
- data/balanced.gemspec +1 -1
- data/lib/{balanced.rb → balanced_ach.rb} +7 -7
- data/lib/{balanced → balanced_ach}/client.rb +1 -1
- data/lib/{balanced → balanced_ach}/error.rb +0 -0
- data/lib/{balanced → balanced_ach}/pager.rb +2 -2
- data/lib/{balanced → balanced_ach}/resources.rb +1 -1
- data/lib/{balanced → balanced_ach}/resources/bank_account.rb +0 -0
- data/lib/{balanced → balanced_ach}/resources/credit.rb +0 -0
- data/lib/{balanced → balanced_ach}/resources/debit.rb +0 -0
- data/lib/{balanced → balanced_ach}/resources/resource.rb +0 -0
- data/lib/{balanced → balanced_ach}/response/balanced_exception_middleware.rb +1 -1
- data/lib/{balanced → balanced_ach}/utils.rb +0 -0
- data/lib/{balanced → balanced_ach}/version.rb +1 -1
- data/x.rb +2 -7
- metadata +15 -114
- data/.idea/.name +0 -1
- data/.idea/.rakeTasks +0 -7
- data/.idea/balanced-ach.iml +0 -9
- data/.idea/encodings.xml +0 -5
- data/.idea/misc.xml +0 -5
- data/.idea/modules.xml +0 -9
- data/.idea/scopes/scope_settings.xml +0 -5
- data/.idea/vcs.xml +0 -7
- data/.idea/workspace.xml +0 -561
- data/spec/balanced/pager_spec.rb +0 -42
- data/spec/balanced/resources/account_spec.rb +0 -571
- data/spec/balanced/resources/api_key_spec.rb +0 -55
- data/spec/balanced/resources/hold_spec.rb +0 -55
- data/spec/balanced/resources/marketplace_spec.rb +0 -97
- data/spec/balanced/resources/transactions_spec.rb +0 -72
- data/spec/balanced/response/balanced_exception_middleware_spec.rb +0 -47
- data/spec/balanced_spec.rb +0 -77
- data/spec/cassettes/Balanced/configure.yml +0 -48
- data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +0 -48
- data/spec/cassettes/Balanced_Account.yml +0 -110
- data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +0 -240
- data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +0 -44
- data/spec/cassettes/Balanced_Account/_find.yml +0 -400
- data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +0 -186
- data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +0 -186
- data/spec/cassettes/Balanced_Account/_find_by_email.yml +0 -400
- data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +0 -175
- data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +0 -186
- data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +0 -530
- data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +0 -455
- data/spec/cassettes/Balanced_Account/buyer/_debit.yml +0 -363
- data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +0 -281
- data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +0 -281
- data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +0 -1013
- data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +0 -229
- data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +0 -536
- data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +0 -460
- data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +0 -232
- data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +0 -232
- data/spec/cassettes/Balanced_Account/merchant/new.yml +0 -179
- data/spec/cassettes/Balanced_ApiKey/attributes.yml +0 -48
- data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +0 -93
- data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +0 -48
- data/spec/cassettes/Balanced_Hold.yml +0 -335
- data/spec/cassettes/Balanced_Hold/_void.yml +0 -62
- data/spec/cassettes/Balanced_Hold/_void/after.yml +0 -62
- data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +0 -306
- data/spec/cassettes/Balanced_Marketplace.yml +0 -339
- data/spec/cassettes/Balanced_Transaction.yml +0 -1261
- data/spec/cassettes/Balanced_Transaction/Transaction.yml +0 -634
- data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +0 -634
- data/spec/client_spec.rb +0 -12
- data/spec/spec_helper.rb +0 -31
- data/spec/utils_spec.rb +0 -8
- data/upload_docs.rb +0 -39
data/spec/client_spec.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe "balanced client" do
|
4
|
-
|
5
|
-
it "should allow setting and reading of the api_key" do
|
6
|
-
client = Balanced::Client.new "miscreant"
|
7
|
-
client.api_key.should eq("miscreant")
|
8
|
-
client.api_key = "foo"
|
9
|
-
client.api_key.should eq("foo")
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler/setup'
|
3
|
-
require 'balanced'
|
4
|
-
require 'vcr'
|
5
|
-
|
6
|
-
begin
|
7
|
-
require 'ruby-debug'
|
8
|
-
rescue LoadError
|
9
|
-
# ignored
|
10
|
-
end
|
11
|
-
|
12
|
-
|
13
|
-
VCR.configure do |c|
|
14
|
-
c.cassette_library_dir = 'spec/cassettes'
|
15
|
-
c.hook_into :faraday
|
16
|
-
end
|
17
|
-
|
18
|
-
RSpec.configure do |c|
|
19
|
-
c.extend VCR::RSpec::Macros
|
20
|
-
end
|
21
|
-
|
22
|
-
|
23
|
-
ACCOUNTS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts/
|
24
|
-
MERCHANT_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*/
|
25
|
-
HOLDS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/holds/
|
26
|
-
BANK_ACCOUNTS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/bank_accounts/
|
27
|
-
REFUNDS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/refunds/
|
28
|
-
DEBITS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/debits/
|
29
|
-
TRANSACTIONS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/transactions/
|
30
|
-
CREDITS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/credits/
|
31
|
-
CARDS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/cards/
|
data/spec/utils_spec.rb
DELETED
data/upload_docs.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'aws/s3'
|
4
|
-
require 'yard'
|
5
|
-
|
6
|
-
# cheap
|
7
|
-
args = [
|
8
|
-
'doc',
|
9
|
-
'-e',
|
10
|
-
'doc/balanced_plugin.rb',
|
11
|
-
'-p',
|
12
|
-
'doc/balanced_templates/',
|
13
|
-
'--one-file',
|
14
|
-
'--query',
|
15
|
-
"object.to_s != 'Balanced::Account::MoreInformationRequiredError'",
|
16
|
-
'lib/balanced/resources/account.rb',
|
17
|
-
'lib/balanced/resources/api_key.rb',
|
18
|
-
'lib/balanced/resources/bank_account.rb',
|
19
|
-
'lib/balanced/resources/card.rb',
|
20
|
-
'lib/balanced/resources/credit.rb',
|
21
|
-
'lib/balanced/resources/debit.rb',
|
22
|
-
'lib/balanced/resources/hold.rb',
|
23
|
-
'lib/balanced/resources/marketplace.rb',
|
24
|
-
'lib/balanced/resources/merchant.rb',
|
25
|
-
'lib/balanced/resources/transaction.rb'
|
26
|
-
]
|
27
|
-
|
28
|
-
YARD::CLI::CommandParser.run(*args)
|
29
|
-
|
30
|
-
AWS::S3::Base.establish_connection!(
|
31
|
-
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
|
32
|
-
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
|
33
|
-
)
|
34
|
-
|
35
|
-
puts AWS::S3::S3Object.store('docs/ruby_api_reference.html',
|
36
|
-
open('doc/index.html'),
|
37
|
-
'justice.web',
|
38
|
-
:access => :public_read
|
39
|
-
)
|