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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 022100bd6bd482b36005a017f48fcb688740eeaedf6379f056c0a34174b328b6
4
- data.tar.gz: 1aee63779b76d0adaa96b6708ed8bbc6cdb5be379cc9824372901a6dc440abd9
3
+ metadata.gz: 4f4571d472aea39ea1af1906ba2d69cc60712f0438633cd697097bd03bdae78d
4
+ data.tar.gz: 9027f9825321d43c1f93c852cbb40605338dcccaed31f98ace4a05c7ca41ee1b
5
5
  SHA512:
6
- metadata.gz: 5f3fdc48ca258c10d22c8d413b2dead5e2b31adb5e4ff03a40819f8325b6c6c84b83c7348379e29162cc1fba2b4a97e6f04253816027b501e7ca1c9392717c5e
7
- data.tar.gz: fa9bcf0841dc97fc5106fed67d4c02a747c623421f18d09342d4a9b20f1de53c3d2ad4551f03ad6840f88576fe89b418eebae17a186ddf1c877d1767b3e715b8
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootpay
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
 
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.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/api.rb
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