mailslurp_client 15.20.0 → 15.21.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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  4. data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
  5. data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
  6. data/lib/mailslurp_client/api/phone_controller_api.rb +381 -1
  7. data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
  8. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  9. data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
  10. data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
  11. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  12. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
  13. data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
  17. data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
  18. data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
  19. data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
  20. data/lib/mailslurp_client/models/domain_dto.rb +27 -1
  21. data/lib/mailslurp_client/models/email.rb +12 -1
  22. data/lib/mailslurp_client/models/email_preview.rb +15 -5
  23. data/lib/mailslurp_client/models/email_projection.rb +35 -25
  24. data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
  25. data/lib/mailslurp_client/models/emergency_address.rb +2 -2
  26. data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
  27. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
  28. data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
  29. data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
  30. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
  32. data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
  33. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
  35. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  37. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  38. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +29 -29
  39. data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
  40. data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
  41. data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
  42. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
  43. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
  44. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
  45. data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
  46. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
  47. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
  48. data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
  49. data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
  50. data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
  51. data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
  52. data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
  53. data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
  54. data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
  55. data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
  56. data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
  57. data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/sms_preview.rb +15 -1
  59. data/lib/mailslurp_client/models/sms_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  61. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  62. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
  64. data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
  65. data/lib/mailslurp_client/version.rb +1 -1
  66. data/lib/mailslurp_client.rb +16 -0
  67. metadata +18 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7b01e2041791a8f3d4831b9f9aadd324efcd15418a99e9edd516503980ca3c7
4
- data.tar.gz: e354041730a44718c35bf167fe7f3a5abda1390c6e70232400c5107f75c5734b
3
+ metadata.gz: b949a60311c2b1cf276d6ebf75ebd4de078f1c8d9965555c59bfae7f566d5a69
4
+ data.tar.gz: b70e2f6a7243e735deadb15aee4f1e4de2c7a386250ea7adf97ceb0296ef59ed
5
5
  SHA512:
6
- metadata.gz: 8e5acdc0b73a8d42af9e654137b47ad030f055c01208b6de13df7780e1575378d4d1dca758f0155e3d9ceb09ceb9c56f624d3405104690aa0c0ed71a7ed8ded7
7
- data.tar.gz: d9c2feab8d7adafd84cfc41ebb09b330bdbee9728da814eec2112d2eb67b126beade4ca63b803edbf8af880f6d41e9121909073fde8dae96a2ab54003681b410
6
+ metadata.gz: 291a348e82692d6b7afadcb9a9decd14482a4759086e848b7e0f39d8c69bc166da65ec3dc795241b2546eb38e4c7d68fc4decd59c93ce9942a8a0a45c1bb6d2f
7
+ data.tar.gz: e7be1ad8b4b3df4f02dbeb78b40d176730af79c46cb1ed396176f09ba5c3f28a23e6604736c82e6be3c4f1ac1b667d8fda9ef33b6c2c4cfe7f6fe33107163c3c
@@ -389,6 +389,8 @@ module MailSlurpClient
389
389
  # @option opts [DateTime] :since Filter by created at after the given timestamp
390
390
  # @option opts [DateTime] :before Filter by created at before the given timestamp
391
391
  # @option opts [String] :inbox_id Optional inboxId to filter attachments by
392
+ # @option opts [String] :email_id Optional emailId to filter attachments by
393
+ # @option opts [String] :sent_email_id Optional sentEmailId to filter attachments by
392
394
  # @return [PageAttachmentEntity]
393
395
  def get_attachments(opts = {})
394
396
  data, _status_code, _headers = get_attachments_with_http_info(opts)
@@ -405,6 +407,8 @@ module MailSlurpClient
405
407
  # @option opts [DateTime] :since Filter by created at after the given timestamp
406
408
  # @option opts [DateTime] :before Filter by created at before the given timestamp
407
409
  # @option opts [String] :inbox_id Optional inboxId to filter attachments by
410
+ # @option opts [String] :email_id Optional emailId to filter attachments by
411
+ # @option opts [String] :sent_email_id Optional sentEmailId to filter attachments by
408
412
  # @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
