promise_pay 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9bf4ec19e2da82f5ff3114258e7c373567180fc
4
- data.tar.gz: 55191d9c1d486996ed859297f382156773541b18
3
+ metadata.gz: 43253e9c2b30e88767979b1467b7fd9ae4c9842b
4
+ data.tar.gz: 0938e4da765b8bdc5095949be58041a25e4b50e5
5
5
  SHA512:
6
- metadata.gz: 402815c55a6a994ea35e7b61b45ff4077cba9aae4cf2a6d73b7bf1b96f8eab85b113bae2ae0c318acf5c6967273131634674231dc8d84f80f485dda0cb7067ae
7
- data.tar.gz: cd2091fa421f9338c87dfdedb7ed7d6362ce810ebdceb1fa65e22ea6245c86f5d1fbbb963d6c7d9f37908827d703d4fd0ba1812857900065921f451ba0410f51
6
+ metadata.gz: 437490454de825b7a1fa217f66adabb85ce55d39d3ece41a3f7f2177f7b02c94cbb04830dd3df20ff857f9dbc24fb7eb2288621ee4043ff56c1af0c564dd8fba
7
+ data.tar.gz: c6819968ba0dba531635a74ed84df14d1c52b1103c0dc90b13412fc9a1350e5ceda6c180f5f394e94080cdb38edc01c9970fc3c5c7c1c69c8e3eeeb5834f6b99
@@ -55,7 +55,6 @@ module PromisePay
55
55
  'CK' => 'COK',
56
56
  'CR' => 'CRI',
57
57
  'CI' => 'CIV',
58
- 'HR' => 'HRV',
59
58
  'CU' => 'CUB',
60
59
  'CY' => 'CYP',
61
60
  'CZ' => 'CZE',
@@ -247,4 +246,4 @@ module PromisePay
247
246
  MAP[code] || code
248
247
  end
249
248
  end
250
- end
249
+ end
@@ -2,7 +2,7 @@ require "promise_pay/lib/dynamic_accessors"
2
2
  require "json"
3
3
 
4
4
  module PromisePay
5
- class Feelist
5
+ class Fee
6
6
  include Lib::DynamicAccessors
7
7
 
8
8
  attr_reader :id
@@ -27,7 +27,7 @@ module PromisePay
27
27
  @max = options.fetch(:max)
28
28
  @to = options.fetch(:to)
29
29
 
30
- assign_instance_variables({'feelist' => options})
30
+ assign_instance_variables({'fees' => options})
31
31
  end
32
32
 
33
33
  def create
@@ -45,11 +45,11 @@ module PromisePay
45
45
  )
46
46
 
47
47
  response = request.execute
48
- JSON.parse(response)["feelist"]
48
+ JSON.parse(response)["fees"]
49
49
  end
50
50
 
51
51
  def api_resource
52
- "feelist"
52
+ "fees"
53
53
  end
54
54
 
55
55
  def payload
@@ -1,3 +1,3 @@
1
1
  module PromisePay
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/promise_pay.rb CHANGED
@@ -3,7 +3,7 @@ require "promise_pay/marketplace"
3
3
  require "promise_pay/request"
4
4
  require "promise_pay/session"
5
5
  require "promise_pay/user"
6
- require "promise_pay/feelist"
6
+ require "promise_pay/fee"
7
7
  require "promise_pay/version"
8
8
  require "promise_pay/collection"
9
9
  require "promise_pay/country"
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe PromisePay::Feelist do
3
+ describe PromisePay::Fee do
4
4
  let(:request) { double("PromisePay::Request", execute: sample_response) }
5
5
 
6
6
  before do
@@ -8,7 +8,7 @@ describe PromisePay::Feelist do
8
8
  end
9
9
 
10
10
  describe ".create" do
11
- let(:sample_response) { File.read("./spec/support/fixtures/feelist/create.json") }
11
+ let(:sample_response) { File.read("./spec/support/fixtures/fee/create.json") }
12
12
 
13
13
  let(:params) do
14
14
  {
@@ -22,8 +22,8 @@ describe PromisePay::Feelist do
22
22
  }
23
23
  end
24
24
 
