mailslurp_client 15.13.29 → 15.13.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +233 -0
  3. data/lib/mailslurp_client/api/webhook_controller_api.rb +98 -0
  4. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  5. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  8. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  9. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  10. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  11. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  12. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  13. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  14. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  15. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  17. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  19. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  20. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  22. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +308 -0
  26. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  33. data/lib/mailslurp_client/models/pageable_object.rb +22 -22
  34. data/lib/mailslurp_client/models/phone_number_projection.rb +18 -18
  35. data/lib/mailslurp_client/models/scheduled_job.rb +371 -0
  36. data/lib/mailslurp_client/models/sent_email_projection.rb +59 -59
  37. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  38. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  39. data/lib/mailslurp_client/version.rb +1 -1
  40. data/lib/mailslurp_client.rb +2 -0
  41. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9400b6cc8b532c2cae1cd5898166cb02536ed21d37b13269e799146dadce283b
4
- data.tar.gz: 06c30056ca2eb7954666d90e6e45974446eef77efcb149d08680a323c3d5af72
3
+ metadata.gz: 525bd65ee50c8b883382d91a147238bcf323746511101c0427d05ec7aa822123
4
+ data.tar.gz: cc64faabaa910734787e093a3bf9fd23bd9b9b016a253e9c076c7caa7ff2f8b3
5
5
  SHA512:
6
- metadata.gz: 1ab95a5098f031c88296bb9d0e44bd97bcbd49009177cc3475984975acc05de9b867f82409b7cf92106f9b60069686f72e1500c9b8691652dbb1538a6686419d
7
- data.tar.gz: bb13a830e84326cc0cf57bc6ae95c4e9979bfedeea8a3e4fd63350a3eff44fedd7f47db2180f97c4028cf53786ee42912d11902e73dec7401b2c5576a8216a22
6
+ metadata.gz: f3b7d3be6db83f65a708e374e1430120c14f358ea3066536e589af668ecd38844a3015fdfbb9092516a529ac83fb7db86e00e0d4c4e86cb8ee4e722891c27033
7
+ data.tar.gz: 46d65a84cf555db8b597722ba146efeb5c9e2276113569351f8b3c5203c7ec510a1b87b2974ab6ee69d24a332bb2678d86acf71308653150224cedd3b6747d35
@@ -693,6 +693,81 @@ module MailSlurpClient
693
693
  return data, status_code, headers
694
694
  end
695
695
 
696
+ # Get all scheduled email sending jobs for account
697
+ # Schedule sending of emails using scheduled jobs. These can be inbox or account level.
698
+ # @param [Hash] opts the optional parameters
699
+ # @option opts [Integer] :page Optional page index in scheduled job list pagination (default to 0)
700
+ # @option opts [Integer] :size Optional page size in scheduled job list pagination (default to 20)
701
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
702
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
703
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
704
+ # @return [PageScheduledJobs]
705
+ def get_all_scheduled_jobs(opts = {})
706
+ data, _status_code, _headers = get_all_scheduled_jobs_with_http_info(opts)
707
+ data
708
+ end
709
+
710
+ # Get all scheduled email sending jobs for account
711
+ # Schedule sending of emails using scheduled jobs. These can be inbox or account level.
712
+ # @param [Hash] opts the optional parameters
713
+ # @option opts [Integer] :page Optional page index in scheduled job list pagination
714
+ # @option opts [Integer] :size Optional page size in scheduled job list pagination
715
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
716
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
717
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
718
+ # @return [Array<(PageScheduledJobs, Integer, Hash)>] PageScheduledJobs data, response status code and response headers
719
+ def get_all_scheduled_jobs_with_http_info(opts = {})
720
+ if @api_client.config.debugging
721
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_all_scheduled_jobs ...'
722
+ end
723
+ allowable_values = ["ASC", "DESC"]
724
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
725
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
726
+ end
727
+ # resource path
728
+ local_var_path = '/inboxes/scheduled-jobs'
729
+
730
+ # query parameters
731
+ query_params = opts[:query_params] || {}
732
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
733
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
734
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
735
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
736
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
737
+
738
+ # header parameters
739
+ header_params = opts[:header_params] || {}
740
+ # HTTP header 'Accept' (if needed)
741
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
742
+
743
+ # form parameters
744
+ form_params = opts[:form_params] || {}
745
+
746
+ # http body (model)
747
+ post_body = opts[:body]
748
+
749
+ # return_type
750
+ return_type = opts[:return_type] || 'PageScheduledJobs'
751
+
752
+ # auth_names
753
+ auth_names = opts[:auth_names] || ['API_KEY']
754
+
755
+ new_options = opts.merge(
756
+ :header_params => header_params,
757
+ :query_params => query_params,
758
+ :form_params => form_params,
759
+ :body => post_body,
760
+ :auth_names => auth_names,
761
+ :return_type => return_type
762
+ )
763
+
764
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
765
+ if @api_client.config.debugging
766
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_all_scheduled_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
767
+ end
768
+ return data, status_code, headers
769
+ end
770
+
696
771
  # Get all email delivery statuses for an inbox
