paddle 2.1.0 → 2.1.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: fa102f9ad5b6adcf43a522ef2fd512d16e8493b186aa8129c5c6014751fa4274
4
- data.tar.gz: 8d13d5a6cd7420bad3bca2f38057327ac44392db4022dac8edbc013cb1470091
3
+ metadata.gz: c3b202300a613f8c4d1af151903c225f725c29e0457746d9bab2cf8c95d19d56
4
+ data.tar.gz: 0ae818794c9d212e744c91a23892c9ffbb378bc333fc659fd51f75f8c2537aec
5
5
  SHA512:
6
- metadata.gz: 2fdbf156519a8bce53914f2cf034b224a8249499029c773d7f7f167433252da2f90e733773ac0dcb9ff1b2314271b6dd7f22bfdddfe7acbc41e6772b6b71c508
7
- data.tar.gz: 1af00167e992c18f7af0110ebc66540dd0b7b1928ba3db77e69dd87c79a3f2505c1d66153447dce34f161b6c8c9eeb4317312e0531dd0a862eeb1806a2735240
6
+ metadata.gz: 8e153e5b7116826cba567a00d73c9a3dbf86996f1d4fedf25d005a759d70e7f8e1e7458d45b7946006c82e350da63db57a6af4b86eb23a629a5597102f4f8ee7
7
+ data.tar.gz: 98156c3bc98bf3c15152a7457076514b9938aec353992fd97faa1673821a8b3886685b8c638d410e96ee44bb2a6d7668c4ea13660bec7fcc4076c2dabb0afc9a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paddle (2.1.0)
4
+ paddle (2.1.1)
5
5
  faraday (~> 2.0)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ module Paddle
9
9
  end
10
10
 
11
11
  def create(email:, **params)
12
- attrs = {email: email}
12
+ attrs = {email: email.gsub(/\s+/, "")}
13
13
  response = Client.post_request("customers", body: attrs.merge(params))
14
14
  Customer.new(response.body["data"])
15
15
  end
@@ -16,7 +16,7 @@ module Paddle
16
16
 
17
17
  def get_transaction(id:)
18
18
  response = Client.get_request("subscriptions/#{id}/update-payment-method-transaction")
19
- Subscription.new(response.body["data"])
19
+ Transaction.new(response.body["data"])
20
20
  end
21
21
 
22
22
  def preview(id:, **params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paddle
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-30 00:00:00.000000000 Z
11
+ date: 2023-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
- description:
27
+ description:
28
28
  email:
29
29
  - dean@deanpcmad.com
30
30
  executables: []
@@ -92,7 +92,7 @@ licenses: []
92
92
  metadata:
93
93
  homepage_uri: https://github.com/deanpcmad/paddle
94
94
  source_code_uri: https://github.com/deanpcmad/paddle
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
@@ -107,8 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.4.18
111
- signing_key:
110
+ rubygems_version: 3.4.10
111
+ signing_key:
112
112
  specification_version: 4
113
113
  summary: Ruby library for the Paddle Billing & Classic APIs
114
114
  test_files: []