gameball 2.1.1 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameball/version.rb +1 -1
- data/lib/gameball.rb +1 -1
- data/test.rb +46 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ba875c89a38d869e418a5633e7971aa0af4bcb549c7805f0ccf3a87f975b4be
|
4
|
+
data.tar.gz: 54e13a38d1a96b88ce4d593e1825d83b3b75523427447cc3d22c100b4d2a4fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e8ec8fa126bbbf8b96520af518397af909be3302ea3c0b09a7a8e415662da09478564de793d0a57fa94b19b9ae7c59c3354d961f7a0956a34b61a4896c5ff5
|
7
|
+
data.tar.gz: 97a487d56517f4e84046ded950ae2efe5559e8ba612333246c31e43ebfd1dc17bc34db6605e18b3afb460728ca94311e28e7dbd84ad044d3e102dba6227dfd59
|
data/lib/gameball/version.rb
CHANGED
data/lib/gameball.rb
CHANGED
@@ -22,7 +22,7 @@ require_relative "./gameball/models/configurations"
|
|
22
22
|
require_relative "./gameball/exceptions/gameballException"
|
23
23
|
|
24
24
|
module Gameball
|
25
|
-
@api_base = "https://api.gameball.
|
25
|
+
@api_base = "https://api.dev.gameball.app/"
|
26
26
|
@max_retries = 1
|
27
27
|
@read_timeout = 60
|
28
28
|
@keep_alive_timeout = 30
|
data/test.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
require "./lib/gameball"
|
2
|
+
Gameball.api_key="184be486ad124379a8d1bf6dbe59cd8a"
|
3
|
+
Gameball.transaction_key="5cd1cb2bef9f475c85e8d2a6edd85895"
|
4
|
+
Gameball.api_version="v3.0"
|
5
|
+
res=Gameball::Order.place_order({
|
6
|
+
playerUniqueId:"player45126",
|
7
|
+
orderId: "6253e0123b",
|
8
|
+
totalPrice: "100",
|
9
|
+
totalPaid: "90",
|
10
|
+
totalDiscount: "0",
|
11
|
+
totalShipping: "0",
|
12
|
+
totalTax: "0",
|
13
|
+
lineItems:[
|
14
|
+
{
|
15
|
+
productId:"197765",
|
16
|
+
tag: ["VIP"],
|
17
|
+
category: [
|
18
|
+
"natural",
|
19
|
+
"cosmetics"
|
20
|
+
],
|
21
|
+
weight: "20",
|
22
|
+
vendor: "nike",
|
23
|
+
collection: ["14313", "4343"],
|
24
|
+
},
|
25
|
+
{
|
26
|
+
productId:"875511",
|
27
|
+
title: "XPS-15s",
|
28
|
+
category: [
|
29
|
+
"electronics"
|
30
|
+
],
|
31
|
+
vendor: "Dell"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
discountCodes: [
|
35
|
+
"AU7X-8Q7L",
|
36
|
+
"BY3V-22GK"
|
37
|
+
],
|
38
|
+
extra: {
|
39
|
+
paymentMethod: "credit card",
|
40
|
+
billingAddress: "Alabama"
|
41
|
+
},
|
42
|
+
redeemedAmount: 20,
|
43
|
+
holdReference: nil,
|
44
|
+
guest: false
|
45
|
+
})
|
46
|
+
puts res.body
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alsouidan
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/gameball/utils/request.rb
|
77
77
|
- lib/gameball/utils/validation.rb
|
78
78
|
- lib/gameball/version.rb
|
79
|
+
- test.rb
|
79
80
|
homepage: https://www.gameball.co/
|
80
81
|
licenses:
|
81
82
|
- MIT
|