409
413
  def get_attachments_with_http_info(opts = {})
410
414
  if @api_client.config.debugging
@@ -426,6 +430,8 @@ module MailSlurpClient
426
430
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
427
431
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
428
432
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
433
+ query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
434
+ query_params[:'sentEmailId'] = opts[:'sent_email_id'] if !opts[:'sent_email_id'].nil?
429
435
 
430
436
  # header parameters
431
437
  header_params = opts[:header_params] || {}
@@ -637,5 +637,84 @@ module MailSlurpClient
637
637
  end
638
638
  return data, status_code, headers
639
639
  end
640
+
641
+ # Get paginated list of reputation items.
642
+ # List of complaints and bounces
643
+ # @param [Hash] opts the optional parameters
644
+ # @option opts [Integer] :page Optional page index (default to 0)
645
+ # @option opts [Integer] :size Optional page size (default to 20)
646
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'DESC')
647
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
648
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
649
+ # @return [PageReputationItems]
650
+ def get_reputation_items(opts = {})
651
+ data, _status_code, _headers = get_reputation_items_with_http_info(opts)
652
+ data
653
+ end
654
+
655
+ # Get paginated list of reputation items.
656
+ # List of complaints and bounces
657
+ # @param [Hash] opts the optional parameters
658
+ # @option opts [Integer] :page Optional page index
659
+ # @option opts [Integer] :size Optional page size
660
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
661
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
662
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
663
+ # @return [Array<(PageReputationItems, Integer, Hash)>] PageReputationItems data, response status code and response headers
664
+ def get_reputation_items_with_http_info(opts = {})
665
+ if @api_client.config.debugging
666
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_reputation_items ...'
667
+ end
668
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
669
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling BounceControllerApi.get_reputation_items, must be smaller than or equal to 100.'
670
+ end
671
+
672
+ allowable_values = ["ASC", "DESC"]
673
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
674
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
675
+ end
676
+ # resource path
677
+ local_var_path = '/bounce/reputation-items'
678
+
679
+ # query parameters
680
+ query_params = opts[:query_params] || {}
681
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
682
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
683
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
684
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
685
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
686
+
687
+ # header parameters
688
+ header_params = opts[:header_params] || {}
689
+ # HTTP header 'Accept' (if needed)
690
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
691
+
692
+ # form parameters
693
+ form_params = opts[:form_params] || {}
694
+
695
+ # http body (model)
696
+ post_body = opts[:body]
697
+
698
+ # return_type
699
+ return_type = opts[:return_type] || 'PageReputationItems'
700
+
701
+ # auth_names
702
+ auth_names = opts[:auth_names] || ['API_KEY']
703
+
704
+ new_options = opts.merge(
705
+ :header_params => header_params,
706
+ :query_params => query_params,
707
+ :form_params => form_params,
708
+ :body => post_body,
709
+ :auth_names => auth_names,
710
+ :return_type => return_type
711
+ )
712
+
713
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
714
+ if @api_client.config.debugging
715
+ @api_client.config.logger.debug "API called: BounceControllerApi#get_reputation_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
716
+ end
717
+ return data, status_code, headers
718
+ end
640
719
  end
641
720
  end
@@ -797,6 +797,60 @@ module MailSlurpClient
797
797
  return data, status_code, headers
798
798
  end
799
799
 
800
+ # Does inbox have automations
801
+ # Check if an inbox has automations.
802
+ # @param [Hash] opts the optional parameters
803
+ # @return [nil]
804
+ def does_inbox_have_automations(opts = {})
805
+ does_inbox_have_automations_with_http_info(opts)
806
+ nil
807
+ end
808
+
809
+ # Does inbox have automations
810
+ # Check if an inbox has automations.
811
+ # @param [Hash] opts the optional parameters
812
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
813
+ def does_inbox_have_automations_with_http_info(opts = {})
814
+ if @api_client.config.debugging
815
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.does_inbox_have_automations ...'
816
+ end
817
+ # resource path
818
+ local_var_path = '/inboxes/automations'
819
+
820
+ # query parameters
821
+ query_params = opts[:query_params] || {}
822
+
823
+ # header parameters
824
+ header_params = opts[:header_params] || {}
825
+
826
+ # form parameters
827
+ form_params = opts[:form_params] || {}
828
+
829
+ # http body (model)
830
+ post_body = opts[:body]
831
+
832
+ # return_type
833
+ return_type = opts[:return_type]
834
+
835
+ # auth_names
836
+ auth_names = opts[:auth_names] || ['API_KEY']
837
+
838
+ new_options = opts.merge(
839
+ :header_params => header_params,
840
+ :query_params => query_params,
841
+ :form_params => form_params,
842
+ :body => post_body,
843
+ :auth_names => auth_names,
844
+ :return_type => return_type
845
+ )
846
+
847
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
848
+ if @api_client.config.debugging
849
+ @api_client.config.logger.debug "API called: InboxControllerApi#does_inbox_have_automations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
850
+ end
851
+ return data, status_code, headers
852
+ end
853
+
800
854
  # Remove expired inboxes
801
855
  # Remove any expired inboxes for your account (instead of waiting for scheduled removal on server)
802
856
  # @param [Hash] opts the optional parameters
@@ -905,7 +959,7 @@ module MailSlurpClient
905
959
  if @api_client.config.client_side_validation && opts[:'inbox_type'] && !allowable_values.include?(opts[:'inbox_type'])
906
960
  fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
907
961
  end
908
- allowable_values = ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST"]
962
+ allowable_values = ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST", "OAUTH_CONNECTION_GMAIL"]
909
963
  if @api_client.config.client_side_validation && opts[:'inbox_function'] && !allowable_values.include?(opts[:'inbox_function'])
910
964
  fail ArgumentError, "invalid value for \"inbox_function\", must be one of #{allowable_values}"
911
965
  end
@@ -1009,7 +1063,7 @@ module MailSlurpClient
1009
1063
  if @api_client.config.client_side_validation && opts[:'inbox_type'] && !allowable_values.include?(opts[:'inbox_type'])
1010
1064
  fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
1011
1065
  end
1012
- allowable_values = ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST"]
1066
+ allowable_values = ["ALIAS", "THREAD", "CATCH_ALL", "CONNECTOR", "ACCOUNT", "GUEST", "OAUTH_CONNECTION_GMAIL"]
1013
1067
  if @api_client.config.client_side_validation && opts[:'inbox_function'] && !allowable_values.include?(opts[:'inbox_function'])
1014
1068
  fail ArgumentError, "invalid value for \"inbox_function\", must be one of #{allowable_values}"
1015
1069
  end