697
772
  # @param inbox_id [String]
698
773
  # @param [Hash] opts the optional parameters
@@ -1733,6 +1808,87 @@ module MailSlurpClient
1733
1808
  return data, status_code, headers
1734
1809
  end
1735
1810
 
1811
+ # Get all scheduled email sending jobs for the inbox
1812
+ # Schedule sending of emails using scheduled jobs.
1813
+ # @param inbox_id [String]
1814
+ # @param [Hash] opts the optional parameters
1815
+ # @option opts [Integer] :page Optional page index in scheduled job list pagination (default to 0)
1816
+ # @option opts [Integer] :size Optional page size in scheduled job list pagination (default to 20)
1817
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
1818
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
1819
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
1820
+ # @return [PageScheduledJobs]
1821
+ def get_scheduled_jobs_by_inbox_id(inbox_id, opts = {})
1822
+ data, _status_code, _headers = get_scheduled_jobs_by_inbox_id_with_http_info(inbox_id, opts)
1823
+ data
1824
+ end
1825
+
1826
+ # Get all scheduled email sending jobs for the inbox
1827
+ # Schedule sending of emails using scheduled jobs.
1828
+ # @param inbox_id [String]
1829
+ # @param [Hash] opts the optional parameters
1830
+ # @option opts [Integer] :page Optional page index in scheduled job list pagination
1831
+ # @option opts [Integer] :size Optional page size in scheduled job list pagination
1832
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
1833
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
1834
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
1835
+ # @return [Array<(PageScheduledJobs, Integer, Hash)>] PageScheduledJobs data, response status code and response headers
1836
+ def get_scheduled_jobs_by_inbox_id_with_http_info(inbox_id, opts = {})
1837
+ if @api_client.config.debugging
1838
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_scheduled_jobs_by_inbox_id ...'
1839
+ end
1840
+ # verify the required parameter 'inbox_id' is set
1841
+ if @api_client.config.client_side_validation && inbox_id.nil?
1842
+ fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_scheduled_jobs_by_inbox_id"
1843
+ end
1844
+ allowable_values = ["ASC", "DESC"]
1845
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
1846
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
1847
+ end
1848
+ # resource path
1849
+ local_var_path = '/inboxes/{inboxId}/scheduled-jobs'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
1850
+
1851
+ # query parameters
1852
+ query_params = opts[:query_params] || {}
1853
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1854
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1855
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1856
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
1857
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1858
+
1859
+ # header parameters
1860
+ header_params = opts[:header_params] || {}
1861
+ # HTTP header 'Accept' (if needed)
1862
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1863
+
1864
+ # form parameters
1865
+ form_params = opts[:form_params] || {}
1866
+
1867
+ # http body (model)
1868
+ post_body = opts[:body]
1869
+
1870
+ # return_type
1871
+ return_type = opts[:return_type] || 'PageScheduledJobs'
1872
+
1873
+ # auth_names
1874
+ auth_names = opts[:auth_names] || ['API_KEY']
1875
+
1876
+ new_options = opts.merge(
1877
+ :header_params => header_params,
1878
+ :query_params => query_params,
1879
+ :form_params => form_params,
1880
+ :body => post_body,
1881
+ :auth_names => auth_names,
1882
+ :return_type => return_type
1883
+ )
1884
+
1885
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1886
+ if @api_client.config.debugging
1887
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_scheduled_jobs_by_inbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1888
+ end
1889
+ return data, status_code, headers
1890
+ end
1891
+
1736
1892
  # List inbox rulesets
1737
1893
  # List all rulesets attached to an inbox
1738
1894
  # @param inbox_id [String]
@@ -2244,6 +2400,83 @@ module MailSlurpClient
2244
2400
  return data, status_code, headers
2245
2401
  end
2246
2402
 
2403
+ # Send email with with delay or schedule
2404
+ # Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending.
2405
+ # @param inbox_id [String] ID of the inbox you want to send the email from
2406
+ # @param send_email_options [SendEmailOptions]
2407
+ # @param [Hash] opts the optional parameters
2408
+ # @option opts [DateTime] :send_at_timestamp Sending timestamp
2409
+ # @option opts [Integer] :send_at_now_plus_seconds Send after n seconds
2410
+ # @option opts [Boolean] :validate_before_enqueue Validate before adding to queue
2411
+ # @return [nil]
2412
+ def send_with_schedule(inbox_id, send_email_options, opts = {})
2413
+ send_with_schedule_with_http_info(inbox_id, send_email_options, opts)
2414
+ nil
2415
+ end
2416
+
2417
+ # Send email with with delay or schedule
2418
+ # Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending.
2419
+ # @param inbox_id [String] ID of the inbox you want to send the email from
2420
+ # @param send_email_options [SendEmailOptions]
2421
+ # @param [Hash] opts the optional parameters
2422
+ # @option opts [DateTime] :send_at_timestamp Sending timestamp
2423
+ # @option opts [Integer] :send_at_now_plus_seconds Send after n seconds
2424
+ # @option opts [Boolean] :validate_before_enqueue Validate before adding to queue
2425
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2426
+ def send_with_schedule_with_http_info(inbox_id, send_email_options, opts = {})
2427
+ if @api_client.config.debugging
2428
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.send_with_schedule ...'
2429
+ end
2430
+ # verify the required parameter 'inbox_id' is set
2431
+ if @api_client.config.client_side_validation && inbox_id.nil?
2432
+ fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.send_with_schedule"
2433
+ end
2434
+ # verify the required parameter 'send_email_options' is set
2435
+ if @api_client.config.client_side_validation && send_email_options.nil?
2436
+ fail ArgumentError, "Missing the required parameter 'send_email_options' when calling InboxControllerApi.send_with_schedule"
2437
+ end
2438
+ # resource path
2439
+ local_var_path = '/inboxes/{inboxId}/with-schedule'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
2440
+
2441
+ # query parameters
2442
+ query_params = opts[:query_params] || {}
2443
+ query_params[:'sendAtTimestamp'] = opts[:'send_at_timestamp'] if !opts[:'send_at_timestamp'].nil?
2444
+ query_params[:'sendAtNowPlusSeconds'] = opts[:'send_at_now_plus_seconds'] if !opts[:'send_at_now_plus_seconds'].nil?
2445
+ query_params[:'validateBeforeEnqueue'] = opts[:'validate_before_enqueue'] if !opts[:'validate_before_enqueue'].nil?
2446
+
2447
+ # header parameters
2448
+ header_params = opts[:header_params] || {}
2449
+ # HTTP header 'Content-Type'
2450
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2451
+
2452
+ # form parameters
2453
+ form_params = opts[:form_params] || {}
2454
+
2455
+ # http body (model)
2456
+ post_body = opts[:body] || @api_client.object_to_http_body(send_email_options)
2457
+
2458
+ # return_type
2459
+ return_type = opts[:return_type]
2460
+
2461
+ # auth_names
2462
+ auth_names = opts[:auth_names] || ['API_KEY']
2463
+
2464
+ new_options = opts.merge(
2465
+ :header_params => header_params,
2466
+ :query_params => query_params,
2467
+ :form_params => form_params,
2468
+ :body => post_body,
2469
+ :auth_names => auth_names,
2470
+ :return_type => return_type
2471
+ )
2472
+
2473
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2474
+ if @api_client.config.debugging
2475
+ @api_client.config.logger.debug "API called: InboxControllerApi#send_with_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2476
+ end
2477
+ return data, status_code, headers
2478
+ end
2479
+
2247
2480
  # Set inbox favourited state
2248
2481
  # Set and return new favourite state for an inbox
2249
2482
  # @param inbox_id [String] ID of inbox to set favourite state
@@ -400,6 +400,104 @@ module MailSlurpClient
400
400
  return data, status_code, headers
401
401
  end
402
402
 
403
+ # List account webhooks Paginated
404
+ # List account webhooks in paginated form. Allows for page index, page size, and sort direction.
405
+ # @param [Hash] opts the optional parameters
406
+ # @option opts [Integer] :page Optional page index in list pagination (default to 0)
407
+ # @option opts [Integer] :size Optional page size for paginated result list. (default to 20)
408
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'DESC')
409
+ # @option opts [String] :event_type Optional event type
410
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
411
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
412
+ # @return [PageWebhookProjection]
413
+ def get_all_account_webhooks(opts = {})
414
+ data, _status_code, _headers = get_all_account_webhooks_with_http_info(opts)
415
+ data
416
+ end
417
+
418
+ # List account webhooks Paginated
419
+ # List account webhooks in paginated form. Allows for page index, page size, and sort direction.
420
+ # @param [Hash] opts the optional parameters
421
+ # @option opts [Integer] :page Optional page index in list pagination
422
+ # @option opts [Integer] :size Optional page size for paginated result list.
423
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
424
+ # @option opts [String] :event_type Optional event type
425
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
426
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
427
+ # @return [Array<(PageWebhookProjection, Integer, Hash)>] PageWebhookProjection data, response status code and response headers
428
+ def get_all_account_webhooks_with_http_info(opts = {})
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.get_all_account_webhooks ...'
431
+ end
432
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 9223372036854775807
433
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WebhookControllerApi.get_all_account_webhooks, must be smaller than or equal to 9223372036854775807.'
434
+ end
435
+
436
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
437
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WebhookControllerApi.get_all_account_webhooks, must be greater than or equal to 0.'
438
+ end
439
+
440
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
441
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling WebhookControllerApi.get_all_account_webhooks, must be smaller than or equal to 100.'
442
+ end
443
+
444
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
445
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling WebhookControllerApi.get_all_account_webhooks, must be greater than or equal to 1.'
446
+ end
447
+
448
+ allowable_values = ["ASC", "DESC"]
449
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
450
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
451
+ end
452
+ allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
453
+ if @api_client.config.client_side_validation && opts[:'event_type'] && !allowable_values.include?(opts[:'event_type'])
454
+ fail ArgumentError, "invalid value for \"event_type\", must be one of #{allowable_values}"
455
+ end
456
+ # resource path
457
+ local_var_path = '/webhooks/account/paginated'
458
+
459
+ # query parameters
460
+ query_params = opts[:query_params] || {}
461
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
462
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
463
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
464
+ query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil?
465
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
466
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
467
+
468
+ # header parameters
469
+ header_params = opts[:header_params] || {}
470
+ # HTTP header 'Accept' (if needed)
471
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
472
+
473
+ # form parameters
474
+ form_params = opts[:form_params] || {}
475
+
476
+ # http body (model)
477
+ post_body = opts[:body]
478
+
479
+ # return_type
480
+ return_type = opts[:return_type] || 'PageWebhookProjection'
481
+
482
+ # auth_names
483
+ auth_names = opts[:auth_names] || ['API_KEY']
484
+
485
+ new_options = opts.merge(
486
+ :header_params => header_params,
487
+ :query_params => query_params,
488
+ :form_params => form_params,
489
+ :body => post_body,
490
+ :auth_names => auth_names,
491
+ :return_type => return_type
492
+ )
493
+
494
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
495
+ if @api_client.config.debugging
496
+ @api_client.config.logger.debug "API called: WebhookControllerApi#get_all_account_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
497
+ end
498
+ return data, status_code, headers
499
+ end
500
+
403
501
  # Get results for all webhooks
404
502
  # @param [Hash] opts the optional parameters
405
503
  # @option opts [Integer] :page Optional page index in list pagination (default to 0)
@@ -20,9 +20,6 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
- # Content type of attachment.
24
- attr_accessor :content_type
25
-
26
23
  attr_accessor :user_id
27
24
 
28
25
  # Attachment ID
@@ -32,16 +29,19 @@ module MailSlurpClient
32
29
 
33
30
  attr_accessor :updated_at
34
31
 
32
+ # Content type of attachment.
33
+ attr_accessor :content_type
34
+
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
- :'content_type' => :'contentType',
41
40
  :'user_id' => :'userId',
42
41
  :'attachment_id' => :'attachmentId',
43
42
  :'created_at' => :'createdAt',
44
- :'updated_at' => :'updatedAt'
43
+ :'updated_at' => :'updatedAt',
44
+ :'content_type' => :'contentType'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
- :'content_type' => :'String',
54
53
  :'user_id' => :'String',
55
54
  :'attachment_id' => :'String',
56
55
  :'created_at' => :'DateTime',
57
- :'updated_at' => :'DateTime'
56
+ :'updated_at' => :'DateTime',
57
+ :'content_type' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -87,10 +87,6 @@ module MailSlurpClient
87
87
  self.content_length = attributes[:'content_length']
88
88
  end
89
89
 
90
- if attributes.key?(:'content_type')
91
- self.content_type = attributes[:'content_type']
92
- end
93
-
94
90
  if attributes.key?(:'user_id')
95
91
  self.user_id = attributes[:'user_id']
96
92
  end
@@ -106,6 +102,10 @@ module MailSlurpClient
106
102
  if attributes.key?(:'updated_at')
107
103
  self.updated_at = attributes[:'updated_at']
108
104
  end
105
+
106
+ if attributes.key?(:'content_type')
107
+ self.content_type = attributes[:'content_type']
108
+ end
109
109
  end
110
110
 
111
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -148,11 +148,11 @@ module MailSlurpClient
148
148
  self.class == o.class &&
149
149
  name == o.name &&
150
150
  content_length == o.content_length &&
151
- content_type == o.content_type &&
152
151
  user_id == o.user_id &&
153
152
  attachment_id == o.attachment_id &&
154
153
  created_at == o.created_at &&
155
- updated_at == o.updated_at
154
+ updated_at == o.updated_at &&
155
+ content_type == o.content_type
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module MailSlurpClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
167
+ [name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -17,25 +17,25 @@ module MailSlurpClient
17
17
  class BounceProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :sender
21
-
22
20
  attr_accessor :subject
23
21
 
24
- attr_accessor :created_at
22
+ attr_accessor :sender
25
23
 
26
- attr_accessor :bounce_mta
24
+ attr_accessor :created_at
27
25
 
28
26
  attr_accessor :bounce_type
29
27
 
28
+ attr_accessor :bounce_mta
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
33
  :'id' => :'id',
34
- :'sender' => :'sender',
35
34
  :'subject' => :'subject',
35
+ :'sender' => :'sender',
36
36
  :'created_at' => :'createdAt',
37
- :'bounce_mta' => :'bounceMta',
38
- :'bounce_type' => :'bounceType'
37
+ :'bounce_type' => :'bounceType',
38
+ :'bounce_mta' => :'bounceMta'
39
39
  }
40
40
  end
41
41
 
@@ -43,11 +43,11 @@ module MailSlurpClient
43
43
  def self.openapi_types
44
44
  {
45
45
  :'id' => :'String',
46
- :'sender' => :'String',
47
46
  :'subject' => :'String',
47
+ :'sender' => :'String',
48
48
  :'created_at' => :'DateTime',
49
- :'bounce_mta' => :'String',
50
- :'bounce_type' => :'String'
49
+ :'bounce_type' => :'String',
50
+ :'bounce_mta' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -76,25 +76,25 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'sender')
80
- self.sender = attributes[:'sender']
81
- end
82
-
83
79
  if attributes.key?(:'subject')
84
80
  self.subject = attributes[:'subject']
85
81
  end
86
82
 
87
- if attributes.key?(:'created_at')
88
- self.created_at = attributes[:'created_at']
83
+ if attributes.key?(:'sender')
84
+ self.sender = attributes[:'sender']
89
85
  end
90
86
 
91
- if attributes.key?(:'bounce_mta')
92
- self.bounce_mta = attributes[:'bounce_mta']
87
+ if attributes.key?(:'created_at')
88
+ self.created_at = attributes[:'created_at']
93
89
  end
94
90
 
95
91
  if attributes.key?(:'bounce_type')
96
92
  self.bounce_type = attributes[:'bounce_type']
97
93
  end
94
+
95
+ if attributes.key?(:'bounce_mta')
96
+ self.bounce_mta = attributes[:'bounce_mta']
97
+ end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,11 +126,11 @@ module MailSlurpClient
126
126
  return true if self.equal?(o)
127
127
  self.class == o.class &&
128
128
  id == o.id &&
129
- sender == o.sender &&
130
129
  subject == o.subject &&
130
+ sender == o.sender &&
131
131
  created_at == o.created_at &&
132
- bounce_mta == o.bounce_mta &&
133
- bounce_type == o.bounce_type
132
+ bounce_type == o.bounce_type &&
133
+ bounce_mta == o.bounce_mta
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [id, sender, subject, created_at, bounce_mta, bounce_type].hash
145
+ [id, subject, sender, created_at, bounce_type, bounce_mta].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -17,8 +17,6 @@ module MailSlurpClient
17
17
  class BounceRecipientProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :action
21
-
22
20
  attr_accessor :status
23
21
 
24
22
  attr_accessor :sent_email_id
@@ -27,15 +25,17 @@ module MailSlurpClient
27
25
 
28
26
  attr_accessor :recipient
29
27
 
28
+ attr_accessor :action
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
33
  :'id' => :'id',
34
- :'action' => :'action',
35
34
  :'status' => :'status',
36
35
  :'sent_email_id' => :'sentEmailId',
37
36
  :'created_at' => :'createdAt',
38
- :'recipient' => :'recipient'
37
+ :'recipient' => :'recipient',
38
+ :'action' => :'action'
39
39
  }
40
40
  end
41
41
 
@@ -43,11 +43,11 @@ module MailSlurpClient
43
43
  def self.openapi_types
44
44
  {
45
45
  :'id' => :'String',
46
- :'action' => :'String',
47
46
  :'status' => :'String',
48
47
  :'sent_email_id' => :'String',
49
48
  :'created_at' => :'DateTime',
50
- :'recipient' => :'String'
49
+ :'recipient' => :'String',
50
+ :'action' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -76,10 +76,6 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'action')
80
- self.action = attributes[:'action']
81
- end
82
-
83
79
  if attributes.key?(:'status')
84
80
  self.status = attributes[:'status']
85
81
  end
@@ -95,6 +91,10 @@ module MailSlurpClient
95
91
  if attributes.key?(:'recipient')
96
92
  self.recipient = attributes[:'recipient']
97
93
  end
94
+
95
+ if attributes.key?(:'action')
96
+ self.action = attributes[:'action']
97
+ end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,11 +126,11 @@ module MailSlurpClient
126
126
  return true if self.equal?(o)
127
127
  self.class == o.class &&
128
128
  id == o.id &&
129
- action == o.action &&
130
129
  status == o.status &&
131
130
  sent_email_id == o.sent_email_id &&
132
131
  created_at == o.created_at &&
133
- recipient == o.recipient
132
+ recipient == o.recipient &&
133
+ action == o.action
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [id, action, status, sent_email_id, created_at, recipient].hash
145
+ [id, status, sent_email_id, created_at, recipient, action].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash