subskribe_dev 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -12
- data/docs/AccountsApi.md +2 -2
- data/docs/AutomatedInvoiceRule.md +2 -2
- data/docs/BulkInvoiceRunItem.md +2 -2
- data/docs/BulkPaymentUploadData.md +3 -3
- data/docs/BulkPaymentUploadResult.md +1 -1
- data/docs/ChargeJson.md +2 -2
- data/docs/ERPApi.md +20 -20
- data/docs/EntitiesApi.md +172 -0
- data/docs/OrderLineItemJson.md +1 -0
- data/docs/OrderLineItemRequestJson.md +1 -0
- data/docs/PaginatedAccountsResponse.md +10 -0
- data/docs/PlanMetadataJson.md +8 -0
- data/docs/ProductCatalogApi.md +58 -0
- data/docs/RevenueRecognitionApi.md +20 -20
- data/docs/TaxJarIntegration.md +1 -1
- data/lib/subskribe_dev/api/accounts_api.rb +3 -3
- data/lib/subskribe_dev/api/entities_api.rb +158 -0
- data/lib/subskribe_dev/api/erp_api.rb +20 -20
- data/lib/subskribe_dev/api/product_catalog_api.rb +58 -0
- data/lib/subskribe_dev/api/revenue_recognition_api.rb +22 -22
- data/lib/subskribe_dev/models/automated_invoice_rule.rb +22 -22
- data/lib/subskribe_dev/models/bulk_invoice_run_item.rb +22 -22
- data/lib/subskribe_dev/models/bulk_payment_upload_data.rb +31 -31
- data/lib/subskribe_dev/models/bulk_payment_upload_result.rb +13 -13
- data/lib/subskribe_dev/models/charge_json.rb +19 -19
- data/lib/subskribe_dev/models/order_line_item_json.rb +10 -1
- data/lib/subskribe_dev/models/order_line_item_request_json.rb +10 -1
- data/lib/subskribe_dev/models/paginated_accounts_response.rb +204 -0
- data/lib/subskribe_dev/models/plan_metadata_json.rb +187 -0
- data/lib/subskribe_dev/models/tax_jar_integration.rb +10 -10
- data/lib/subskribe_dev/version.rb +1 -1
- data/lib/subskribe_dev.rb +2 -1
- data/spec/models/paginated_accounts_response_spec.rb +53 -0
- data/spec/models/plan_metadata_json_spec.rb +41 -0
- data/subskribe_dev.gemspec +4 -4
- metadata +195 -187
@@ -0,0 +1,204 @@
|
|
1
|
+
=begin
|
2
|
+
#Subskribe API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.41
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module SubskribeDevClient
|
16
|
+
class PaginatedAccountsResponse
|
17
|
+
attr_accessor :data
|
18
|
+
|
19
|
+
attr_accessor :num_elements
|
20
|
+
|
21
|
+
attr_accessor :next_cursor
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'data' => :'data',
|
27
|
+
:'num_elements' => :'numElements',
|
28
|
+
:'next_cursor' => :'nextCursor'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'data' => :'Array<AccountJson>',
|
36
|
+
:'num_elements' => :'Integer',
|
37
|
+
:'next_cursor' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
|
+
|
49
|
+
if attributes.has_key?(:'data')
|
50
|
+
if (value = attributes[:'data']).is_a?(Array)
|
51
|
+
self.data = value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'numElements')
|
56
|
+
self.num_elements = attributes[:'numElements']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'nextCursor')
|
60
|
+
self.next_cursor = attributes[:'nextCursor']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Checks equality by comparing each attribute.
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def ==(o)
|
80
|
+
return true if self.equal?(o)
|
81
|
+
self.class == o.class &&
|
82
|
+
data == o.data &&
|
83
|
+
num_elements == o.num_elements &&
|
84
|
+
next_cursor == o.next_cursor
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Fixnum] Hash code
|
95
|
+
def hash
|
96
|
+
[data, num_elements, next_cursor].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.swagger_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :BOOLEAN
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
temp_model = SubskribeDevClient.const_get(type).new
|
157
|
+
temp_model.build_from_hash(value)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the string representation of the object
|
162
|
+
# @return [String] String presentation of the object
|
163
|
+
def to_s
|
164
|
+
to_hash.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# to_body is an alias to to_hash (backward compatibility)
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_body
|
170
|
+
to_hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the object in the form of hash
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_hash
|
176
|
+
hash = {}
|
177
|
+
self.class.attribute_map.each_pair do |attr, param|
|
178
|
+
value = self.send(attr)
|
179
|
+
next if value.nil?
|
180
|
+
hash[param] = _to_hash(value)
|
181
|
+
end
|
182
|
+
hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Outputs non-array value in the form of hash
|
186
|
+
# For object, use to_hash. Otherwise, just return the value
|
187
|
+
# @param [Object] value Any valid value
|
188
|
+
# @return [Hash] Returns the value in the form of hash
|
189
|
+
def _to_hash(value)
|
190
|
+
if value.is_a?(Array)
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
192
|
+
elsif value.is_a?(Hash)
|
193
|
+
{}.tap do |hash|
|
194
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
195
|
+
end
|
196
|
+
elsif value.respond_to? :to_hash
|
197
|
+
value.to_hash
|
198
|
+
else
|
199
|
+
value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|
@@ -0,0 +1,187 @@
|
|
1
|
+
=begin
|
2
|
+
#Subskribe API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.41
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module SubskribeDevClient
|
16
|
+
class PlanMetadataJson
|
17
|
+
# Entity ids to be updated
|
18
|
+
attr_accessor :entity_ids
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'entity_ids' => :'entityIds'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'entity_ids' => :'Array<String>'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
|
+
|
42
|
+
if attributes.has_key?(:'entityIds')
|
43
|
+
if (value = attributes[:'entityIds']).is_a?(Array)
|
44
|
+
self.entity_ids = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
+
# @return Array for valid properties with the reasons
|
51
|
+
def list_invalid_properties
|
52
|
+
invalid_properties = Array.new
|
53
|
+
invalid_properties
|
54
|
+
end
|
55
|
+
|
56
|
+
# Check to see if the all the properties in the model are valid
|
57
|
+
# @return true if the model is valid
|
58
|
+
def valid?
|
59
|
+
true
|
60
|
+
end
|
61
|
+
|
62
|
+
# Checks equality by comparing each attribute.
|
63
|
+
# @param [Object] Object to be compared
|
64
|
+
def ==(o)
|
65
|
+
return true if self.equal?(o)
|
66
|
+
self.class == o.class &&
|
67
|
+
entity_ids == o.entity_ids
|
68
|
+
end
|
69
|
+
|
70
|
+
# @see the `==` method
|
71
|
+
# @param [Object] Object to be compared
|
72
|
+
def eql?(o)
|
73
|
+
self == o
|
74
|
+
end
|
75
|
+
|
76
|
+
# Calculates hash code according to all attributes.
|
77
|
+
# @return [Fixnum] Hash code
|
78
|
+
def hash
|
79
|
+
[entity_ids].hash
|
80
|
+
end
|
81
|
+
|
82
|
+
# Builds the object from hash
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
# @return [Object] Returns the model itself
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
self.class.swagger_types.each_pair do |key, type|
|
88
|
+
if type =~ /\AArray<(.*)>/i
|
89
|
+
# check to ensure the input is an array given that the attribute
|
90
|
+
# is documented as an array but the input is not
|
91
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
93
|
+
end
|
94
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
|
+
end
|
98
|
+
|
99
|
+
self
|
100
|
+
end
|
101
|
+
|
102
|
+
# Deserializes the data based on type
|
103
|
+
# @param string type Data type
|
104
|
+
# @param string value Value to be deserialized
|
105
|
+
# @return [Object] Deserialized data
|
106
|
+
def _deserialize(type, value)
|
107
|
+
case type.to_sym
|
108
|
+
when :DateTime
|
109
|
+
DateTime.parse(value)
|
110
|
+
when :Date
|
111
|
+
Date.parse(value)
|
112
|
+
when :String
|
113
|
+
value.to_s
|
114
|
+
when :Integer
|
115
|
+
value.to_i
|
116
|
+
when :Float
|
117
|
+
value.to_f
|
118
|
+
when :BOOLEAN
|
119
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
120
|
+
true
|
121
|
+
else
|
122
|
+
false
|
123
|
+
end
|
124
|
+
when :Object
|
125
|
+
# generic object (usually a Hash), return directly
|
126
|
+
value
|
127
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
128
|
+
inner_type = Regexp.last_match[:inner_type]
|
129
|
+
value.map { |v| _deserialize(inner_type, v) }
|
130
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
131
|
+
k_type = Regexp.last_match[:k_type]
|
132
|
+
v_type = Regexp.last_match[:v_type]
|
133
|
+
{}.tap do |hash|
|
134
|
+
value.each do |k, v|
|
135
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
else # model
|
139
|
+
temp_model = SubskribeDevClient.const_get(type).new
|
140
|
+
temp_model.build_from_hash(value)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the string representation of the object
|
145
|
+
# @return [String] String presentation of the object
|
146
|
+
def to_s
|
147
|
+
to_hash.to_s
|
148
|
+
end
|
149
|
+
|
150
|
+
# to_body is an alias to to_hash (backward compatibility)
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
152
|
+
def to_body
|
153
|
+
to_hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the object in the form of hash
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_hash
|
159
|
+
hash = {}
|
160
|
+
self.class.attribute_map.each_pair do |attr, param|
|
161
|
+
value = self.send(attr)
|
162
|
+
next if value.nil?
|
163
|
+
hash[param] = _to_hash(value)
|
164
|
+
end
|
165
|
+
hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Outputs non-array value in the form of hash
|
169
|
+
# For object, use to_hash. Otherwise, just return the value
|
170
|
+
# @param [Object] value Any valid value
|
171
|
+
# @return [Hash] Returns the value in the form of hash
|
172
|
+
def _to_hash(value)
|
173
|
+
if value.is_a?(Array)
|
174
|
+
value.compact.map { |v| _to_hash(v) }
|
175
|
+
elsif value.is_a?(Hash)
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
178
|
+
end
|
179
|
+
elsif value.respond_to? :to_hash
|
180
|
+
value.to_hash
|
181
|
+
else
|
182
|
+
value
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
end
|
187
|
+
end
|
@@ -20,12 +20,12 @@ module SubskribeDevClient
|
|
20
20
|
|
21
21
|
attr_accessor :created_on
|
22
22
|
|
23
|
+
attr_accessor :is_deleted
|
24
|
+
|
23
25
|
attr_accessor :integration_id
|
24
26
|
|
25
27
|
attr_accessor :masked_api_key
|
26
28
|
|
27
|
-
attr_accessor :is_deleted
|
28
|
-
|
29
29
|
attr_accessor :is_sandbox
|
30
30
|
|
31
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,9 +34,9 @@ module SubskribeDevClient
|
|
34
34
|
:'tenant_id' => :'tenantId',
|
35
35
|
:'updated_on' => :'updatedOn',
|
36
36
|
:'created_on' => :'createdOn',
|
37
|
+
:'is_deleted' => :'isDeleted',
|
37
38
|
:'integration_id' => :'integrationId',
|
38
39
|
:'masked_api_key' => :'maskedApiKey',
|
39
|
-
:'is_deleted' => :'isDeleted',
|
40
40
|
:'is_sandbox' => :'isSandbox'
|
41
41
|
}
|
42
42
|
end
|
@@ -47,9 +47,9 @@ module SubskribeDevClient
|
|
47
47
|
:'tenant_id' => :'String',
|
48
48
|
:'updated_on' => :'Integer',
|
49
49
|
:'created_on' => :'Integer',
|
50
|
+
:'is_deleted' => :'BOOLEAN',
|
50
51
|
:'integration_id' => :'String',
|
51
52
|
:'masked_api_key' => :'String',
|
52
|
-
:'is_deleted' => :'BOOLEAN',
|
53
53
|
:'is_sandbox' => :'BOOLEAN'
|
54
54
|
}
|
55
55
|
end
|
@@ -74,6 +74,10 @@ module SubskribeDevClient
|
|
74
74
|
self.created_on = attributes[:'createdOn']
|
75
75
|
end
|
76
76
|
|
77
|
+
if attributes.has_key?(:'isDeleted')
|
78
|
+
self.is_deleted = attributes[:'isDeleted']
|
79
|
+
end
|
80
|
+
|
77
81
|
if attributes.has_key?(:'integrationId')
|
78
82
|
self.integration_id = attributes[:'integrationId']
|
79
83
|
end
|
@@ -82,10 +86,6 @@ module SubskribeDevClient
|
|
82
86
|
self.masked_api_key = attributes[:'maskedApiKey']
|
83
87
|
end
|
84
88
|
|
85
|
-
if attributes.has_key?(:'isDeleted')
|
86
|
-
self.is_deleted = attributes[:'isDeleted']
|
87
|
-
end
|
88
|
-
|
89
89
|
if attributes.has_key?(:'isSandbox')
|
90
90
|
self.is_sandbox = attributes[:'isSandbox']
|
91
91
|
end
|
@@ -112,9 +112,9 @@ module SubskribeDevClient
|
|
112
112
|
tenant_id == o.tenant_id &&
|
113
113
|
updated_on == o.updated_on &&
|
114
114
|
created_on == o.created_on &&
|
115
|
+
is_deleted == o.is_deleted &&
|
115
116
|
integration_id == o.integration_id &&
|
116
117
|
masked_api_key == o.masked_api_key &&
|
117
|
-
is_deleted == o.is_deleted &&
|
118
118
|
is_sandbox == o.is_sandbox
|
119
119
|
end
|
120
120
|
|
@@ -127,7 +127,7 @@ module SubskribeDevClient
|
|
127
127
|
# Calculates hash code according to all attributes.
|
128
128
|
# @return [Fixnum] Hash code
|
129
129
|
def hash
|
130
|
-
[tenant_id, updated_on, created_on, integration_id, masked_api_key,
|
130
|
+
[tenant_id, updated_on, created_on, is_deleted, integration_id, masked_api_key, is_sandbox].hash
|
131
131
|
end
|
132
132
|
|
133
133
|
# Builds the object from hash
|
data/lib/subskribe_dev.rb
CHANGED
@@ -111,6 +111,7 @@ require 'subskribe_dev/models/order_line_item_json'
|
|
111
111
|
require 'subskribe_dev/models/order_line_item_request_json'
|
112
112
|
require 'subskribe_dev/models/order_request_json'
|
113
113
|
require 'subskribe_dev/models/order_terms'
|
114
|
+
require 'subskribe_dev/models/paginated_accounts_response'
|
114
115
|
require 'subskribe_dev/models/paginated_response'
|
115
116
|
require 'subskribe_dev/models/payment_balance_json'
|
116
117
|
require 'subskribe_dev/models/payment_configuration'
|
@@ -119,6 +120,7 @@ require 'subskribe_dev/models/payment_json_pagination_response'
|
|
119
120
|
require 'subskribe_dev/models/payment_term_settings_json'
|
120
121
|
require 'subskribe_dev/models/plan_json'
|
121
122
|
require 'subskribe_dev/models/plan_json_pagination_response'
|
123
|
+
require 'subskribe_dev/models/plan_metadata_json'
|
122
124
|
require 'subskribe_dev/models/predefined_report_def_chart_json'
|
123
125
|
require 'subskribe_dev/models/predefined_report_def_json'
|
124
126
|
require 'subskribe_dev/models/predefined_report_defs_json'
|
@@ -191,7 +193,6 @@ require 'subskribe_dev/api/default_api'
|
|
191
193
|
require 'subskribe_dev/api/discounts_api'
|
192
194
|
require 'subskribe_dev/api/erp_api'
|
193
195
|
require 'subskribe_dev/api/entities_api'
|
194
|
-
require 'subskribe_dev/api/entity_api'
|
195
196
|
require 'subskribe_dev/api/import_api'
|
196
197
|
require 'subskribe_dev/api/integrations_api'
|
197
198
|
require 'subskribe_dev/api/metrics_reporting_api'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#Subskribe API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.41
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SubskribeDevClient::PaginatedAccountsResponse
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PaginatedAccountsResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SubskribeDevClient::PaginatedAccountsResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PaginatedAccountsResponse' do
|
31
|
+
it 'should create an instance of PaginatedAccountsResponse' do
|
32
|
+
expect(@instance).to be_instance_of(SubskribeDevClient::PaginatedAccountsResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "data"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "num_elements"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "next_cursor"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Subskribe API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.41
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for SubskribeDevClient::PlanMetadataJson
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PlanMetadataJson' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = SubskribeDevClient::PlanMetadataJson.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PlanMetadataJson' do
|
31
|
+
it 'should create an instance of PlanMetadataJson' do
|
32
|
+
expect(@instance).to be_instance_of(SubskribeDevClient::PlanMetadataJson)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "entity_ids"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
data/subskribe_dev.gemspec
CHANGED
@@ -19,11 +19,11 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.name = "subskribe_dev"
|
20
20
|
s.version = SubskribeDevClient::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = ["
|
22
|
+
s.authors = ["Subskribe"]
|
23
23
|
s.email = [""]
|
24
|
-
s.homepage = "https://github.com/
|
25
|
-
s.summary = "Subskribe
|
26
|
-
s.description = "
|
24
|
+
s.homepage = "https://github.com/Subskribe/ruby-sdk-sandbox"
|
25
|
+
s.summary = "Subskribe Ruby Gem"
|
26
|
+
s.description = "Ruby Gem for Subskribe API"
|
27
27
|
s.license = "Unlicense"
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|