bootpay 1.0.0 → 1.0.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 +4 -4
- data/lib/bootpay/bootpay.rb +49 -0
- data/lib/bootpay/version.rb +1 -1
- data/lib/{api.rb → bootpay.rb} +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f4571d472aea39ea1af1906ba2d69cc60712f0438633cd697097bd03bdae78d
|
4
|
+
data.tar.gz: 9027f9825321d43c1f93c852cbb40605338dcccaed31f98ace4a05c7ca41ee1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3692d6c28adb7e876f1cf129482182b99eed58f5570bae2d07d1cf779ef255877402f59523e8a11ef8f5559a54824e12441a94a37503ccc2dd4d43b6f0621df5
|
7
|
+
data.tar.gz: d9c4056f3b02a808ff6358b6bf7ef52fa5f2ca1c0a35e60da2467e9cdbdc57bed9b08df2914aac77a65d15f4e716af167e486621329713105c5b94ae2f4aad8a
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'active_support/all'
|
2
|
+
require 'http'
|
3
|
+
require_relative 'response'
|
4
|
+
require_relative 'bootpay/billing'
|
5
|
+
require_relative 'bootpay/cancel'
|
6
|
+
require_relative 'bootpay/easy'
|
7
|
+
require_relative 'bootpay/escrow'
|
8
|
+
require_relative 'bootpay/link'
|
9
|
+
require_relative 'bootpay/naverpay'
|
10
|
+
require_relative 'bootpay/payment_resource'
|
11
|
+
require_relative 'bootpay/reseller'
|
12
|
+
require_relative 'bootpay/rest'
|
13
|
+
require_relative 'bootpay/submit'
|
14
|
+
require_relative 'bootpay/token'
|
15
|
+
require_relative 'bootpay/verification'
|
16
|
+
require_relative "bootpay/version"
|
17
|
+
|
18
|
+
module Bootpay
|
19
|
+
class Api
|
20
|
+
include Billing
|
21
|
+
include Cancel
|
22
|
+
include Easy
|
23
|
+
include Escrow
|
24
|
+
include Link
|
25
|
+
include Naverpay
|
26
|
+
include PaymentResource
|
27
|
+
include Reseller
|
28
|
+
include Rest
|
29
|
+
include Submit
|
30
|
+
include Token
|
31
|
+
include Verification
|
32
|
+
|
33
|
+
API =
|
34
|
+
{
|
35
|
+
development: 'https://dev-api.bootpay.co.kr/',
|
36
|
+
stage: 'https://stage-api.bootpay.co.kr/',
|
37
|
+
production: 'https://api.bootpay.co.kr/'
|
38
|
+
}.freeze
|
39
|
+
|
40
|
+
def initialize(application_id:, private_key:, mode: 'production')
|
41
|
+
|
42
|
+
@application_id = application_id
|
43
|
+
@private_key = private_key
|
44
|
+
@mode = mode.presence || 'production'
|
45
|
+
@token = nil
|
46
|
+
raise ArgumentError, "개발환경 mode는 development, stage, production 중에서 선택이 가능합니다." if API[@mode.to_sym].blank?
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
data/lib/bootpay/version.rb
CHANGED
data/lib/{api.rb → bootpay.rb}
RENAMED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bootpay
|
@@ -58,9 +58,10 @@ files:
|
|
58
58
|
- bin/setup
|
59
59
|
- bootpay.gemspec
|
60
60
|
- lib/.DS_Store
|
61
|
-
- lib/
|
61
|
+
- lib/bootpay.rb
|
62
62
|
- lib/bootpay/.DS_Store
|
63
63
|
- lib/bootpay/billing.rb
|
64
|
+
- lib/bootpay/bootpay.rb
|
64
65
|
- lib/bootpay/cancel.rb
|
65
66
|
- lib/bootpay/easy.rb
|
66
67
|
- lib/bootpay/escrow.rb
|