-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathAccountBillingPlanResponse.php
More file actions
667 lines (595 loc) · 19.5 KB
/
AccountBillingPlanResponse.php
File metadata and controls
667 lines (595 loc) · 19.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
<?php
/**
* AccountBillingPlanResponse
*
* PHP version 7.4
*
* @category Class
* @package DocuSign\eSign
* @author Swagger Codegen team <apihelp@docusign.com>
* @license The Docusign PHP Client SDK is licensed under the MIT License.
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Docusign eSignature REST API
*
* The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 2.4.21
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace DocuSign\eSign\Model;
use \ArrayAccess;
use DocuSign\eSign\ObjectSerializer;
/**
* AccountBillingPlanResponse Class Doc Comment
*
* @category Class
* @description Defines an account billing plan response object.
* @package DocuSign\eSign
* @author Swagger Codegen team <apihelp@docusign.com>
* @license The Docusign PHP Client SDK is licensed under the MIT License.
* @link https://github.com/swagger-api/swagger-codegen
*/
class AccountBillingPlanResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'accountBillingPlanResponse';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'billing_address' => '\DocuSign\eSign\Model\AccountAddress',
'billing_address_is_credit_card_address' => '?string',
'billing_plan' => '\DocuSign\eSign\Model\AccountBillingPlan',
'credit_card_information' => '\DocuSign\eSign\Model\CreditCardInformation',
'direct_debit_processor_information' => '\DocuSign\eSign\Model\DirectDebitProcessorInformation',
'downgrade_plan_information' => '\DocuSign\eSign\Model\DowngradePlanUpdateResponse',
'downgrade_request_information' => '\DocuSign\eSign\Model\DowngradeRequestInformation',
'entity_information' => '\DocuSign\eSign\Model\BillingEntityInformationResponse',
'payment_method' => '?string',
'payment_processor_information' => '\DocuSign\eSign\Model\PaymentProcessorInformation',
'referral_information' => '\DocuSign\eSign\Model\ReferralInformation',
'successor_plans' => '\DocuSign\eSign\Model\BillingPlan[]',
'tax_exempt_id' => '?string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'billing_address' => null,
'billing_address_is_credit_card_address' => null,
'billing_plan' => null,
'credit_card_information' => null,
'direct_debit_processor_information' => null,
'downgrade_plan_information' => null,
'downgrade_request_information' => null,
'entity_information' => null,
'payment_method' => null,
'payment_processor_information' => null,
'referral_information' => null,
'successor_plans' => null,
'tax_exempt_id' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'billing_address' => 'billingAddress',
'billing_address_is_credit_card_address' => 'billingAddressIsCreditCardAddress',
'billing_plan' => 'billingPlan',
'credit_card_information' => 'creditCardInformation',
'direct_debit_processor_information' => 'directDebitProcessorInformation',
'downgrade_plan_information' => 'downgradePlanInformation',
'downgrade_request_information' => 'downgradeRequestInformation',
'entity_information' => 'entityInformation',
'payment_method' => 'paymentMethod',
'payment_processor_information' => 'paymentProcessorInformation',
'referral_information' => 'referralInformation',
'successor_plans' => 'successorPlans',
'tax_exempt_id' => 'taxExemptId'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'billing_address' => 'setBillingAddress',
'billing_address_is_credit_card_address' => 'setBillingAddressIsCreditCardAddress',
'billing_plan' => 'setBillingPlan',
'credit_card_information' => 'setCreditCardInformation',
'direct_debit_processor_information' => 'setDirectDebitProcessorInformation',
'downgrade_plan_information' => 'setDowngradePlanInformation',
'downgrade_request_information' => 'setDowngradeRequestInformation',
'entity_information' => 'setEntityInformation',
'payment_method' => 'setPaymentMethod',
'payment_processor_information' => 'setPaymentProcessorInformation',
'referral_information' => 'setReferralInformation',
'successor_plans' => 'setSuccessorPlans',
'tax_exempt_id' => 'setTaxExemptId'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'billing_address' => 'getBillingAddress',
'billing_address_is_credit_card_address' => 'getBillingAddressIsCreditCardAddress',
'billing_plan' => 'getBillingPlan',
'credit_card_information' => 'getCreditCardInformation',
'direct_debit_processor_information' => 'getDirectDebitProcessorInformation',
'downgrade_plan_information' => 'getDowngradePlanInformation',
'downgrade_request_information' => 'getDowngradeRequestInformation',
'entity_information' => 'getEntityInformation',
'payment_method' => 'getPaymentMethod',
'payment_processor_information' => 'getPaymentProcessorInformation',
'referral_information' => 'getReferralInformation',
'successor_plans' => 'getSuccessorPlans',
'tax_exempt_id' => 'getTaxExemptId'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(?array $data = null)
{
$this->container['billing_address'] = isset($data['billing_address']) ? $data['billing_address'] : null;
$this->container['billing_address_is_credit_card_address'] = isset($data['billing_address_is_credit_card_address']) ? $data['billing_address_is_credit_card_address'] : null;
$this->container['billing_plan'] = isset($data['billing_plan']) ? $data['billing_plan'] : null;
$this->container['credit_card_information'] = isset($data['credit_card_information']) ? $data['credit_card_information'] : null;
$this->container['direct_debit_processor_information'] = isset($data['direct_debit_processor_information']) ? $data['direct_debit_processor_information'] : null;
$this->container['downgrade_plan_information'] = isset($data['downgrade_plan_information']) ? $data['downgrade_plan_information'] : null;
$this->container['downgrade_request_information'] = isset($data['downgrade_request_information']) ? $data['downgrade_request_information'] : null;
$this->container['entity_information'] = isset($data['entity_information']) ? $data['entity_information'] : null;
$this->container['payment_method'] = isset($data['payment_method']) ? $data['payment_method'] : null;
$this->container['payment_processor_information'] = isset($data['payment_processor_information']) ? $data['payment_processor_information'] : null;
$this->container['referral_information'] = isset($data['referral_information']) ? $data['referral_information'] : null;
$this->container['successor_plans'] = isset($data['successor_plans']) ? $data['successor_plans'] : null;
$this->container['tax_exempt_id'] = isset($data['tax_exempt_id']) ? $data['tax_exempt_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets billing_address
*
* @return \DocuSign\eSign\Model\AccountAddress
*/
public function getBillingAddress()
{
return $this->container['billing_address'];
}
/**
* Sets billing_address
*
* @param \DocuSign\eSign\Model\AccountAddress $billing_address The billing address for the account.
*
* @return $this
*/
public function setBillingAddress($billing_address)
{
$this->container['billing_address'] = $billing_address;
return $this;
}
/**
* Gets billing_address_is_credit_card_address
*
* @return ?string
*/
public function getBillingAddressIsCreditCardAddress()
{
return $this->container['billing_address_is_credit_card_address'];
}
/**
* Sets billing_address_is_credit_card_address
*
* @param ?string $billing_address_is_credit_card_address When set to **true**, the credit card address information is the same as that returned as the billing address. If false, then the billing address is considered a billing contact address, and the credit card address can be different.
*
* @return $this
*/
public function setBillingAddressIsCreditCardAddress($billing_address_is_credit_card_address)
{
$this->container['billing_address_is_credit_card_address'] = $billing_address_is_credit_card_address;
return $this;
}
/**
* Gets billing_plan
*
* @return \DocuSign\eSign\Model\AccountBillingPlan
*/
public function getBillingPlan()
{
return $this->container['billing_plan'];
}
/**
* Sets billing_plan
*
* @param \DocuSign\eSign\Model\AccountBillingPlan $billing_plan An object that contains details about the billing plan.
*
* @return $this
*/
public function setBillingPlan($billing_plan)
{
$this->container['billing_plan'] = $billing_plan;
return $this;
}
/**
* Gets credit_card_information
*
* @return \DocuSign\eSign\Model\CreditCardInformation
*/
public function getCreditCardInformation()
{
return $this->container['credit_card_information'];
}
/**
* Sets credit_card_information
*
* @param \DocuSign\eSign\Model\CreditCardInformation $credit_card_information A complex type that has information about the credit card used to pay for this account.
*
* @return $this
*/
public function setCreditCardInformation($credit_card_information)
{
$this->container['credit_card_information'] = $credit_card_information;
return $this;
}
/**
* Gets direct_debit_processor_information
*
* @return \DocuSign\eSign\Model\DirectDebitProcessorInformation
*/
public function getDirectDebitProcessorInformation()
{
return $this->container['direct_debit_processor_information'];
}
/**
* Sets direct_debit_processor_information
*
* @param \DocuSign\eSign\Model\DirectDebitProcessorInformation $direct_debit_processor_information Information about the bank that processes direct debits for the payment plan.
*
* @return $this
*/
public function setDirectDebitProcessorInformation($direct_debit_processor_information)
{
$this->container['direct_debit_processor_information'] = $direct_debit_processor_information;
return $this;
}
/**
* Gets downgrade_plan_information
*
* @return \DocuSign\eSign\Model\DowngradePlanUpdateResponse
*/
public function getDowngradePlanInformation()
{
return $this->container['downgrade_plan_information'];
}
/**
* Sets downgrade_plan_information
*
* @param \DocuSign\eSign\Model\DowngradePlanUpdateResponse $downgrade_plan_information
*
* @return $this
*/
public function setDowngradePlanInformation($downgrade_plan_information)
{
$this->container['downgrade_plan_information'] = $downgrade_plan_information;
return $this;
}
/**
* Gets downgrade_request_information
*
* @return \DocuSign\eSign\Model\DowngradeRequestInformation
*/
public function getDowngradeRequestInformation()
{
return $this->container['downgrade_request_information'];
}
/**
* Sets downgrade_request_information
*
* @param \DocuSign\eSign\Model\DowngradeRequestInformation $downgrade_request_information
*
* @return $this
*/
public function setDowngradeRequestInformation($downgrade_request_information)
{
$this->container['downgrade_request_information'] = $downgrade_request_information;
return $this;
}
/**
* Gets entity_information
*
* @return \DocuSign\eSign\Model\BillingEntityInformationResponse
*/
public function getEntityInformation()
{
return $this->container['entity_information'];
}
/**
* Sets entity_information
*
* @param \DocuSign\eSign\Model\BillingEntityInformationResponse $entity_information
*
* @return $this
*/
public function setEntityInformation($entity_information)
{
$this->container['entity_information'] = $entity_information;
return $this;
}
/**
* Gets payment_method
*
* @return ?string
*/
public function getPaymentMethod()
{
return $this->container['payment_method'];
}
/**
* Sets payment_method
*
* @param ?string $payment_method
*
* @return $this
*/
public function setPaymentMethod($payment_method)
{
$this->container['payment_method'] = $payment_method;
return $this;
}
/**
* Gets payment_processor_information
*
* @return \DocuSign\eSign\Model\PaymentProcessorInformation
*/
public function getPaymentProcessorInformation()
{
return $this->container['payment_processor_information'];
}
/**
* Sets payment_processor_information
*
* @param \DocuSign\eSign\Model\PaymentProcessorInformation $payment_processor_information Information about the entity that processes payments for the billing plan.
*
* @return $this
*/
public function setPaymentProcessorInformation($payment_processor_information)
{
$this->container['payment_processor_information'] = $payment_processor_information;
return $this;
}
/**
* Gets referral_information
*
* @return \DocuSign\eSign\Model\ReferralInformation
*/
public function getReferralInformation()
{
return $this->container['referral_information'];
}
/**
* Sets referral_information
*
* @param \DocuSign\eSign\Model\ReferralInformation $referral_information A complex type that contains properties for entering referral and discount information.
*
* @return $this
*/
public function setReferralInformation($referral_information)
{
$this->container['referral_information'] = $referral_information;
return $this;
}
/**
* Gets successor_plans
*
* @return \DocuSign\eSign\Model\BillingPlan[]
*/
public function getSuccessorPlans()
{
return $this->container['successor_plans'];
}
/**
* Sets successor_plans
*
* @param \DocuSign\eSign\Model\BillingPlan[] $successor_plans
*
* @return $this
*/
public function setSuccessorPlans($successor_plans)
{
$this->container['successor_plans'] = $successor_plans;
return $this;
}
/**
* Gets tax_exempt_id
*
* @return ?string
*/
public function getTaxExemptId()
{
return $this->container['tax_exempt_id'];
}
/**
* Sets tax_exempt_id
*
* @param ?string $tax_exempt_id
*
* @return $this
*/
public function setTaxExemptId($tax_exempt_id)
{
$this->container['tax_exempt_id'] = $tax_exempt_id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}