twilio-ruby 5.39.2 → 5.40.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.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGES.md +107 -1
  4. data/CONTRIBUTING.md +2 -2
  5. data/ISSUE_TEMPLATE.md +5 -1
  6. data/PULL_REQUEST_TEMPLATE.md +1 -1
  7. data/README.md +4 -3
  8. data/lib/twilio-ruby/framework/version.rb +4 -8
  9. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +6 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
  17. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +85 -60
  19. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +14 -0
  21. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +14 -0
  22. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +14 -0
  23. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
  25. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
  26. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
  27. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
  28. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
  29. data/lib/twilio-ruby/rest/client.rb +7 -0
  30. data/lib/twilio-ruby/rest/conversations.rb +39 -3
  31. data/lib/twilio-ruby/rest/conversations/v1.rb +68 -5
  32. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +268 -0
  33. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
  34. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +21 -10
  35. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
  36. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +34 -19
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +48 -32
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
  39. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +427 -0
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +374 -0
  41. data/lib/twilio-ruby/rest/conversations/v1/service.rb +442 -0
  42. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +388 -0
  43. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +271 -0
  44. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +586 -0
  46. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +549 -0
  47. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +394 -0
  48. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +519 -0
  49. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +457 -0
  50. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +395 -0
  51. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +419 -0
  52. data/lib/twilio-ruby/rest/conversations/v1/user.rb +398 -0
  53. data/lib/twilio-ruby/rest/events.rb +72 -0
  54. data/lib/twilio-ruby/rest/events/v1.rb +90 -0
  55. data/lib/twilio-ruby/rest/events/v1/event_type.rb +291 -0
  56. data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
  57. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
  58. data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
  59. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
  60. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
  61. data/lib/twilio-ruby/rest/events/v1/subscription.rb +383 -0
  62. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +216 -0
  63. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
  64. data/lib/twilio-ruby/rest/messaging.rb +6 -0
  65. data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
  66. data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
  67. data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
  68. data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
  69. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
  70. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
  71. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
  74. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
  75. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
  76. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
  77. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +45 -4
  78. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
  79. data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -13
  80. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +6 -6
  81. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +5 -5
  82. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +8 -8
  83. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -8
  84. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +8 -8
  85. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -14
  86. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
  87. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +7 -7
  88. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +1 -1
  89. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
  90. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +17 -7
  91. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +75 -9
  92. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -1
  93. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
  94. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
  95. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
  96. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +38 -23
  97. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
  98. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
  99. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
  100. data/lib/twilio-ruby/rest/verify/v2/service.rb +21 -9
  101. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -2
  102. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -2
  103. data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
  104. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
  105. data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
  107. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
  108. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
  109. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -19
  110. data/lib/twilio-ruby/version.rb +1 -1
  111. data/spec/framework/version_spec.rb +53 -0
  112. data/spec/holodeck/holodeck.rb +3 -3
  113. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
  114. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
  115. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
  116. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
  117. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  118. data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
  119. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
  120. data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
  121. data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
  122. data/spec/integration/conversations/v1/configuration_spec.rb +87 -0
  123. data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +4 -0
  124. data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
  125. data/spec/integration/conversations/v1/conversation/participant_spec.rb +60 -4
  126. data/spec/integration/conversations/v1/conversation_spec.rb +35 -0
  127. data/spec/integration/conversations/v1/credential_spec.rb +219 -0
  128. data/spec/integration/conversations/v1/role_spec.rb +249 -0
  129. data/spec/integration/conversations/v1/service/binding_spec.rb +166 -0
  130. data/spec/integration/conversations/v1/service/configuration/notification_spec.rb +115 -0
  131. data/spec/integration/conversations/v1/service/configuration_spec.rb +87 -0
  132. data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +144 -0
  133. data/spec/integration/conversations/v1/service/conversation/message_spec.rb +429 -0
  134. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +407 -0
  135. data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +299 -0
  136. data/spec/integration/conversations/v1/service/conversation_spec.rb +289 -0
  137. data/spec/integration/conversations/v1/service/role_spec.rb +260 -0
  138. data/spec/integration/conversations/v1/service/user_spec.rb +230 -0
  139. data/spec/integration/conversations/v1/service_spec.rb +174 -0
  140. data/spec/integration/conversations/v1/user_spec.rb +220 -0
  141. data/spec/integration/events/v1/event_type_spec.rb +133 -0
  142. data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
  143. data/spec/integration/events/v1/schema_spec.rb +46 -0
  144. data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
  145. data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
  146. data/spec/integration/events/v1/sink_spec.rb +217 -0
  147. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +91 -0
  148. data/spec/integration/events/v1/subscription_spec.rb +243 -0
  149. data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
  150. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
  151. data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +27 -0
  152. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
  153. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
  154. data/spec/integration/supersim/v1/sim_spec.rb +23 -0
  155. data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
  156. data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
  157. data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
  158. data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
  159. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
  160. data/spec/integration/video/v1/room_spec.rb +37 -0
  161. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  162. data/spec/spec_helper.rb +1 -1
  163. metadata +82 -5
  164. data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
