forked from inspirum/balikobot-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOption.php
802 lines (698 loc) · 14.3 KB
/
Option.php
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
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
<?php
namespace Inspirum\Balikobot\Definitions;
final class Option
{
/**
* Eshop ID
* string
*
* @var string
*/
public const EID = 'eid';
/**
* Package number
* int
*
* @var string
*/
public const ORDER_NUMBER = 'order_number';
/**
* Order id
* string
* max length 10 characters
*
* @var string
*/
public const REAL_ORDER_ID = 'real_order_id';
/**
* Service type
* string
*
* @var string
*/
public const SERVICE_TYPE = 'service_type';
/***
* Services
* array
*
* @var string
*/
public const SERVICES = 'services';
/**
* Branch id for pickup service
* string
*
* @var string
*/
public const BRANCH_ID = 'branch_id';
/***
* Package price
* float
*
* @var string
*/
public const PRICE = 'price';
/**
* Insurance
* bool
*
* @var string
*/
public const DEL_INSURANCE = 'del_insurance';
/**
* Insurance
* bool
*
* @var string
*/
public const DEL_EVENING = 'del_evening';
/**
* Pay by customer
* bool
*
* @var string
*/
public const DEL_EXWORKS = 'del_exworks';
/**
* Pay by customer
* bool
*
* @var string
*/
public const DEL_EXWORKS_ACCOUNT_NUMBER = 'del_exworks_account_number';
/**
* Pay by customer
* bool
*
* @var string
*/
public const DEL_EXWORKS_ZIP = 'del_exworks_zip';
/***
* Ppackage COD price
* float
*
* @var string
*/
public const COD_PRICE = 'cod_price';
/**
* Package cod currency
* float
*
* @var string
*/
public const COD_CURRENCY = 'cod_currency';
/**
* Variable symbol
* float
*
* @var string
*/
public const VS = 'vs';
/**
* Customer fullname
*
* @var string
*/
public const REC_NAME = 'rec_name';
/**
* Customer company name
*
* @var string
*/
public const REC_FIRM = 'rec_firm';
/**
* Delivery address street
*
* @var string
*/
public const REC_STREET = 'rec_street';
/**
* Delivery address city
*
* @var string
*/
public const REC_CITY = 'rec_city';
/**
* Delivery address postcode
*
* @var string
*/
public const REC_ZIP = 'rec_zip';
/**
* Delivery address region (HU,RO)
*
* @var string
*/
public const REC_REGION = 'rec_region';
/**
* Delivery address country code
* ISO 3166-1 alpha-2 http://cs.wikipedia.org/wiki/ISO_3166-1
*
* @var string
*/
public const REC_COUNTRY = 'rec_country';
/**
* Customer email
*
* @var string
*/
public const REC_EMAIL = 'rec_email';
/**
* Customer phone
*
* @var string
*/
public const REC_PHONE = 'rec_phone';
/**
* Customer ID
*
* @var string
*/
public const REC_ID = 'rec_id';
/**
* Weight in kg
* float
*
* @var string
*/
public const WEIGHT = 'weight';
/**
* Currency
*
* @var string
*/
public const INS_CURRENCY = 'ins_currency';
/**
* Taking delivery requires full age
* bool
*
* @var string
*/
public const REQUIRE_FULL_AGE = 'require_full_age';
/**
* Variation of age verification - send value "15" for 15+, send value "18" for 18+
* string
*
* @var string
*/
public const FULL_AGE_MINIMUM = 'full_age_minimum';
/**
* Taking delivery requires password
*
* @var string
*/
public const PASSWORD = 'password';
/**
* Credit card
* bool
*
* @var string
*/
public const CREDIT_CARD = 'credit_card';
/**
* Notifies customer by SMS
* boolean
*
* @var string
*/
public const SMS_NOTIFICATION = 'sms_notification';
/**
* Width in cm
* float
*
* @var string
*/
public const WIDTH = 'width';
/**
* Length in cm
* float
*
* @var string
*/
public const LENGTH = 'length';
/**
* Height in cm
* float
*
* @var string
*/
public const HEIGHT = 'height';
/**
* Note
* string
*
* @var string
*/
public const NOTE = 'note';
/**
* Exchangeable package
*
* @var string
*/
public const SWAP = 'swap';
/**
* Exchangeable package
*
* @var string
*/
public const SWAP_OPTION = 'swap_option';
/**
* Delivery bills back
* bool
*
* @var string
*/
public const VDL_SERVICE = 'vdl_service';
/**
* Total volume of shipment in m3
*
* @var string
*/
public const VOLUME = 'volume';
/**
* Manipulation unit code
*
* @see Client::getManipulationUnits()
*
* @var string
*/
public const MU_TYPE = 'mu_type';
/**
* Number of items if bigger than one
* int
*
* @var string
*/
public const PIECES_COUNT = 'pieces_count';
/**
* Manipulation unit code
*
* @see Client::getManipulationUnits()
*
* @var string
*/
public const MU_TYPE_ONE = 'mu_type_one';
/**
* Number of items if bigger than one
* int
*
* @var string
*/
public const PIECES_COUNT_ONE = 'pieces_count_one';
/**
* Manipulation unit code
*
* @see Client::getManipulationUnits()
*
* @var string
*/
public const MU_TYPE_TWO = 'mu_type_two';
/**
* Number of items if bigger than one
* int
*
* @var string
*/
public const PIECES_COUNT_TWO = 'pieces_count_two';
/**
* Manipulation unit code
*
* @see Client::getManipulationUnits()
*
* @var string
*/
public const MU_TYPE_THREE = 'mu_type_three';
/**
* Number of items if bigger than one
* int
*
* @var string
*/
public const PIECES_COUNT_THREE = 'pieces_count_three';
/**
* Carry to the floor and others
* bool
*
* @var string
*/
public const COMFORT_SERVICE = 'comfort_service';
/**
* Carry to the floor and others
* bool
*
* @var string
*/
public const COMFORT_SERVICE_PLUS = 'comfort_plus_service';
/**
* Oversize shipment
* bool
*
* @var string
*/
public const OVER_DIMENSION = 'over_dimension';
/**
* Number of palettes send back (use when more than one)
* int
*
* @var string
*/
public const WRAP_BACK_COUNT = 'wrap_back_count';
/**
* Description of returnable packaging
* string
*
* @var string
*/
public const WRAP_BACK_NOTE = 'wrap_back_note';
/**
* Return old household appliance
* bool
*
* @var string
*/
public const APP_DISP = 'app_disp';
/**
* The scheduled delivery date of the shipment is reported as date
* string (YYYY-mm-dd)
*
* @var string
*/
public const DELIVERY_DATE = 'delivery_date';
/**
* Taking delivery requires password
*
* @var string
*/
public const RETURN_TRACK = 'return_track';
/**
* Full bank account number
* string
*
* @var string
*/
public const BANK_ACCOUNT_NUMBER = 'bank_account_number';
/**
* Text content of the shipment
* string
*
* @var string
*/
public const CONTENT = 'content';
/**
* Terms and Conditions
* string
*
* @var string
*/
public const TERMS_OF_TRADE = 'terms_of_trade';
/**
* PDF in base64 string
* string
*
* @var string
*/
public const INVOICE_PDF = 'invoice_pdf';
/**
* Year of the addressee's birth
* string (YYYY)
*
* @var string
*/
public const FULL_AGE_DATA = 'full_age_data';
/**
* Supplementary Saturday delivery service for B2C shipments
* bool
*
* @var string
*/
public const SAT_DELIVERY = 'sat_delivery';
/**
* Returning the numbers of individual pieces of cargo handling units
* bool
*
* @var string
*/
public const GET_PIECES_NUMBERS = 'get_piece_numbers';
/**
* Return erros as messages
*
* @var string
*/
public const RETURN_FULL_ERRORS = 'return_full_errors';
/**
* The content of manipulation units (mu_type_one),
* string
*
* @var string
*/
public const CONTENT_ONE = 'content_one';
/**
* The content of manipulation units (mu_type_two),
* string
*
* @var string
*/
public const CONTENT_TWO = 'content_two';
/**
* The content of manipulation units (mu_type_three),
* string
*
* @var string
*/
public const CONTENT_THREE = 'content_three';
/**
* Phone delivery notification
* bool
*
* @var string
*/
public const PHONE_DELIVERY_NOTIFICATION = 'phone_delivery_notification';
/**
* Phone order notification
* bool
*
* @var string
*/
public const PHONE_ORDER_NOTIFICATION = 'phone_order_notification';
/**
* Email notification
* bool
*
* @var string
*/
public const EMAIL_NOTIFICATION = 'email_notification';
/**
* Notifies customer by phone
* bool
*
* @var string
*/
public const PHONE_NOTIFICATION = 'phone_notification';
/**
* B2C service
* bool
*
* @var string
*/
public const B2C_NOTIFICATION = 'b2c_notification';
/**
* Note
*
* @var string
*/
public const NOTE_DRIVER = 'note_driver';
/**
* Note for customer
*
* @var string
*/
public const NOTE_CUSTOMER = 'note_recipient';
/**
* Carry to the floor and others
* string
*
* @var string
*/
public const COMFORT_EXCLUSIVE_SERVICE = 'comfort_exclusive_service';
/**
* Delivery to the department - floor
* bool
*
* @var string
*/
public const PERS_DELIVERY_FLOOR = 'pers_delivery_floor';
/**
* Delivery to the department - building
* string
*
* @var string
*/
public const PERS_DELIVERY_BUILDING = 'pers_delivery_building';
/**
* Delivery to the department - department
* string
*
* @var string
*/
public const PERS_DELIVERY_DEPARTMENT = 'pers_delivery_department';
/**
* PIN
* int
*
* @var string
*/
public const PIN = 'pin';
/**
* Data for customs clearance
* string
*
* @var string
*/
public const CONTENT_DATA = 'content_data';
/**
* Invoice number
*
* string
*
* @var string
*/
public const INVOICE_NUMBER = 'invoice_number';
/**
* Customer can open the package and check the contents before taking over
* bool
*
* @var string
*/
public const OPEN_BEFORE_PAYMENT = 'open_before_payment';
/**
* Customeryou can try the goods before taking them
* bool
*
* @var string
*/
public const TEST_BEFORE_PAYMENT = 'test_before_payment';
/**
* ADR mode of transport
* bool
*
* @var string
*/
public const ADR_SERVICE = 'adr_service';
/**
* Individual ADR items in the shipment
* string
*
* @var string
*/
public const ADR_CONTENT = 'adr_content';
/**
* Číslo popisné, pokud pro danou adresu neexistuje doplňte "0"
*
* @var string
*/
public const REC_HOUSE_NUMBER = 'rec_house_number';
/**
* Identifikátor bloku (přenáší se jen u přepravce BG Speedy)
*
* @var string
*/
public const REC_BLOCK = 'rec_block';
/**
* Číslo vchodu (přenáší se jen u přepravce BG Speedy)
*
* @var string
*/
public const REC_ENTERANCE = 'rec_enterance';
/**
*
* Číslo podlaží (přenáší se jen u přepravce BG Speedy)
*
* @var string
*/
public const REC_FLOOR = 'rec_floor';
/**
* Číslo bytu / apartmánu (přenáší se jen u přepravce BG Speedy)
*
* @var string
*/
public const REC_FLAT_NUMBER = 'rec_flat_number';
/**
* Patronymum - otčestvo (povinný pro přepravce Nova Poshta)
*
* @var string
*/
public const REC_NAME_PATRONYMUM = 'rec_name_patronymum';
/**
* ID lokality
*
* @var string
*/
public const REC_LOCALE_ID = 'rec_locale_id';
/**
* Ceny přepravy v měně cílové země
*
* @var string
*/
public const DELIVERY_COSTS = 'delivery_costs';
/**
* Ceny přepravy v EUR
*
* @var string
*/
public const DELIVERY_COSTS_EUR = 'delivery_costs_eur';
/**
* Datum (formát YYYY-MM-DD) plánované reallizace přepravy
*
* @var string
*/
public const PICKUP_DATE = 'pickup_date';
/**
* Preferovaný čas přepravy OD. Formát HH:mm
*
* @var string
*/
public const PICKUP_TIME_FROM = 'pickup_time_from';
/**
* Preferovaný čas přepravy DO. Formát HH:mm
*
* @var string
*/
public const PICKUP_TIME_TO = 'pickup_time_to';
/**
* Zákaznická reference, maximální délka 40 alfanumerických znaků.
*
* @var string
*/
public const REFERENCE = 'reference';
/**
* SMS Service (SM1) – SMS avizace s možností zaslání vlastního textu
*
* @var string
*/
public const SM1_SERVICE = 'sm1_service';
/**
* Text SMS pro avizaci skrze sm1_service. Max délka 160 znaků.
*
* @var string
*/
public const SM1_TEXT = 'sm1_text';
/**
* PreAdvice Service (SM2). SMS avizace před doručením zásilky.
*
* @var string
*/
public const SM2_SERVICE = 'sm2_service';
/**
* Navrácení trackovacího linku na web cílového přepravce.
*
* @var string
*/
public const RETURN_FINAL_CARRIER_ID = 'return_final_carrier_id';
/**
* Bank code
* string
*
* @var string
*/
public const BANK_CODE = 'bank_code';
}