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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfd74e1b4babbc69fe5972ac45e485d71bb7c15bd92076ab91296b2537aa8b46
4
- data.tar.gz: a26a1472bae3ad9bf15929edf6bdedcd993b89dc3e34827b28afe1ecc1869826
3
+ metadata.gz: 9ba875c89a38d869e418a5633e7971aa0af4bcb549c7805f0ccf3a87f975b4be
4
+ data.tar.gz: 54e13a38d1a96b88ce4d593e1825d83b3b75523427447cc3d22c100b4d2a4fba
5
5
  SHA512:
6
- metadata.gz: bc7d36cfb2f6813e7d03c87c480e79804d087739c6b19df694644487b98deb76ac984ec81e12bebb70caee0ea77d9e0af5fc117a90ed624d5335145697e14e12
7
- data.tar.gz: 15ccd652bbd32fddf34322b55e46074eb8beca1b12fb527604c65bf50125f8ace4fd4e02bcc2137ecebfe0262f32685e02ce6c54b04e59a669a7f54ddfd835aa
6
+ metadata.gz: d6e8ec8fa126bbbf8b96520af518397af909be3302ea3c0b09a7a8e415662da09478564de793d0a57fa94b19b9ae7c59c3354d961f7a0956a34b61a4896c5ff5
7
+ data.tar.gz: 97a487d56517f4e84046ded950ae2efe5559e8ba612333246c31e43ebfd1dc17bc34db6605e18b3afb460728ca94311e28e7dbd84ad044d3e102dba6227dfd59
@@ -1,3 +1,3 @@
1
1
  module Gameball
2
- VERSION = "2.1.1" # Version of the SDK
2
+ VERSION = "2.1.3" # Version of the SDK
3
3
  end
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.co/"
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.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