giftbit-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -2
- data/lib/giftbit-rails.rb +1 -0
- data/lib/giftbit-rails/embedded.rb +12 -0
- data/lib/giftbit-rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eab81b5ab877372c19292ad1371949ca9e0eb3579612ec0823a26722c70fc29
|
4
|
+
data.tar.gz: 1997cae111060ac827712d33190e3308847cfe1f0ac8fd5831e44d02466c756e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f55bf27e4b56de362e9accace5d3bd1081e864efcd4ad0ba3cb06304bdca5185f83ec00a02a417e13ffa5b6d73f410a69609f89cf20275ae495d52a8e6040fd7
|
7
|
+
data.tar.gz: d2af1aaa83b95df5b2d3fbba914c40148b157163f6dea29d490fee1b2d4c0254d9267621eaf0bb34ef1f80ef30e84d98034b423659e1fb8c17f6a97460a8b64a
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ List all Brands
|
|
36
36
|
|
37
37
|
Retrieve Brand
|
38
38
|
|
39
|
-
response = Giftbit::Brand.
|
39
|
+
response = Giftbit::Brand.find(id: 'brand_code')
|
40
40
|
|
41
41
|
#### Region
|
42
42
|
|
@@ -81,6 +81,21 @@ Using uuid
|
|
81
81
|
|
82
82
|
response = Giftbit::Campaign.find(uuid: 'campaign_uuid')
|
83
83
|
|
84
|
+
#### Embedded
|
85
|
+
|
86
|
+
Create Embedded Gift (params can be found [here](https://www.giftbit.com/giftbitapi/#/reference/1/embedded/create-embedded-gift))
|
87
|
+
|
88
|
+
response = Giftbit::Embedded.create({
|
89
|
+
|
90
|
+
"contact": {
|
91
|
+
"firstname": "Perry",
|
92
|
+
"lastname": "Johnson",
|
93
|
+
"email": "pjohnson@giftbit.com"
|
94
|
+
},
|
95
|
+
"price_in_cents": 5000,
|
96
|
+
"brand_code": "itunesus",
|
97
|
+
"id": "clientProvidedGiftId_abc123"})
|
98
|
+
|
84
99
|
#### Funds
|
85
100
|
|
86
101
|
Retrieve funding information
|
@@ -131,7 +146,7 @@ Using uuid
|
|
131
146
|
|
132
147
|
## Contributing
|
133
148
|
|
134
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/fakhir-shad/giftbit
|
149
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/fakhir-shad/giftbit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
135
150
|
|
136
151
|
## License
|
137
152
|
|
data/lib/giftbit-rails.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: giftbit-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fakhir Shad
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/giftbit-rails.rb
|
74
74
|
- lib/giftbit-rails/brand.rb
|
75
75
|
- lib/giftbit-rails/campaign.rb
|
76
|
+
- lib/giftbit-rails/embedded.rb
|
76
77
|
- lib/giftbit-rails/error.rb
|
77
78
|
- lib/giftbit-rails/fund.rb
|
78
79
|
- lib/giftbit-rails/gift.rb
|