bitnob 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +3 -1
- data/.solargraph.yml +22 -0
- data/.vscode/settings.json +9 -0
- data/Gemfile.lock +36 -37
- data/bitnob.gemspec +6 -6
- data/lib/bitnob/modules/base_endpoints.rb +3 -1
- data/lib/bitnob/objects/checkout.rb +59 -0
- data/lib/bitnob/objects/onchain.rb +1 -1
- data/lib/bitnob/objects/swap.rb +33 -0
- data/lib/bitnob/objects/usdc.rb +46 -0
- data/lib/bitnob/objects/virtual_cards.rb +114 -0
- data/lib/bitnob/objects/wallets.rb +3 -1
- data/lib/bitnob/version.rb +1 -1
- data/lib/bitnob.rb +5 -0
- metadata +33 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c921696b31559639029f934d68bc8c54fdcb994e390c4f90856cb1883d82967
|
4
|
+
data.tar.gz: b8854e8dda9167b807fcb2d2ba29b84508451646414266d2e4780bf431e5414f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22de06a246bbfa6c0fc7f81734d10f65de2afb1c972fe5b513622ff1f8843d72fd2b706bfe14e286daa8be649511a355b102c7d26b511a59cdf248c8fe73a646
|
7
|
+
data.tar.gz: 6c6b2551e34f453418ce7d83c42615da0dbfff5aa4eb85a4da9cf30f8f29e606a6da0a6b731214aa8166f366b07ea8d789fc5cc2664ae1f281dc82c8d5e426a2
|
data/.github/workflows/main.yml
CHANGED
data/.solargraph.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
include:
|
3
|
+
- "**/*.rb"
|
4
|
+
exclude:
|
5
|
+
- spec/**/*
|
6
|
+
- test/**/*
|
7
|
+
- vendor/**/*
|
8
|
+
- ".bundle/**/*"
|
9
|
+
require: []
|
10
|
+
domains: []
|
11
|
+
reporters:
|
12
|
+
- rubocop
|
13
|
+
- require_not_found
|
14
|
+
formatter:
|
15
|
+
rubocop:
|
16
|
+
cops: safe
|
17
|
+
except: []
|
18
|
+
only: []
|
19
|
+
extra_args: []
|
20
|
+
require_paths: []
|
21
|
+
plugins: []
|
22
|
+
max_files: 5000
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bitnob (0.0.
|
4
|
+
bitnob (0.0.4)
|
5
5
|
dotenv (~> 2.7)
|
6
6
|
httparty (~> 0.19.0)
|
7
7
|
|
@@ -9,66 +9,65 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
ast (2.4.2)
|
12
|
-
diff-lcs (1.
|
12
|
+
diff-lcs (1.5.0)
|
13
13
|
dotenv (2.7.6)
|
14
|
-
httparty (0.19.
|
14
|
+
httparty (0.19.1)
|
15
15
|
mime-types (~> 3.0)
|
16
16
|
multi_xml (>= 0.5.2)
|
17
|
-
mime-types (3.
|
17
|
+
mime-types (3.4.1)
|
18
18
|
mime-types-data (~> 3.2015)
|
19
|
-
mime-types-data (3.
|
19
|
+
mime-types-data (3.2022.0105)
|
20
20
|
multi_xml (0.6.0)
|
21
|
-
parallel (1.
|
22
|
-
parser (3.0.
|
21
|
+
parallel (1.21.0)
|
22
|
+
parser (3.1.0.0)
|
23
23
|
ast (~> 2.4.1)
|
24
|
-
rainbow (3.
|
24
|
+
rainbow (3.1.1)
|
25
25
|
rake (13.0.6)
|
26
|
-
regexp_parser (2.
|
26
|
+
regexp_parser (2.2.1)
|
27
27
|
rexml (3.2.5)
|
28
|
-
rspec (3.
|
29
|
-
rspec-core (~> 3.
|
30
|
-
rspec-expectations (~> 3.
|
31
|
-
rspec-mocks (~> 3.
|
32
|
-
rspec-core (3.
|
33
|
-
rspec-support (~> 3.
|
34
|
-
rspec-expectations (3.
|
28
|
+
rspec (3.11.0)
|
29
|
+
rspec-core (~> 3.11.0)
|
30
|
+
rspec-expectations (~> 3.11.0)
|
31
|
+
rspec-mocks (~> 3.11.0)
|
32
|
+
rspec-core (3.11.0)
|
33
|
+
rspec-support (~> 3.11.0)
|
34
|
+
rspec-expectations (3.11.0)
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
-
rspec-support (~> 3.
|
37
|
-
rspec-mocks (3.
|
36
|
+
rspec-support (~> 3.11.0)
|
37
|
+
rspec-mocks (3.11.0)
|
38
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
-
rspec-support (~> 3.
|
40
|
-
rspec-support (3.
|
41
|
-
rubocop (1.
|
39
|
+
rspec-support (~> 3.11.0)
|
40
|
+
rspec-support (3.11.0)
|
41
|
+
rubocop (1.25.1)
|
42
42
|
parallel (~> 1.10)
|
43
|
-
parser (>= 3.
|
43
|
+
parser (>= 3.1.0.0)
|
44
44
|
rainbow (>= 2.2.2, < 4.0)
|
45
45
|
regexp_parser (>= 1.8, < 3.0)
|
46
46
|
rexml
|
47
|
-
rubocop-ast (>= 1.
|
47
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
48
48
|
ruby-progressbar (~> 1.7)
|
49
49
|
unicode-display_width (>= 1.4.0, < 3.0)
|
50
|
-
rubocop-ast (1.
|
50
|
+
rubocop-ast (1.15.2)
|
51
51
|
parser (>= 3.0.1.1)
|
52
|
-
rubocop-performance (1.
|
52
|
+
rubocop-performance (1.13.2)
|
53
53
|
rubocop (>= 1.7.0, < 2.0)
|
54
54
|
rubocop-ast (>= 0.4.0)
|
55
|
-
rubocop-rspec (2.
|
56
|
-
rubocop (~> 1.
|
57
|
-
rubocop-ast (>= 1.1.0)
|
55
|
+
rubocop-rspec (2.8.0)
|
56
|
+
rubocop (~> 1.19)
|
58
57
|
ruby-progressbar (1.11.0)
|
59
|
-
unicode-display_width (2.
|
58
|
+
unicode-display_width (2.1.0)
|
60
59
|
|
61
60
|
PLATFORMS
|
62
|
-
|
61
|
+
universal-darwin-21
|
63
62
|
|
64
63
|
DEPENDENCIES
|
65
64
|
bitnob!
|
66
|
-
bundler
|
67
|
-
rake
|
68
|
-
rspec
|
69
|
-
rubocop
|
70
|
-
rubocop-performance
|
71
|
-
rubocop-rspec
|
65
|
+
bundler
|
66
|
+
rake
|
67
|
+
rspec
|
68
|
+
rubocop
|
69
|
+
rubocop-performance
|
70
|
+
rubocop-rspec
|
72
71
|
|
73
72
|
BUNDLED WITH
|
74
|
-
2.
|
73
|
+
2.3.7
|
data/bitnob.gemspec
CHANGED
@@ -26,12 +26,12 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.metadata['changelog_uri'] = spec.homepage
|
27
27
|
|
28
28
|
# Dev dependencies
|
29
|
-
spec.add_development_dependency 'bundler'
|
30
|
-
spec.add_development_dependency 'rake'
|
31
|
-
spec.add_development_dependency 'rspec'
|
32
|
-
spec.add_development_dependency 'rubocop'
|
33
|
-
spec.add_development_dependency 'rubocop-performance'
|
34
|
-
spec.add_development_dependency 'rubocop-rspec'
|
29
|
+
spec.add_development_dependency 'bundler'
|
30
|
+
spec.add_development_dependency 'rake'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
spec.add_development_dependency 'rubocop'
|
33
|
+
spec.add_development_dependency 'rubocop-performance'
|
34
|
+
spec.add_development_dependency 'rubocop-rspec'
|
35
35
|
|
36
36
|
# Dependencies
|
37
37
|
spec.required_ruby_version = '>= 2.5.0'
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'base/base'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
class Checkout < Base
|
7
|
+
# Create Hosted Checkout
|
8
|
+
#
|
9
|
+
# - Required Function Parameters:
|
10
|
+
#
|
11
|
+
#
|
12
|
+
# data: {
|
13
|
+
# amount: int ,
|
14
|
+
# customerEmail: string,
|
15
|
+
# notificationEmail: string,
|
16
|
+
# callbackUrl: string,
|
17
|
+
# successUrl: string,
|
18
|
+
# reference: string
|
19
|
+
# }
|
20
|
+
#
|
21
|
+
|
22
|
+
def create(data)
|
23
|
+
required_parameters = %w[amount, customerEmail, notificationEmail, callbackUrl, successUrl, reference]
|
24
|
+
|
25
|
+
checked_passed_parameters(required_parameters, data)
|
26
|
+
payload = data.to_json
|
27
|
+
post_request("#{base_url}#{BaseEndpoints::CHECKOUT}", payload)
|
28
|
+
end
|
29
|
+
|
30
|
+
# List All Hosted Checkout
|
31
|
+
#
|
32
|
+
# - Optional Function Parameters:
|
33
|
+
# page : int
|
34
|
+
# limit : int
|
35
|
+
# order: string ASC or DESC
|
36
|
+
|
37
|
+
def list_checkout(page=1, limit=10, order='ASC')
|
38
|
+
get_request("#{base_url}#{BaseEndpoints::CHECKOUT}/?order=#{order}&page=#{page}&limit=#{limit}")
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
# Get Hosted Checkout Info
|
43
|
+
#
|
44
|
+
# - Required Function Parameters:
|
45
|
+
# id : int
|
46
|
+
|
47
|
+
def get_info(id)
|
48
|
+
get_request("#{base_url}#{BaseEndpoints::CHECKOUT}/info/#{id}")
|
49
|
+
end
|
50
|
+
|
51
|
+
# Get Hosted Checkout Status
|
52
|
+
#
|
53
|
+
# - Required Function Parameters:
|
54
|
+
# id : int
|
55
|
+
|
56
|
+
def get_status(id)
|
57
|
+
get_request("#{base_url}#{BaseEndpoints::CHECKOUT}/status/#{id}")
|
58
|
+
end
|
59
|
+
end
|
@@ -42,7 +42,7 @@ class Onchain < Base
|
|
42
42
|
#
|
43
43
|
#
|
44
44
|
# default: <tt>page_number => 1, limit => 10</tt>
|
45
|
-
def list_addresses(page_number
|
45
|
+
def list_addresses(page_number=1, limit=10)
|
46
46
|
get_request("#{base_url}#{BaseEndpoints::ADDRESS}order=ASC&page=#{page_number}&take=#{limit}")
|
47
47
|
end
|
48
48
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require_relative 'base/base'
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
class Swap < Base
|
6
|
+
|
7
|
+
# Swap BTC for USD
|
8
|
+
|
9
|
+
# - Required Parameters
|
10
|
+
|
11
|
+
# amount : int
|
12
|
+
|
13
|
+
def swap_btc_usd(amount)
|
14
|
+
data = { amount : amount }
|
15
|
+
payload = data.to_json
|
16
|
+
|
17
|
+
post_request("#{base_url}#{BaseEndpoints::ONCHAIN}/swap-bitcoin-usd", payload)
|
18
|
+
end
|
19
|
+
|
20
|
+
# Swap USD for BTC
|
21
|
+
|
22
|
+
# - Required Parameters
|
23
|
+
|
24
|
+
# amount : int
|
25
|
+
|
26
|
+
def swap_usd_btc(amount)
|
27
|
+
data = { amount : amount }
|
28
|
+
payload = data.to_json
|
29
|
+
|
30
|
+
post_request("#{base_url}#{BaseEndpoints::ONCHAIN}/swap-usd-bitcoin", payload)
|
31
|
+
end
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative 'base/base'
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
class USDC < Base
|
6
|
+
# Sending USDC
|
7
|
+
|
8
|
+
# - Required Parameters
|
9
|
+
|
10
|
+
# data {
|
11
|
+
|
12
|
+
# amount : int
|
13
|
+
# address: string
|
14
|
+
# description: string
|
15
|
+
#
|
16
|
+
# }
|
17
|
+
|
18
|
+
def send(data)
|
19
|
+
required_parameters = %w[amount, address, description]
|
20
|
+
|
21
|
+
checked_passed_parameters(required_parameters, data)
|
22
|
+
|
23
|
+
payload = data.to_json
|
24
|
+
post_request("#{base_url}#{BaseEndpoints::ONCHAIN}/send-usdc", payload)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Creating Address
|
28
|
+
|
29
|
+
# - Required Parameters
|
30
|
+
|
31
|
+
# data {
|
32
|
+
|
33
|
+
# label : string
|
34
|
+
# customerEmail: string
|
35
|
+
#
|
36
|
+
# }
|
37
|
+
|
38
|
+
def create_address(data)
|
39
|
+
required_parameters = %w[label, customerEmail]
|
40
|
+
|
41
|
+
checked_passed_parameters(required_parameters, data)
|
42
|
+
|
43
|
+
payload = data.to_json
|
44
|
+
post_request("#{base_url}#{BaseEndpoints::ADDRESS}/generate/usdc", payload)
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'base/base'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
class Cards < Base
|
7
|
+
|
8
|
+
# Register Card User
|
9
|
+
# - Required Parameters
|
10
|
+
# data {
|
11
|
+
|
12
|
+
# idNumber : string ,
|
13
|
+
# customerEmail: string,
|
14
|
+
# idType: string,
|
15
|
+
# phoneNumber: string,
|
16
|
+
# firstName: string,
|
17
|
+
# lastName: string,
|
18
|
+
# userPhoto: string,
|
19
|
+
# city: string,
|
20
|
+
# state: string,
|
21
|
+
# country: string,
|
22
|
+
# zipCode: string,
|
23
|
+
# line1: string,
|
24
|
+
# amount: int
|
25
|
+
# }
|
26
|
+
def register_user(data)
|
27
|
+
|
28
|
+
required_params = %w[customerEmail, idNumber, idNumber, firstName, lastName, city, state, country, zipCode, line1]
|
29
|
+
|
30
|
+
checked_passed_parameters(required_params, data)
|
31
|
+
|
32
|
+
payload = data.to_json
|
33
|
+
|
34
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/registercarduser", payload)
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
|
39
|
+
# Create Card
|
40
|
+
# - Required Parameters
|
41
|
+
# customerEmail: string
|
42
|
+
def create (customerEmail)
|
43
|
+
body = { customerEmail: customerEmail}
|
44
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}", body.to_json)
|
45
|
+
end
|
46
|
+
|
47
|
+
# Topup Card
|
48
|
+
# - Required Parameters
|
49
|
+
# amount: int
|
50
|
+
# CardID - uuid string
|
51
|
+
def top_up(amount, cardId)
|
52
|
+
payload = { amount: amount, cardId: cardId}
|
53
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/topup", payload.to_json)
|
54
|
+
end
|
55
|
+
|
56
|
+
# Withdraw From Card
|
57
|
+
# - Required Parameters
|
58
|
+
# amount: int
|
59
|
+
# CardID - uuid string
|
60
|
+
def withdraw(amount, cardId)
|
61
|
+
payload = { amount: amount, cardId: cardId}
|
62
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/withdraw", payload.to_json)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Freeze Card
|
66
|
+
# - Required Parameters
|
67
|
+
# CardID - uuid string
|
68
|
+
def freeze(cardId)
|
69
|
+
payload = { cardId: cardId}
|
70
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/freeze", payload.to_json)
|
71
|
+
end
|
72
|
+
|
73
|
+
# Unfreeze Card
|
74
|
+
# - Required Parameters
|
75
|
+
# CardID - uuid string
|
76
|
+
def unfreeze(cardId)
|
77
|
+
payload = { cardId: cardId}
|
78
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/unfreeze", payload.to_json)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Mock Transaction
|
82
|
+
# - Required Parameters
|
83
|
+
# amount: int
|
84
|
+
# CardID - uuid string
|
85
|
+
# Type - string
|
86
|
+
def mock_transaction(amount, cardId, type)
|
87
|
+
payload = { amount: amount, cardId: cardId, type: type}
|
88
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/mock-transaction", payload.to_json)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Terminate card
|
92
|
+
# - Required Parameters
|
93
|
+
# CardID - uuid string
|
94
|
+
def terminate(cardId)
|
95
|
+
payload = {cardId: cardId}
|
96
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/terminate", payload.to_json)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Block Card
|
100
|
+
# - Required Parameters
|
101
|
+
# CardID - uuid string
|
102
|
+
def block(cardId)
|
103
|
+
payload = { cardId: cardId}
|
104
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/block", payload.to_json)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Block Card
|
108
|
+
# - Required Parameters
|
109
|
+
# CardID - uuid string
|
110
|
+
def unblock(cardId)
|
111
|
+
payload = { cardId: cardId}
|
112
|
+
post_request("#{base_url}#{BaseEndpoints::CARDS}/unblock", payload.to_json)
|
113
|
+
end
|
114
|
+
end
|
@@ -4,13 +4,15 @@ require_relative 'base/base'
|
|
4
4
|
require 'json'
|
5
5
|
|
6
6
|
class Wallets < Base
|
7
|
+
|
8
|
+
# fetch all wallets
|
7
9
|
def fetch_wallets
|
8
10
|
get_request("#{base_url}#{BaseEndpoints::ONCHAIN}")
|
9
11
|
end
|
10
12
|
|
11
13
|
# page_number: number, limit: number
|
12
14
|
# default_value: page_number: 1, limit: 10
|
13
|
-
def fetch_all_transactions(page_number
|
15
|
+
def fetch_all_transactions(page_number=1, limit=10)
|
14
16
|
get_request("#{base_url}#{BaseEndpoints::ONCHAIN}?order=ASC&page=#{page_number}&take=#{limit}")
|
15
17
|
end
|
16
18
|
|
data/lib/bitnob/version.rb
CHANGED
data/lib/bitnob.rb
CHANGED
@@ -5,6 +5,11 @@ require_relative 'bitnob/objects/utils'
|
|
5
5
|
require_relative 'bitnob/objects/lightning'
|
6
6
|
require_relative 'bitnob/objects/onchain'
|
7
7
|
require_relative 'bitnob/objects/wallets'
|
8
|
+
require_relative 'bitnob/objects/swap'
|
9
|
+
require_relative 'bitnob/objects/usdc'
|
10
|
+
require_relative 'bitnob/objects/checkout'
|
11
|
+
require_relative 'bitnob/objects/virtual_cards'
|
8
12
|
require_relative 'bitnob/version'
|
9
13
|
require_relative 'bitnob/modules/base_endpoints'
|
10
14
|
require_relative 'bitnob/errors'
|
15
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitnob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bitnob
|
@@ -9,92 +9,92 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rubocop
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rubocop-performance
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rubocop-rspec
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - "
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: dotenv
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,8 @@ files:
|
|
136
136
|
- ".gitignore"
|
137
137
|
- ".rspec"
|
138
138
|
- ".rubocop.yml"
|
139
|
+
- ".solargraph.yml"
|
140
|
+
- ".vscode/settings.json"
|
139
141
|
- CHANGELOG.md
|
140
142
|
- Gemfile
|
141
143
|
- Gemfile.lock
|
@@ -149,10 +151,14 @@ files:
|
|
149
151
|
- lib/bitnob/errors.rb
|
150
152
|
- lib/bitnob/modules/base_endpoints.rb
|
151
153
|
- lib/bitnob/objects/base/base.rb
|
154
|
+
- lib/bitnob/objects/checkout.rb
|
152
155
|
- lib/bitnob/objects/customer.rb
|
153
156
|
- lib/bitnob/objects/lightning.rb
|
154
157
|
- lib/bitnob/objects/onchain.rb
|
158
|
+
- lib/bitnob/objects/swap.rb
|
159
|
+
- lib/bitnob/objects/usdc.rb
|
155
160
|
- lib/bitnob/objects/utils.rb
|
161
|
+
- lib/bitnob/objects/virtual_cards.rb
|
156
162
|
- lib/bitnob/objects/wallets.rb
|
157
163
|
- lib/bitnob/version.rb
|
158
164
|
homepage: https://github.com/bitnob/bitnob_ruby_SDK
|
@@ -177,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
183
|
- !ruby/object:Gem::Version
|
178
184
|
version: '0'
|
179
185
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
186
|
+
rubygems_version: 3.3.7
|
181
187
|
signing_key:
|
182
188
|
specification_version: 4
|
183
189
|
summary: Bitnob gem for Ruby/Rails
|