merge_ticketing_client 1.0.2 → 1.0.3
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 +11 -4
- data/docs/Account.md +9 -10
- data/docs/Attachment.md +13 -14
- data/docs/AttachmentRequest.md +9 -14
- data/docs/Collection.md +11 -12
- data/docs/Comment.md +14 -15
- data/docs/CommentRequest.md +10 -15
- data/docs/Contact.md +12 -13
- data/docs/DataPassthroughRequest.md +10 -11
- data/docs/FieldFormatEnum.md +15 -0
- data/docs/FieldTypeEnum.md +15 -0
- data/docs/Issue.md +10 -11
- data/docs/LinkedAccountCondition.md +8 -9
- data/docs/LinkedAccountConditionRequest.md +5 -6
- data/docs/MetaResponse.md +6 -7
- data/docs/PaginatedRemoteFieldClassList.md +22 -0
- data/docs/PatchedTicketRequest.md +20 -25
- data/docs/Project.md +9 -10
- data/docs/RemoteData.md +4 -5
- data/docs/RemoteField.md +19 -0
- data/docs/RemoteFieldClass.md +38 -0
- data/docs/RemoteFieldClassItemSchema.md +22 -0
- data/docs/RemoteResponse.md +9 -10
- data/docs/Tag.md +7 -8
- data/docs/Team.md +9 -10
- data/docs/Ticket.md +29 -28
- data/docs/TicketRequest.md +21 -28
- data/docs/TicketsApi.md +88 -0
- data/docs/User.md +12 -13
- data/lib/merge_ticketing_client/api/tickets_api.rb +83 -0
- data/lib/merge_ticketing_client/models/attachment_request.rb +1 -23
- data/lib/merge_ticketing_client/models/categories_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/category_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/comment_request.rb +1 -23
- data/lib/merge_ticketing_client/models/field_format_enum.rb +49 -0
- data/lib/merge_ticketing_client/models/field_type_enum.rb +49 -0
- data/lib/merge_ticketing_client/models/paginated_remote_field_class_list.rb +240 -0
- data/lib/merge_ticketing_client/models/patched_ticket_request.rb +1 -23
- data/lib/merge_ticketing_client/models/remote_data.rb +9 -7
- data/lib/merge_ticketing_client/models/remote_field.rb +231 -0
- data/lib/merge_ticketing_client/models/remote_field_class.rb +318 -0
- data/lib/merge_ticketing_client/models/remote_field_class_item_schema.rb +241 -0
- data/lib/merge_ticketing_client/models/ticket.rb +16 -5
- data/lib/merge_ticketing_client/models/ticket_request.rb +1 -34
- data/lib/merge_ticketing_client/version.rb +1 -1
- data/lib/merge_ticketing_client.rb +6 -0
- metadata +14 -2
data/docs/User.md
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
| Name
|
6
|
-
|
|
7
|
-
| **id**
|
8
|
-
| **remote_id**
|
9
|
-
| **name**
|
10
|
-
| **email_address**
|
11
|
-
| **is_active**
|
12
|
-
| **teams**
|
13
|
-
| **avatar**
|
14
|
-
| **remote_data**
|
15
|
-
| **remote_was_deleted** | **Boolean**
|
16
|
-
| **field_mappings**
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---------------------- | -------------------------------------------- | ------------------------------------------------------------------------------ | -------------------- |
|
7
|
+
| **id** | **String** | | [optional][readonly] |
|
8
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
|
+
| **name** | **String** | The user's name. | [optional] |
|
10
|
+
| **email_address** | **String** | The user's email address. | [optional] |
|
11
|
+
| **is_active** | **Boolean** | Whether or not the user is active. | [optional] |
|
12
|
+
| **teams** | **Array<String>** | | [optional] |
|
13
|
+
| **avatar** | **String** | The user's avatar picture. | [optional] |
|
14
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
15
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
16
|
+
| **field_mappings** | [**Hash<String, Object>**](Object.md) | | [optional][readonly] |
|
17
17
|
|
18
18
|
## Example
|
19
19
|
|
@@ -33,4 +33,3 @@ instance = MergeTicketingClient::User.new(
|
|
33
33
|
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}
|
34
34
|
)
|
35
35
|
```
|
36
|
-
|
@@ -199,6 +199,7 @@ module MergeTicketingClient
|
|
199
199
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
200
200
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
201
201
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
202
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
202
203
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
203
204
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
204
205
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -238,6 +239,7 @@ module MergeTicketingClient
|
|
238
239
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
239
240
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
240
241
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
242
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
241
243
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
242
244
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
243
245
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -302,6 +304,7 @@ module MergeTicketingClient
|
|
302
304
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
303
305
|
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
304
306
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
307
|
+
query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
|
305
308
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
306
309
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
307
310
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
@@ -566,12 +569,90 @@ module MergeTicketingClient
|
|
566
569
|
return data, status_code, headers
|
567
570
|
end
|
568
571
|
|
572
|
+
# Returns a list of `RemoteFieldClass` objects.
|
573
|
+
# @param x_account_token [String] Token identifying the end user.
|
574
|
+
# @param [Hash] opts the optional parameters
|
575
|
+
# @option opts [String] :cursor The pagination cursor value.
|
576
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
577
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
578
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
579
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
580
|
+
# @return [PaginatedRemoteFieldClassList]
|
581
|
+
def tickets_remote_field_classes_list(x_account_token, opts = {})
|
582
|
+
data, _status_code, _headers = tickets_remote_field_classes_list_with_http_info(x_account_token, opts)
|
583
|
+
data
|
584
|
+
end
|
585
|
+
|
586
|
+
# Returns a list of `RemoteFieldClass` objects.
|
587
|
+
# @param x_account_token [String] Token identifying the end user.
|
588
|
+
# @param [Hash] opts the optional parameters
|
589
|
+
# @option opts [String] :cursor The pagination cursor value.
|
590
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
591
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
592
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
593
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
594
|
+
# @return [Array<(PaginatedRemoteFieldClassList, Integer, Hash)>] PaginatedRemoteFieldClassList data, response status code and response headers
|
595
|
+
def tickets_remote_field_classes_list_with_http_info(x_account_token, opts = {})
|
596
|
+
if @api_client.config.debugging
|
597
|
+
@api_client.config.logger.debug 'Calling API: TicketsApi.tickets_remote_field_classes_list ...'
|
598
|
+
end
|
599
|
+
# verify the required parameter 'x_account_token' is set
|
600
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
601
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_remote_field_classes_list"
|
602
|
+
end
|
603
|
+
# resource path
|
604
|
+
local_var_path = '/tickets/remote-field-classes'
|
605
|
+
|
606
|
+
# query parameters
|
607
|
+
query_params = opts[:query_params] || {}
|
608
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
609
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
610
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
611
|
+
query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
|
612
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
613
|
+
|
614
|
+
# header parameters
|
615
|
+
header_params = opts[:header_params] || {}
|
616
|
+
# HTTP header 'Accept' (if needed)
|
617
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
618
|
+
header_params[:'X-Account-Token'] = x_account_token
|
619
|
+
|
620
|
+
# form parameters
|
621
|
+
form_params = opts[:form_params] || {}
|
622
|
+
|
623
|
+
# http body (model)
|
624
|
+
post_body = opts[:debug_body]
|
625
|
+
|
626
|
+
# return_type
|
627
|
+
return_type = opts[:debug_return_type] || 'PaginatedRemoteFieldClassList'
|
628
|
+
|
629
|
+
# auth_names
|
630
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
631
|
+
|
632
|
+
new_options = opts.merge(
|
633
|
+
:operation => :"TicketsApi.tickets_remote_field_classes_list",
|
634
|
+
:header_params => header_params,
|
635
|
+
:query_params => query_params,
|
636
|
+
:form_params => form_params,
|
637
|
+
:body => post_body,
|
638
|
+
:auth_names => auth_names,
|
639
|
+
:return_type => return_type
|
640
|
+
)
|
641
|
+
|
642
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
643
|
+
if @api_client.config.debugging
|
644
|
+
@api_client.config.logger.debug "API called: TicketsApi#tickets_remote_field_classes_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
645
|
+
end
|
646
|
+
return data, status_code, headers
|
647
|
+
end
|
648
|
+
|
569
649
|
# Returns a `Ticket` object with the given `id`.
|
570
650
|
# @param x_account_token [String] Token identifying the end user.
|
571
651
|
# @param id [String]
|
572
652
|
# @param [Hash] opts the optional parameters
|
573
653
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
574
654
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
655
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
575
656
|
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
576
657
|
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
577
658
|
# @return [Ticket]
|
@@ -586,6 +667,7 @@ module MergeTicketingClient
|
|
586
667
|
# @param [Hash] opts the optional parameters
|
587
668
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
588
669
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
670
|
+
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
589
671
|
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
590
672
|
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
591
673
|
# @return [Array<(Ticket, Integer, Hash)>] Ticket data, response status code and response headers
|
@@ -620,6 +702,7 @@ module MergeTicketingClient
|
|
620
702
|
query_params = opts[:query_params] || {}
|
621
703
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
622
704
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
705
|
+
query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
|
623
706
|
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
624
707
|
query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
|
625
708
|
|
@@ -16,9 +16,6 @@ require 'time'
|
|
16
16
|
module MergeTicketingClient
|
17
17
|
# # The Attachment Object ### Description The `Attachment` object is used to represent an attachment for a ticket. ### Usage Example TODO
|
18
18
|
class AttachmentRequest
|
19
|
-
# The third-party API ID of the matching object.
|
20
|
-
attr_accessor :remote_id
|
21
|
-
|
22
19
|
# The attachment's name.
|
23
20
|
attr_accessor :file_name
|
24
21
|
|
@@ -34,9 +31,6 @@ module MergeTicketingClient
|
|
34
31
|
# The user who uploaded the attachment.
|
35
32
|
attr_accessor :uploaded_by
|
36
33
|
|
37
|
-
# When the third party's attachment was created.
|
38
|
-
attr_accessor :remote_created_at
|
39
|
-
|
40
34
|
attr_accessor :integration_params
|
41
35
|
|
42
36
|
attr_accessor :linked_account_params
|
@@ -44,13 +38,11 @@ module MergeTicketingClient
|
|
44
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
39
|
def self.attribute_map
|
46
40
|
{
|
47
|
-
:'remote_id' => :'remote_id',
|
48
41
|
:'file_name' => :'file_name',
|
49
42
|
:'ticket' => :'ticket',
|
50
43
|
:'file_url' => :'file_url',
|
51
44
|
:'content_type' => :'content_type',
|
52
45
|
:'uploaded_by' => :'uploaded_by',
|
53
|
-
:'remote_created_at' => :'remote_created_at',
|
54
46
|
:'integration_params' => :'integration_params',
|
55
47
|
:'linked_account_params' => :'linked_account_params'
|
56
48
|
}
|
@@ -64,13 +56,11 @@ module MergeTicketingClient
|
|
64
56
|
# Attribute type mapping.
|
65
57
|
def self.openapi_types
|
66
58
|
{
|
67
|
-
:'remote_id' => :'String',
|
68
59
|
:'file_name' => :'String',
|
69
60
|
:'ticket' => :'String',
|
70
61
|
:'file_url' => :'String',
|
71
62
|
:'content_type' => :'String',
|
72
63
|
:'uploaded_by' => :'String',
|
73
|
-
:'remote_created_at' => :'Time',
|
74
64
|
:'integration_params' => :'Hash<String, Object>',
|
75
65
|
:'linked_account_params' => :'Hash<String, Object>'
|
76
66
|
}
|
@@ -79,13 +69,11 @@ module MergeTicketingClient
|
|
79
69
|
# List of attributes with nullable: true
|
80
70
|
def self.openapi_nullable
|
81
71
|
Set.new([
|
82
|
-
:'remote_id',
|
83
72
|
:'file_name',
|
84
73
|
:'ticket',
|
85
74
|
:'file_url',
|
86
75
|
:'content_type',
|
87
76
|
:'uploaded_by',
|
88
|
-
:'remote_created_at',
|
89
77
|
:'integration_params',
|
90
78
|
:'linked_account_params'
|
91
79
|
])
|
@@ -106,10 +94,6 @@ module MergeTicketingClient
|
|
106
94
|
h[k.to_sym] = v
|
107
95
|
}
|
108
96
|
|
109
|
-
if attributes.key?(:'remote_id')
|
110
|
-
self.remote_id = attributes[:'remote_id']
|
111
|
-
end
|
112
|
-
|
113
97
|
if attributes.key?(:'file_name')
|
114
98
|
self.file_name = attributes[:'file_name']
|
115
99
|
end
|
@@ -130,10 +114,6 @@ module MergeTicketingClient
|
|
130
114
|
self.uploaded_by = attributes[:'uploaded_by']
|
131
115
|
end
|
132
116
|
|
133
|
-
if attributes.key?(:'remote_created_at')
|
134
|
-
self.remote_created_at = attributes[:'remote_created_at']
|
135
|
-
end
|
136
|
-
|
137
117
|
if attributes.key?(:'integration_params')
|
138
118
|
if (value = attributes[:'integration_params']).is_a?(Hash)
|
139
119
|
self.integration_params = value
|
@@ -165,13 +145,11 @@ module MergeTicketingClient
|
|
165
145
|
def ==(o)
|
166
146
|
return true if self.equal?(o)
|
167
147
|
self.class == o.class &&
|
168
|
-
remote_id == o.remote_id &&
|
169
148
|
file_name == o.file_name &&
|
170
149
|
ticket == o.ticket &&
|
171
150
|
file_url == o.file_url &&
|
172
151
|
content_type == o.content_type &&
|
173
152
|
uploaded_by == o.uploaded_by &&
|
174
|
-
remote_created_at == o.remote_created_at &&
|
175
153
|
integration_params == o.integration_params &&
|
176
154
|
linked_account_params == o.linked_account_params
|
177
155
|
end
|
@@ -185,7 +163,7 @@ module MergeTicketingClient
|
|
185
163
|
# Calculates hash code according to all attributes.
|
186
164
|
# @return [Integer] Hash code
|
187
165
|
def hash
|
188
|
-
[
|
166
|
+
[file_name, ticket, file_url, content_type, uploaded_by, integration_params, linked_account_params].hash
|
189
167
|
end
|
190
168
|
|
191
169
|
# Builds the object from hash
|
@@ -20,6 +20,7 @@ module MergeTicketingClient
|
|
20
20
|
ACCOUNTING = "accounting".freeze
|
21
21
|
TICKETING = "ticketing".freeze
|
22
22
|
CRM = "crm".freeze
|
23
|
+
MKTG = "mktg".freeze
|
23
24
|
|
24
25
|
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
26
|
|
@@ -31,7 +32,7 @@ module MergeTicketingClient
|
|
31
32
|
# @return [String] The enum value
|
32
33
|
def build_from_hash(value)
|
33
34
|
@raw_value = value
|
34
|
-
if ["hris", "ats", "accounting", "ticketing", "crm", ].include? value
|
35
|
+
if ["hris", "ats", "accounting", "ticketing", "crm", "mktg", ].include? value
|
35
36
|
@value = value
|
36
37
|
else
|
37
38
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -20,6 +20,7 @@ module MergeTicketingClient
|
|
20
20
|
ACCOUNTING = "accounting".freeze
|
21
21
|
TICKETING = "ticketing".freeze
|
22
22
|
CRM = "crm".freeze
|
23
|
+
MKTG = "mktg".freeze
|
23
24
|
|
24
25
|
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
26
|
|
@@ -31,7 +32,7 @@ module MergeTicketingClient
|
|
31
32
|
# @return [String] The enum value
|
32
33
|
def build_from_hash(value)
|
33
34
|
@raw_value = value
|
34
|
-
if ["hris", "ats", "accounting", "ticketing", "crm", ].include? value
|
35
|
+
if ["hris", "ats", "accounting", "ticketing", "crm", "mktg", ].include? value
|
35
36
|
@value = value
|
36
37
|
else
|
37
38
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -16,9 +16,6 @@ require 'time'
|
|
16
16
|
module MergeTicketingClient
|
17
17
|
# # The Comment Object ### Description The `Comment` object is used to represent a comment on a ticket. ### Usage Example TODO
|
18
18
|
class CommentRequest
|
19
|
-
# The third-party API ID of the matching object.
|
20
|
-
attr_accessor :remote_id
|
21
|
-
|
22
19
|
# The author of the Comment, if the author is a User.
|
23
20
|
attr_accessor :user
|
24
21
|
|
@@ -37,9 +34,6 @@ module MergeTicketingClient
|
|
37
34
|
# Whether or not the comment is internal.
|
38
35
|
attr_accessor :is_private
|
39
36
|
|
40
|
-
# When the third party's comment was created.
|
41
|
-
attr_accessor :remote_created_at
|
42
|
-
|
43
37
|
attr_accessor :integration_params
|
44
38
|
|
45
39
|
attr_accessor :linked_account_params
|
@@ -47,14 +41,12 @@ module MergeTicketingClient
|
|
47
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
42
|
def self.attribute_map
|
49
43
|
{
|
50
|
-
:'remote_id' => :'remote_id',
|
51
44
|
:'user' => :'user',
|
52
45
|
:'contact' => :'contact',
|
53
46
|
:'body' => :'body',
|
54
47
|
:'html_body' => :'html_body',
|
55
48
|
:'ticket' => :'ticket',
|
56
49
|
:'is_private' => :'is_private',
|
57
|
-
:'remote_created_at' => :'remote_created_at',
|
58
50
|
:'integration_params' => :'integration_params',
|
59
51
|
:'linked_account_params' => :'linked_account_params'
|
60
52
|
}
|
@@ -68,14 +60,12 @@ module MergeTicketingClient
|
|
68
60
|
# Attribute type mapping.
|
69
61
|
def self.openapi_types
|
70
62
|
{
|
71
|
-
:'remote_id' => :'String',
|
72
63
|
:'user' => :'String',
|
73
64
|
:'contact' => :'String',
|
74
65
|
:'body' => :'String',
|
75
66
|
:'html_body' => :'String',
|
76
67
|
:'ticket' => :'String',
|
77
68
|
:'is_private' => :'Boolean',
|
78
|
-
:'remote_created_at' => :'Time',
|
79
69
|
:'integration_params' => :'Hash<String, Object>',
|
80
70
|
:'linked_account_params' => :'Hash<String, Object>'
|
81
71
|
}
|
@@ -84,14 +74,12 @@ module MergeTicketingClient
|
|
84
74
|
# List of attributes with nullable: true
|
85
75
|
def self.openapi_nullable
|
86
76
|
Set.new([
|
87
|
-
:'remote_id',
|
88
77
|
:'user',
|
89
78
|
:'contact',
|
90
79
|
:'body',
|
91
80
|
:'html_body',
|
92
81
|
:'ticket',
|
93
82
|
:'is_private',
|
94
|
-
:'remote_created_at',
|
95
83
|
:'integration_params',
|
96
84
|
:'linked_account_params'
|
97
85
|
])
|
@@ -112,10 +100,6 @@ module MergeTicketingClient
|
|
112
100
|
h[k.to_sym] = v
|
113
101
|
}
|
114
102
|
|
115
|
-
if attributes.key?(:'remote_id')
|
116
|
-
self.remote_id = attributes[:'remote_id']
|
117
|
-
end
|
118
|
-
|
119
103
|
if attributes.key?(:'user')
|
120
104
|
self.user = attributes[:'user']
|
121
105
|
end
|
@@ -140,10 +124,6 @@ module MergeTicketingClient
|
|
140
124
|
self.is_private = attributes[:'is_private']
|
141
125
|
end
|
142
126
|
|
143
|
-
if attributes.key?(:'remote_created_at')
|
144
|
-
self.remote_created_at = attributes[:'remote_created_at']
|
145
|
-
end
|
146
|
-
|
147
127
|
if attributes.key?(:'integration_params')
|
148
128
|
if (value = attributes[:'integration_params']).is_a?(Hash)
|
149
129
|
self.integration_params = value
|
@@ -175,14 +155,12 @@ module MergeTicketingClient
|
|
175
155
|
def ==(o)
|
176
156
|
return true if self.equal?(o)
|
177
157
|
self.class == o.class &&
|
178
|
-
remote_id == o.remote_id &&
|
179
158
|
user == o.user &&
|
180
159
|
contact == o.contact &&
|
181
160
|
body == o.body &&
|
182
161
|
html_body == o.html_body &&
|
183
162
|
ticket == o.ticket &&
|
184
163
|
is_private == o.is_private &&
|
185
|
-
remote_created_at == o.remote_created_at &&
|
186
164
|
integration_params == o.integration_params &&
|
187
165
|
linked_account_params == o.linked_account_params
|
188
166
|
end
|
@@ -196,7 +174,7 @@ module MergeTicketingClient
|
|
196
174
|
# Calculates hash code according to all attributes.
|
197
175
|
# @return [Integer] Hash code
|
198
176
|
def hash
|
199
|
-
[
|
177
|
+
[user, contact, body, html_body, ticket, is_private, integration_params, linked_account_params].hash
|
200
178
|
end
|
201
179
|
|
202
180
|
# Builds the object from hash
|
@@ -0,0 +1,49 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeTicketingClient
|
17
|
+
class FieldFormatEnum
|
18
|
+
STRING = "string".freeze
|
19
|
+
NUMBER = "number".freeze
|
20
|
+
DATE = "date".freeze
|
21
|
+
DATETIME = "datetime".freeze
|
22
|
+
BOOL = "bool".freeze
|
23
|
+
LIST = "list".freeze
|
24
|
+
|
25
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
attr_accessor :raw_value
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
@raw_value = value
|
35
|
+
if ["string", "number", "date", "datetime", "bool", "list", ].include? value
|
36
|
+
@value = value
|
37
|
+
else
|
38
|
+
@value = MERGE_NONSTANDARD_VALUE
|
39
|
+
end
|
40
|
+
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.build_from_hash(value)
|
45
|
+
FieldFormatEnum.new.build_from_hash(value)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Ticketing API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Ticketing platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeTicketingClient
|
17
|
+
class FieldTypeEnum
|
18
|
+
STRING = "string".freeze
|
19
|
+
NUMBER = "number".freeze
|
20
|
+
DATE = "date".freeze
|
21
|
+
DATETIME = "datetime".freeze
|
22
|
+
BOOL = "bool".freeze
|
23
|
+
LIST = "list".freeze
|
24
|
+
|
25
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
attr_accessor :raw_value
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
@raw_value = value
|
35
|
+
if ["string", "number", "date", "datetime", "bool", "list", ].include? value
|
36
|
+
@value = value
|
37
|
+
else
|
38
|
+
@value = MERGE_NONSTANDARD_VALUE
|
39
|
+
end
|
40
|
+
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.build_from_hash(value)
|
45
|
+
FieldTypeEnum.new.build_from_hash(value)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|