25
- it "returns a PromisePay::Feelist object" do
26
- expect(described_class.create(params)).to be_a_kind_of PromisePay::Feelist
25
+ it "returns a PromisePay::Fee object" do
26
+ expect(described_class.create(params)).to be_a_kind_of PromisePay::Fee
27
27
  end
28
28
 
29
29
  it "PromisePay::Feelist has correctly assigned attributes" do
@@ -42,7 +42,7 @@ describe PromisePay::Feelist do
42
42
  it "instantiates PromisePay::Request with the correct path" do
43
43
  expect(PromisePay::Request).
44
44
  to receive(:new).
45
- with(hash_including(path: 'feelist'))
45
+ with(hash_including(path: 'fees'))
46
46
 
47
47
  described_class.create(params)
48
48
  end
data/spec/spec_helper.rb CHANGED
@@ -4,4 +4,4 @@ require "promise_pay/marketplace"
4
4
  require "promise_pay/request"
5
5
  require "promise_pay/session"
6
6
  require "promise_pay/user"
7
- require "promise_pay/feelist"
7
+ require "promise_pay/fee"
@@ -1,5 +1,5 @@
1
1
  {
2
- "feelist": {
2
+ "fees": {
3
3
  "uuid": "5c07f36a-d18f-4153-9a75-ebf9f4f2f9ef",
4
4
  "name": "Transaction fee",
5
5
  "fee_type_id": 1,
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promise_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam Norton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rest-client
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.7'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.7'
97
97
  description: PromisePay gem for API calls wrapped in Ruby
@@ -101,8 +101,8 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - .gitignore
105
- - .travis.yml
104
+ - ".gitignore"
105
+ - ".travis.yml"
106
106
  - Gemfile
107
107
  - LICENSE.txt
108
108
  - README.md
@@ -112,7 +112,7 @@ files:
112
112
  - lib/promise_pay.rb
113
113
  - lib/promise_pay/collection.rb
114
114
  - lib/promise_pay/country.rb
115
- - lib/promise_pay/feelist.rb
115
+ - lib/promise_pay/fee.rb
116
116
  - lib/promise_pay/item.rb
117
117
  - lib/promise_pay/lib/dynamic_accessors.rb
118
118
  - lib/promise_pay/marketplace.rb
@@ -122,14 +122,14 @@ files:
122
122
  - lib/promise_pay/version.rb
123
123
  - promise_pay.gemspec
124
124
  - spec/promise_pay/country_spec.rb
125
- - spec/promise_pay/feelist_spec.rb
125
+ - spec/promise_pay/fee_spec.rb
126
126
  - spec/promise_pay/item_spec.rb
127
127
  - spec/promise_pay/marketplace_spec.rb
128
128
  - spec/promise_pay/request_spec.rb
129
129
  - spec/promise_pay/session_spec.rb
130
130
  - spec/promise_pay/user_spec.rb
131
131
  - spec/spec_helper.rb
132
- - spec/support/fixtures/feelist/create.json
132
+ - spec/support/fixtures/fee/create.json
133
133
  - spec/support/fixtures/item/find.json
134
134
  - spec/support/fixtures/item/find_all.json
135
135
  - spec/support/fixtures/token_generation.json
@@ -145,30 +145,30 @@ require_paths:
145
145
  - lib
146
146
  required_ruby_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - '>='
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - '>='
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.2.2
158
+ rubygems_version: 2.4.6
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: PromisePay gem
162
162
  test_files:
163
163
  - spec/promise_pay/country_spec.rb
164
- - spec/promise_pay/feelist_spec.rb
164
+ - spec/promise_pay/fee_spec.rb
165
165
  - spec/promise_pay/item_spec.rb
166
166
  - spec/promise_pay/marketplace_spec.rb
167
167
  - spec/promise_pay/request_spec.rb
168
168
  - spec/promise_pay/session_spec.rb
169
169
  - spec/promise_pay/user_spec.rb
170
170
  - spec/spec_helper.rb
171
- - spec/support/fixtures/feelist/create.json
171
+ - spec/support/fixtures/fee/create.json
172
172
  - spec/support/fixtures/item/find.json
173
173
  - spec/support/fixtures/item/find_all.json
174
174
  - spec/support/fixtures/token_generation.json