@@ -38,7 +38,10 @@ module Twilio
38
38
  # @param [String] contains The pattern on which to match phone numbers. Valid
39
39
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
40
40
  # single digit. For examples, see [Example
41
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
41
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
42
+ # and [Example
43
+ # 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
44
+ # If specified, this value must have at least two characters.
42
45
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
43
46
  # messages. Can be: `true` or `false`.
44
47
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -125,7 +128,10 @@ module Twilio
125
128
  # @param [String] contains The pattern on which to match phone numbers. Valid
126
129
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
127
130
  # single digit. For examples, see [Example
128
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
131
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
132
+ # and [Example
133
+ # 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
134
+ # If specified, this value must have at least two characters.
129
135
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
130
136
  # messages. Can be: `true` or `false`.
131
137
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -228,7 +234,10 @@ module Twilio
228
234
  # @param [String] contains The pattern on which to match phone numbers. Valid
229
235
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
230
236
  # single digit. For examples, see [Example
231
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
237
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
238
+ # and [Example
239
+ # 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
240
+ # If specified, this value must have at least two characters.
232
241
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
233
242
  # messages. Can be: `true` or `false`.
234
243
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -38,7 +38,10 @@ module Twilio
38
38
  # @param [String] contains The pattern on which to match phone numbers. Valid
39
39
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
40
40
  # single digit. For examples, see [Example
41
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
41
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
42
+ # and [Example
43
+ # 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
44
+ # If specified, this value must have at least two characters.
42
45
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
43
46
  # messages. Can be: `true` or `false`.
44
47
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -125,7 +128,10 @@ module Twilio
125
128
  # @param [String] contains The pattern on which to match phone numbers. Valid
126
129
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
127
130
  # single digit. For examples, see [Example
128
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
131
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
132
+ # and [Example
133
+ # 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
134
+ # If specified, this value must have at least two characters.
129
135
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
130
136
  # messages. Can be: `true` or `false`.
131
137
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -228,7 +234,10 @@ module Twilio
228
234
  # @param [String] contains The pattern on which to match phone numbers. Valid
229
235
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
230
236
  # single digit. For examples, see [Example
231
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
237
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
238
+ # and [Example
239
+ # 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
240
+ # If specified, this value must have at least two characters.
232
241
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
233
242
  # messages. Can be: `true` or `false`.
234
243
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -57,7 +57,8 @@ module Twilio
57
57
  # `completed`. If no event is specified, we send the `completed` status. If you
58
58
  # want to receive multiple events, specify each one in a separate
59
59
  # `status_callback_event` parameter. See the code sample for [monitoring call
60
- # progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored.
60
+ # progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json).
61
+ # If an `application_sid` is present, this parameter is ignored.
61
62
  # @param [String] status_callback_method The HTTP method we should use when
62
63
  # calling the `status_callback` URL. Can be: `GET` or `POST` and the default is
63
64
  # `POST`. If an `application_sid` parameter is present, this parameter is ignored.
@@ -36,50 +36,59 @@ module Twilio
36
36
 
37
37
  ##
38
38
  # Create the PaymentInstance
39
- # @param [String] idempotency_key A unique token for each payment session that
40
- # should be provided to maintain idempotency of the session.
41
- # @param [String] status_callback The URL we should call using the
42
- # `status_callback` to send status information of payment session.
43
- # @param [payment.BankAccountType] bank_account_type If Payment source is ACH,
44
- # type of bank account. Can be: `consumer-checking`, `consumer-savings`,
39
+ # @param [String] idempotency_key A unique token that will be used to ensure that
40
+ # multiple API calls with the same information do not result in multiple
41
+ # transactions. This should be a unique string value per API call and can be a
42
+ # randomly generated.
43
+ # @param [String] status_callback Provide an absolute or relative URL to receive
44
+ # status updates regarding your Pay session. Read more about the [expected
45
+ # StatusCallback
46
+ # values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback)
47
+ # @param [payment.BankAccountType] bank_account_type Type of bank account if
48
+ # payment source is ACH. One of `consumer-checking`, `consumer-savings`, or
45
49
  # `commercial-checking`. The default value is `consumer-checking`.
46
- # @param [String] charge_amount If this field is present and greater than `0.0`
47
- # payment source will be charged. Otherwise payment source will be tokenized.
48
- # @param [String] currency Currency `charge_amount` is in. It's format should be
49
- # as specified in [ISO
50
+ # @param [String] charge_amount A positive decimal value less than 1,000,000 to
51
+ # charge against the credit card or bank account. Default currency can be
52
+ # overwritten with `currency` field. Leave blank or set to 0 to tokenize.
53
+ # @param [String] currency The currency of the `charge_amount`, formatted as [ISO
50
54
  # 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The
