bwapi 10.0.0.pre.489 → 10.0.0.pre.493
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGRhMTMyYjI5ODhjMjYwNTc3NTJmOTFjNjAwOGZjODEyNDNkZTU4OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzYxMzNhYTA1ZTJlNTBlMTkyM2ZiOWZjMzYzMzMzZjU4Yjc4ZTgyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGY3YTM3NjZiNjg5OGJjN2RjZjk5OTJjMGFmZWE5ODU1NTBjZjgzOGY2Y2Jj
|
10
|
+
YTRhMWUxZWVkOTk4MzBmNzBlODRhMGQ5YWFjZGMzYWQwOTMyNGJiNTNlMzU2
|
11
|
+
MTg3OWUwYmFjNmEwNjBjYjBiNDYzODAzYjY2Y2FiZDY2YTBhN2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDY4YWQ3MTMzMDU1NWJjNGZkYmQ0MjcwMzMyYjJkMTg0MzhjNDk5Njg2Nzc5
|
14
|
+
ZTJhNTA2ZWJlOWY0ZGY3ZmRjYWU3N2M0MGUwMGYzYjNiNDg3MjI0NDA0NWEz
|
15
|
+
OGVmZGI2ZmY3N2Y4MjgzNTlmYzdhZDZhNGI5NzI4ZWJhZTgxY2E=
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'bwapi/client/brandwatch/become'
|
2
2
|
require 'bwapi/client/brandwatch/clients'
|
3
|
+
require 'bwapi/client/brandwatch/price_structures'
|
3
4
|
|
4
5
|
module BWAPI
|
5
6
|
class Client
|
@@ -26,6 +27,7 @@ module BWAPI
|
|
26
27
|
|
27
28
|
include BWAPI::Client::Brandwatch::Become
|
28
29
|
include BWAPI::Client::Brandwatch::Clients
|
30
|
+
include BWAPI::Client::Brandwatch::PriceStructures
|
29
31
|
end
|
30
32
|
end
|
31
33
|
end
|
@@ -8,8 +8,6 @@ module BWAPI
|
|
8
8
|
module Clients
|
9
9
|
# Get specific clients
|
10
10
|
#
|
11
|
-
# @note must be a super admin user
|
12
|
-
#
|
13
11
|
# @param opts [Hash] options Hash of parameters
|
14
12
|
# @options opts [String] nameContains Client name search (case insensitive)
|
15
13
|
# @return [Hash] List of filtered clients
|
@@ -19,8 +17,6 @@ module BWAPI
|
|
19
17
|
|
20
18
|
# Create a new parent client
|
21
19
|
#
|
22
|
-
# @note must be a super admin user
|
23
|
-
#
|
24
20
|
# @param opts [Hash] options Hash of parameters
|
25
21
|
# @option opts [String] address1 Address line one of the client
|
26
22
|
# @option opts [String] address2 Address line two of the client
|
@@ -56,8 +52,6 @@ module BWAPI
|
|
56
52
|
|
57
53
|
# Get specific client
|
58
54
|
#
|
59
|
-
# @note must be a super admin user
|
60
|
-
#
|
61
55
|
# @param client_id [Integer] Id of the client
|
62
56
|
# @return [Hash] Specific client
|
63
57
|
def brandwatch_get_client(client_id)
|
@@ -66,8 +60,6 @@ module BWAPI
|
|
66
60
|
|
67
61
|
# Update an existing parent client
|
68
62
|
#
|
69
|
-
# @note must be a super admin user
|
70
|
-
#
|
71
63
|
# @param client_id [Integer] Id of the client
|
72
64
|
# @param opts [Hash] options Hash of parameters
|
73
65
|
# @option opts [String] address1 Address line one of the client
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
# PriceStructures module for brandwatch/pricestructures endpoint
|
5
|
+
module PriceStructures
|
6
|
+
# Show available price structures
|
7
|
+
#
|
8
|
+
# @return [Array] List of all price structures
|
9
|
+
def get_price_structures
|
10
|
+
get 'brandwatch/pricestructures'
|
11
|
+
end
|
12
|
+
|
13
|
+
# Create a new price structure
|
14
|
+
#
|
15
|
+
# @param opts [Hash] options Hash of parameters
|
16
|
+
# @option opts [Integer] autoDeleteDays Auto delete days of the price structure
|
17
|
+
# @option opts [Boolean] autoUpgrade If the price structure can be auto upgraded
|
18
|
+
# @option opts [Integer] availableBackfillMonths Available backfill months of the price structure
|
19
|
+
# @option opts [Integer] backfillMentionLimit Backfill mention limit of the price structure
|
20
|
+
# @option opts [String] backfillMentionLimitPeriod Backfill mention limit period of the price structure
|
21
|
+
# @option opts [String] currencyCode Currency code of the price structure
|
22
|
+
# @option opts [String] description Description of the price structure
|
23
|
+
# @option opts [Boolean] forWebSignUp If the price structure is for web sign up
|
24
|
+
# @option opts [Integer] id Id of the price structure
|
25
|
+
# @option opts [String] mentionLimitPeriod Mention limit period of the price structure
|
26
|
+
# @option opts [String] name Name of the price structure
|
27
|
+
# @option opts [String] notes Notes for the price structure
|
28
|
+
# @option opts [Array] priceStructureLines Price structure lines belonging to the price structure
|
29
|
+
# @option opts [Boolean] resellerAllowed If the price structure is reseller allowed
|
30
|
+
# @return [Hash] Newly created price structure
|
31
|
+
def create_price_structure(opts)
|
32
|
+
post 'brandwatch/pricestructures', opts
|
33
|
+
end
|
34
|
+
|
35
|
+
# Delete a price structure
|
36
|
+
#
|
37
|
+
# @param price_structure_id [Integer] Id of the price structure
|
38
|
+
# @return [Hash] Deleted price structure
|
39
|
+
def delete_price_structure(price_structure_id)
|
40
|
+
delete "brandwatch/pricestructures/#{price_structure_id}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.0.pre.
|
4
|
+
version: 10.0.0.pre.493
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- lib/bwapi/client/brandwatch/clients.rb
|
156
156
|
- lib/bwapi/client/brandwatch/clients/modules.rb
|
157
157
|
- lib/bwapi/client/brandwatch/clients/users.rb
|
158
|
+
- lib/bwapi/client/brandwatch/price_structures.rb
|
158
159
|
- lib/bwapi/client/client.rb
|
159
160
|
- lib/bwapi/client/command_center.rb
|
160
161
|
- lib/bwapi/client/command_center/client.rb
|