@@ -0,0 +1,170 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MailSlurpClient
16
+ class OAuthConnectionApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an OAuth connection
23
+ # Configure an inbox for OAuth sync with MailSlurp
24
+ # @param redirect_base [String]
25
+ # @param o_auth_connection_type [String]
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :email_address
28
+ # @return [CreateOAuthConnectionResult]
29
+ def create_o_auth_connection(redirect_base, o_auth_connection_type, opts = {})
30
+ data, _status_code, _headers = create_o_auth_connection_with_http_info(redirect_base, o_auth_connection_type, opts)
31
+ data
32
+ end
33
+
34
+ # Create an OAuth connection
35
+ # Configure an inbox for OAuth sync with MailSlurp
36
+ # @param redirect_base [String]
37
+ # @param o_auth_connection_type [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :email_address
40
+ # @return [Array<(CreateOAuthConnectionResult, Integer, Hash)>] CreateOAuthConnectionResult data, response status code and response headers
41
+ def create_o_auth_connection_with_http_info(redirect_base, o_auth_connection_type, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: OAuthConnectionApi.create_o_auth_connection ...'
44
+ end
45
+ # verify the required parameter 'redirect_base' is set
46
+ if @api_client.config.client_side_validation && redirect_base.nil?
47
+ fail ArgumentError, "Missing the required parameter 'redirect_base' when calling OAuthConnectionApi.create_o_auth_connection"
48
+ end
49
+ # verify the required parameter 'o_auth_connection_type' is set
50
+ if @api_client.config.client_side_validation && o_auth_connection_type.nil?
51
+ fail ArgumentError, "Missing the required parameter 'o_auth_connection_type' when calling OAuthConnectionApi.create_o_auth_connection"
52
+ end
53
+ # verify enum value
54
+ allowable_values = ["GOOGLE", "MICROSOFT"]
55
+ if @api_client.config.client_side_validation && !allowable_values.include?(o_auth_connection_type)
56
+ fail ArgumentError, "invalid value for \"o_auth_connection_type\", must be one of #{allowable_values}"
57
+ end
58
+ # resource path
59
+ local_var_path = '/oauth-connection'
60
+
61
+ # query parameters
62
+ query_params = opts[:query_params] || {}
63
+ query_params[:'redirectBase'] = redirect_base
64
+ query_params[:'oAuthConnectionType'] = o_auth_connection_type
65
+ query_params[:'emailAddress'] = opts[:'email_address'] if !opts[:'email_address'].nil?
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:body]
77
+
78
+ # return_type
79
+ return_type = opts[:return_type] || 'CreateOAuthConnectionResult'
80
+
81
+ # auth_names
82
+ auth_names = opts[:auth_names] || ['API_KEY']
83
+
84
+ new_options = opts.merge(
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => return_type
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: OAuthConnectionApi#create_o_auth_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+
100
+ # Exchange authorization code for access token and create inbox
101
+ # Exchange an OAuth code for an access token and create an inbox connection in MailSlurp
102
+ # @param authorization_code [String]
103
+ # @param redirect_uri [String]
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [CreateOAuthExchangeResult]
106
+ def exchange_authorization_token_and_create_or_update_inbox(authorization_code, redirect_uri, opts = {})
107
+ data, _status_code, _headers = exchange_authorization_token_and_create_or_update_inbox_with_http_info(authorization_code, redirect_uri, opts)
108
+ data
109
+ end
110
+
111
+ # Exchange authorization code for access token and create inbox
112
+ # Exchange an OAuth code for an access token and create an inbox connection in MailSlurp
113
+ # @param authorization_code [String]
114
+ # @param redirect_uri [String]
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [Array<(CreateOAuthExchangeResult, Integer, Hash)>] CreateOAuthExchangeResult data, response status code and response headers
117
+ def exchange_authorization_token_and_create_or_update_inbox_with_http_info(authorization_code, redirect_uri, opts = {})
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug 'Calling API: OAuthConnectionApi.exchange_authorization_token_and_create_or_update_inbox ...'
120
+ end
121
+ # verify the required parameter 'authorization_code' is set
122
+ if @api_client.config.client_side_validation && authorization_code.nil?
123
+ fail ArgumentError, "Missing the required parameter 'authorization_code' when calling OAuthConnectionApi.exchange_authorization_token_and_create_or_update_inbox"
124
+ end
125
+ # verify the required parameter 'redirect_uri' is set
126
+ if @api_client.config.client_side_validation && redirect_uri.nil?
127
+ fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling OAuthConnectionApi.exchange_authorization_token_and_create_or_update_inbox"
128
+ end
129
+ # resource path
130
+ local_var_path = '/oauth-connection/oauth-exchange/google'
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'authorizationCode'] = authorization_code
135
+ query_params[:'redirectUri'] = redirect_uri
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
141
+
142
+ # form parameters
143
+ form_params = opts[:form_params] || {}
144
+
145
+ # http body (model)
146
+ post_body = opts[:body]
147
+
148
+ # return_type
149
+ return_type = opts[:return_type] || 'CreateOAuthExchangeResult'
150
+
151
+ # auth_names
152
+ auth_names = opts[:auth_names] || ['API_KEY']
153
+
154
+ new_options = opts.merge(
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: OAuthConnectionApi#exchange_authorization_token_and_create_or_update_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ end
170
+ end