wegift-ruby-client 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b99b9b8ebdc55e4306f7bdf4d54d4b94dd2c06e2
4
- data.tar.gz: 76e6d3e561d47944907419e036702c0ff0eec0e8
3
+ metadata.gz: 8ed7ad3513b66fd4b959e48d5a8d0c93c9a096c4
4
+ data.tar.gz: 54d8eb73d7ef875eebe8c3335ccd3eded7f4bc75
5
5
  SHA512:
6
- metadata.gz: 8771be16cf526b02af9030a4c61ba93cfc70d329922afb2d00086bbb776a7a812d983d96417ffc1af76da5e85949de6a4958e1bd35541bb3a94faaf012151c91
7
- data.tar.gz: aa6d0d513da1663d9be3f939abc4effacc2e846ff7a1df55f5656ce0a7cb3a3cfbdd4b0ee68a91c581f9756e5a5d61e832e9415b8c0a4e817d44e38753adff95
6
+ metadata.gz: b085ebbc02ed2a2eac820d15b41896065cb35e00942af77ce57c1d0c4c8df2ab014ba6ef496b40d00772d0f2a28b5d154ef8e274fe0087102501c8acdf4f56b2
7
+ data.tar.gz: b0ae078473bd23703535f455b43501bdc37ac54144e1d5af27b83b2710d78d2cc4ad02c1961f015457967c7a4ba15423401aa90d15bb7682d0d7de117852ca30
data/README.md CHANGED
@@ -36,9 +36,16 @@ client = Wegift::Client.new(
36
36
  # with all available products
37
37
  products = client.products
38
38
 
39
+ # or just a single one
40
+ product = client.products('PROD-ID')
41
+
42
+ # and data
43
+ product.description
44
+ product.redeem_instructions_html
45
+
39
46
  # post a simple order
40
47
  order = client.order(
41
- :product_code => products.first.code,
48
+ :product_code => product.code,
42
49
  :currency_code => 'USD',
43
50
  :amount => '42.00',
44
51
  :delivery_method => 'direct', # default
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "wegift/ruby/client"
4
+ require "wegift"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -8,7 +8,11 @@ class Wegift::Product < Wegift::Response
8
8
  # response/success
9
9
  attr_accessor :code, :name, :description, :currency_code, :availability,
10
10
  :denomination_type, :minimum_value, :maximum_value,
11
- :card_image_url, :terms_and_conditions_url, :expiry_date_policy
11
+ :card_image_url, :expiry_date_policy,
12
+ :redeem_instructions_html,
13
+ :terms_and_conditions_html,
14
+ :terms_and_conditions_url,
15
+ :terms_and_conditions_pdf_url
12
16
 
13
17
  def initialize(params = {})
14
18
  super
@@ -1,4 +1,4 @@
1
1
  module Wegift
2
2
  # api-version.lib-build
3
- VERSION = '1.4.5'
3
+ VERSION = '1.4.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wegift-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaas Endrikat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-09 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday