voucherify 2.2.0 → 2.3.0

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
  SHA1:
3
- metadata.gz: cf4448458effba7b2db364926963cf46991fc1da
4
- data.tar.gz: 7ccfcbc9d1a80b421c85db8dc98d5adc3c224702
3
+ metadata.gz: 51dddce2fbe8e44af38da1b950021e2a752b08bb
4
+ data.tar.gz: 7b05e162ef18d772b3cf91462b1d7c53802493c2
5
5
  SHA512:
6
- metadata.gz: 1534b1447b11309d7ece684d695b829e51d90381c3cce2fe1db7aff9b3cc2564167499f1ca9d7f5b46aeafdb3033a76f349b807b509da734eebde30fd2829586
7
- data.tar.gz: b5d172128e27f9bd67db5c7bc7bb0f5e594eafed1c796566b83acc357ef6a4bda7100b177b89b101eed5bd90a0f1371ec2dfa0641157a9e6348617aba1bda989
6
+ metadata.gz: d6707f69ab862bf9435036206dd22fe2ee3b707d84e0ec33daff792cde9f5d75b44592fd67a41987cf9ae4e81389714039fe76da8b73689ef7f41ed8be72d292
7
+ data.tar.gz: 27c8835ecccb55b94089495ec7f6e4e5823c3c0cf5d455beea935e39680407fb377e161fcf36172ed3f2d113c014958ce36f9bb696c694ee4d158ae6ffbb4d4f
data/README.md CHANGED
@@ -198,6 +198,8 @@ Methods are provided within `voucherify.distributions.*` namespace.
198
198
  - [Create Export](#create-export)
199
199
  - [Get Export](#get-export)
200
200
  - [Delete Export](#delete-export)
201
+ - [List Publications](#list-publications)
202
+ - [Create Publication](#create-publication)
201
203
 
202
204
  #### [Publish Vouchers]
203
205
  ```ruby
@@ -215,7 +217,14 @@ voucherify.distributions.get_export(export_id)
215
217
  ```ruby
216
218
  voucherify.distributions.delete_export(export_id)
217
219
  ```
218
-
220
+ #### [List Publications]
221
+ ```ruby
222
+ voucherify.distributions.list_publications(params)
223
+ ```
224
+ #### [Create Publication]
225
+ ```ruby
226
+ voucherify.distributions.create_publication(publication)
227
+ ```
219
228
  ---
220
229
 
221
230
  ### Validations API
@@ -727,6 +736,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
727
736
  Bug reports and pull requests are welcome on GitHub at https://github.com/rspective/voucherify-ruby-sdk.
728
737
 
729
738
  ## Changelog
739
+ - **2019-05-09** - `2.3.0` - Added `create_publication` method in Distributions module..
730
740
  - **2019-04-23** - `2.2.0` - Loyalties API, Rewards API, Orders API.
731
741
  - **2019-02-19** - `2.1.1` - Treat `referral` as optional in custom events. Added new method for custom event tracking.
732
742
  - **2019-02-19** - `2.1.0` - Handle `referral` in custom events tracking.
@@ -780,6 +790,8 @@ The gem is available as open source under the terms of the [MIT License](https:/
780
790
  [Create Export]: https://docs.voucherify.io/reference?utm_source=github&utm_medium=sdk&utm_campaign=acq#create-export
781
791
  [Get Export]: https://docs.voucherify.io/reference?utm_source=github&utm_medium=sdk&utm_campaign=acq#get-export
782
792
  [Delete Export]: https://docs.voucherify.io/reference?utm_source=github&utm_medium=sdk&utm_campaign=acq#delete-export
793
+ [List Publications]: https://docs.voucherify.io/reference?utm_source=github&utm_medium=sdk&utm_campaign=acq#list-publications
794
+ [Create Publication]: https://docs.voucherify.io/reference?utm_source=github&utm_medium=sdk&utm_campaign=acq#create-publication
783
795
 
784
796
  [Validate Voucher]: https://docs.voucherify.io/reference?utm_source=github&utm_medium=sdk&utm_campaign=acq#validate-voucher
785
797
 
@@ -35,7 +35,11 @@ module Voucherify
35
35
  def list_publications(params = {})
36
36
  @client.get('/publications', params)
37
37
  end
38
+
39
+ def create_publication(params)
40
+ @client.post('/publications', params.to_json)
41
+ end
38
42
 
39
43
  end
40
44
  end
41
- end
45
+ end
@@ -1,3 +1,3 @@
1
1
  module Voucherify
2
- VERSION = '2.2.0'
2
+ VERSION = '2.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voucherify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawelrychlik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake