gmo 0.2.5 → 0.5.1
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.
- checksums.yaml +5 -5
- data/.travis.yml +10 -6
- data/CHANGELOG.md +42 -1
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_deposit_gets_data_about_a_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_deposit_gets_data_about_a_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_delete_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_balance_gets_data_about_balance.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_deposit_gets_data_about_a_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_mail_deposit_gets_data_about_a_mail_deposit.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_update_account_gets_data_about_an_account.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_brandtoken_gets_data_about_order.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_cvs_cancel_gets_data_about_a_transaction.yml +63 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_brandtoken_gets_data_about_a_transaction.yml +38 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_linepay_gets_data_about_a_transaction.yml +36 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_gets_data_about_a_transaction.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_parameter_contains_Japanese_characters_should_correctly_handle_Japanese.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_doesn_t_require_card_info_if_token_is_present.yml +69 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_linepay_gets_data_about_a_transaction.yml +69 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_refund_tran_brandtoken_gets_data_about_a_transaction.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_sales_tran_brandtoken_gets_data_about_a_transaction.yml +143 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_void_tran_brandtoken_gets_data_about_order.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_exec_tran_brandtoken_got_data.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_brandtoken_got_data.yml +108 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_brandtoken_gets_data_about_a_brandtoken.yml +73 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_doesn_t_require_card_info_if_token_is_present.yml +36 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_brandtoken_gets_data_about_a_brandtoken.yml +74 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_detail_by_member_id_gets_data_about_card_detail.yml +36 -0
- data/gmo.gemspec +1 -1
- data/lib/gmo.rb +6 -1
- data/lib/gmo/const.rb +2500 -3
- data/lib/gmo/errors.rb +22 -4
- data/lib/gmo/http_services.rb +5 -5
- data/lib/gmo/remittance_api.rb +331 -0
- data/lib/gmo/shop_and_site_api.rb +79 -5
- data/lib/gmo/shop_api.rb +262 -10
- data/lib/gmo/site_api.rb +77 -7
- data/lib/gmo/version.rb +2 -2
- data/spec/gmo/{error_spec.rb → errors_spec.rb} +11 -2
- data/spec/gmo/remittance_api_spec.rb +506 -0
- data/spec/gmo/shop_and_site_api_spec.rb +87 -7
- data/spec/gmo/shop_api_spec.rb +464 -109
- data/spec/gmo/site_api_spec.rb +120 -23
- data/spec/support/config.example.yml +8 -1
- data/spec/support/config.yml +8 -1
- data/spec/support/config_loader.rb +1 -1
- data/spec/support/vcr.rb +12 -3
- metadata +40 -11
data/spec/gmo/site_api_spec.rb
CHANGED
|
@@ -7,10 +7,21 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
before(:each) do
|
|
10
|
+
@shop_site ||= GMO::Payment::ShopAndSiteAPI.new({
|
|
11
|
+
:site_id => SPEC_CONF["site_id"],
|
|
12
|
+
:site_pass => SPEC_CONF["site_pass"],
|
|
13
|
+
:shop_id => SPEC_CONF["shop_id"],
|
|
14
|
+
:shop_pass => SPEC_CONF["shop_pass"],
|
|
15
|
+
:host => SPEC_CONF["host"],
|
|
16
|
+
:locale => :ja
|
|
17
|
+
|
|
18
|
+
})
|
|
10
19
|
@service ||= GMO::Payment::SiteAPI.new({
|
|
11
20
|
:site_id => SPEC_CONF["site_id"],
|
|
12
21
|
:site_pass => SPEC_CONF["site_pass"],
|
|
13
|
-
:host => SPEC_CONF["host"]
|
|
22
|
+
:host => SPEC_CONF["host"],
|
|
23
|
+
:locale => :ja
|
|
24
|
+
|
|
14
25
|
})
|
|
15
26
|
end
|
|
16
27
|
|
|
@@ -39,7 +50,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
39
50
|
:member_id => @member_id,
|
|
40
51
|
:member_name => member_name
|
|
41
52
|
})
|
|
42
|
-
result["MemberID"].nil?.should_not
|
|
53
|
+
result["MemberID"].nil?.should_not be_truthy
|
|
43
54
|
end
|
|
44
55
|
|
|
45
56
|
it "got error if missing options", :vcr do
|
|
@@ -57,7 +68,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
57
68
|
:member_id => member_id,
|
|
58
69
|
:member_name => member_name
|
|
59
70
|
})
|
|
60
|
-
result["MemberID"].nil?.should_not
|
|
71
|
+
result["MemberID"].nil?.should_not be_truthy
|
|
61
72
|
end
|
|
62
73
|
|
|
63
74
|
it "got error if missing options", :vcr do
|
|
@@ -78,7 +89,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
78
89
|
result = @service.delete_member({
|
|
79
90
|
:member_id => member_id
|
|
80
91
|
})
|
|
81
|
-
result["MemberID"].nil?.should_not
|
|
92
|
+
result["MemberID"].nil?.should_not be_truthy
|
|
82
93
|
end
|
|
83
94
|
|
|
84
95
|
it "got error if missing options", :vcr do
|
|
@@ -96,16 +107,16 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
96
107
|
:member_id => member_id,
|
|
97
108
|
:member_name => member_name
|
|
98
109
|
})
|
|
99
|
-
result["MemberID"].nil?.should_not
|
|
110
|
+
result["MemberID"].nil?.should_not be_truthy
|
|
100
111
|
|
|
101
112
|
result = @service.search_member({
|
|
102
113
|
:member_id => member_id
|
|
103
114
|
})
|
|
104
|
-
result["MemberID"].nil?.should_not
|
|
105
|
-
result["MemberName"].nil?.should_not
|
|
106
|
-
(result["MemberName"].to_s == member_name).should
|
|
107
|
-
result["DeleteFlag"].nil?.should_not
|
|
108
|
-
(result["DeleteFlag"].to_i == 0).should
|
|
115
|
+
result["MemberID"].nil?.should_not be_truthy
|
|
116
|
+
result["MemberName"].nil?.should_not be_truthy
|
|
117
|
+
(result["MemberName"].to_s == member_name).should be_truthy
|
|
118
|
+
result["DeleteFlag"].nil?.should_not be_truthy
|
|
119
|
+
(result["DeleteFlag"].to_i == 0).should be_truthy
|
|
109
120
|
end
|
|
110
121
|
|
|
111
122
|
it "got error if missing options", :vcr do
|
|
@@ -125,7 +136,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
125
136
|
:card_no => card_no,
|
|
126
137
|
:expire => expire
|
|
127
138
|
})
|
|
128
|
-
result["CardNo"].nil?.should_not
|
|
139
|
+
result["CardNo"].nil?.should_not be_truthy
|
|
129
140
|
end
|
|
130
141
|
|
|
131
142
|
it "got error if missing options", :vcr do
|
|
@@ -133,6 +144,16 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
133
144
|
result = @service.save_card()
|
|
134
145
|
}.should raise_error("Required member_id, card_no, expire were not provided.")
|
|
135
146
|
end
|
|
147
|
+
|
|
148
|
+
it "doesn't require card info if token is present", :vcr do
|
|
149
|
+
member_id = SPEC_CONF["token_member_id"]
|
|
150
|
+
token = SPEC_CONF["token"]
|
|
151
|
+
result = @service.save_card({
|
|
152
|
+
:member_id => member_id,
|
|
153
|
+
:token => token
|
|
154
|
+
})
|
|
155
|
+
result["CardNo"].nil?.should_not be_truthy
|
|
156
|
+
end
|
|
136
157
|
end
|
|
137
158
|
|
|
138
159
|
describe "#delete_card" do
|
|
@@ -143,8 +164,8 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
143
164
|
:member_id => member_id,
|
|
144
165
|
:card_seq => card_seq
|
|
145
166
|
})
|
|
146
|
-
result["CardSeq"].nil?.should_not
|
|
147
|
-
(result["CardSeq"].to_i == card_seq).should
|
|
167
|
+
result["CardSeq"].nil?.should_not be_truthy
|
|
168
|
+
(result["CardSeq"].to_i == card_seq).should be_truthy
|
|
148
169
|
end
|
|
149
170
|
|
|
150
171
|
it "got error if missing options", :vcr do
|
|
@@ -171,16 +192,16 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
171
192
|
:card_seq => card_seq,
|
|
172
193
|
:seq_mode => seq_mode
|
|
173
194
|
})
|
|
174
|
-
result["CardSeq"].nil?.should_not
|
|
175
|
-
(result["CardSeq"].to_i == card_seq).should
|
|
176
|
-
result["DefaultFlag"].nil?.should_not
|
|
177
|
-
(result["DefaultFlag"].to_i == 0).should
|
|
178
|
-
result["CardName"].nil?.should_not
|
|
179
|
-
result["CardNo"].nil?.should_not
|
|
180
|
-
result["Expire"].nil?.should_not
|
|
181
|
-
(result["Expire"].to_s == expire).should
|
|
182
|
-
result["HolderName"].nil?.should_not
|
|
183
|
-
result["DeleteFlag"].nil?.should_not
|
|
195
|
+
result["CardSeq"].nil?.should_not be_truthy
|
|
196
|
+
(result["CardSeq"].to_i == card_seq).should be_truthy
|
|
197
|
+
result["DefaultFlag"].nil?.should_not be_truthy
|
|
198
|
+
(result["DefaultFlag"].to_i == 0).should be_truthy
|
|
199
|
+
result["CardName"].nil?.should_not be_truthy
|
|
200
|
+
result["CardNo"].nil?.should_not be_truthy
|
|
201
|
+
result["Expire"].nil?.should_not be_truthy
|
|
202
|
+
(result["Expire"].to_s == expire).should be_truthy
|
|
203
|
+
result["HolderName"].nil?.should_not be_truthy
|
|
204
|
+
result["DeleteFlag"].nil?.should_not be_truthy
|
|
184
205
|
end
|
|
185
206
|
|
|
186
207
|
it "got error if missing options", :vcr do
|
|
@@ -190,4 +211,80 @@ describe "GMO::Payment::SiteAPI" do
|
|
|
190
211
|
end
|
|
191
212
|
end
|
|
192
213
|
|
|
214
|
+
describe "#search_card_detail_by_member_id" do
|
|
215
|
+
it "gets data about card detail", :vcr do
|
|
216
|
+
member_id = generate_id
|
|
217
|
+
seq_mode = 0
|
|
218
|
+
result = @service.search_card_detail_by_member_id({
|
|
219
|
+
:member_id => member_id,
|
|
220
|
+
:seq_mode => seq_mode
|
|
221
|
+
})
|
|
222
|
+
result["CardNo"].nil?.should_not be_truthy
|
|
223
|
+
result["Brand"].nil?.should_not be_truthy
|
|
224
|
+
result["DomesticFlag"].nil?.should_not be_truthy
|
|
225
|
+
result["IssuerCode"].nil?.should_not be_truthy
|
|
226
|
+
result["DebitPrepaidFlag"].nil?.should_not be_truthy
|
|
227
|
+
result["DebitPrepaidIssuerName"].nil?.should_not be_truthy
|
|
228
|
+
result["ForwardFinal"].nil?.should_not be_truthy
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
it "got error if missing options", :vcr do
|
|
232
|
+
lambda {
|
|
233
|
+
result = @service.search_card_detail_by_member_id()
|
|
234
|
+
}.should raise_error("Required member_id, seq_mode were not provided.")
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
describe "#search_brandtoken" do
|
|
239
|
+
it "gets data about a brandtoken", :vcr do
|
|
240
|
+
order_id = generate_id
|
|
241
|
+
member_id = generate_id
|
|
242
|
+
@shop_site.trade_brandtoken({
|
|
243
|
+
:order_id => order_id,
|
|
244
|
+
:member_id => member_id
|
|
245
|
+
})
|
|
246
|
+
|
|
247
|
+
result = @service.search_brandtoken({
|
|
248
|
+
:member_id => member_id,
|
|
249
|
+
:seq_mode => 0
|
|
250
|
+
})
|
|
251
|
+
result["TokenSeq"].nil?.should_not be true
|
|
252
|
+
result["DefaultFlag"].nil?.should_not be true
|
|
253
|
+
result["CardName"].nil?.should_not be true
|
|
254
|
+
result["CardNoToken"].nil?.should_not be true
|
|
255
|
+
result["Expire"].nil?.should_not be true
|
|
256
|
+
result["HolderName"].nil?.should_not be true
|
|
257
|
+
result["DeleteFlag"].nil?.should_not be true
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
it "got error if missing options", :vcr do
|
|
261
|
+
lambda {
|
|
262
|
+
result = @service.search_brandtoken()
|
|
263
|
+
}.should raise_error("Required member_id, seq_mode were not provided.")
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
describe "#delete_brandtoken" do
|
|
268
|
+
it "gets data about a brandtoken", :vcr do
|
|
269
|
+
order_id = generate_id
|
|
270
|
+
member_id = generate_id
|
|
271
|
+
@shop_site.trade_brandtoken({
|
|
272
|
+
:order_id => order_id,
|
|
273
|
+
:member_id => member_id
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
result = @service.delete_brandtoken({
|
|
277
|
+
:member_id => member_id,
|
|
278
|
+
:seq_mode => 0,
|
|
279
|
+
:token_seq => 0
|
|
280
|
+
})
|
|
281
|
+
result["TokenSeq"].nil?.should_not be true
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
it "got error if missing options", :vcr do
|
|
285
|
+
lambda {
|
|
286
|
+
result = @service.delete_brandtoken()
|
|
287
|
+
}.should raise_error('Required member_id, seq_mode, token_seq were not provided.')
|
|
288
|
+
end
|
|
289
|
+
end
|
|
193
290
|
end
|
data/spec/support/config.yml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
require 'yaml'
|
|
2
|
-
SPEC_CONF = YAML.load_file(File.join(File.dirname(__FILE__), 'config.yml'))
|
|
2
|
+
SPEC_CONF = YAML.load_file(File.join(File.dirname(__FILE__), 'config.yml'))
|
data/spec/support/vcr.rb
CHANGED
|
@@ -3,12 +3,21 @@ VCR.configure do |c|
|
|
|
3
3
|
c.hook_into :webmock
|
|
4
4
|
c.allow_http_connections_when_no_cassette = true
|
|
5
5
|
c.default_cassette_options = { :record => :new_episodes }
|
|
6
|
+
|
|
7
|
+
# Filter remittance config before others to correctly hide config from vcr cassettes
|
|
8
|
+
# as its values are bigger in length than others and should completely be replaced with given strings.
|
|
9
|
+
c.filter_sensitive_data('<REMITTANCE_SHOP_ID>') { SPEC_CONF["remittance"]["shop_id"] }
|
|
10
|
+
c.filter_sensitive_data('<REMITTANCE_SHOP_PASS>') { SPEC_CONF["remittance"]["shop_pass"] }
|
|
11
|
+
c.filter_sensitive_data('<REMITTANCE_HOST>') { SPEC_CONF["remittance"]["host"] }
|
|
12
|
+
|
|
13
|
+
c.filter_sensitive_data('<HOST>') { SPEC_CONF["host"] }
|
|
6
14
|
c.filter_sensitive_data('<SHOP_ID>') { SPEC_CONF["shop_id"] }
|
|
7
|
-
c.filter_sensitive_data('<SHOP_PASS>') { SPEC_CONF["shop_pass"] }
|
|
8
15
|
c.filter_sensitive_data('<SITE_ID>') { SPEC_CONF["site_id"] }
|
|
16
|
+
c.filter_sensitive_data('<SHOP_PASS>') { SPEC_CONF["shop_pass"] }
|
|
9
17
|
c.filter_sensitive_data('<SITE_PASS>') { SPEC_CONF["site_pass"] }
|
|
10
18
|
c.filter_sensitive_data('<SITE_PASS>') { SPEC_CONF["site_pass"] }
|
|
11
|
-
c.filter_sensitive_data('<
|
|
19
|
+
c.filter_sensitive_data('<TOKEN>') { SPEC_CONF["token"] }
|
|
20
|
+
c.filter_sensitive_data('<TOKEN_MEMBER_ID>') { SPEC_CONF["token_member_id"] }
|
|
12
21
|
c.filter_sensitive_data('<ACCESS_ID>') { ACCESS_ID }
|
|
13
22
|
c.filter_sensitive_data('<ACCESS_PASS>') { ACCESS_PASS }
|
|
14
23
|
end
|
|
@@ -19,4 +28,4 @@ RSpec.configure do |c|
|
|
|
19
28
|
name = example.metadata[:full_description].split(/\s+/, 2).join("/").gsub(/[^\w\/]+/, "_")
|
|
20
29
|
VCR.use_cassette(name) { example.call }
|
|
21
30
|
end
|
|
22
|
-
end
|
|
31
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gmo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tatsuo Kaniwa
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '3'
|
|
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
|
-
version: '
|
|
54
|
+
version: '3'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rake
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -111,31 +111,59 @@ files:
|
|
|
111
111
|
- README.md
|
|
112
112
|
- Rakefile
|
|
113
113
|
- autotest/discover.rb
|
|
114
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_deposit_gets_data_about_a_deposit.yml
|
|
115
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_cancel_mail_deposit_gets_data_about_a_mail_deposit.yml
|
|
116
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_account_gets_data_about_an_account.yml
|
|
117
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_deposit_gets_data_about_a_deposit.yml
|
|
118
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml
|
|
119
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_delete_account_gets_data_about_an_account.yml
|
|
120
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_account_gets_data_about_an_account.yml
|
|
121
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_balance_gets_data_about_balance.yml
|
|
122
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_deposit_gets_data_about_a_deposit.yml
|
|
123
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_mail_deposit_gets_data_about_a_mail_deposit.yml
|
|
124
|
+
- fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_update_account_gets_data_about_an_account.yml
|
|
114
125
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_change_order_auth_to_sale.yml
|
|
115
126
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_gets_data_about_order.yml
|
|
116
127
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_alter_tran_got_error_if_missing_options.yml
|
|
128
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_brandtoken_gets_data_about_order.yml
|
|
117
129
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_gets_data_about_order.yml
|
|
118
130
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_change_tran_got_error_if_missing_options.yml
|
|
131
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_cvs_cancel_gets_data_about_a_transaction.yml
|
|
132
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_brandtoken_gets_data_about_a_transaction.yml
|
|
119
133
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_cvs_gets_data_about_a_transaction.yml
|
|
120
134
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_cvs_got_error_if_missing_options.yml
|
|
121
135
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_gets_data_about_a_transaction.yml
|
|
122
136
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_got_error_if_missing_options.yml
|
|
137
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_linepay_gets_data_about_a_transaction.yml
|
|
123
138
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_pay_easy_gets_data_about_a_transaction.yml
|
|
139
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_gets_data_about_a_transaction.yml
|
|
140
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_brandtoken_parameter_contains_Japanese_characters_should_correctly_handle_Japanese.yml
|
|
124
141
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_cvs_gets_data_about_a_transaction.yml
|
|
142
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_doesn_t_require_card_info_if_token_is_present.yml
|
|
125
143
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_gets_data_about_a_transaction.yml
|
|
126
144
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_got_error_if_missing_options.yml
|
|
145
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_linepay_gets_data_about_a_transaction.yml
|
|
127
146
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_parameter_contains_Japanese_characters_should_correctly_handle_Japanese.yml
|
|
128
147
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_pay_easy_gets_data_about_a_transaction.yml
|
|
148
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_refund_tran_brandtoken_gets_data_about_a_transaction.yml
|
|
149
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_sales_tran_brandtoken_gets_data_about_a_transaction.yml
|
|
129
150
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_gets_data_about_order.yml
|
|
130
151
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_got_error_if_missing_options.yml
|
|
131
152
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_gets_data_about_order.yml
|
|
132
153
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_got_error_if_missing_options.yml
|
|
154
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_void_tran_brandtoken_gets_data_about_order.yml
|
|
155
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_exec_tran_brandtoken_got_data.yml
|
|
156
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_brandtoken_got_data.yml
|
|
133
157
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_card_got_data.yml
|
|
134
158
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_card_got_error_if_missing_options.yml
|
|
159
|
+
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_brandtoken_gets_data_about_a_brandtoken.yml
|
|
135
160
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_card_gets_data_about_a_card.yml
|
|
136
161
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_member_gets_data_about_a_member.yml
|
|
162
|
+
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_doesn_t_require_card_info_if_token_is_present.yml
|
|
137
163
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_gets_data_about_a_card.yml
|
|
138
164
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_member_gets_data_about_a_transaction.yml
|
|
165
|
+
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_brandtoken_gets_data_about_a_brandtoken.yml
|
|
166
|
+
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_detail_by_member_id_gets_data_about_card_detail.yml
|
|
139
167
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_gets_data_about_a_card.yml
|
|
140
168
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_member_gets_data_about_a_member.yml
|
|
141
169
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_update_member_gets_data_about_a_transaction.yml
|
|
@@ -145,14 +173,16 @@ files:
|
|
|
145
173
|
- lib/gmo/errors.rb
|
|
146
174
|
- lib/gmo/http_services.rb
|
|
147
175
|
- lib/gmo/json.rb
|
|
176
|
+
- lib/gmo/remittance_api.rb
|
|
148
177
|
- lib/gmo/shop_and_site_api.rb
|
|
149
178
|
- lib/gmo/shop_api.rb
|
|
150
179
|
- lib/gmo/site_api.rb
|
|
151
180
|
- lib/gmo/version.rb
|
|
152
181
|
- spec/gmo/api_spec.rb
|
|
153
|
-
- spec/gmo/
|
|
182
|
+
- spec/gmo/errors_spec.rb
|
|
154
183
|
- spec/gmo/http_service_spec.rb
|
|
155
184
|
- spec/gmo/json_spec.rb
|
|
185
|
+
- spec/gmo/remittance_api_spec.rb
|
|
156
186
|
- spec/gmo/shop_and_site_api_spec.rb
|
|
157
187
|
- spec/gmo/shop_api_spec.rb
|
|
158
188
|
- spec/gmo/site_api_spec.rb
|
|
@@ -167,7 +197,7 @@ homepage: https://github.com/t-k/gmo-payment-ruby
|
|
|
167
197
|
licenses:
|
|
168
198
|
- MIT
|
|
169
199
|
metadata: {}
|
|
170
|
-
post_install_message:
|
|
200
|
+
post_install_message:
|
|
171
201
|
rdoc_options:
|
|
172
202
|
- "--line-numbers"
|
|
173
203
|
- "--inline-source"
|
|
@@ -186,10 +216,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
186
216
|
- !ruby/object:Gem::Version
|
|
187
217
|
version: '0'
|
|
188
218
|
requirements: []
|
|
189
|
-
rubyforge_project:
|
|
190
|
-
rubygems_version: 2.
|
|
191
|
-
signing_key:
|
|
219
|
+
rubyforge_project:
|
|
220
|
+
rubygems_version: 2.7.6
|
|
221
|
+
signing_key:
|
|
192
222
|
specification_version: 4
|
|
193
223
|
summary: 'GMO Payment API client: Ruby client library for the GMO Payment Platform.'
|
|
194
224
|
test_files: []
|
|
195
|
-
has_rdoc:
|