Skip to content

Commit

Permalink
chore: update lago-ruby-client to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
moxvallix committed Dec 13, 2023
1 parent 685c9b1 commit 9c1186e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PATH
remote: .
specs:
pay-lago (0.1.0)
lago-ruby-client (= 0.52.2.pre.beta)
lago-ruby-client (= 0.53.0.pre.beta)
pay (~> 6.8)

GEM
Expand Down Expand Up @@ -119,7 +119,7 @@ GEM
reline (>= 0.3.8)
json (2.6.3)
jwt (2.7.1)
lago-ruby-client (0.52.2.pre.beta)
lago-ruby-client (0.53.0.pre.beta)
jwt
openssl
language_server-protocol (3.17.0.3)
Expand Down
3 changes: 1 addition & 2 deletions lib/pay/lago/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def subscription(reload: false)

def cancel(**options)
customer_id = subscription.external_customer_id
encoded_id = URI.encode_www_form_component(processor_id)
response = Lago.client.subscriptions.destroy(encoded_id, options: options)
response = Lago.client.subscriptions.destroy(processor_id, options: options)
self.class.sync(customer_id, processor_id, object: response)
rescue ::Lago::Api::HttpError => e
raise Pay::Lago::Error, e
Expand Down
2 changes: 1 addition & 1 deletion pay-lago.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|

# Uncomment to register a new dependency of your gem
spec.add_dependency "pay", "~> 6.8"
spec.add_dependency "lago-ruby-client", "0.52.2-beta"
spec.add_dependency "lago-ruby-client", "0.53.0-beta"

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
Expand Down

0 comments on commit 9c1186e

Please sign in to comment.