zype 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zype/models/plans.rb +25 -0
- data/lib/zype/models/subscriptions.rb +7 -0
- data/lib/zype/models/transactions.rb +7 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4afccc340e62d6947fec19080637ec27f6f501a7a96bd0c84dc20e1716a7769
|
4
|
+
data.tar.gz: 4db536c7d6e31f47f919ac694eb16f190a724c79de8e904c8d092473d42e7a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65698edb8e1682f56f5022768e6645ea761e9fc5ba89c16a1aa564775946b258f513456e34fa441014e08f229f320fda121b9978c66fc0ae25eee0063b1c2228
|
7
|
+
data.tar.gz: 2d31a179e13e46eb12b95d21cf654398b98781f85249ff6100727b7373e6c5c10efc9b7c74ba11c0c42cabd2c19e6739cd1e2085079b96c6397a71b0960645b2
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Zype
|
2
|
+
# https://docs.zype.com/v1.0/reference#plans
|
3
|
+
#
|
4
|
+
# @since 0.16.0
|
5
|
+
class Plans < Zype::BaseModel
|
6
|
+
# Only for tiered subscription plans.
|
7
|
+
# Read more here https://docs.zype.com/v1.0/reference#addplaylists-1
|
8
|
+
#
|
9
|
+
# @param id [String] ID of the plan
|
10
|
+
# @param params [Hash] should be a hash with playlist_ids as a key
|
11
|
+
# return [Hash]
|
12
|
+
def add_playlists(id:, params:)
|
13
|
+
client.execute(method: :put, path: "/#{path}/#{id}/add_playlists", params: params)
|
14
|
+
end
|
15
|
+
|
16
|
+
# This will remove playlists from the specified plan
|
17
|
+
#
|
18
|
+
# @param id [String] ID of the plan
|
19
|
+
# @param params [Hash] should be a hash with playlist_ids as a key
|
20
|
+
# return [Hash]
|
21
|
+
def remove_playlists(id:, params:)
|
22
|
+
client.execute(method: :put, path: "/#{path}/#{id}/remove_playlists", params: params)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zype
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -80,14 +80,17 @@ files:
|
|
80
80
|
- lib/zype/models/live_manifests.rb
|
81
81
|
- lib/zype/models/manifests.rb
|
82
82
|
- lib/zype/models/pin.rb
|
83
|
+
- lib/zype/models/plans.rb
|
83
84
|
- lib/zype/models/players.rb
|
84
85
|
- lib/zype/models/playlist_content_rules.rb
|
85
86
|
- lib/zype/models/playlist_entitlements.rb
|
86
87
|
- lib/zype/models/playlists.rb
|
87
88
|
- lib/zype/models/program_guides.rb
|
88
89
|
- lib/zype/models/segments.rb
|
90
|
+
- lib/zype/models/subscriptions.rb
|
89
91
|
- lib/zype/models/subtitle_playlists.rb
|
90
92
|
- lib/zype/models/subtitles.rb
|
93
|
+
- lib/zype/models/transactions.rb
|
91
94
|
- lib/zype/models/users.rb
|
92
95
|
- lib/zype/models/video_content_rules.rb
|
93
96
|
- lib/zype/models/video_entitlements.rb
|