gameball 2.1.3 → 2.1.4
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
- metadata +1 -2
- data/test.rb +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 945ece0f84627850b3f6e835735255a844299842aac4d14f1f1d2af138c0e5d3
|
4
|
+
data.tar.gz: 15f2ed41e887acdb91df9fcc8d4caf863ed6cf0267107f2935d2c27cfea166a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f352c0c476f497853d19e01b29f5e8a53144bd948a348ec9114b0155e208f12c809943a7378bb3a4ed6d81e230a863202255f2a52c726fe87b0f37a04b429d
|
7
|
+
data.tar.gz: 42836bcb25892e4c15ebecae65b3db9b7e425c854afd01c82af0a22f99779163b2e4427903518f2be4855e41bb1956f81cf5eccfebf2ef8ae8d7fa3838380618
|
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.
|
25
|
+
@api_base = "https://api.gameball.co/"
|
26
26
|
@max_retries = 1
|
27
27
|
@read_timeout = 60
|
28
28
|
@keep_alive_timeout = 30
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alsouidan
|
@@ -76,7 +76,6 @@ files:
|
|
76
76
|
- lib/gameball/utils/request.rb
|
77
77
|
- lib/gameball/utils/validation.rb
|
78
78
|
- lib/gameball/version.rb
|
79
|
-
- test.rb
|
80
79
|
homepage: https://www.gameball.co/
|
81
80
|
licenses:
|
82
81
|
- MIT
|
data/test.rb
DELETED
@@ -1,46 +0,0 @@
|
|
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
|