• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperwallet / php-sdk / 3912820865

pending completion
3912820865

push

github

GitHub
DTPAYETWO-761- Added 'isDefaultTransferMethod' attribute for default accounts(V3) (#125)

12 of 12 new or added lines in 4 files covered. (100.0%)

1821 of 1861 relevant lines covered (97.85%)

18.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

99.34
/src/Hyperwallet/Model/TransferMethod.php
1
<?php
2
namespace Hyperwallet\Model;
3

4
/**
5
 * Represents a V3 Transfer Method
6
 *
7
 * @property string $token The transfer method token
8
 * @property string $type The transfer method type
9
 *
10
 * @property string $status The bank account status
11
 * @property \DateTime $createdOn The bank account creation date
12
 *
13
 * @property string $transferMethodCountry The transfer method country
14
 * @property string $transferMethodCurrency The transfer method currency
15
 *
16
 * @property string $cardType The prepaid card type
17
 *
18
 * @property string $cardPackage The prepaid card package
19
 * @property string $cardNumber The prepaid card number
20
 * @property string $cardBrand The prepaid card brand
21
 * @property \DateTime $dateOfExpiry The prepaid card expiry date
22
 *
23
 * @property string $email The email associated with the paypal account
24
 *
25
 * @property string $accountId The accountId associated with the venmo account
26
 *
27
 * @property string $bankName The bank name
28
 * @property string $bankId The bank id
29
 * @property string $branchName The branch name
30
 * @property string $branchId The branch id
31
 * @property string $bankAccountId The bank account id
32
 * @property string $bankAccountPurpose The bank account purpose
33
 *
34
 * @property string $branchAddressLine1 The branch address line 1
35
 * @property string $branchAddressLine2 The branch address line 2
36
 * @property string $branchCity The branch city
37
 * @property string $branchStateProvince The branch state or province
38
 * @property string $branchCountry The branch country
39
 * @property string $branchPostalCode The branch postal code
40
 *
41
 * @property string $wireInstructions The wire instructions
42
 *
43
 * @property string $intermediaryBankId The intermediary bank id
44
 * @property string $intermediaryBankName The intermediary bank name
45
 * @property string $intermediaryBankAccountId The intermediary bank account id
46
 *
47
 * @property string $intermediaryAddressLine1 The intermediary address line 1
48
 * @property string $intermediaryAddressLine2 The intermediary address line 2
49
 * @property string $intermediaryCity The intermediary city
50
 * @property string $intermediaryStateProvince The intermediary state or province
51
 * @property string $intermediaryCountry The intermediary country
52
 * @property string $intermediaryPostalCode The intermediary postal code
53
 *
54
 * @property string $profileType The profile type
55
 *
56
 * @property string $businessName The business name
57
 * @property string $businessOperatingName The business operating name
58
 * @property string $businessRegistrationId The business registration id
59
 * @property string $businessRegistrationCountry The business registration country
60
 *
61
 * @property string $firstName The first name
62
 * @property string $middleName The middle name
63
 * @property string $lastName The last name
64
 * @property \DateTime $dateOfBirth The date of birth
65
 * @property string $countryOfBirth The country of birth
66
 * @property string $countryOfNationality The country of nationality
67
 * @property string $phoneNumber The phone number
68
 * @property string $mobileNumber The mobile number
69
 *
70
 * @property string $governmentId The government id
71
 *
72
 * @property string $addressLine1 The address line 1
73
 * @property string $city The city
74
 * @property string $stateProvince The state or province
75
 * @property string $country The country
76
 * @property string $postalCode The postal code
77
 * @property bool $isDefaultTransferMethod The flag to denote default account
78
 *
79
 * @package Hyperwallet\Model
80
 */
81
class TransferMethod extends BaseModel {
82

83
    /**
84
     * @internal
85
     *
86
     * Read only fields
87
     *
88
     * @var string[]
89
     */
90
    private static $READ_ONLY_FIELDS = array('token', 'status', 'cardType', 'cardNumber', 'cardBrand', 'dateOfExpiry', 'createdOn', 'email', 'accountId');
91

92
    public static function FILTERS_ARRAY() {
93
        return array('status', 'type', 'createdBefore', 'createdAfter', 'sortBy', 'offset', 'limit');
×
94
    }
95

96
    const TYPE_PREPAID_CARD = 'PREPAID_CARD';
97
    const TYPE_BANK_ACCOUNT = 'BANK_ACCOUNT';
98
    const TYPE_WIRE_ACCOUNT = 'WIRE_ACCOUNT';
99
    const TYPE_BANK_CARD = 'BANK_CARD';
100
    const TYPE_PAYPAL_ACCOUNT = 'PAYPAL_ACCOUNT';
101
    const TYPE_VENMO_ACCOUNT = 'VENMO_ACCOUNT';
102

103
    const STATUS_QUEUED = 'QUEUED';
104
    const STATUS_PRE_ACTIVATED = 'PRE_ACTIVATED';
105
    const STATUS_ACTIVATED = 'ACTIVATED';
106
    const STATUS_DECLINED = 'DECLINED';
107
    const STATUS_LOCKED = 'LOCKED';
108
    const STATUS_SUSPENDED = 'SUSPENDED';
109
    const STATUS_LOST_OR_STOLEN = 'LOST_OR_STOLEN';
110
    const STATUS_DE_ACTIVATED = 'DE_ACTIVATED';
111
    const STATUS_COMPLIANCE_HOLD = 'COMPLIANCE_HOLD';
112
    const STATUS_KYC_HOLD = 'KYC_HOLD';
113

114
    const CARD_TYPE_PERSONALIZED = 'PERSONALIZED';
115
    const CARD_TYPE_VIRTUAL = 'VIRTUAL';
116

117
    const CARD_BRAND_VISA = 'VISA';
118
    const CARD_BRAND_MASTERCARD = 'MASTERCARD';
119

120
    const PROFILE_TYPE_INDIVIDUAL = 'INDIVIDUAL';
121
    const PROFILE_TYPE_BUSINESS = 'BUSINESS';
122

123
    /**
124
     * Creates a instance of BankAccount
125
     *
126
     * @param string[] $properties The default properties
127
     */
128
    public function __construct(array $properties = array()) {
129
        parent::__construct(self::$READ_ONLY_FIELDS, $properties);
254✔
130
    }
254✔
131

132
    /**
133
     * Get the bank account token
134
     *
135
     * @return string
136
     */
137
    public function getToken() {
138
        return $this->token;
4✔
139
    }
140

141
    /**
142
     * Set the bank account token
143
     *
144
     * @param string $token
145
     * @return TransferMethod
146
     */
147
    public function setToken($token) {
148
        $this->token = $token;
2✔
149
        return $this;
2✔
150
    }
151

152
    /**
153
     * Get the prepaid card package
154
     *
155
     * @return string
156
     */
157
    public function getCardPackage() {
158
        return $this->cardPackage;
5✔
159
    }
160

161
    /**
162
     * Set the prepaid card package
163
     *
164
     * @param string $cardPackage
165
     * @return TransferMethod
166
     */
167
    public function setCardPackage($cardPackage) {
168
        $this->cardPackage = $cardPackage;
3✔
169
        return $this;
3✔
170
    }
171

172
    /**
173
     * Get the prepaid card type
174
     *
175
     * @return string
176
     */
177
    public function getCardType() {
178
        return $this->cardType;
2✔
179
    }
180

181
    /**
182
     * Get the prepaid card number
183
     *
184
     * @return string
185
     */
186
    public function getCardNumber() {
187
        return $this->cardNumber;
2✔
188
    }
189

190
    /**
191
     * Get the prepaid card brand
192
     *
193
     * @return string
194
     */
195
    public function getCardBrand() {
196
        return $this->cardBrand;
2✔
197
    }
198

199
    /**
200
     * Get the prepaid card expiry date
201
     *
202
     * @return \DateTime
203
     */
204
    public function getDateOfExpiry() {
205
        return $this->dateOfExpiry ? new \DateTime($this->dateOfExpiry) : null;
2✔
206
    }
207

208
    /**
209
     * Get the email
210
     *
211
     * @return string
212
     */
213
    public function getEmail() {
214
        return $this->email;
2✔
215
    }
216

217
    /**
218
     * Get the accountId
219
     *
220
     * @return string
221
     */
222
    public function getAccountId() {
223
        return $this->accountId;
2✔
224
    }
225

226
    /**
227
     * Get the bank account id
228
     *
229
     * @return string
230
     */
231
    public function getBankAccountId() {
232
        return $this->bankAccountId;
5✔
233
    }
234

235
    /**
236
     * Set the bank account id
237
     *
238
     * @param string $bankAccountId
239
     * @return TransferMethod
240
     */
241
    public function setBankAccountId($bankAccountId) {
242
        $this->bankAccountId = $bankAccountId;
3✔
243
        return $this;
3✔
244
    }
245

246
    /**
247
     * Get the transfer method type
248
     *
249
     * @return string
250
     */
251
    public function getType() {
252
        return $this->type;
5✔
253
    }
254

255
    /**
256
     * Set the transfer method type
257
     *
258
     * @param string $type
259
     * @return TransferMethod
260
     */
261
    public function setType($type) {
262
        $this->type = $type;
3✔
263
        return $this;
3✔
264
    }
265

266
    /**
267
     * Get the transfer method country
268
     *
269
     * @return string
270
     */
271
    public function getTransferMethodCountry() {
272
        return $this->transferMethodCountry;
5✔
273
    }
274

275
    /**
276
     * Set the transfer method country
277
     *
278
     * @param string $transferMethodCountry
279
     * @return TransferMethod
280
     */
281
    public function setTransferMethodCountry($transferMethodCountry) {
282
        $this->transferMethodCountry = $transferMethodCountry;
3✔
283
        return $this;
3✔
284
    }
285

286
    /**
287
     * Get the transfer method currency
288
     *
289
     * @return string
290
     */
291
    public function getTransferMethodCurrency() {
292
        return $this->transferMethodCurrency;
5✔
293
    }
294

295
    /**
296
     * Set the transfer method currency
297
     *
298
     * @param string $transferMethodCurrency
299
     * @return TransferMethod
300
     */
301
    public function setTransferMethodCurrency($transferMethodCurrency) {
302
        $this->transferMethodCurrency = $transferMethodCurrency;
3✔
303
        return $this;
3✔
304
    }
305

306
    /**
307
     * Get the bank name
308
     *
309
     * @return string
310
     */
311
    public function getBankName() {
312
        return $this->bankName;
5✔
313
    }
314

315
    /**
316
     * Set the bank name
317
     *
318
     * @param string $bankName
319
     * @return TransferMethod
320
     */
321
    public function setBankName($bankName) {
322
        $this->bankName = $bankName;
3✔
323
        return $this;
3✔
324
    }
325

326
    /**
327
     * Get the bank id
328
     *
329
     * @return string
330
     */
331
    public function getBankId() {
332
        return $this->bankId;
5✔
333
    }
334

335
    /**
336
     * Set the bank id
337
     *
338
     * @param string $bankId
339
     * @return TransferMethod
340
     */
341
    public function setBankId($bankId) {
342
        $this->bankId = $bankId;
3✔
343
        return $this;
3✔
344
    }
345

346
    /**
347
     * Get the branch name
348
     *
349
     * @return string
350
     */
351
    public function getBranchName() {
352
        return $this->branchName;
5✔
353
    }
354

355
    /**
356
     * Set the branch name
357
     *
358
     * @param string $branchName
359
     * @return TransferMethod
360
     */
361
    public function setBranchName($branchName) {
362
        $this->branchName = $branchName;
3✔
363
        return $this;
3✔
364
    }
365

366
    /**
367
     * Get the branch id
368
     *
369
     * @return string
370
     */
371
    public function getBranchId() {
372
        return $this->branchId;
5✔
373
    }
374

375
    /**
376
     * Set the branch id
377
     *
378
     * @param string $branchId
379
     * @return TransferMethod
380
     */
381
    public function setBranchId($branchId) {
382
        $this->branchId = $branchId;
3✔
383
        return $this;
3✔
384
    }
385

386
    /**
387
     * Get the bank account status
388
     *
389
     * @return string
390
     */
391
    public function getStatus() {
392
        return $this->status;
2✔
393
    }
394

395
    /**
396
     * Get the bank account creation date
397
     * @return \DateTime
398
     */
399
    public function getCreatedOn() {
400
        return $this->createdOn ? new \DateTime($this->createdOn) : null;
2✔
401
    }
402

403
    /**
404
     * Get the bank account purpose
405
     *
406
     * @return string
407
     */
408
    public function getBankAccountPurpose() {
409
        return $this->bankAccountPurpose;
5✔
410
    }
411

412
    /**
413
     * Set the bank account purpose
414
     *
415
     * @param string $bankAccountPurpose
416
     * @return TransferMethod
417
     */
418
    public function setBankAccountPurpose($bankAccountPurpose) {
419
        $this->bankAccountPurpose = $bankAccountPurpose;
3✔
420
        return $this;
3✔
421
    }
422

423
    /**
424
     * Get the branch address line 1
425
     *
426
     * @return string
427
     */
428
    public function getBranchAddressLine1() {
429
        return $this->branchAddressLine1;
5✔
430
    }
431

432
    /**
433
     * Set the branch address line 1
434
     *
435
     * @param string $branchAddressLine1
436
     * @return TransferMethod
437
     */
438
    public function setBranchAddressLine1($branchAddressLine1) {
439
        $this->branchAddressLine1 = $branchAddressLine1;
3✔
440
        return $this;
3✔
441
    }
442

443
    /**
444
     * Get the branch address line 2
445
     *
446
     * @return string
447
     */
448
    public function getBranchAddressLine2() {
449
        return $this->branchAddressLine2;
5✔
450
    }
451

452
    /**
453
     * Set the branch address line 2
454
     *
455
     * @param string $branchAddressLine2
456
     * @return TransferMethod
457
     */
458
    public function setBranchAddressLine2($branchAddressLine2) {
459
        $this->branchAddressLine2 = $branchAddressLine2;
3✔
460
        return $this;
3✔
461
    }
462

463
    /**
464
     * Get the branch city
465
     *
466
     * @return string
467
     */
468
    public function getBranchCity() {
469
        return $this->branchCity;
5✔
470
    }
471

472
    /**
473
     * Set the branch city
474
     *
475
     * @param string $branchCity
476
     * @return TransferMethod
477
     */
478
    public function setBranchCity($branchCity) {
479
        $this->branchCity = $branchCity;
3✔
480
        return $this;
3✔
481
    }
482

483
    /**
484
     * Get the branch state or province
485
     *
486
     * @return string
487
     */
488
    public function getBranchStateProvince() {
489
        return $this->branchStateProvince;
5✔
490
    }
491

492
    /**
493
     * Set the branch state or province
494
     *
495
     * @param string $branchStateProvince
496
     * @return TransferMethod
497
     */
498
    public function setBranchStateProvince($branchStateProvince) {
499
        $this->branchStateProvince = $branchStateProvince;
3✔
500
        return $this;
3✔
501
    }
502

503
    /**
504
     * Get the branch country
505
     *
506
     * @return string
507
     */
508
    public function getBranchCountry() {
509
        return $this->branchCountry;
5✔
510
    }
511

512
    /**
513
     * Set the branch country
514
     *
515
     * @param string $branchCountry
516
     * @return TransferMethod
517
     */
518
    public function setBranchCountry($branchCountry) {
519
        $this->branchCountry = $branchCountry;
3✔
520
        return $this;
3✔
521
    }
522

523
    /**
524
     * Get the branch postal code
525
     *
526
     * @return string
527
     */
528
    public function getBranchPostalCode() {
529
        return $this->branchPostalCode;
5✔
530
    }
531

532
    /**
533
     * Set the branch postal code
534
     *
535
     * @param string $branchPostalCode
536
     * @return TransferMethod
537
     */
538
    public function setBranchPostalCode($branchPostalCode) {
539
        $this->branchPostalCode = $branchPostalCode;
3✔
540
        return $this;
3✔
541
    }
542

543
    /**
544
     * Get the wire instructions
545
     *
546
     * @return string
547
     */
548
    public function getWireInstructions() {
549
        return $this->wireInstructions;
5✔
550
    }
551

552
    /**
553
     * Set the wire instructions
554
     *
555
     * @param string $wireInstructions
556
     * @return TransferMethod
557
     */
558
    public function setWireInstructions($wireInstructions) {
559
        $this->wireInstructions = $wireInstructions;
3✔
560
        return $this;
3✔
561
    }
562

563
    /**
564
     * Get the intermediary bank id
565
     *
566
     * @return string
567
     */
568
    public function getIntermediaryBankId() {
569
        return $this->intermediaryBankId;
5✔
570
    }
571

572
    /**
573
     * Set the intermediary bank id
574
     *
575
     * @param string $intermediaryBankId
576
     * @return TransferMethod
577
     */
578
    public function setIntermediaryBankId($intermediaryBankId) {
579
        $this->intermediaryBankId = $intermediaryBankId;
3✔
580
        return $this;
3✔
581
    }
582

583
    /**
584
     * Get the intermediary bank name
585
     *
586
     * @return string
587
     */
588
    public function getIntermediaryBankName() {
589
        return $this->intermediaryBankName;
5✔
590
    }
591

592
    /**
593
     * Set the intermediary bank name
594
     *
595
     * @param string $intermediaryBankName
596
     * @return TransferMethod
597
     */
598
    public function setIntermediaryBankName($intermediaryBankName) {
599
        $this->intermediaryBankName = $intermediaryBankName;
3✔
600
        return $this;
3✔
601
    }
602

603
    /**
604
     * Get the intermediary bank account id
605
     *
606
     * @return string
607
     */
608
    public function getIntermediaryBankAccountId() {
609
        return $this->intermediaryBankAccountId;
5✔
610
    }
611

612
    /**
613
     * Set the intermediary bank account id
614
     *
615
     * @param string $intermediaryBankAccountId
616
     * @return TransferMethod
617
     */
618
    public function setIntermediaryBankAccountId($intermediaryBankAccountId) {
619
        $this->intermediaryBankAccountId = $intermediaryBankAccountId;
3✔
620
        return $this;
3✔
621
    }
622

623
    /**
624
     * Get the intermediary address line 1
625
     *
626
     * @return string
627
     */
628
    public function getIntermediaryAddressLine1() {
629
        return $this->intermediaryAddressLine1;
5✔
630
    }
631

632
    /**
633
     * Set the intermediary address line 1
634
     *
635
     * @param string $intermediaryAddressLine1
636
     * @return TransferMethod
637
     */
638
    public function setIntermediaryAddressLine1($intermediaryAddressLine1) {
639
        $this->intermediaryAddressLine1 = $intermediaryAddressLine1;
3✔
640
        return $this;
3✔
641
    }
642

643
    /**
644
     * Get the intermediary address line 2
645
     *
646
     * @return string
647
     */
648
    public function getIntermediaryAddressLine2() {
649
        return $this->intermediaryAddressLine2;
5✔
650
    }
651

652
    /**
653
     * Set the intermediary address line 2
654
     *
655
     * @param string $intermediaryAddressLine2
656
     * @return TransferMethod
657
     */
658
    public function setIntermediaryAddressLine2($intermediaryAddressLine2) {
659
        $this->intermediaryAddressLine2 = $intermediaryAddressLine2;
3✔
660
        return $this;
3✔
661
    }
662

663
    /**
664
     * Get the intermediary city
665
     *
666
     * @return string
667
     */
668
    public function getIntermediaryCity() {
669
        return $this->intermediaryCity;
5✔
670
    }
671

672
    /**
673
     * Set the intermediary city
674
     *
675
     * @param string $intermediaryCity
676
     * @return TransferMethod
677
     */
678
    public function setIntermediaryCity($intermediaryCity) {
679
        $this->intermediaryCity = $intermediaryCity;
3✔
680
        return $this;
3✔
681
    }
682

683
    /**
684
     * Get the intermediary state or province
685
     *
686
     * @return string
687
     */
688
    public function getIntermediaryStateProvince() {
689
        return $this->intermediaryStateProvince;
5✔
690
    }
691

692
    /**
693
     * Set the intermediary state or province
694
     *
695
     * @param string $intermediaryStateProvince
696
     * @return TransferMethod
697
     */
698
    public function setIntermediaryStateProvince($intermediaryStateProvince) {
699
        $this->intermediaryStateProvince = $intermediaryStateProvince;
3✔
700
        return $this;
3✔
701
    }
702

703
    /**
704
     * Get the intermediary country
705
     *
706
     * @return string
707
     */
708
    public function getIntermediaryCountry() {
709
        return $this->intermediaryCountry;
5✔
710
    }
711

712
    /**
713
     * Set the intermediary country
714
     *
715
     * @param string $intermediaryCountry
716
     * @return TransferMethod
717
     */
718
    public function setIntermediaryCountry($intermediaryCountry) {
719
        $this->intermediaryCountry = $intermediaryCountry;
3✔
720
        return $this;
3✔
721
    }
722

723
    /**
724
     * Get the intermediary postal code
725
     *
726
     * @return string
727
     */
728
    public function getIntermediaryPostalCode() {
729
        return $this->intermediaryPostalCode;
5✔
730
    }
731

732
    /**
733
     * Set the intermediary postal code
734
     *
735
     * @param string $intermediaryPostalCode
736
     * @return TransferMethod
737
     */
738
    public function setIntermediaryPostalCode($intermediaryPostalCode) {
739
        $this->intermediaryPostalCode = $intermediaryPostalCode;
3✔
740
        return $this;
3✔
741
    }
742

743
    /**
744
     * Get the profile type
745
     *
746
     * @return string
747
     */
748
    public function getProfileType() {
749
        return $this->profileType;
5✔
750
    }
751

752
    /**
753
     * Set the profile type
754
     *
755
     * @param string $profileType
756
     * @return TransferMethod
757
     */
758
    public function setProfileType($profileType) {
759
        $this->profileType = $profileType;
3✔
760
        return $this;
3✔
761
    }
762

763
    /**
764
     * Get the business name
765
     *
766
     * @return string
767
     */
768
    public function getBusinessName() {
769
        return $this->businessName;
5✔
770
    }
771

772
    /**
773
     * Set the business name
774
     *
775
     * @param string $businessName
776
     * @return TransferMethod
777
     */
778
    public function setBusinessName($businessName) {
779
        $this->businessName = $businessName;
3✔
780
        return $this;
3✔
781
    }
782

783
    /**
784
     * Get the business operating name
785
     *
786
     * @return string
787
     */
788
    public function getBusinessOperatingName()
789
    {
790
        return $this->businessOperatingName;
5✔
791
    }
792

793
    /**
794
     * Set the business operating name
795
     *
796
     * @param string $businessOperatingName
797
     * @return TransferMethod
798
     */
799
    public function setBusinessOperatingName($businessOperatingName)
800
    {
801
        $this->businessOperatingName = $businessOperatingName;
3✔
802
        return $this;
3✔
803
    }
804

805
    /**
806
     * Get the business registration id
807
     *
808
     * @return string
809
     */
810
    public function getBusinessRegistrationId() {
811
        return $this->businessRegistrationId;
5✔
812
    }
813

814
    /**
815
     * Set the business registration id
816
     *
817
     * @param string $businessRegistrationId
818
     * @return TransferMethod
819
     */
820
    public function setBusinessRegistrationId($businessRegistrationId) {
821
        $this->businessRegistrationId = $businessRegistrationId;
3✔
822
        return $this;
3✔
823
    }
824

825
    /**
826
     * Get the business registration country
827
     *
828
     * @return string
829
     */
830
    public function getBusinessRegistrationCountry() {
831
        return $this->businessRegistrationCountry;
5✔
832
    }
833

834
    /**
835
     * Set the business registration country
836
     *
837
     * @param string $businessRegistrationCountry
838
     * @return TransferMethod
839
     */
840
    public function setBusinessRegistrationCountry($businessRegistrationCountry) {
841
        $this->businessRegistrationCountry = $businessRegistrationCountry;
3✔
842
        return $this;
3✔
843
    }
844

845
    /**
846
     * Get the first name
847
     *
848
     * @return string
849
     */
850
    public function getFirstName() {
851
        return $this->firstName;
5✔
852
    }
853

854
    /**
855
     * Set the first name
856
     *
857
     * @param string $firstName
858
     * @return TransferMethod
859
     */
860
    public function setFirstName($firstName) {
861
        $this->firstName = $firstName;
6✔
862
        return $this;
6✔
863
    }
864

865
    /**
866
     * Get the middle name
867
     *
868
     * @return string
869
     */
870
    public function getMiddleName() {
871
        return $this->middleName;
5✔
872
    }
873

874
    /**
875
     * Set the middle name
876
     *
877
     * @param string $middleName
878
     * @return TransferMethod
879
     */
880
    public function setMiddleName($middleName) {
881
        $this->middleName = $middleName;
3✔
882
        return $this;
3✔
883
    }
884

885
    /**
886
     * Get the last name
887
     *
888
     * @return string
889
     */
890
    public function getLastName() {
891
        return $this->lastName;
5✔
892
    }
893

894
    /**
895
     * Set the last name
896
     *
897
     * @param string $lastName
898
     * @return TransferMethod
899
     */
900
    public function setLastName($lastName) {
901
        $this->lastName = $lastName;
3✔
902
        return $this;
3✔
903
    }
904

905
    /**
906
     * Get the date of birth
907
     *
908
     * @return \DateTime|null
909
     */
910
    public function getDateOfBirth() {
911
        return $this->dateOfBirth ? new \DateTime($this->dateOfBirth) : null;
5✔
912
    }
913

914
    /**
915
     * Set the date of birth
916
     *
917
     * @param \DateTime|null $dateOfBirth
918
     * @return TransferMethod
919
     */
920
    public function setDateOfBirth(\DateTime $dateOfBirth = null) {
921
        $this->dateOfBirth = $dateOfBirth == null ? null : $dateOfBirth->format('Y-m-d');
3✔
922
        return $this;
3✔
923
    }
924

925
    /**
926
     * Get the country of birth
927
     *
928
     * @return string
929
     */
930
    public function getCountryOfBirth() {
931
        return $this->countryOfBirth;
5✔
932
    }
933

934
    /**
935
     * Set the country of birth
936
     *
937
     * @param string $countryOfBirth
938
     * @return TransferMethod
939
     */
940
    public function setCountryOfBirth($countryOfBirth) {
941
        $this->countryOfBirth = $countryOfBirth;
3✔
942
        return $this;
3✔
943
    }
944

945
    /**
946
     * Get the country of nationality
947
     *
948
     * @return string
949
     */
950
    public function getCountryOfNationality() {
951
        return $this->countryOfNationality;
5✔
952
    }
953

954
    /**
955
     * Set the country of nationality
956
     *
957
     * @param string $countryOfNationality
958
     * @return TransferMethod
959
     */
960
    public function setCountryOfNationality($countryOfNationality) {
961
        $this->countryOfNationality = $countryOfNationality;
3✔
962
        return $this;
3✔
963
    }
964

965
    /**
966
     * Get the phone number
967
     *
968
     * @return string
969
     */
970
    public function getPhoneNumber() {
971
        return $this->phoneNumber;
5✔
972
    }
973

974
    /**
975
     * Set the phone number
976
     *
977
     * @param string $phoneNumber
978
     * @return TransferMethod
979
     */
980
    public function setPhoneNumber($phoneNumber) {
981
        $this->phoneNumber = $phoneNumber;
3✔
982
        return $this;
3✔
983
    }
984

985
    /**
986
     * Get the mobile number
987
     *
988
     * @return string
989
     */
990
    public function getMobileNumber() {
991
        return $this->mobileNumber;
5✔
992
    }
993

994
    /**
995
     * Set the mobile number
996
     *
997
     * @param string $mobileNumber
998
     * @return TransferMethod
999
     */
1000
    public function setMobileNumber($mobileNumber) {
1001
        $this->mobileNumber = $mobileNumber;
3✔
1002
        return $this;
3✔
1003
    }
1004

1005
    /**
1006
     * Get the government id
1007
     *
1008
     * @return string
1009
     */
1010
    public function getGovernmentId() {
1011
        return $this->governmentId;
5✔
1012
    }
1013

1014
    /**
1015
     * Set the government id
1016
     *
1017
     * @param string $governmentId
1018
     * @return TransferMethod
1019
     */
1020
    public function setGovernmentId($governmentId) {
1021
        $this->governmentId = $governmentId;
3✔
1022
        return $this;
3✔
1023
    }
1024

1025
    /**
1026
     * Get the address line 1
1027
     *
1028
     * @return string
1029
     */
1030
    public function getAddressLine1() {
1031
        return $this->addressLine1;
5✔
1032
    }
1033

1034
    /**
1035
     * Set the address line 1
1036
     *
1037
     * @param string $addressLine1
1038
     * @return TransferMethod
1039
     */
1040
    public function setAddressLine1($addressLine1) {
1041
        $this->addressLine1 = $addressLine1;
3✔
1042
        return $this;
3✔
1043
    }
1044

1045
    /**
1046
     * Get the city
1047
     *
1048
     * @return string
1049
     */
1050
    public function getCity() {
1051
        return $this->city;
5✔
1052
    }
1053

1054
    /**
1055
     * Set the city
1056
     *
1057
     * @param string $city
1058
     * @return TransferMethod
1059
     */
1060
    public function setCity($city) {
1061
        $this->city = $city;
3✔
1062
        return $this;
3✔
1063
    }
1064

1065
    /**
1066
     * Get the state or province
1067
     *
1068
     * @return string
1069
     */
1070
    public function getStateProvince() {
1071
        return $this->stateProvince;
5✔
1072
    }
1073

1074
    /**
1075
     * Set the state or province
1076
     *
1077
     * @param string $stateProvince
1078
     * @return TransferMethod
1079
     */
1080
    public function setStateProvince($stateProvince) {
1081
        $this->stateProvince = $stateProvince;
3✔
1082
        return $this;
3✔
1083
    }
1084

1085
    /**
1086
     * Get the country
1087
     *
1088
     * @return string
1089
     */
1090
    public function getCountry() {
1091
        return $this->country;
5✔
1092
    }
1093

1094
    /**
1095
     * Set the country
1096
     *
1097
     * @param string $country
1098
     * @return TransferMethod
1099
     */
1100
    public function setCountry($country) {
1101
        $this->country = $country;
3✔
1102
        return $this;
3✔
1103
    }
1104

1105
    /**
1106
     * Get the postal code
1107
     *
1108
     * @return string
1109
     */
1110
    public function getPostalCode() {
1111
        return $this->postalCode;
5✔
1112
    }
1113

1114
    /**
1115
     * Set the postal code
1116
     *
1117
     * @param string $postalCode
1118
     * @return TransferMethod
1119
     */
1120
    public function setPostalCode($postalCode) {
1121
        $this->postalCode = $postalCode;
3✔
1122
        return $this;
3✔
1123
    }
1124

1125
    /**
1126
     * Get the is default transfer method
1127
     *
1128
     * @return bool
1129
     */
1130
    public function getIsDefaultTransferMethod() {
1131
        return $this->isDefaultTransferMethod;
5✔
1132
    }
1133

1134
    /**
1135
     * Set the is default transfer method
1136
     *
1137
     * @param bool $isDefaultTransferMethod
1138
     * @return TransferMethod
1139
     */
1140
    public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
1141
        $this->isDefaultTransferMethod = $isDefaultTransferMethod;
3✔
1142
        return $this;
3✔
1143
    }
1144
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc