| 1 |
lars |
1 |
<?php
|
|
|
2 |
/*******************************************************************************
|
|
|
3 |
* Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
5 |
*
|
|
|
6 |
* You may not use this file except in compliance with the License.
|
|
|
7 |
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
|
|
|
8 |
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
|
9 |
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
|
10 |
* specific language governing permissions and limitations under the License.
|
|
|
11 |
* *****************************************************************************
|
|
|
12 |
*/
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* @see CheckoutByAmazon_Service_Model
|
|
|
17 |
*/
|
|
|
18 |
require_once ('CheckoutByAmazon/Service/Model.php');
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* CheckoutByAmazon_Service_Model_SetContractChargesRequest
|
|
|
24 |
*
|
|
|
25 |
* Properties:
|
|
|
26 |
* <ul>
|
|
|
27 |
*
|
|
|
28 |
* <li>PurchaseContractId: string</li>
|
|
|
29 |
* <li>Charges: CheckoutByAmazon_Service_Model_Charges</li>
|
|
|
30 |
*
|
|
|
31 |
* </ul>
|
|
|
32 |
*/
|
|
|
33 |
class CheckoutByAmazon_Service_Model_SetContractChargesRequest extends CheckoutByAmazon_Service_Model
|
|
|
34 |
{
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* Construct new CheckoutByAmazon_Service_Model_SetContractChargesRequest
|
|
|
39 |
*
|
|
|
40 |
* @param mixed $data DOMElement or Associative Array to construct from.
|
|
|
41 |
*
|
|
|
42 |
* Valid properties:
|
|
|
43 |
* <ul>
|
|
|
44 |
*
|
|
|
45 |
* <li>PurchaseContractId: string</li>
|
|
|
46 |
* <li>Charges: CheckoutByAmazon_Service_Model_Charges</li>
|
|
|
47 |
*
|
|
|
48 |
* </ul>
|
|
|
49 |
*/
|
|
|
50 |
public function __construct($data = null)
|
|
|
51 |
{
|
|
|
52 |
$this->_fields = array (
|
|
|
53 |
'PurchaseContractId' => array('FieldValue' => null, 'FieldType' => 'string'),
|
|
|
54 |
'Charges' => array('FieldValue' => null, 'FieldType' => 'CheckoutByAmazon_Service_Model_Charges'),
|
|
|
55 |
);
|
|
|
56 |
parent::__construct($data);
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* Gets the value of the PurchaseContractId property.
|
|
|
61 |
*
|
|
|
62 |
* @return string PurchaseContractId
|
|
|
63 |
*/
|
|
|
64 |
public function getPurchaseContractId()
|
|
|
65 |
{
|
|
|
66 |
return $this->_fields['PurchaseContractId']['FieldValue'];
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Sets the value of the PurchaseContractId property.
|
|
|
71 |
*
|
|
|
72 |
* @param string PurchaseContractId
|
|
|
73 |
* @return this instance
|
|
|
74 |
*/
|
|
|
75 |
public function setPurchaseContractId($value)
|
|
|
76 |
{
|
|
|
77 |
$this->_fields['PurchaseContractId']['FieldValue'] = $value;
|
|
|
78 |
return $this;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* Checks if PurchaseContractId is set
|
|
|
85 |
*
|
|
|
86 |
* @return bool true if PurchaseContractId is set
|
|
|
87 |
*/
|
|
|
88 |
public function isSetPurchaseContractId()
|
|
|
89 |
{
|
|
|
90 |
return !is_null($this->_fields['PurchaseContractId']['FieldValue']);
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* Gets the value of the Charges.
|
|
|
95 |
*
|
|
|
96 |
* @return Charges Charges
|
|
|
97 |
*/
|
|
|
98 |
public function getCharges()
|
|
|
99 |
{
|
|
|
100 |
return $this->_fields['Charges']['FieldValue'];
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* Sets the value of the Charges.
|
|
|
105 |
*
|
|
|
106 |
* @param Charges Charges
|
|
|
107 |
* @return void
|
|
|
108 |
*/
|
|
|
109 |
public function setCharges($value)
|
|
|
110 |
{
|
|
|
111 |
$this->_fields['Charges']['FieldValue'] = $value;
|
|
|
112 |
return;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
/**
|
|
|
117 |
* Checks if Charges is set
|
|
|
118 |
*
|
|
|
119 |
* @return bool true if Charges property is set
|
|
|
120 |
*/
|
|
|
121 |
public function isSetCharges()
|
|
|
122 |
{
|
|
|
123 |
return !is_null($this->_fields['Charges']['FieldValue']);
|
|
|
124 |
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
}
|
|
|
128 |
?>
|