1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the slince/shopify-api-php |
5
|
|
|
* |
6
|
|
|
* (c) Slince <[email protected]> |
7
|
|
|
* |
8
|
|
|
* This source file is subject to the MIT license that is bundled |
9
|
|
|
* with this source code in the file LICENSE. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Slince\Shopify\Manager\Shop; |
13
|
|
|
|
14
|
|
|
use Slince\Shopify\Common\Model\Model; |
15
|
|
|
|
16
|
|
|
class Shop extends Model |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* @var string |
20
|
|
|
*/ |
21
|
|
|
protected $name; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string |
25
|
|
|
*/ |
26
|
|
|
protected $email; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
protected $domain; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var \DateTimeInterface |
35
|
|
|
*/ |
36
|
|
|
protected $createdAt; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
protected $province; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
protected $country; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
protected $address1; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
*/ |
56
|
|
|
protected $zip; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
*/ |
61
|
|
|
protected $city; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var string |
65
|
|
|
*/ |
66
|
|
|
protected $source; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var string |
70
|
|
|
*/ |
71
|
|
|
protected $phone; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var string |
75
|
|
|
*/ |
76
|
|
|
protected $updatedAt; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var string |
80
|
|
|
*/ |
81
|
|
|
protected $customerEmail; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var float |
85
|
|
|
*/ |
86
|
|
|
protected $latitude; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @var float |
90
|
|
|
*/ |
91
|
|
|
protected $longitude; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var int |
95
|
|
|
*/ |
96
|
|
|
protected $primaryLocationId; |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @var string |
100
|
|
|
*/ |
101
|
|
|
protected $primaryLocale; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @var string |
105
|
|
|
*/ |
106
|
|
|
protected $address2; |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @var string |
110
|
|
|
*/ |
111
|
|
|
protected $countryCode; |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @var string |
115
|
|
|
*/ |
116
|
|
|
protected $countryName; |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @var string |
120
|
|
|
*/ |
121
|
|
|
protected $currency; |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @var string |
125
|
|
|
*/ |
126
|
|
|
protected $timezone; |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @var string |
130
|
|
|
*/ |
131
|
|
|
protected $ianaTimezone; |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @var string |
135
|
|
|
*/ |
136
|
|
|
protected $shopOwner; |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @var string |
140
|
|
|
*/ |
141
|
|
|
protected $moneyFormat; |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @var string |
145
|
|
|
*/ |
146
|
|
|
protected $moneyWithCurrencyFormat; |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @var string |
150
|
|
|
*/ |
151
|
|
|
protected $weightUnit; |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @var string |
155
|
|
|
*/ |
156
|
|
|
protected $provinceCode; |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @var bool |
160
|
|
|
*/ |
161
|
|
|
protected $taxesIncluded; |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @var string |
165
|
|
|
*/ |
166
|
|
|
protected $taxShipping; |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @var string |
170
|
|
|
*/ |
171
|
|
|
protected $countyTaxes; |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @var string |
175
|
|
|
*/ |
176
|
|
|
protected $planDisplayName; |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @var string |
180
|
|
|
*/ |
181
|
|
|
protected $planName; |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @var bool |
185
|
|
|
*/ |
186
|
|
|
protected $hasDiscounts; |
187
|
|
|
|
188
|
|
|
/** |
189
|
|
|
* @var bool |
190
|
|
|
*/ |
191
|
|
|
protected $hasGiftCards; |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @var string |
195
|
|
|
*/ |
196
|
|
|
protected $myshopifyDomain; |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @var string |
200
|
|
|
*/ |
201
|
|
|
protected $googleAppsDomain; |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @var string |
205
|
|
|
*/ |
206
|
|
|
protected $googleAppsLoginEnabled; |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @var string |
210
|
|
|
*/ |
211
|
|
|
protected $moneyInEmailsFormat; |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @var string |
215
|
|
|
*/ |
216
|
|
|
protected $moneyWithCurrencyInEmailsFormat; |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @var bool |
220
|
|
|
*/ |
221
|
|
|
protected $eligibleForPayments; |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* @var bool |
225
|
|
|
*/ |
226
|
|
|
protected $requiresExtraPaymentsAgreement; |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* @var bool |
230
|
|
|
*/ |
231
|
|
|
protected $passwordEnabled; |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @var bool |
235
|
|
|
*/ |
236
|
|
|
protected $hasStoreFront; |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @var bool |
240
|
|
|
*/ |
241
|
|
|
protected $eligibleForCardReaderGiveaway; |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* @var bool |
245
|
|
|
*/ |
246
|
|
|
protected $finances; |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @var bool |
250
|
|
|
*/ |
251
|
|
|
protected $setupRequired; |
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* @var bool |
255
|
|
|
*/ |
256
|
|
|
protected $forceSsl; |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @return string |
260
|
|
|
*/ |
261
|
|
|
public function getName() |
262
|
|
|
{ |
263
|
|
|
return $this->name; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @param string $name |
268
|
|
|
* |
269
|
|
|
* @return Shop |
270
|
|
|
*/ |
271
|
|
|
public function setName($name) |
272
|
|
|
{ |
273
|
|
|
$this->name = $name; |
274
|
|
|
|
275
|
|
|
return $this; |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
/** |
279
|
|
|
* @return string |
280
|
|
|
*/ |
281
|
|
|
public function getEmail() |
282
|
|
|
{ |
283
|
|
|
return $this->email; |
284
|
|
|
} |
285
|
|
|
|
286
|
|
|
/** |
287
|
|
|
* @param string $email |
288
|
|
|
* |
289
|
|
|
* @return Shop |
290
|
|
|
*/ |
291
|
|
|
public function setEmail($email) |
292
|
|
|
{ |
293
|
|
|
$this->email = $email; |
294
|
|
|
|
295
|
|
|
return $this; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @return string |
300
|
|
|
*/ |
301
|
|
|
public function getDomain() |
302
|
|
|
{ |
303
|
|
|
return $this->domain; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* @param string $domain |
308
|
|
|
* |
309
|
|
|
* @return Shop |
310
|
|
|
*/ |
311
|
|
|
public function setDomain($domain) |
312
|
|
|
{ |
313
|
|
|
$this->domain = $domain; |
314
|
|
|
|
315
|
|
|
return $this; |
316
|
|
|
} |
317
|
|
|
|
318
|
|
|
/** |
319
|
|
|
* @return \DateTimeInterface |
320
|
|
|
*/ |
321
|
|
|
public function getCreatedAt() |
322
|
|
|
{ |
323
|
|
|
return $this->createdAt; |
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
/** |
327
|
|
|
* @param \DateTimeInterface $createdAt |
328
|
|
|
* |
329
|
|
|
* @return Shop |
330
|
|
|
*/ |
331
|
|
|
public function setCreatedAt($createdAt) |
332
|
|
|
{ |
333
|
|
|
$this->createdAt = $createdAt; |
334
|
|
|
|
335
|
|
|
return $this; |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* @return string |
340
|
|
|
*/ |
341
|
|
|
public function getProvince() |
342
|
|
|
{ |
343
|
|
|
return $this->province; |
344
|
|
|
} |
345
|
|
|
|
346
|
|
|
/** |
347
|
|
|
* @param string $province |
348
|
|
|
* |
349
|
|
|
* @return Shop |
350
|
|
|
*/ |
351
|
|
|
public function setProvince($province) |
352
|
|
|
{ |
353
|
|
|
$this->province = $province; |
354
|
|
|
|
355
|
|
|
return $this; |
356
|
|
|
} |
357
|
|
|
|
358
|
|
|
/** |
359
|
|
|
* @return string |
360
|
|
|
*/ |
361
|
|
|
public function getCountry() |
362
|
|
|
{ |
363
|
|
|
return $this->country; |
364
|
|
|
} |
365
|
|
|
|
366
|
|
|
/** |
367
|
|
|
* @param string $country |
368
|
|
|
* |
369
|
|
|
* @return Shop |
370
|
|
|
*/ |
371
|
|
|
public function setCountry($country) |
372
|
|
|
{ |
373
|
|
|
$this->country = $country; |
374
|
|
|
|
375
|
|
|
return $this; |
376
|
|
|
} |
377
|
|
|
|
378
|
|
|
/** |
379
|
|
|
* @return string |
380
|
|
|
*/ |
381
|
|
|
public function getAddress1() |
382
|
|
|
{ |
383
|
|
|
return $this->address1; |
384
|
|
|
} |
385
|
|
|
|
386
|
|
|
/** |
387
|
|
|
* @param string $address1 |
388
|
|
|
* |
389
|
|
|
* @return Shop |
390
|
|
|
*/ |
391
|
|
|
public function setAddress1($address1) |
392
|
|
|
{ |
393
|
|
|
$this->address1 = $address1; |
394
|
|
|
|
395
|
|
|
return $this; |
396
|
|
|
} |
397
|
|
|
|
398
|
|
|
/** |
399
|
|
|
* @return string |
400
|
|
|
*/ |
401
|
|
|
public function getZip() |
402
|
|
|
{ |
403
|
|
|
return $this->zip; |
404
|
|
|
} |
405
|
|
|
|
406
|
|
|
/** |
407
|
|
|
* @param string $zip |
408
|
|
|
* |
409
|
|
|
* @return Shop |
410
|
|
|
*/ |
411
|
|
|
public function setZip($zip) |
412
|
|
|
{ |
413
|
|
|
$this->zip = $zip; |
414
|
|
|
|
415
|
|
|
return $this; |
416
|
|
|
} |
417
|
|
|
|
418
|
|
|
/** |
419
|
|
|
* @return string |
420
|
|
|
*/ |
421
|
|
|
public function getCity() |
422
|
|
|
{ |
423
|
|
|
return $this->city; |
424
|
|
|
} |
425
|
|
|
|
426
|
|
|
/** |
427
|
|
|
* @param string $city |
428
|
|
|
* |
429
|
|
|
* @return Shop |
430
|
|
|
*/ |
431
|
|
|
public function setCity($city) |
432
|
|
|
{ |
433
|
|
|
$this->city = $city; |
434
|
|
|
|
435
|
|
|
return $this; |
436
|
|
|
} |
437
|
|
|
|
438
|
|
|
/** |
439
|
|
|
* @return string |
440
|
|
|
*/ |
441
|
|
|
public function getSource() |
442
|
|
|
{ |
443
|
|
|
return $this->source; |
444
|
|
|
} |
445
|
|
|
|
446
|
|
|
/** |
447
|
|
|
* @param string $source |
448
|
|
|
* |
449
|
|
|
* @return Shop |
450
|
|
|
*/ |
451
|
|
|
public function setSource($source) |
452
|
|
|
{ |
453
|
|
|
$this->source = $source; |
454
|
|
|
|
455
|
|
|
return $this; |
456
|
|
|
} |
457
|
|
|
|
458
|
|
|
/** |
459
|
|
|
* @return string |
460
|
|
|
*/ |
461
|
|
|
public function getPhone() |
462
|
|
|
{ |
463
|
|
|
return $this->phone; |
464
|
|
|
} |
465
|
|
|
|
466
|
|
|
/** |
467
|
|
|
* @param string $phone |
468
|
|
|
* |
469
|
|
|
* @return Shop |
470
|
|
|
*/ |
471
|
|
|
public function setPhone($phone) |
472
|
|
|
{ |
473
|
|
|
$this->phone = $phone; |
474
|
|
|
|
475
|
|
|
return $this; |
476
|
|
|
} |
477
|
|
|
|
478
|
|
|
/** |
479
|
|
|
* @return string |
480
|
|
|
*/ |
481
|
|
|
public function getUpdatedAt() |
482
|
|
|
{ |
483
|
|
|
return $this->updatedAt; |
484
|
|
|
} |
485
|
|
|
|
486
|
|
|
/** |
487
|
|
|
* @param string $updatedAt |
488
|
|
|
* |
489
|
|
|
* @return Shop |
490
|
|
|
*/ |
491
|
|
|
public function setUpdatedAt($updatedAt) |
492
|
|
|
{ |
493
|
|
|
$this->updatedAt = $updatedAt; |
494
|
|
|
|
495
|
|
|
return $this; |
496
|
|
|
} |
497
|
|
|
|
498
|
|
|
/** |
499
|
|
|
* @return string |
500
|
|
|
*/ |
501
|
|
|
public function getCustomerEmail() |
502
|
|
|
{ |
503
|
|
|
return $this->customerEmail; |
504
|
|
|
} |
505
|
|
|
|
506
|
|
|
/** |
507
|
|
|
* @param string $customerEmail |
508
|
|
|
* |
509
|
|
|
* @return Shop |
510
|
|
|
*/ |
511
|
|
|
public function setCustomerEmail($customerEmail) |
512
|
|
|
{ |
513
|
|
|
$this->customerEmail = $customerEmail; |
514
|
|
|
|
515
|
|
|
return $this; |
516
|
|
|
} |
517
|
|
|
|
518
|
|
|
/** |
519
|
|
|
* @return float |
520
|
|
|
*/ |
521
|
|
|
public function getLatitude() |
522
|
|
|
{ |
523
|
|
|
return $this->latitude; |
524
|
|
|
} |
525
|
|
|
|
526
|
|
|
/** |
527
|
|
|
* @param float $latitude |
528
|
|
|
* |
529
|
|
|
* @return Shop |
530
|
|
|
*/ |
531
|
|
|
public function setLatitude($latitude) |
532
|
|
|
{ |
533
|
|
|
$this->latitude = $latitude; |
534
|
|
|
|
535
|
|
|
return $this; |
536
|
|
|
} |
537
|
|
|
|
538
|
|
|
/** |
539
|
|
|
* @return float |
540
|
|
|
*/ |
541
|
|
|
public function getLongitude() |
542
|
|
|
{ |
543
|
|
|
return $this->longitude; |
544
|
|
|
} |
545
|
|
|
|
546
|
|
|
/** |
547
|
|
|
* @param float $longitude |
548
|
|
|
* |
549
|
|
|
* @return Shop |
550
|
|
|
*/ |
551
|
|
|
public function setLongitude($longitude) |
552
|
|
|
{ |
553
|
|
|
$this->longitude = $longitude; |
554
|
|
|
|
555
|
|
|
return $this; |
556
|
|
|
} |
557
|
|
|
|
558
|
|
|
/** |
559
|
|
|
* @return integer |
560
|
|
|
*/ |
561
|
|
|
public function getPrimaryLocationId() |
562
|
|
|
{ |
563
|
|
|
return $this->primaryLocationId; |
564
|
|
|
} |
565
|
|
|
|
566
|
|
|
/** |
567
|
|
|
* @param string $primaryLocationId |
568
|
|
|
* |
569
|
|
|
* @return Shop |
570
|
|
|
*/ |
571
|
|
|
public function setPrimaryLocationId($primaryLocationId) |
572
|
|
|
{ |
573
|
|
|
$this->primaryLocationId = $primaryLocationId; |
|
|
|
|
574
|
|
|
|
575
|
|
|
return $this; |
576
|
|
|
} |
577
|
|
|
|
578
|
|
|
/** |
579
|
|
|
* @return string |
580
|
|
|
*/ |
581
|
|
|
public function getPrimaryLocale() |
582
|
|
|
{ |
583
|
|
|
return $this->primaryLocale; |
584
|
|
|
} |
585
|
|
|
|
586
|
|
|
/** |
587
|
|
|
* @param string $primaryLocale |
588
|
|
|
* |
589
|
|
|
* @return Shop |
590
|
|
|
*/ |
591
|
|
|
public function setPrimaryLocale($primaryLocale) |
592
|
|
|
{ |
593
|
|
|
$this->primaryLocale = $primaryLocale; |
594
|
|
|
|
595
|
|
|
return $this; |
596
|
|
|
} |
597
|
|
|
|
598
|
|
|
/** |
599
|
|
|
* @return string |
600
|
|
|
*/ |
601
|
|
|
public function getAddress2() |
602
|
|
|
{ |
603
|
|
|
return $this->address2; |
604
|
|
|
} |
605
|
|
|
|
606
|
|
|
/** |
607
|
|
|
* @param string $address2 |
608
|
|
|
* |
609
|
|
|
* @return Shop |
610
|
|
|
*/ |
611
|
|
|
public function setAddress2($address2) |
612
|
|
|
{ |
613
|
|
|
$this->address2 = $address2; |
614
|
|
|
|
615
|
|
|
return $this; |
616
|
|
|
} |
617
|
|
|
|
618
|
|
|
/** |
619
|
|
|
* @return string |
620
|
|
|
*/ |
621
|
|
|
public function getCountryCode() |
622
|
|
|
{ |
623
|
|
|
return $this->countryCode; |
624
|
|
|
} |
625
|
|
|
|
626
|
|
|
/** |
627
|
|
|
* @param string $countryCode |
628
|
|
|
* |
629
|
|
|
* @return Shop |
630
|
|
|
*/ |
631
|
|
|
public function setCountryCode($countryCode) |
632
|
|
|
{ |
633
|
|
|
$this->countryCode = $countryCode; |
634
|
|
|
|
635
|
|
|
return $this; |
636
|
|
|
} |
637
|
|
|
|
638
|
|
|
/** |
639
|
|
|
* @return string |
640
|
|
|
*/ |
641
|
|
|
public function getCountryName() |
642
|
|
|
{ |
643
|
|
|
return $this->countryName; |
644
|
|
|
} |
645
|
|
|
|
646
|
|
|
/** |
647
|
|
|
* @param string $countryName |
648
|
|
|
* |
649
|
|
|
* @return Shop |
650
|
|
|
*/ |
651
|
|
|
public function setCountryName($countryName) |
652
|
|
|
{ |
653
|
|
|
$this->countryName = $countryName; |
654
|
|
|
|
655
|
|
|
return $this; |
656
|
|
|
} |
657
|
|
|
|
658
|
|
|
/** |
659
|
|
|
* @return string |
660
|
|
|
*/ |
661
|
|
|
public function getCurrency() |
662
|
|
|
{ |
663
|
|
|
return $this->currency; |
664
|
|
|
} |
665
|
|
|
|
666
|
|
|
/** |
667
|
|
|
* @param string $currency |
668
|
|
|
* |
669
|
|
|
* @return Shop |
670
|
|
|
*/ |
671
|
|
|
public function setCurrency($currency) |
672
|
|
|
{ |
673
|
|
|
$this->currency = $currency; |
674
|
|
|
|
675
|
|
|
return $this; |
676
|
|
|
} |
677
|
|
|
|
678
|
|
|
/** |
679
|
|
|
* @return string |
680
|
|
|
*/ |
681
|
|
|
public function getTimezone() |
682
|
|
|
{ |
683
|
|
|
return $this->timezone; |
684
|
|
|
} |
685
|
|
|
|
686
|
|
|
/** |
687
|
|
|
* @param string $timezone |
688
|
|
|
* |
689
|
|
|
* @return Shop |
690
|
|
|
*/ |
691
|
|
|
public function setTimezone($timezone) |
692
|
|
|
{ |
693
|
|
|
$this->timezone = $timezone; |
694
|
|
|
|
695
|
|
|
return $this; |
696
|
|
|
} |
697
|
|
|
|
698
|
|
|
/** |
699
|
|
|
* @return string |
700
|
|
|
*/ |
701
|
|
|
public function getIanaTimezone() |
702
|
|
|
{ |
703
|
|
|
return $this->ianaTimezone; |
704
|
|
|
} |
705
|
|
|
|
706
|
|
|
/** |
707
|
|
|
* @param string $ianaTimezone |
708
|
|
|
* |
709
|
|
|
* @return Shop |
710
|
|
|
*/ |
711
|
|
|
public function setIanaTimezone($ianaTimezone) |
712
|
|
|
{ |
713
|
|
|
$this->ianaTimezone = $ianaTimezone; |
714
|
|
|
|
715
|
|
|
return $this; |
716
|
|
|
} |
717
|
|
|
|
718
|
|
|
/** |
719
|
|
|
* @return string |
720
|
|
|
*/ |
721
|
|
|
public function getShopOwner() |
722
|
|
|
{ |
723
|
|
|
return $this->shopOwner; |
724
|
|
|
} |
725
|
|
|
|
726
|
|
|
/** |
727
|
|
|
* @param string $shopOwner |
728
|
|
|
* |
729
|
|
|
* @return Shop |
730
|
|
|
*/ |
731
|
|
|
public function setShopOwner($shopOwner) |
732
|
|
|
{ |
733
|
|
|
$this->shopOwner = $shopOwner; |
734
|
|
|
|
735
|
|
|
return $this; |
736
|
|
|
} |
737
|
|
|
|
738
|
|
|
/** |
739
|
|
|
* @return string |
740
|
|
|
*/ |
741
|
|
|
public function getMoneyFormat() |
742
|
|
|
{ |
743
|
|
|
return $this->moneyFormat; |
744
|
|
|
} |
745
|
|
|
|
746
|
|
|
/** |
747
|
|
|
* @param string $moneyFormat |
748
|
|
|
* |
749
|
|
|
* @return Shop |
750
|
|
|
*/ |
751
|
|
|
public function setMoneyFormat($moneyFormat) |
752
|
|
|
{ |
753
|
|
|
$this->moneyFormat = $moneyFormat; |
754
|
|
|
|
755
|
|
|
return $this; |
756
|
|
|
} |
757
|
|
|
|
758
|
|
|
/** |
759
|
|
|
* @return string |
760
|
|
|
*/ |
761
|
|
|
public function getMoneyWithCurrencyFormat() |
762
|
|
|
{ |
763
|
|
|
return $this->moneyWithCurrencyFormat; |
764
|
|
|
} |
765
|
|
|
|
766
|
|
|
/** |
767
|
|
|
* @param string $moneyWithCurrencyFormat |
768
|
|
|
* |
769
|
|
|
* @return Shop |
770
|
|
|
*/ |
771
|
|
|
public function setMoneyWithCurrencyFormat($moneyWithCurrencyFormat) |
772
|
|
|
{ |
773
|
|
|
$this->moneyWithCurrencyFormat = $moneyWithCurrencyFormat; |
774
|
|
|
|
775
|
|
|
return $this; |
776
|
|
|
} |
777
|
|
|
|
778
|
|
|
/** |
779
|
|
|
* @return string |
780
|
|
|
*/ |
781
|
|
|
public function getWeightUnit() |
782
|
|
|
{ |
783
|
|
|
return $this->weightUnit; |
784
|
|
|
} |
785
|
|
|
|
786
|
|
|
/** |
787
|
|
|
* @param string $weightUnit |
788
|
|
|
* |
789
|
|
|
* @return Shop |
790
|
|
|
*/ |
791
|
|
|
public function setWeightUnit($weightUnit) |
792
|
|
|
{ |
793
|
|
|
$this->weightUnit = $weightUnit; |
794
|
|
|
|
795
|
|
|
return $this; |
796
|
|
|
} |
797
|
|
|
|
798
|
|
|
/** |
799
|
|
|
* @return string |
800
|
|
|
*/ |
801
|
|
|
public function getProvinceCode() |
802
|
|
|
{ |
803
|
|
|
return $this->provinceCode; |
804
|
|
|
} |
805
|
|
|
|
806
|
|
|
/** |
807
|
|
|
* @param string $provinceCode |
808
|
|
|
* |
809
|
|
|
* @return Shop |
810
|
|
|
*/ |
811
|
|
|
public function setProvinceCode($provinceCode) |
812
|
|
|
{ |
813
|
|
|
$this->provinceCode = $provinceCode; |
814
|
|
|
|
815
|
|
|
return $this; |
816
|
|
|
} |
817
|
|
|
|
818
|
|
|
/** |
819
|
|
|
* @return bool |
820
|
|
|
*/ |
821
|
|
|
public function isTaxesIncluded() |
822
|
|
|
{ |
823
|
|
|
return $this->taxesIncluded; |
824
|
|
|
} |
825
|
|
|
|
826
|
|
|
/** |
827
|
|
|
* @param bool $taxesIncluded |
828
|
|
|
* |
829
|
|
|
* @return Shop |
830
|
|
|
*/ |
831
|
|
|
public function setTaxesIncluded($taxesIncluded) |
832
|
|
|
{ |
833
|
|
|
$this->taxesIncluded = $taxesIncluded; |
834
|
|
|
|
835
|
|
|
return $this; |
836
|
|
|
} |
837
|
|
|
|
838
|
|
|
/** |
839
|
|
|
* @return string |
840
|
|
|
*/ |
841
|
|
|
public function getTaxShipping() |
842
|
|
|
{ |
843
|
|
|
return $this->taxShipping; |
844
|
|
|
} |
845
|
|
|
|
846
|
|
|
/** |
847
|
|
|
* @param string $taxShipping |
848
|
|
|
* |
849
|
|
|
* @return Shop |
850
|
|
|
*/ |
851
|
|
|
public function setTaxShipping($taxShipping) |
852
|
|
|
{ |
853
|
|
|
$this->taxShipping = $taxShipping; |
854
|
|
|
|
855
|
|
|
return $this; |
856
|
|
|
} |
857
|
|
|
|
858
|
|
|
/** |
859
|
|
|
* @return string |
860
|
|
|
*/ |
861
|
|
|
public function getCountyTaxes() |
862
|
|
|
{ |
863
|
|
|
return $this->countyTaxes; |
864
|
|
|
} |
865
|
|
|
|
866
|
|
|
/** |
867
|
|
|
* @param string $countyTaxes |
868
|
|
|
* |
869
|
|
|
* @return Shop |
870
|
|
|
*/ |
871
|
|
|
public function setCountyTaxes($countyTaxes) |
872
|
|
|
{ |
873
|
|
|
$this->countyTaxes = $countyTaxes; |
874
|
|
|
|
875
|
|
|
return $this; |
876
|
|
|
} |
877
|
|
|
|
878
|
|
|
/** |
879
|
|
|
* @return string |
880
|
|
|
*/ |
881
|
|
|
public function getPlanDisplayName() |
882
|
|
|
{ |
883
|
|
|
return $this->planDisplayName; |
884
|
|
|
} |
885
|
|
|
|
886
|
|
|
/** |
887
|
|
|
* @param string $planDisplayName |
888
|
|
|
* |
889
|
|
|
* @return Shop |
890
|
|
|
*/ |
891
|
|
|
public function setPlanDisplayName($planDisplayName) |
892
|
|
|
{ |
893
|
|
|
$this->planDisplayName = $planDisplayName; |
894
|
|
|
|
895
|
|
|
return $this; |
896
|
|
|
} |
897
|
|
|
|
898
|
|
|
/** |
899
|
|
|
* @return string |
900
|
|
|
*/ |
901
|
|
|
public function getPlanName() |
902
|
|
|
{ |
903
|
|
|
return $this->planName; |
904
|
|
|
} |
905
|
|
|
|
906
|
|
|
/** |
907
|
|
|
* @param string $planName |
908
|
|
|
* |
909
|
|
|
* @return Shop |
910
|
|
|
*/ |
911
|
|
|
public function setPlanName($planName) |
912
|
|
|
{ |
913
|
|
|
$this->planName = $planName; |
914
|
|
|
|
915
|
|
|
return $this; |
916
|
|
|
} |
917
|
|
|
|
918
|
|
|
/** |
919
|
|
|
* @return bool |
920
|
|
|
*/ |
921
|
|
|
public function isHasDiscounts() |
922
|
|
|
{ |
923
|
|
|
return $this->hasDiscounts; |
924
|
|
|
} |
925
|
|
|
|
926
|
|
|
/** |
927
|
|
|
* @param bool $hasDiscounts |
928
|
|
|
* |
929
|
|
|
* @return Shop |
930
|
|
|
*/ |
931
|
|
|
public function setHasDiscounts($hasDiscounts) |
932
|
|
|
{ |
933
|
|
|
$this->hasDiscounts = $hasDiscounts; |
934
|
|
|
|
935
|
|
|
return $this; |
936
|
|
|
} |
937
|
|
|
|
938
|
|
|
/** |
939
|
|
|
* @return bool |
940
|
|
|
*/ |
941
|
|
|
public function isHasGiftCards() |
942
|
|
|
{ |
943
|
|
|
return $this->hasGiftCards; |
944
|
|
|
} |
945
|
|
|
|
946
|
|
|
/** |
947
|
|
|
* @param bool $hasGiftCards |
948
|
|
|
* |
949
|
|
|
* @return Shop |
950
|
|
|
*/ |
951
|
|
|
public function setHasGiftCards($hasGiftCards) |
952
|
|
|
{ |
953
|
|
|
$this->hasGiftCards = $hasGiftCards; |
954
|
|
|
|
955
|
|
|
return $this; |
956
|
|
|
} |
957
|
|
|
|
958
|
|
|
/** |
959
|
|
|
* @return string |
960
|
|
|
*/ |
961
|
|
|
public function getMyshopifyDomain() |
962
|
|
|
{ |
963
|
|
|
return $this->myshopifyDomain; |
964
|
|
|
} |
965
|
|
|
|
966
|
|
|
/** |
967
|
|
|
* @param string $myshopifyDomain |
968
|
|
|
* |
969
|
|
|
* @return Shop |
970
|
|
|
*/ |
971
|
|
|
public function setMyshopifyDomain($myshopifyDomain) |
972
|
|
|
{ |
973
|
|
|
$this->myshopifyDomain = $myshopifyDomain; |
974
|
|
|
|
975
|
|
|
return $this; |
976
|
|
|
} |
977
|
|
|
|
978
|
|
|
/** |
979
|
|
|
* @return string |
980
|
|
|
*/ |
981
|
|
|
public function getGoogleAppsDomain() |
982
|
|
|
{ |
983
|
|
|
return $this->googleAppsDomain; |
984
|
|
|
} |
985
|
|
|
|
986
|
|
|
/** |
987
|
|
|
* @param string $googleAppsDomain |
988
|
|
|
* |
989
|
|
|
* @return Shop |
990
|
|
|
*/ |
991
|
|
|
public function setGoogleAppsDomain($googleAppsDomain) |
992
|
|
|
{ |
993
|
|
|
$this->googleAppsDomain = $googleAppsDomain; |
994
|
|
|
|
995
|
|
|
return $this; |
996
|
|
|
} |
997
|
|
|
|
998
|
|
|
/** |
999
|
|
|
* @return string |
1000
|
|
|
*/ |
1001
|
|
|
public function getGoogleAppsLoginEnabled() |
1002
|
|
|
{ |
1003
|
|
|
return $this->googleAppsLoginEnabled; |
1004
|
|
|
} |
1005
|
|
|
|
1006
|
|
|
/** |
1007
|
|
|
* @param string $googleAppsLoginEnabled |
1008
|
|
|
* |
1009
|
|
|
* @return Shop |
1010
|
|
|
*/ |
1011
|
|
|
public function setGoogleAppsLoginEnabled($googleAppsLoginEnabled) |
1012
|
|
|
{ |
1013
|
|
|
$this->googleAppsLoginEnabled = $googleAppsLoginEnabled; |
1014
|
|
|
|
1015
|
|
|
return $this; |
1016
|
|
|
} |
1017
|
|
|
|
1018
|
|
|
/** |
1019
|
|
|
* @return string |
1020
|
|
|
*/ |
1021
|
|
|
public function getMoneyInEmailsFormat() |
1022
|
|
|
{ |
1023
|
|
|
return $this->moneyInEmailsFormat; |
1024
|
|
|
} |
1025
|
|
|
|
1026
|
|
|
/** |
1027
|
|
|
* @param string $moneyInEmailsFormat |
1028
|
|
|
* |
1029
|
|
|
* @return Shop |
1030
|
|
|
*/ |
1031
|
|
|
public function setMoneyInEmailsFormat($moneyInEmailsFormat) |
1032
|
|
|
{ |
1033
|
|
|
$this->moneyInEmailsFormat = $moneyInEmailsFormat; |
1034
|
|
|
|
1035
|
|
|
return $this; |
1036
|
|
|
} |
1037
|
|
|
|
1038
|
|
|
/** |
1039
|
|
|
* @return string |
1040
|
|
|
*/ |
1041
|
|
|
public function getMoneyWithCurrencyInEmailsFormat() |
1042
|
|
|
{ |
1043
|
|
|
return $this->moneyWithCurrencyInEmailsFormat; |
1044
|
|
|
} |
1045
|
|
|
|
1046
|
|
|
/** |
1047
|
|
|
* @param string $moneyWithCurrencyInEmailsFormat |
1048
|
|
|
* |
1049
|
|
|
* @return Shop |
1050
|
|
|
*/ |
1051
|
|
|
public function setMoneyWithCurrencyInEmailsFormat($moneyWithCurrencyInEmailsFormat) |
1052
|
|
|
{ |
1053
|
|
|
$this->moneyWithCurrencyInEmailsFormat = $moneyWithCurrencyInEmailsFormat; |
1054
|
|
|
|
1055
|
|
|
return $this; |
1056
|
|
|
} |
1057
|
|
|
|
1058
|
|
|
/** |
1059
|
|
|
* @return bool |
1060
|
|
|
*/ |
1061
|
|
|
public function isEligibleForPayments() |
1062
|
|
|
{ |
1063
|
|
|
return $this->eligibleForPayments; |
1064
|
|
|
} |
1065
|
|
|
|
1066
|
|
|
/** |
1067
|
|
|
* @param bool $eligibleForPayments |
1068
|
|
|
* |
1069
|
|
|
* @return Shop |
1070
|
|
|
*/ |
1071
|
|
|
public function setEligibleForPayments($eligibleForPayments) |
1072
|
|
|
{ |
1073
|
|
|
$this->eligibleForPayments = $eligibleForPayments; |
1074
|
|
|
|
1075
|
|
|
return $this; |
1076
|
|
|
} |
1077
|
|
|
|
1078
|
|
|
/** |
1079
|
|
|
* @return bool |
1080
|
|
|
*/ |
1081
|
|
|
public function isRequiresExtraPaymentsAgreement() |
1082
|
|
|
{ |
1083
|
|
|
return $this->requiresExtraPaymentsAgreement; |
1084
|
|
|
} |
1085
|
|
|
|
1086
|
|
|
/** |
1087
|
|
|
* @param bool $requiresExtraPaymentsAgreement |
1088
|
|
|
* |
1089
|
|
|
* @return Shop |
1090
|
|
|
*/ |
1091
|
|
|
public function setRequiresExtraPaymentsAgreement($requiresExtraPaymentsAgreement) |
1092
|
|
|
{ |
1093
|
|
|
$this->requiresExtraPaymentsAgreement = $requiresExtraPaymentsAgreement; |
1094
|
|
|
|
1095
|
|
|
return $this; |
1096
|
|
|
} |
1097
|
|
|
|
1098
|
|
|
/** |
1099
|
|
|
* @return bool |
1100
|
|
|
*/ |
1101
|
|
|
public function isPasswordEnabled() |
1102
|
|
|
{ |
1103
|
|
|
return $this->passwordEnabled; |
1104
|
|
|
} |
1105
|
|
|
|
1106
|
|
|
/** |
1107
|
|
|
* @param bool $passwordEnabled |
1108
|
|
|
* |
1109
|
|
|
* @return Shop |
1110
|
|
|
*/ |
1111
|
|
|
public function setPasswordEnabled($passwordEnabled) |
1112
|
|
|
{ |
1113
|
|
|
$this->passwordEnabled = $passwordEnabled; |
1114
|
|
|
|
1115
|
|
|
return $this; |
1116
|
|
|
} |
1117
|
|
|
|
1118
|
|
|
/** |
1119
|
|
|
* @return bool |
1120
|
|
|
*/ |
1121
|
|
|
public function isHasStoreFront() |
1122
|
|
|
{ |
1123
|
|
|
return $this->hasStoreFront; |
1124
|
|
|
} |
1125
|
|
|
|
1126
|
|
|
/** |
1127
|
|
|
* @param bool $hasStoreFront |
1128
|
|
|
* |
1129
|
|
|
* @return Shop |
1130
|
|
|
*/ |
1131
|
|
|
public function setHasStoreFront($hasStoreFront) |
1132
|
|
|
{ |
1133
|
|
|
$this->hasStoreFront = $hasStoreFront; |
1134
|
|
|
|
1135
|
|
|
return $this; |
1136
|
|
|
} |
1137
|
|
|
|
1138
|
|
|
/** |
1139
|
|
|
* @return bool |
1140
|
|
|
*/ |
1141
|
|
|
public function isEligibleForCardReaderGiveaway() |
1142
|
|
|
{ |
1143
|
|
|
return $this->eligibleForCardReaderGiveaway; |
1144
|
|
|
} |
1145
|
|
|
|
1146
|
|
|
/** |
1147
|
|
|
* @param bool $eligibleForCardReaderGiveaway |
1148
|
|
|
* |
1149
|
|
|
* @return Shop |
1150
|
|
|
*/ |
1151
|
|
|
public function setEligibleForCardReaderGiveaway($eligibleForCardReaderGiveaway) |
1152
|
|
|
{ |
1153
|
|
|
$this->eligibleForCardReaderGiveaway = $eligibleForCardReaderGiveaway; |
1154
|
|
|
|
1155
|
|
|
return $this; |
1156
|
|
|
} |
1157
|
|
|
|
1158
|
|
|
/** |
1159
|
|
|
* @return bool |
1160
|
|
|
*/ |
1161
|
|
|
public function isFinances() |
1162
|
|
|
{ |
1163
|
|
|
return $this->finances; |
1164
|
|
|
} |
1165
|
|
|
|
1166
|
|
|
/** |
1167
|
|
|
* @param bool $finances |
1168
|
|
|
* |
1169
|
|
|
* @return Shop |
1170
|
|
|
*/ |
1171
|
|
|
public function setFinances($finances) |
1172
|
|
|
{ |
1173
|
|
|
$this->finances = $finances; |
1174
|
|
|
|
1175
|
|
|
return $this; |
1176
|
|
|
} |
1177
|
|
|
|
1178
|
|
|
/** |
1179
|
|
|
* @return bool |
1180
|
|
|
*/ |
1181
|
|
|
public function isSetupRequired() |
1182
|
|
|
{ |
1183
|
|
|
return $this->setupRequired; |
1184
|
|
|
} |
1185
|
|
|
|
1186
|
|
|
/** |
1187
|
|
|
* @param bool $setupRequired |
1188
|
|
|
* |
1189
|
|
|
* @return Shop |
1190
|
|
|
*/ |
1191
|
|
|
public function setSetupRequired($setupRequired) |
1192
|
|
|
{ |
1193
|
|
|
$this->setupRequired = $setupRequired; |
1194
|
|
|
|
1195
|
|
|
return $this; |
1196
|
|
|
} |
1197
|
|
|
|
1198
|
|
|
/** |
1199
|
|
|
* @return bool |
1200
|
|
|
*/ |
1201
|
|
|
public function isForceSsl() |
1202
|
|
|
{ |
1203
|
|
|
return $this->forceSsl; |
1204
|
|
|
} |
1205
|
|
|
|
1206
|
|
|
/** |
1207
|
|
|
* @param bool $forceSsl |
1208
|
|
|
* |
1209
|
|
|
* @return Shop |
1210
|
|
|
*/ |
1211
|
|
|
public function setForceSsl($forceSsl) |
1212
|
|
|
{ |
1213
|
|
|
$this->forceSsl = $forceSsl; |
1214
|
|
|
|
1215
|
|
|
return $this; |
1216
|
|
|
} |
1217
|
|
|
} |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.