51
- # default value is `USD`.
52
- # @param [String] description Decription of the charge.
53
- # @param [String] input Kind of medium customer would enter payment source
54
- # information in. Currently only 'DTMF' is supported, which means customer would
55
- # use keypad of their phone to enter card number etc.
56
- # @param [String] min_postal_code_length If postal code is expected, minimum
57
- # length of the postal code. When user enters postal code, this value will be used
58
- # to validate.
59
- # @param [Hash] parameter Additonal data to be sent over to payment provider. It
60
- # has to be a JSON string with only one level object. This parameter can be used
61
- # to send information such as customer name, phone number etc. Refer to specific
62
- # payment provider's documentation in Twilio console for supported
63
- # names/values/format.
64
- # @param [String] payment_connector Payment connector that you would like Twilio
65
- # to use for processing payments. The default value is `Default`, which means you
66
- # need to have at least one payment connector configured in Twilio with name
67
- # 'Default'. If not you must provide connector configuration name here.
68
- # @param [payment.PaymentMethod] payment_method Payment source type. Can be:
69
- # `credit-card`, `ach-debit`. The default value is `credit-card`.
70
- # @param [Boolean] postal_code Whether to expect postal code during payment source
71
- # data gathering. Can be: `true`, `false`. The default value is `true`.
72
- # @param [Boolean] security_code Whether to expect security code during payment
73
- # source data gathering. Can be: `true`, `false`. The default value is `true`.
74
- # @param [String] timeout The number of seconds that we should allow customer to
75
- # enter payment information. Can be an integer between `5` and `600`, inclusive.
76
- # The default value is `5`.
77
- # @param [payment.TokenType] token_type If tokenization of payment source is
78
- # desired, this represents type of token. Can be: `one-time`, `reusable`. The
79
- # default value is `reusable`.
80
- # @param [String] valid_card_types List of card types accepted with each card
81
- # types separated by space. Can be:
82
- # `visa`,`nmastercard`,`amex`,`maestro`,`discover`,`optima`,`jcb`,`diners-club`,`enroute`. The default value is `visa mastercard amex`.
55
+ # default value is `USD` and all values allowed from the <Pay> Connector are
56
+ # accepted.
57
+ # @param [String] description The description can be used to provide more details
58
+ # regarding the transaction. This information is submitted along with the payment
59
+ # details to the Payment Connector which are then posted on the transactions.
60
+ # @param [String] input A list of inputs that should be accepted. Currently only
61
+ # `dtmf` is supported. All digits captured during a pay session are redacted from
62
+ # the logs.
63
+ # @param [String] min_postal_code_length A positive integer that is used to
64
+ # validate the length of the `PostalCode` inputted by the user. User must enter
65
+ # this many digits.
66
+ # @param [Hash] parameter A single level JSON string that is required when
67
+ # accepting certain information specific only to ACH payments. The information
68
+ # that has to be included here depends on the <Pay> Connector. [Read
69
+ # more](https://www.twilio.com/console/voice/pay-connectors).
70
+ # @param [String] payment_connector This is the unique name corresponding to the
71
+ # Payment Gateway Connector installed in the Twilio Add-ons. Learn more about
72
+ # [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The
73
+ # default value is `Default`.
74
+ # @param [payment.PaymentMethod] payment_method Type of payment being captured.
75
+ # One of `credit-card` or `ach-debit`. The default value is `credit-card`.
76
+ # @param [Boolean] postal_code Indicates whether the credit card postal code (zip
77
+ # code) is a required piece of payment information that must be provided by the
78
+ # caller. The default is `true`.
79
+ # @param [Boolean] security_code Indicates whether the credit card security code
80
+ # is a required piece of payment information that must be provided by the caller.
81
+ # The default is `true`.
82
+ # @param [String] timeout The number of seconds that <Pay> should wait for the
83
+ # caller to press a digit between each subsequent digit, after the first one,
84
+ # before moving on to validate the digits captured. The default is `5`, maximum is
85
+ # `600`.
86
+ # @param [payment.TokenType] token_type Indicates whether the payment method
87
+ # should be tokenized as a `one-time` or `reusable` token. The default value is
88
+ # `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is
89
+ # entered, the payment method will be charged and not tokenized.
90
+ # @param [String] valid_card_types Credit card types separated by space that Pay
91
+ # should accept. The default value is `visa mastercard amex`
83
92
  # @return [PaymentInstance] Created PaymentInstance
84
93
  def create(idempotency_key: nil, status_callback: nil, bank_account_type: :unset, charge_amount: :unset, currency: :unset, description: :unset, input: :unset, min_postal_code_length: :unset, parameter: :unset, payment_connector: :unset, payment_method: :unset, postal_code: :unset, security_code: :unset, timeout: :unset, token_type: :unset, valid_card_types: :unset)
85
94
  data = Twilio::Values.of({
@@ -177,15 +186,23 @@ module Twilio
177
186
 
178
187
  ##
179
188
  # Update the PaymentInstance
180
- # @param [String] idempotency_key A unique token for each payment session that
181
- # should be provided to maintain idempotency of the session.
182
- # @param [String] status_callback The URL we should call using the
183
- # `status_callback` to send status information of payment session.
184
- # @param [payment.Capture] capture Specific payment source information to expect.
185
- # Can be:
186
- # `payment-card-number`,`expiration-date`,`security-code`,`postal-code`,`bank-routing-number`,`bank-account-number`.
187
- # @param [payment.Status] status Instruction to complete or cancel the
188
- # transaction. Can be: `complete`, `cancel.`
189
+ # @param [String] idempotency_key A unique token that will be used to ensure that
190
+ # multiple API calls with the same information do not result in multiple
191
+ # transactions. This should be a unique string value per API call and can be a
192
+ # randomly generated.
193
+ # @param [String] status_callback Provide an absolute or relative URL to receive
194
+ # status updates regarding your Pay session. Read more about the
195
+ # [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update)
196
+ # and
197
+ # [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete)
198
+ # POST requests.
199
+ # @param [payment.Capture] capture The piece of payment information that you wish
200
+ # the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
201
+ # `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
202
+ # @param [payment.Status] status Indicates whether the current payment session
203
+ # should be cancelled or completed. When `cancel` the payment session is
204
+ # cancelled. When `complete`, Twilio sends the payment information to the selected
205
+ # <Pay> connector for processing.
189
206
  # @return [PaymentInstance] Updated PaymentInstance
190
207
  def update(idempotency_key: nil, status_callback: nil, capture: :unset, status: :unset)
191
208
  data = Twilio::Values.of({
@@ -309,15 +326,23 @@ module Twilio
309
326
 
310
327
  ##
311
328
  # Update the PaymentInstance
312
- # @param [String] idempotency_key A unique token for each payment session that
313
- # should be provided to maintain idempotency of the session.
314
- # @param [String] status_callback The URL we should call using the
315
- # `status_callback` to send status information of payment session.
316
- # @param [payment.Capture] capture Specific payment source information to expect.
317
- # Can be:
318
- # `payment-card-number`,`expiration-date`,`security-code`,`postal-code`,`bank-routing-number`,`bank-account-number`.
319
- # @param [payment.Status] status Instruction to complete or cancel the
320
- # transaction. Can be: `complete`, `cancel.`
329
+ # @param [String] idempotency_key A unique token that will be used to ensure that
330
+ # multiple API calls with the same information do not result in multiple
331
+ # transactions. This should be a unique string value per API call and can be a
332
+ # randomly generated.
333
+ # @param [String] status_callback Provide an absolute or relative URL to receive
334
+ # status updates regarding your Pay session. Read more about the
335
+ # [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update)
336
+ # and
337
+ # [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete)
338
+ # POST requests.
339
+ # @param [payment.Capture] capture The piece of payment information that you wish
340
+ # the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
341
+ # `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
342
+ # @param [payment.Status] status Indicates whether the current payment session
343
+ # should be cancelled or completed. When `cancel` the payment session is
344
+ # cancelled. When `complete`, Twilio sends the payment information to the selected
345
+ # <Pay> connector for processing.
321
346
  # @return [PaymentInstance] Updated PaymentInstance
322
347
  def update(idempotency_key: nil, status_callback: nil, capture: :unset, status: :unset)
323
348
  context.update(
@@ -46,7 +46,8 @@ module Twilio
46
46
  # [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g.,
47
47
  # +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client
48
48
  # identifiers are formatted `client:name`. [Custom
49
- # parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
49
+ # parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters)
50
+ # may also be specified.
50
51
  # @param [String] status_callback The URL we should call using the
51
52
  # `status_callback_method` to send status information to your application.
52
53
  # @param [String] status_callback_method The HTTP method we should use to call
@@ -118,7 +119,9 @@ module Twilio
118
119
  # @param [String] sip_auth_username The SIP username used for authentication.
119
120
  # @param [String] sip_auth_password The SIP password for authentication.
120
121
  # @param [String] region The
121
- # [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
122
+ # [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls)
123
+ # where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`,
124
+ # `br1`, `au1`, or `jp1`.
122
125
  # @param [String] conference_recording_status_callback The URL we should call
123
126
  # using the `conference_recording_status_callback_method` when the conference
124
127
  # recording is available.
@@ -322,6 +322,7 @@ module Twilio
322
322
  'status_callback_method' => payload['status_callback_method'],
323
323
  'trunk_sid' => payload['trunk_sid'],
324
324
  'uri' => payload['uri'],
325
+ 'voice_receive_mode' => payload['voice_receive_mode'],
325
326
  'voice_application_sid' => payload['voice_application_sid'],
326
327
  'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
327
328
  'voice_fallback_method' => payload['voice_fallback_method'],
@@ -331,6 +332,7 @@ module Twilio
331
332
  'emergency_status' => payload['emergency_status'],
332
333
  'emergency_address_sid' => payload['emergency_address_sid'],
333
334
  'bundle_sid' => payload['bundle_sid'],
335
+ 'status' => payload['status'],
334
336
  }
335
337
  end
336
338
 
@@ -466,6 +468,12 @@ module Twilio
466
468
  @properties['uri']
467
469
  end
468
470
 
471
+ ##
472
+ # @return [local.VoiceReceiveMode] The voice_receive_mode
473
+ def voice_receive_mode
474
+ @properties['voice_receive_mode']
475
+ end
476
+
469
477
  ##
470
478
  # @return [String] The SID of the application that handles calls to the phone number
471
479
  def voice_application_sid
@@ -520,6 +528,12 @@ module Twilio
520
528
  @properties['bundle_sid']
521
529
  end
522
530
 
531
+ ##
532
+ # @return [String] The status
533
+ def status
534
+ @properties['status']
535
+ end
536
+
523
537
  ##
524
538
  # Provide a user friendly representation
525
539
  def to_s
@@ -321,6 +321,7 @@ module Twilio
321
321
  'status_callback_method' => payload['status_callback_method'],
322
322
  'trunk_sid' => payload['trunk_sid'],
323
323
  'uri' => payload['uri'],
324
+ 'voice_receive_mode' => payload['voice_receive_mode'],
324
325
  'voice_application_sid' => payload['voice_application_sid'],
325
326
  'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
326
327
  'voice_fallback_method' => payload['voice_fallback_method'],
@@ -330,6 +331,7 @@ module Twilio
330
331
  'emergency_status' => payload['emergency_status'],
331
332
  'emergency_address_sid' => payload['emergency_address_sid'],
332
333
  'bundle_sid' => payload['bundle_sid'],
334
+ 'status' => payload['status'],
333
335
  }
334
336
  end
335
337
 
@@ -465,6 +467,12 @@ module Twilio
465
467
  @properties['uri']
466
468
  end
467
469
 
470
+ ##
471
+ # @return [mobile.VoiceReceiveMode] The voice_receive_mode
472
+ def voice_receive_mode
473
+ @properties['voice_receive_mode']
474
+ end
475
+
468
476
  ##
469
477
  # @return [String] The SID of the application that handles calls to the phone number
470
478
  def voice_application_sid
@@ -519,6 +527,12 @@ module Twilio
519
527
  @properties['bundle_sid']
520
528
  end
521
529
 
530
+ ##
531
+ # @return [String] The status
532
+ def status
533
+ @properties['status']
534
+ end
535
+
522
536
  ##
523
537
  # Provide a user friendly representation
524
538
  def to_s
@@ -321,6 +321,7 @@ module Twilio
321
321
  'status_callback_method' => payload['status_callback_method'],
322
322
  'trunk_sid' => payload['trunk_sid'],
323
323
  'uri' => payload['uri'],
324
+ 'voice_receive_mode' => payload['voice_receive_mode'],
324
325
  'voice_application_sid' => payload['voice_application_sid'],
325
326
  'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
326
327
  'voice_fallback_method' => payload['voice_fallback_method'],
@@ -330,6 +331,7 @@ module Twilio
330
331
  'emergency_status' => payload['emergency_status'],
331
332
  'emergency_address_sid' => payload['emergency_address_sid'],
332
333
  'bundle_sid' => payload['bundle_sid'],
334
+ 'status' => payload['status'],
333
335
  }
334
336
  end
335
337
 
@@ -465,6 +467,12 @@ module Twilio
465
467
  @properties['uri']
466
468
  end
467
469
 
470
+ ##
471
+ # @return [toll_free.VoiceReceiveMode] The voice_receive_mode
472
+ def voice_receive_mode
473
+ @properties['voice_receive_mode']
474
+ end
475
+
468
476
  ##
469
477
  # @return [String] The SID of the application that handles calls to the phone number
470
478
  def voice_application_sid
@@ -519,6 +527,12 @@ module Twilio
519
527
  @properties['bundle_sid']
520
528
  end
521
529
 
530
+ ##
531
+ # @return [String] The status
532
+ def status
533
+ @properties['status']
534
+ end
535
+
522
536
  ##
523
537
  # Provide a user friendly representation
524
538
  def to_s
@@ -81,7 +81,14 @@ module Twilio
81
81
  # @param [String] from A Twilio phone number in
82
82
  # [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric
83
83
  # sender
84
- # ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty.
84
+ # ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id),
85
+ # or a [Channel Endpoint
86
+ # address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is
87
+ # enabled for the type of message you want to send. Phone numbers or [short
88
+ # codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio
89
+ # also work here. You cannot, for example, spoof messages from a private cell
90
+ # phone number. If you are using `messaging_service_sid`, this parameter must be
91
+ # empty.
85
92
  # @param [String] messaging_service_sid The SID of the [Messaging
86
93
  # Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot)
87
94
  # you want to associate with the Message. Set this parameter to use the [Messaging
@@ -34,7 +34,9 @@ module Twilio
34
34
  # Create the FeedbackInstance
35
35
  # @param [feedback.Outcome] outcome Whether the feedback has arrived. Can be:
36
36
  # `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP
37
- # POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`.
37
+ # POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource),
38
+ # the initial value of this property is `unconfirmed`. After the message arrives,
39
+ # update the value to `confirmed`.
38
40
  # @return [FeedbackInstance] Created FeedbackInstance
39
41
  def create(outcome: :unset)
40
42
  data = Twilio::Values.of({'Outcome' => outcome, })
@@ -51,7 +51,8 @@ module Twilio
51
51
  # [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that
52
52
  # should fire the trigger. Can be: `count`, `usage`, or `price` as described in
53
53
  # the [UsageRecords
54
- # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`.
54
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
55
+ # The default is `usage`.
55
56
  # @return [TriggerInstance] Created TriggerInstance
56
57
  def create(callback_url: nil, trigger_value: nil, usage_category: nil, callback_method: :unset, friendly_name: :unset, recurring: :unset, trigger_by: :unset)
57
58
  data = Twilio::Values.of({
@@ -37,7 +37,8 @@ module Twilio
37
37
  # Unlike stream(), this operation is eager and will load `limit` records into
38
38
  # memory before returning.
39
39
  # @param [String] language The [ISO
40
- # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`
40
+ # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
41
+ # tag that specifies the language of the value. Currently supported tags: `en-US`
41
42
  # @param [Integer] limit Upper limit for the number of records to return. stream()
42
43
  # guarantees to never return more than limit. Default is no limit
43
44
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -54,7 +55,8 @@ module Twilio
54
55
  # This operation lazily loads records as efficiently as possible until the limit
55
56
  # is reached.
56
57
  # @param [String] language The [ISO
57
- # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`
58
+ # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
59
+ # tag that specifies the language of the value. Currently supported tags: `en-US`
58
60
  # @param [Integer] limit Upper limit for the number of records to return. stream()
59
61
  # guarantees to never return more than limit. Default is no limit.
60
62
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -88,7 +90,8 @@ module Twilio
88
90
  # Retrieve a single page of FieldValueInstance records from the API.
89
91
  # Request is executed immediately.
90
92
  # @param [String] language The [ISO
91
- # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`
93
+ # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
94
+ # tag that specifies the language of the value. Currently supported tags: `en-US`
92
95
  # @param [String] page_token PageToken provided by the API
93
96
  # @param [Integer] page_number Page Number, this value is simply for client state
94
97
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -122,7 +125,8 @@ module Twilio
122
125
  ##
123
126
  # Create the FieldValueInstance
124
127
  # @param [String] language The [ISO
125
- # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`
128
+ # language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
129
+ # tag that specifies the language of the value. Currently supported tags: `en-US`
126
130
  # @param [String] value The Field Value data.
127
131
  # @param [String] synonym_of The string value that indicates which word the field
128
132
  # value is a synonym of.