Completed
Push — master ( 9d24ed...186a0b )
by
unknown
29:37
created

issetHostedPaymentSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace net\authorize\api\contract\v1;
4
5
/**
6
 * Class representing GetHostedPaymentPageRequest
7
 */
8
class GetHostedPaymentPageRequest extends ANetApiRequestType
9
{
10
11
    /**
12
     * @property \net\authorize\api\contract\v1\TransactionRequestType
13
     * $transactionRequest
14
     */
15
    private $transactionRequest = null;
16
17
    /**
18
     * Allowed values for settingName are: hostedPaymentIFrameCommunicatorUrl,
19
     * hostedPaymentButtonOptions, hostedPaymentReturnOptions,
20
     * hostedPaymentOrderOptions, hostedPaymentPaymentOptions,
21
     * hostedPaymentBillingAddressOptions, hostedPaymentShippingAddressOptions,
22
     * hostedPaymentSecurityOptions, hostedPaymentCustomerOptions,
23
     * hostedPaymentStyleOptions
24
     *
25
     * @property \net\authorize\api\contract\v1\SettingType[] $hostedPaymentSettings
26
     */
27
    private $hostedPaymentSettings = null;
28
29
    /**
30
     * Gets as transactionRequest
31
     *
32
     * @return \net\authorize\api\contract\v1\TransactionRequestType
33
     */
34
    public function getTransactionRequest()
35
    {
36
        return $this->transactionRequest;
37
    }
38
39
    /**
40
     * Sets a new transactionRequest
41
     *
42
     * @param \net\authorize\api\contract\v1\TransactionRequestType $transactionRequest
43
     * @return self
44
     */
45
    public function setTransactionRequest(\net\authorize\api\contract\v1\TransactionRequestType $transactionRequest)
46
    {
47
        $this->transactionRequest = $transactionRequest;
48
        return $this;
49
    }
50
51
    /**
52
     * Adds as setting
53
     *
54
     * Allowed values for settingName are: hostedPaymentIFrameCommunicatorUrl,
55
     * hostedPaymentButtonOptions, hostedPaymentReturnOptions,
56
     * hostedPaymentOrderOptions, hostedPaymentPaymentOptions,
57
     * hostedPaymentBillingAddressOptions, hostedPaymentShippingAddressOptions,
58
     * hostedPaymentSecurityOptions, hostedPaymentCustomerOptions,
59
     * hostedPaymentStyleOptions
60
     *
61
     * @return self
62
     * @param \net\authorize\api\contract\v1\SettingType $setting
63
     */
64
    public function addToHostedPaymentSettings(\net\authorize\api\contract\v1\SettingType $setting)
65
    {
66
        $this->hostedPaymentSettings[] = $setting;
67
        return $this;
68
    }
69
70
    /**
71
     * isset hostedPaymentSettings
72
     *
73
     * Allowed values for settingName are: hostedPaymentIFrameCommunicatorUrl,
74
     * hostedPaymentButtonOptions, hostedPaymentReturnOptions,
75
     * hostedPaymentOrderOptions, hostedPaymentPaymentOptions,
76
     * hostedPaymentBillingAddressOptions, hostedPaymentShippingAddressOptions,
77
     * hostedPaymentSecurityOptions, hostedPaymentCustomerOptions,
78
     * hostedPaymentStyleOptions
79
     *
80
     * @param scalar $index
81
     * @return boolean
82
     */
83
    public function issetHostedPaymentSettings($index)
84
    {
85
        return isset($this->hostedPaymentSettings[$index]);
86
    }
87
88
    /**
89
     * unset hostedPaymentSettings
90
     *
91
     * Allowed values for settingName are: hostedPaymentIFrameCommunicatorUrl,
92
     * hostedPaymentButtonOptions, hostedPaymentReturnOptions,
93
     * hostedPaymentOrderOptions, hostedPaymentPaymentOptions,
94
     * hostedPaymentBillingAddressOptions, hostedPaymentShippingAddressOptions,
95
     * hostedPaymentSecurityOptions, hostedPaymentCustomerOptions,
96
     * hostedPaymentStyleOptions
97
     *
98
     * @param scalar $index
99
     * @return void
100
     */
101
    public function unsetHostedPaymentSettings($index)
102
    {
103
        unset($this->hostedPaymentSettings[$index]);
104
    }
105
106
    /**
107
     * Gets as hostedPaymentSettings
108
     *
109
     * Allowed values for settingName are: hostedPaymentIFrameCommunicatorUrl,
110
     * hostedPaymentButtonOptions, hostedPaymentReturnOptions,
111
     * hostedPaymentOrderOptions, hostedPaymentPaymentOptions,
112
     * hostedPaymentBillingAddressOptions, hostedPaymentShippingAddressOptions,
113
     * hostedPaymentSecurityOptions, hostedPaymentCustomerOptions,
114
     * hostedPaymentStyleOptions
115
     *
116
     * @return \net\authorize\api\contract\v1\SettingType[]
117
     */
118
    public function getHostedPaymentSettings()
119
    {
120
        return $this->hostedPaymentSettings;
121
    }
122
123
    /**
124
     * Sets a new hostedPaymentSettings
125
     *
126
     * Allowed values for settingName are: hostedPaymentIFrameCommunicatorUrl,
127
     * hostedPaymentButtonOptions, hostedPaymentReturnOptions,
128
     * hostedPaymentOrderOptions, hostedPaymentPaymentOptions,
129
     * hostedPaymentBillingAddressOptions, hostedPaymentShippingAddressOptions,
130
     * hostedPaymentSecurityOptions, hostedPaymentCustomerOptions,
131
     * hostedPaymentStyleOptions
132
     *
133
     * @param \net\authorize\api\contract\v1\SettingType[] $hostedPaymentSettings
134
     * @return self
135
     */
136
    public function setHostedPaymentSettings(array $hostedPaymentSettings)
137
    {
138
        $this->hostedPaymentSettings = $hostedPaymentSettings;
139
        return $this;
140
    }
141
142
143
}
144
145