| 1 | # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file. | ||
| 2 | package Twilio::TwiML::Voice::Pay; | ||
| 3 | |||
| 4 | 2 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | ▶ | use parent 'Twilio::TwiML::TwiML'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | our $VERSION = '2.001'; | |
| 10 | |||
| 11 | 2 | my %ATTRIBUTES = ( | |
| 12 | 'action' => { name => 'action' }, | ||
| 13 | 'bank_account_type' => { name => 'bankAccountType' }, | ||
| 14 | 'bankAccountType' => { name => 'bankAccountType' }, | ||
| 15 | 'charge_amount' => { name => 'chargeAmount' }, | ||
| 16 | 'chargeAmount' => { name => 'chargeAmount' }, | ||
| 17 | 'currency' => { name => 'currency' }, | ||
| 18 | 'description' => { name => 'description' }, | ||
| 19 | 'input' => { name => 'input' }, | ||
| 20 | 'language' => { name => 'language' }, | ||
| 21 | 'max_attempts' => { name => 'maxAttempts' }, | ||
| 22 | 'maxAttempts' => { name => 'maxAttempts' }, | ||
| 23 | 'min_postal_code_length' => { name => 'minPostalCodeLength' }, | ||
| 24 | 'minPostalCodeLength' => { name => 'minPostalCodeLength' }, | ||
| 25 | 'payment_connector' => { name => 'paymentConnector' }, | ||
| 26 | 'paymentConnector' => { name => 'paymentConnector' }, | ||
| 27 | 'payment_method' => { name => 'paymentMethod' }, | ||
| 28 | 'paymentMethod' => { name => 'paymentMethod' }, | ||
| 29 | 'postal_code' => { name => 'postalCode' }, | ||
| 30 | 'postalCode' => { name => 'postalCode' }, | ||
| 31 | 'security_code' => { name => 'securityCode', boolean => 1 }, | ||
| 32 | 'securityCode' => { name => 'securityCode', boolean => 1 }, | ||
| 33 | 'status_callback' => { name => 'statusCallback' }, | ||
| 34 | 'statusCallback' => { name => 'statusCallback' }, | ||
| 35 | 'status_callback_method' => { name => 'statusCallbackMethod' }, | ||
| 36 | 'statusCallbackMethod' => { name => 'statusCallbackMethod' }, | ||
| 37 | 'timeout' => { name => 'timeout' }, | ||
| 38 | 'token_type' => { name => 'tokenType' }, | ||
| 39 | 'tokenType' => { name => 'tokenType' }, | ||
| 40 | 'valid_card_types' => { name => 'validCardTypes' }, | ||
| 41 | 'validCardTypes' => { name => 'validCardTypes' }, | ||
| 42 | ); | ||
| 43 | |||
| 44 | 38 | ▶ | sub attribute_table { return \%ATTRIBUTES } |
|
Subroutine
attribute_table: called CC=1 SCAR=0.0
Pod
documented
| |||
| 45 | |||
| 46 | 5 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 47 | 5 | my ($class, $attributes) = @_; | |
| 48 | 5 | return $class->SUPER::new('Pay', undef, $attributes); | |
| 49 | } | ||
| 50 | |||
| 51 | 2 | ▶ | sub parameter { |
|
Subroutine
parameter: called CC=1 SCAR=0.0
Pod
documented
| |||
| 52 | 2 | my ($self, $attributes) = @_; | |
| 53 | 2 | require Twilio::TwiML::Voice::Parameter; | |
| 54 | 2 | return $self->nest(Twilio::TwiML::Voice::Parameter->new($attributes)); | |
| 55 | } | ||
| 56 | |||
| 57 | 3 | ▶ | sub prompt { |
|
Subroutine
prompt: called CC=1 SCAR=0.0
Pod
documented
| |||
| 58 | 3 | my ($self, $attributes) = @_; | |
| 59 | 3 | require Twilio::TwiML::Voice::Prompt; | |
| 60 | 3 | return $self->nest(Twilio::TwiML::Voice::Prompt->new($attributes)); | |
| 61 | } | ||
| 62 | |||
| 63 | 1 | ▶ | sub set_action { |
|
Subroutine
set_action: called CC=1 SCAR=0.0
Pod
documented
| |||
| 64 | 1 | my ($self, $value) = @_; | |
| 65 | 1 | return $self->set_attribute('action', $value); | |
| 66 | } | ||
| 67 | |||
| 68 | 1 | ▶ | sub set_bank_account_type { |
|
Subroutine
set_bank_account_type: called CC=1 SCAR=0.0
Pod
documented
| |||
| 69 | 1 | my ($self, $value) = @_; | |
| 70 | 1 | return $self->set_attribute('bank_account_type', $value); | |
| 71 | } | ||
| 72 | |||
| 73 | 1 | ▶ | sub set_charge_amount { |
|
Subroutine
set_charge_amount: called CC=1 SCAR=0.0
Pod
documented
| |||
| 74 | 1 | my ($self, $value) = @_; | |
| 75 | 1 | return $self->set_attribute('charge_amount', $value); | |
| 76 | } | ||
| 77 | |||
| 78 | 1 | ▶ | sub set_currency { |
|
Subroutine
set_currency: called CC=1 SCAR=0.0
Pod
documented
| |||
| 79 | 1 | my ($self, $value) = @_; | |
| 80 | 1 | return $self->set_attribute('currency', $value); | |
| 81 | } | ||
| 82 | |||
| 83 | 1 | ▶ | sub set_description { |
|
Subroutine
set_description: called CC=1 SCAR=0.0
Pod
documented
| |||
| 84 | 1 | my ($self, $value) = @_; | |
| 85 | 1 | return $self->set_attribute('description', $value); | |
| 86 | } | ||
| 87 | |||
| 88 | 1 | ▶ | sub set_input { |
|
Subroutine
set_input: called CC=1 SCAR=0.0
Pod
documented
| |||
| 89 | 1 | my ($self, $value) = @_; | |
| 90 | 1 | return $self->set_attribute('input', $value); | |
| 91 | } | ||
| 92 | |||
| 93 | 1 | ▶ | sub set_language { |
|
Subroutine
set_language: called CC=1 SCAR=0.0
Pod
documented
| |||
| 94 | 1 | my ($self, $value) = @_; | |
| 95 | 1 | return $self->set_attribute('language', $value); | |
| 96 | } | ||
| 97 | |||
| 98 | 1 | ▶ | sub set_max_attempts { |
|
Subroutine
set_max_attempts: called CC=1 SCAR=0.0
Pod
documented
| |||
| 99 | 1 | my ($self, $value) = @_; | |
| 100 | 1 | return $self->set_attribute('max_attempts', $value); | |
| 101 | } | ||
| 102 | |||
| 103 | 1 | ▶ | sub set_min_postal_code_length { |
|
Subroutine
set_min_postal_code_length: called CC=1 SCAR=0.0
Pod
documented
| |||
| 104 | 1 | my ($self, $value) = @_; | |
| 105 | 1 | return $self->set_attribute('min_postal_code_length', $value); | |
| 106 | } | ||
| 107 | |||
| 108 | 1 | ▶ | sub set_payment_connector { |
|
Subroutine
set_payment_connector: called CC=1 SCAR=0.0
Pod
documented
| |||
| 109 | 1 | my ($self, $value) = @_; | |
| 110 | 1 | return $self->set_attribute('payment_connector', $value); | |
| 111 | } | ||
| 112 | |||
| 113 | 1 | ▶ | sub set_payment_method { |
|
Subroutine
set_payment_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 114 | 1 | my ($self, $value) = @_; | |
| 115 | 1 | return $self->set_attribute('payment_method', $value); | |
| 116 | } | ||
| 117 | |||
| 118 | 1 | ▶ | sub set_postal_code { |
|
Subroutine
set_postal_code: called CC=1 SCAR=0.0
Pod
documented
| |||
| 119 | 1 | my ($self, $value) = @_; | |
| 120 | 1 | return $self->set_attribute('postal_code', $value); | |
| 121 | } | ||
| 122 | |||
| 123 | 1 | ▶ | sub set_security_code { |
|
Subroutine
set_security_code: called CC=1 SCAR=0.0
Pod
documented
| |||
| 124 | 1 | my ($self, $value) = @_; | |
| 125 | 1 | return $self->set_attribute('security_code', $value); | |
| 126 | } | ||
| 127 | |||
| 128 | 1 | ▶ | sub set_status_callback { |
|
Subroutine
set_status_callback: called CC=1 SCAR=0.0
Pod
documented
| |||
| 129 | 1 | my ($self, $value) = @_; | |
| 130 | 1 | return $self->set_attribute('status_callback', $value); | |
| 131 | } | ||
| 132 | |||
| 133 | 1 | ▶ | sub set_status_callback_method { |
|
Subroutine
set_status_callback_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 134 | 1 | my ($self, $value) = @_; | |
| 135 | 1 | return $self->set_attribute('status_callback_method', $value); | |
| 136 | } | ||
| 137 | |||
| 138 | 1 | ▶ | sub set_timeout { |
|
Subroutine
set_timeout: called CC=1 SCAR=0.0
Pod
documented
| |||
| 139 | 1 | my ($self, $value) = @_; | |
| 140 | 1 | return $self->set_attribute('timeout', $value); | |
| 141 | } | ||
| 142 | |||
| 143 | 1 | ▶ | sub set_token_type { |
|
Subroutine
set_token_type: called CC=1 SCAR=0.0
Pod
documented
| |||
| 144 | 1 | my ($self, $value) = @_; | |
| 145 | 1 | return $self->set_attribute('token_type', $value); | |
| 146 | } | ||
| 147 | |||
| 148 | 1 | ▶ | sub set_valid_card_types { |
|
Subroutine
set_valid_card_types: called CC=1 SCAR=0.0
Pod
documented
| |||
| 149 | 1 | my ($self, $value) = @_; | |
| 150 | 1 | return $self->set_attribute('valid_card_types', $value); | |
| 151 | } | ||
| 152 | |||
| 153 | 2 | 1; | |
| 154 | |||
| 155 | __END__ | ||