late-sdk 0.0.1501 → 0.0.1502

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.
@@ -0,0 +1,189 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
5
+
6
+ The version of the OpenAPI document: 1.332.0
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ # Null when the landing URL carried no UTM parameters.
18
+ class CommerceOrderVisitUtm < ApiModelBase
19
+ attr_accessor :source
20
+
21
+ attr_accessor :medium
22
+
23
+ attr_accessor :campaign
24
+
25
+ attr_accessor :term
26
+
27
+ attr_accessor :content
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'source' => :'source',
33
+ :'medium' => :'medium',
34
+ :'campaign' => :'campaign',
35
+ :'term' => :'term',
36
+ :'content' => :'content'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'source' => :'String',
54
+ :'medium' => :'String',
55
+ :'campaign' => :'String',
56
+ :'term' => :'String',
57
+ :'content' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'source',
65
+ :'medium',
66
+ :'campaign',
67
+ :'term',
68
+ :'content'
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::CommerceOrderVisitUtm` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!acceptable_attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::CommerceOrderVisitUtm`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'source')
89
+ self.source = attributes[:'source']
90
+ end
91
+
92
+ if attributes.key?(:'medium')
93
+ self.medium = attributes[:'medium']
94
+ end
95
+
96
+ if attributes.key?(:'campaign')
97
+ self.campaign = attributes[:'campaign']
98
+ end
99
+
100
+ if attributes.key?(:'term')
101
+ self.term = attributes[:'term']
102
+ end
103
+
104
+ if attributes.key?(:'content')
105
+ self.content = attributes[:'content']
106
+ end
107
+ end
108
+
109
+ # Show invalid properties with the reasons. Usually used together with valid?
110
+ # @return Array for valid properties with the reasons
111
+ def list_invalid_properties
112
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ warn '[DEPRECATED] the `valid?` method is obsolete'
121
+ true
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ source == o.source &&
130
+ medium == o.medium &&
131
+ campaign == o.campaign &&
132
+ term == o.term &&
133
+ content == o.content
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(o)
139
+ self == o
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Integer] Hash code
144
+ def hash
145
+ [source, medium, campaign, term, content].hash
146
+ end
147
+
148
+ # Builds the object from hash
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ # @return [Object] Returns the model itself
151
+ def self.build_from_hash(attributes)
152
+ return nil unless attributes.is_a?(Hash)
153
+ attributes = attributes.transform_keys(&:to_sym)
154
+ transformed_hash = {}
155
+ openapi_types.each_pair do |key, type|
156
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
157
+ transformed_hash["#{key}"] = nil
158
+ elsif type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[attribute_map[key]].is_a?(Array)
162
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
163
+ end
164
+ elsif !attributes[attribute_map[key]].nil?
165
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
166
+ end
167
+ end
168
+ new(transformed_hash)
169
+ end
170
+
171
+ # Returns the object in the form of hash
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_hash
174
+ hash = {}
175
+ self.class.attribute_map.each_pair do |attr, param|
176
+ value = self.send(attr)
177
+ if value.nil?
178
+ is_nullable = self.class.openapi_nullable.include?(attr)
179
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
180
+ end
181
+
182
+ hash[param] = _to_hash(value)
183
+ end
184
+ hash
185
+ end
186
+
187
+ end
188
+
189
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.1501'
14
+ VERSION = '0.0.1502'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -348,6 +348,7 @@ require 'zernio-sdk/models/commerce_metaobject_definition_fields_inner'
348
348
  require 'zernio-sdk/models/commerce_metaobject_fields_inner'
349
349
  require 'zernio-sdk/models/commerce_money'
350
350
  require 'zernio-sdk/models/commerce_order'
351
+ require 'zernio-sdk/models/commerce_order_attribution'
351
352
  require 'zernio-sdk/models/commerce_order_charge_line'
352
353
  require 'zernio-sdk/models/commerce_order_customer'
353
354
  require 'zernio-sdk/models/commerce_order_fulfillments_inner'
@@ -355,6 +356,8 @@ require 'zernio-sdk/models/commerce_order_line_items_inner'
355
356
  require 'zernio-sdk/models/commerce_order_refunds_inner'
356
357
  require 'zernio-sdk/models/commerce_order_refunds_inner_line_items_inner'
357
358
  require 'zernio-sdk/models/commerce_order_status'
359
+ require 'zernio-sdk/models/commerce_order_visit'
360
+ require 'zernio-sdk/models/commerce_order_visit_utm'
358
361
  require 'zernio-sdk/models/commerce_page'
359
362
  require 'zernio-sdk/models/commerce_price_list'
360
363
  require 'zernio-sdk/models/commerce_product'