recurly 2.16.0 → 2.16.1

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: e239381f1946c2933db35636b8c7ee25c5ad51c4d39f1514c1e831dcc548cd79
4
- data.tar.gz: 650ec4f07db78242d1bdac62eccb2b564ef00b2c71c97164561dce7dd0db6129
3
+ metadata.gz: 81d0bdd694148de478169f53f0002f07cd87cf6c32a99c7ef4aaa30796068a47
4
+ data.tar.gz: e4272fa08247d00936c8413c7df6a32e02d571ceda3ca01d1e2332ce5114315c
5
5
  SHA512:
6
- metadata.gz: 21ff58a6c85dd74286cb0c879294d74bc90efbb94e764415e2d55452bc56b52190d3f1ea2df93949ecd00e9be03f802943c90253bebd405c1dd7630f2af6760d
7
- data.tar.gz: 38cb19db071c857a910bb8b41f3a5ff7fbdceae6467d8e9935d339f48601f4b859042d07d95caf201dc2bab7b30782a0a6e508a7c7b250856e31fca62c15fd52
6
+ metadata.gz: 510f1deb2f6003b0103e3804140976b868b2bbc467133e6efb08a0ad68f0db35351e775266f968788d3eceeda3703a51e133f3b7caf2532382d939a38a527e8f
7
+ data.tar.gz: cc165ad1315afa96d9bcdef5a7957fa8739630ae29eca942aa5adfdc4a448fb53d9ea32fc026fa70a2cf3775eecbcf15d153f9e1be7bb6302768e9ae9bdbcbb5
data/README.md CHANGED
@@ -14,7 +14,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
14
14
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
15
15
 
16
16
  ``` ruby
17
- gem 'recurly', '~> 2.16.0'
17
+ gem 'recurly', '~> 2.16.1'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -31,6 +31,8 @@ module Recurly
31
31
  geo_code
32
32
  updated_at
33
33
  external_hpp_type
34
+ gateway_token
35
+ gateway_code
34
36
  ) | CREDIT_CARD_ATTRIBUTES | BANK_ACCOUNT_ATTRIBUTES | AMAZON_ATTRIBUTES | PAYPAL_ATTRIBUTES | ROKU_ATTRIBUTES
35
37
 
36
38
  # @return ["credit_card", "paypal", "amazon", "bank_account", "roku", nil] The type of billing info.
@@ -1,8 +1,8 @@
1
1
  module Recurly
2
- # The Purchase object works a slightly differently than the rest of the models.
2
+ # The Purchase object works in a slightly different way than the rest of the models.
3
3
  # You build up the purchase data into an object then pass to either:
4
4
  # {Purchase.invoice!} or {Purchase.preview!} and it will
5
- # return an {Invoice}.
5
+ # return an {InvoiceCollection}.
6
6
  #
7
7
  # You can build your purchase object with a new account or an existing account.
8
8
  # For an existing account, you just need an account_code:
@@ -18,7 +18,7 @@ module Recurly
18
18
  # For a new account, you can pass in {Account} data, {BillingInfo} data, etc
19
19
  # in the same way you would when creating a {Subscription} with a new account.
20
20
  #
21
- # You can also pass in adjustments and invoicing data to be passed to the invoice.
21
+ # You can also pass in adjustments and invoicing data to be added to the invoice.
22
22
  #
23
23
  # There are multiple ways to set the shipping addresses:
24
24
  # 1. Use {Purchase#shipping_address_id} If you want to apply an existing shipping
@@ -72,7 +72,7 @@ module Recurly
72
72
  # revenue_schedule_type: :at_invoice
73
73
  # },
74
74
  # {
75
- # product_code: 'product_2'
75
+ # product_code: 'product_2',
76
76
  # unit_amount_in_cents: 3000,
77
77
  # quantity: 5,
78
78
  # revenue_schedule_type: :at_invoice
@@ -81,14 +81,15 @@ module Recurly
81
81
  # )
82
82
  #
83
83
  # begin
84
- # preview_invoice = Recurly::Purchase.preview!(purchase)
85
- # puts preview_invoice.inspect
84
+ # preview_collection = Recurly::Purchase.preview!(purchase)
85
+ # puts preview_collection.inspect
86
86
  # rescue Recurly::Resource::Invalid => e
87
87
  # # Invalid data
88
88
  # end
89
89
  #
90
90
  # begin
91
- # invoice = Recurly::Purchase.invoice!(purchase)
91
+ # invoice_collection = Recurly::Purchase.invoice!(purchase)
92
+ # puts invoice_collection.inspect
92
93
  # rescue Recurly::Resource::Invalid => e
93
94
  # # Invalid data
94
95
  # rescue Recurly::Transaction::DeclinedError => e
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 16
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-26 00:00:00.000000000 Z
11
+ date: 2018-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -152,14 +152,12 @@ dependencies:
152
152
  version: '0'
153
153
  description: 'An API client library for Recurly: http://recurly.com'
154
154
  email: support@recurly.com
155
- executables:
156
- - recurly
155
+ executables: []
157
156
  extensions: []
158
157
  extra_rdoc_files:
159
158
  - README.md
160
159
  files:
161
160
  - README.md
162
- - bin/recurly
163
161
  - lib/recurly.rb
164
162
  - lib/recurly/account.rb
165
163
  - lib/recurly/account_balance.rb
data/bin/recurly DELETED
@@ -1,87 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
-
4
- module CLI
5
- def version
6
- require 'recurly/version'
7
- "Recurly v#{Recurly::Version::VERSION}"
8
- end
9
-
10
- def clear
11
- print `clear`
12
- end
13
- end
14
- include CLI
15
-
16
- require 'optparse'
17
- options = {}
18
- OptionParser.new do |opts|
19
- opts.banner = 'Usage: recurly [options] -- [irb options]'
20
-
21
- opts.on '-s', '--subdomain [subdomain]', 'Your subdomain' do |subdomain|
22
- options[:subdomain] = subdomain
23
- end
24
-
25
- opts.on '-k', '--api-key [api key]', 'Your API key' do |key|
26
- options[:api_key] = key
27
- end
28
-
29
- opts.on '-K', '--private-key [private key]', 'Your Recurly.js private key' do |key|
30
- options[:private_key] = key
31
- end
32
-
33
- opts.on '-v', '--verbose', 'Show full request/response log' do |verbose|
34
- options[:verbose] = verbose
35
- end
36
-
37
- opts.on(
38
- '-e', '--exec [code]', 'Execute a line of code before the session'
39
- ) do |line|
40
- options[:exec] = line
41
- end
42
-
43
- opts.separator nil
44
-
45
- opts.on '-h', '--help', 'Display this screen' do
46
- puts opts
47
- exit
48
- end
49
-
50
- opts.on '--version', 'The current version' do
51
- puts version
52
- exit
53
- end
54
- end.parse!
55
-
56
- require 'recurly/all'
57
- Recurly.subdomain = options[:subdomain] || ENV['RECURLY_SUBDOMAIN']
58
- Recurly.api_key = options[:api_key] || ENV['RECURLY_API_KEY']
59
- Recurly.js.private_key = options[:private_key] || ENV['RECURLY_JS_PRIVATE_KEY']
60
- include Recurly
61
-
62
- require 'logger'
63
- Recurly.logger = Logger.new STDOUT
64
- Recurly.logger.level = options[:verbose] ? Logger::DEBUG : Logger::INFO
65
-
66
- require 'irb'
67
- require 'irb/completion'
68
-
69
- class << IRB
70
- alias old_setup setup
71
- def setup ap_path
72
- old_setup ap_path
73
- conf[:PROMPT][:RECURLY] = {
74
- :PROMPT_N => 'recurly> ',
75
- :PROMPT_I => 'recurly> ',
76
- :PROMPT_S => nil,
77
- :PROMPT_C => ' ?> ',
78
- :RETURN => " => %s\n"
79
- }
80
- conf[:PROMPT_MODE] = :RECURLY
81
- end
82
- end
83
-
84
- puts version
85
- eval options[:exec] if options[:exec]
86
- IRB.start $0
87
- exit!