paddle 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/lib/paddle/models/portal_session.rb +10 -0
- data/lib/paddle/version.rb +1 -1
- data/lib/paddle.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30077dce563178db3e9407b4ef168bb1a24aabb324370a00ea37730eb926dbe6
|
4
|
+
data.tar.gz: 5ae2b0845d75b6fdcc001aadcf204c879d7596c13ab544f34d42192d5984cb04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f4ed6ef5a1be40bb0c447c22b6ebe27f8527c9b69f0d7ca2ea6f17fd52470d8581f6b6039d7f245a66a936219bce1e4b97a97556042da95c9d2d57930169fdf
|
7
|
+
data.tar.gz: 8eafdbd49ed16fe04f0f815e99889578f0e6045115ede50c3b17aaf21203110a5f9349b8e8aeeced3e4b8145e443ca481bf6c11c810e9e055bab771ed1c58e10
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -336,6 +336,16 @@ Paddle::Subscription.cancel(id: "sub_abc123", effective_from: "immediately")
|
|
336
336
|
Paddle::Subscription.activate(id: "sub_abc123")
|
337
337
|
```
|
338
338
|
|
339
|
+
### Customer Portal Sessions
|
340
|
+
|
341
|
+
```ruby
|
342
|
+
# Create a Customer Portal Session
|
343
|
+
# https://developer.paddle.com/api-reference/customer-portals/create-customer-portal-session
|
344
|
+
Paddle::PortalSession.create customer: "ctm_abc123"
|
345
|
+
Paddle::PortalSession.create customer: "ctm_abc123", subscription_ids: ["sub_abc123"]
|
346
|
+
```
|
347
|
+
|
348
|
+
|
339
349
|
### Adjustments
|
340
350
|
|
341
351
|
```ruby
|
data/lib/paddle/version.rb
CHANGED
data/lib/paddle.rb
CHANGED
@@ -47,6 +47,7 @@ module Paddle
|
|
47
47
|
autoload :Simulation, "paddle/models/simulation"
|
48
48
|
autoload :SimulationRun, "paddle/models/simulation_run"
|
49
49
|
autoload :SimulationRunEvent, "paddle/models/simulation_run_event"
|
50
|
+
autoload :PortalSession, "paddle/models/portal_session"
|
50
51
|
|
51
52
|
autoload :NotificationLog, "paddle/models/notification_log"
|
52
53
|
autoload :CreditBalance, "paddle/models/credit_balance"
|
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.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dean Perry
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/paddle/models/notification.rb
|
98
98
|
- lib/paddle/models/notification_log.rb
|
99
99
|
- lib/paddle/models/notification_setting.rb
|
100
|
+
- lib/paddle/models/portal_session.rb
|
100
101
|
- lib/paddle/models/price.rb
|
101
102
|
- lib/paddle/models/pricing_preview.rb
|
102
103
|
- lib/paddle/models/product.rb
|
@@ -130,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
131
|
- !ruby/object:Gem::Version
|
131
132
|
version: '0'
|
132
133
|
requirements: []
|
133
|
-
rubygems_version: 3.5.
|
134
|
+
rubygems_version: 3.5.16
|
134
135
|
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Ruby library for the Paddle Billing & Classic APIs
|