1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* MIT License |
5
|
|
|
* For full license information, please view the LICENSE file that was distributed with this source code. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace SprykerEco\Zed\CrefoPayApi; |
9
|
|
|
|
10
|
|
|
use Spryker\Zed\Kernel\AbstractBundleConfig; |
11
|
|
|
use SprykerEco\Shared\CrefoPayApi\CrefoPayApiConstants; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @method \SprykerEco\Shared\CrefoPayApi\CrefoPayApiConfig getSharedConfig() |
15
|
|
|
*/ |
16
|
|
|
class CrefoPayApiConfig extends AbstractBundleConfig |
17
|
|
|
{ |
18
|
|
|
protected const API_HEADER_MAC = 'X-Payco-HMAC'; |
19
|
|
|
protected const API_RESPONSE_FIELD_RESULT_CODE = 'resultCode'; |
20
|
|
|
protected const API_ERROR_TYPE_EXTERNAL = 'EXTERNAL'; |
21
|
|
|
|
22
|
|
|
protected const API_FIELD_MERCHANT_ID = 'merchantID'; |
23
|
|
|
protected const API_FIELD_STORE_ID = 'storeID'; |
24
|
|
|
protected const API_FIELD_ORDER_ID = 'orderID'; |
25
|
|
|
protected const API_FIELD_USER_ID = 'userID'; |
26
|
|
|
protected const API_FIELD_CAPTURE_ID = 'captureID'; |
27
|
|
|
protected const API_FIELD_INTEGRATION_TYPE = 'integrationType'; |
28
|
|
|
protected const API_FIELD_AUTO_CAPTURE = 'autoCapture'; |
29
|
|
|
protected const API_FIELD_MERCHANT_REFERENCE = 'merchantReference'; |
30
|
|
|
protected const API_FIELD_CONTEXT = 'context'; |
31
|
|
|
protected const API_FIELD_USER_TYPE = 'userType'; |
32
|
|
|
protected const API_FIELD_USER_RISK_CLASS = 'userRiskClass'; |
33
|
|
|
protected const API_FIELD_USER_IP_ADDRESS = 'userIpAddress'; |
34
|
|
|
protected const API_FIELD_COMPANY_DATA = 'companyData'; |
35
|
|
|
protected const API_FIELD_USER_DATA = 'userData'; |
36
|
|
|
protected const API_FIELD_BILLING_RECIPIENT = 'billingRecipient'; |
37
|
|
|
protected const API_FIELD_BILLING_ADDRESS = 'billingAddress'; |
38
|
|
|
protected const API_FIELD_SHIPPING_RECIPIENT = 'shippingRecipient'; |
39
|
|
|
protected const API_FIELD_SHIPPING_ADDRESS = 'shippingAddress'; |
40
|
|
|
protected const API_FIELD_AMOUNT = 'amount'; |
41
|
|
|
protected const API_FIELD_REFUND_DESCRIPTION = 'refundDescription'; |
42
|
|
|
protected const API_FIELD_PAYMENT_METHOD = 'paymentMethod'; |
43
|
|
|
protected const API_FIELD_PAYMENT_INSTRUMENT_ID = 'paymentInstrumentID'; |
44
|
|
|
protected const API_FIELD_ADDITIONAL_INFORMATION = 'additionalInformation'; |
45
|
|
|
protected const API_FIELD_BASKET_ITEMS = 'basketItems'; |
46
|
|
|
protected const API_FIELD_BASKET_VALIDITY = 'basketValidity'; |
47
|
|
|
protected const API_FIELD_LOCALE = 'locale'; |
48
|
|
|
protected const API_FIELD_CVV = 'cvv'; |
49
|
|
|
|
50
|
|
|
protected const API_OBJECT_AMOUNT_FIELD_AMOUNT = 'amount'; |
51
|
|
|
protected const API_OBJECT_AMOUNT_FIELD_VAT_AMOUNT = 'vatAmount'; |
52
|
|
|
protected const API_OBJECT_AMOUNT_FIELD_VAT_RATE = 'vatRate'; |
53
|
|
|
|
54
|
|
|
protected const API_OBJECT_ADDITIONAL_INFORMATION_FIELD_SALUTATION = 'salutation'; |
55
|
|
|
protected const API_OBJECT_ADDITIONAL_INFORMATION_FIELD_DATE_OF_BIRTH = 'dateOfBirth'; |
56
|
|
|
|
57
|
|
|
protected const API_OBJECT_BASKET_ITEM_FIELD_TEXT = 'basketItemText'; |
58
|
|
|
protected const API_OBJECT_BASKET_ITEM_FIELD_ID = 'basketItemID'; |
59
|
|
|
protected const API_OBJECT_BASKET_ITEM_FIELD_COUNT = 'basketItemCount'; |
60
|
|
|
protected const API_OBJECT_BASKET_ITEM_FIELD_AMOUNT = 'basketItemAmount'; |
61
|
|
|
protected const API_OBJECT_BASKET_ITEM_FIELD_RISK_CLASS = 'basketItemRiskClass'; |
62
|
|
|
protected const API_OBJECT_BASKET_ITEM_FIELD_TYPE = 'basketItemType'; |
63
|
|
|
|
64
|
|
|
protected const API_OBJECT_COMPANY_FIELD_NAME = 'companyName'; |
65
|
|
|
protected const API_OBJECT_COMPANY_FIELD_EMAIL = 'email'; |
66
|
|
|
protected const API_OBJECT_COMPANY_FIELD_REGISTER_TYPE = 'companyRegisterType'; |
67
|
|
|
protected const API_OBJECT_COMPANY_FIELD_REGISTRATION_ID = 'companyRegistrationID'; |
68
|
|
|
protected const API_OBJECT_COMPANY_FIELD_VAT_ID = 'companyVatID'; |
69
|
|
|
protected const API_OBJECT_COMPANY_FIELD_TAX_ID = 'companyTaxID'; |
70
|
|
|
|
71
|
|
|
protected const API_OBJECT_PERSON_FIELD_SALUTATION = 'salutation'; |
72
|
|
|
protected const API_OBJECT_PERSON_FIELD_NAME = 'name'; |
73
|
|
|
protected const API_OBJECT_PERSON_FIELD_SURNAME = 'surname'; |
74
|
|
|
protected const API_OBJECT_PERSON_FIELD_DATE_OF_BIRTH = 'dateOfBirth'; |
75
|
|
|
protected const API_OBJECT_PERSON_FIELD_EMAIL = 'email'; |
76
|
|
|
protected const API_OBJECT_PERSON_FIELD_PHONE_NUMBER = 'phoneNumber'; |
77
|
|
|
protected const API_OBJECT_PERSON_FIELD_FAX_NUMBER = 'faxNumber'; |
78
|
|
|
|
79
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_STREET = 'street'; |
80
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_HOUSE_NUMBER = 'no'; |
81
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_ADDITIONAL = 'additional'; |
82
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_ZIP = 'zip'; |
83
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_CITY = 'city'; |
84
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_STATE = 'state'; |
85
|
|
|
protected const API_OBJECT_ADDRESS_FIELD_COUNTRY = 'country'; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return string |
89
|
|
|
*/ |
90
|
|
|
public function getCreateTransactionActionUrl(): string |
91
|
|
|
{ |
92
|
|
|
return $this->get(CrefoPayApiConstants::CREATE_TRANSACTION_ACTION_URL); |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return string |
97
|
|
|
*/ |
98
|
|
|
public function getReserveActionUrl(): string |
99
|
|
|
{ |
100
|
|
|
return $this->get(CrefoPayApiConstants::RESERVE_ACTION_URL); |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return string |
105
|
|
|
*/ |
106
|
|
|
public function getCaptureActionUrl(): string |
107
|
|
|
{ |
108
|
|
|
return $this->get(CrefoPayApiConstants::CAPTURE_ACTION_URL); |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return string |
113
|
|
|
*/ |
114
|
|
|
public function getCancelActionUrl(): string |
115
|
|
|
{ |
116
|
|
|
return $this->get(CrefoPayApiConstants::CANCEL_ACTION_URL); |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return string |
121
|
|
|
*/ |
122
|
|
|
public function getRefundActionUrl(): string |
123
|
|
|
{ |
124
|
|
|
return $this->get(CrefoPayApiConstants::REFUND_ACTION_URL); |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @return string |
129
|
|
|
*/ |
130
|
|
|
public function getFinishActionUrl(): string |
131
|
|
|
{ |
132
|
|
|
return $this->get(CrefoPayApiConstants::FINISH_ACTION_URL); |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @return string |
137
|
|
|
*/ |
138
|
|
|
public function getApiFieldMac(): string |
139
|
|
|
{ |
140
|
|
|
return $this->getSharedConfig()->getApiFieldMac(); |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @return int |
145
|
|
|
*/ |
146
|
|
|
public function getResultCodeOk(): int |
147
|
|
|
{ |
148
|
|
|
return $this->getSharedConfig()->getResultCodeOk(); |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @return int |
153
|
|
|
*/ |
154
|
|
|
public function getResultCodeRedirect(): int |
155
|
|
|
{ |
156
|
|
|
return $this->getSharedConfig()->getResultCodeRedirect(); |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return string |
161
|
|
|
*/ |
162
|
|
|
public function getApiHeaderMac(): string |
163
|
|
|
{ |
164
|
|
|
return static::API_HEADER_MAC; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @return string |
169
|
|
|
*/ |
170
|
|
|
public function getApiResponseFieldResultCode(): string |
171
|
|
|
{ |
172
|
|
|
return static::API_RESPONSE_FIELD_RESULT_CODE; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @return string |
177
|
|
|
*/ |
178
|
|
|
public function getApiErrorTypeExternal(): string |
179
|
|
|
{ |
180
|
|
|
return static::API_ERROR_TYPE_EXTERNAL; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @return string |
185
|
|
|
*/ |
186
|
|
|
public function getApiFieldMerchantId(): string |
187
|
|
|
{ |
188
|
|
|
return static::API_FIELD_MERCHANT_ID; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @return string |
193
|
|
|
*/ |
194
|
|
|
public function getApiFieldStoreId(): string |
195
|
|
|
{ |
196
|
|
|
return static::API_FIELD_STORE_ID; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @return string |
201
|
|
|
*/ |
202
|
|
|
public function getApiFieldOrderId(): string |
203
|
|
|
{ |
204
|
|
|
return static::API_FIELD_ORDER_ID; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* @return string |
209
|
|
|
*/ |
210
|
|
|
public function getApiFieldUserId(): string |
211
|
|
|
{ |
212
|
|
|
return static::API_FIELD_USER_ID; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @return string |
217
|
|
|
*/ |
218
|
|
|
public function getApiFieldCaptureId(): string |
219
|
|
|
{ |
220
|
|
|
return static::API_FIELD_CAPTURE_ID; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* @return string |
225
|
|
|
*/ |
226
|
|
|
public function getApiFieldIntegrationType(): string |
227
|
|
|
{ |
228
|
|
|
return static::API_FIELD_INTEGRATION_TYPE; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @return string |
233
|
|
|
*/ |
234
|
|
|
public function getApiFieldAutoCapture(): string |
235
|
|
|
{ |
236
|
|
|
return static::API_FIELD_AUTO_CAPTURE; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @return string |
241
|
|
|
*/ |
242
|
|
|
public function getApiFieldMerchantReference(): string |
243
|
|
|
{ |
244
|
|
|
return static::API_FIELD_MERCHANT_REFERENCE; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @return string |
249
|
|
|
*/ |
250
|
|
|
public function getApiFieldContext(): string |
251
|
|
|
{ |
252
|
|
|
return static::API_FIELD_CONTEXT; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @return string |
257
|
|
|
*/ |
258
|
|
|
public function getApiFieldUserType(): string |
259
|
|
|
{ |
260
|
|
|
return static::API_FIELD_USER_TYPE; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* @return string |
265
|
|
|
*/ |
266
|
|
|
public function getApiFieldUserRiskClass(): string |
267
|
|
|
{ |
268
|
|
|
return static::API_FIELD_USER_RISK_CLASS; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* @return string |
273
|
|
|
*/ |
274
|
|
|
public function getApiFieldUserIpAddress(): string |
275
|
|
|
{ |
276
|
|
|
return static::API_FIELD_USER_IP_ADDRESS; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* @return string |
281
|
|
|
*/ |
282
|
|
|
public function getApiFieldCompanyData(): string |
283
|
|
|
{ |
284
|
|
|
return static::API_FIELD_COMPANY_DATA; |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
/** |
288
|
|
|
* @return string |
289
|
|
|
*/ |
290
|
|
|
public function getApiFieldUserData(): string |
291
|
|
|
{ |
292
|
|
|
return static::API_FIELD_USER_DATA; |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* @return string |
297
|
|
|
*/ |
298
|
|
|
public function getApiFieldBillingRecipient(): string |
299
|
|
|
{ |
300
|
|
|
return static::API_FIELD_BILLING_RECIPIENT; |
301
|
|
|
} |
302
|
|
|
|
303
|
|
|
/** |
304
|
|
|
* @return string |
305
|
|
|
*/ |
306
|
|
|
public function getApiFieldBillingAddress(): string |
307
|
|
|
{ |
308
|
|
|
return static::API_FIELD_BILLING_ADDRESS; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* @return string |
313
|
|
|
*/ |
314
|
|
|
public function getApiFieldShippingRecipient(): string |
315
|
|
|
{ |
316
|
|
|
return static::API_FIELD_SHIPPING_RECIPIENT; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @return string |
321
|
|
|
*/ |
322
|
|
|
public function getApiFieldShippingAddress(): string |
323
|
|
|
{ |
324
|
|
|
return static::API_FIELD_SHIPPING_ADDRESS; |
325
|
|
|
} |
326
|
|
|
|
327
|
|
|
/** |
328
|
|
|
* @return string |
329
|
|
|
*/ |
330
|
|
|
public function getApiFieldAmount(): string |
331
|
|
|
{ |
332
|
|
|
return static::API_FIELD_AMOUNT; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* @return string |
337
|
|
|
*/ |
338
|
|
|
public function getApiFieldRefundDescription(): string |
339
|
|
|
{ |
340
|
|
|
return static::API_FIELD_REFUND_DESCRIPTION; |
341
|
|
|
} |
342
|
|
|
|
343
|
|
|
/** |
344
|
|
|
* @return string |
345
|
|
|
*/ |
346
|
|
|
public function getApiFieldPaymentMethod(): string |
347
|
|
|
{ |
348
|
|
|
return static::API_FIELD_PAYMENT_METHOD; |
349
|
|
|
} |
350
|
|
|
|
351
|
|
|
/** |
352
|
|
|
* @return string |
353
|
|
|
*/ |
354
|
|
|
public function getApiFieldPaymentInstrumentId(): string |
355
|
|
|
{ |
356
|
|
|
return static::API_FIELD_PAYMENT_INSTRUMENT_ID; |
357
|
|
|
} |
358
|
|
|
|
359
|
|
|
/** |
360
|
|
|
* @return string |
361
|
|
|
*/ |
362
|
|
|
public function getApiFieldAdditionalInformation(): string |
363
|
|
|
{ |
364
|
|
|
return static::API_FIELD_ADDITIONAL_INFORMATION; |
365
|
|
|
} |
366
|
|
|
|
367
|
|
|
/** |
368
|
|
|
* @return string |
369
|
|
|
*/ |
370
|
|
|
public function getApiFieldBasketItems(): string |
371
|
|
|
{ |
372
|
|
|
return static::API_FIELD_BASKET_ITEMS; |
373
|
|
|
} |
374
|
|
|
|
375
|
|
|
/** |
376
|
|
|
* @return string |
377
|
|
|
*/ |
378
|
|
|
public function getApiFieldBasketValidity(): string |
379
|
|
|
{ |
380
|
|
|
return static::API_FIELD_BASKET_VALIDITY; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
/** |
384
|
|
|
* @return string |
385
|
|
|
*/ |
386
|
|
|
public function getApiFieldLocale(): string |
387
|
|
|
{ |
388
|
|
|
return static::API_FIELD_LOCALE; |
389
|
|
|
} |
390
|
|
|
|
391
|
|
|
/** |
392
|
|
|
* @return string |
393
|
|
|
*/ |
394
|
|
|
public function getApiFieldCvv(): string |
395
|
|
|
{ |
396
|
|
|
return static::API_FIELD_CVV; |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
/** |
400
|
|
|
* @return string |
401
|
|
|
*/ |
402
|
|
|
public function getApiObjectAmountFieldAmount(): string |
403
|
|
|
{ |
404
|
|
|
return static::API_OBJECT_AMOUNT_FIELD_AMOUNT; |
405
|
|
|
} |
406
|
|
|
|
407
|
|
|
/** |
408
|
|
|
* @return string |
409
|
|
|
*/ |
410
|
|
|
public function getApiObjectAmountFieldVatAmount(): string |
411
|
|
|
{ |
412
|
|
|
return static::API_OBJECT_AMOUNT_FIELD_VAT_AMOUNT; |
413
|
|
|
} |
414
|
|
|
|
415
|
|
|
/** |
416
|
|
|
* @return string |
417
|
|
|
*/ |
418
|
|
|
public function getApiObjectAmountFieldVatRate(): string |
419
|
|
|
{ |
420
|
|
|
return static::API_OBJECT_AMOUNT_FIELD_VAT_RATE; |
421
|
|
|
} |
422
|
|
|
|
423
|
|
|
/** |
424
|
|
|
* @return string |
425
|
|
|
*/ |
426
|
|
|
public function getApiObjectAdditionalInformationFieldSalutation(): string |
427
|
|
|
{ |
428
|
|
|
return static::API_OBJECT_ADDITIONAL_INFORMATION_FIELD_SALUTATION; |
429
|
|
|
} |
430
|
|
|
|
431
|
|
|
/** |
432
|
|
|
* @return string |
433
|
|
|
*/ |
434
|
|
|
public function getApiObjectAdditionalInformationFieldDateOfBirth(): string |
435
|
|
|
{ |
436
|
|
|
return static::API_OBJECT_ADDITIONAL_INFORMATION_FIELD_DATE_OF_BIRTH; |
437
|
|
|
} |
438
|
|
|
|
439
|
|
|
/** |
440
|
|
|
* @return string |
441
|
|
|
*/ |
442
|
|
|
public function getApiObjectBasketItemFieldText(): string |
443
|
|
|
{ |
444
|
|
|
return static::API_OBJECT_BASKET_ITEM_FIELD_TEXT; |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
/** |
448
|
|
|
* @return string |
449
|
|
|
*/ |
450
|
|
|
public function getApiObjectBasketItemFieldId(): string |
451
|
|
|
{ |
452
|
|
|
return static::API_OBJECT_BASKET_ITEM_FIELD_ID; |
453
|
|
|
} |
454
|
|
|
|
455
|
|
|
/** |
456
|
|
|
* @return string |
457
|
|
|
*/ |
458
|
|
|
public function getApiObjectBasketItemFieldCount(): string |
459
|
|
|
{ |
460
|
|
|
return static::API_OBJECT_BASKET_ITEM_FIELD_COUNT; |
461
|
|
|
} |
462
|
|
|
|
463
|
|
|
/** |
464
|
|
|
* @return string |
465
|
|
|
*/ |
466
|
|
|
public function getApiObjectBasketItemFieldAmount(): string |
467
|
|
|
{ |
468
|
|
|
return static::API_OBJECT_BASKET_ITEM_FIELD_AMOUNT; |
469
|
|
|
} |
470
|
|
|
|
471
|
|
|
/** |
472
|
|
|
* @return string |
473
|
|
|
*/ |
474
|
|
|
public function getApiObjectBasketItemFieldRiskClass(): string |
475
|
|
|
{ |
476
|
|
|
return static::API_OBJECT_BASKET_ITEM_FIELD_RISK_CLASS; |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
/** |
480
|
|
|
* @return string |
481
|
|
|
*/ |
482
|
|
|
public function getApiObjectBasketItemFieldType(): string |
483
|
|
|
{ |
484
|
|
|
return static::API_OBJECT_BASKET_ITEM_FIELD_TYPE; |
485
|
|
|
} |
486
|
|
|
|
487
|
|
|
/** |
488
|
|
|
* @return string |
489
|
|
|
*/ |
490
|
|
|
public function getApiObjectCompanyFieldName(): string |
491
|
|
|
{ |
492
|
|
|
return static::API_OBJECT_COMPANY_FIELD_NAME; |
493
|
|
|
} |
494
|
|
|
|
495
|
|
|
/** |
496
|
|
|
* @return string |
497
|
|
|
*/ |
498
|
|
|
public function getApiObjectCompanyFieldEmail(): string |
499
|
|
|
{ |
500
|
|
|
return static::API_OBJECT_COMPANY_FIELD_EMAIL; |
501
|
|
|
} |
502
|
|
|
|
503
|
|
|
/** |
504
|
|
|
* @return string |
505
|
|
|
*/ |
506
|
|
|
public function getApiObjectCompanyFieldRegisterType(): string |
507
|
|
|
{ |
508
|
|
|
return static::API_OBJECT_COMPANY_FIELD_REGISTER_TYPE; |
509
|
|
|
} |
510
|
|
|
|
511
|
|
|
/** |
512
|
|
|
* @return string |
513
|
|
|
*/ |
514
|
|
|
public function getApiObjectCompanyFieldRegistrationId(): string |
515
|
|
|
{ |
516
|
|
|
return static::API_OBJECT_COMPANY_FIELD_REGISTRATION_ID; |
517
|
|
|
} |
518
|
|
|
|
519
|
|
|
/** |
520
|
|
|
* @return string |
521
|
|
|
*/ |
522
|
|
|
public function getApiObjectCompanyFieldVatId(): string |
523
|
|
|
{ |
524
|
|
|
return static::API_OBJECT_COMPANY_FIELD_VAT_ID; |
525
|
|
|
} |
526
|
|
|
|
527
|
|
|
/** |
528
|
|
|
* @return string |
529
|
|
|
*/ |
530
|
|
|
public function getApiObjectCompanyFieldTaxId(): string |
531
|
|
|
{ |
532
|
|
|
return static::API_OBJECT_COMPANY_FIELD_TAX_ID; |
533
|
|
|
} |
534
|
|
|
|
535
|
|
|
/** |
536
|
|
|
* @return string |
537
|
|
|
*/ |
538
|
|
|
public function getApiObjectPersonFieldSalutation(): string |
539
|
|
|
{ |
540
|
|
|
return static::API_OBJECT_PERSON_FIELD_SALUTATION; |
541
|
|
|
} |
542
|
|
|
|
543
|
|
|
/** |
544
|
|
|
* @return string |
545
|
|
|
*/ |
546
|
|
|
public function getApiObjectPersonFieldName(): string |
547
|
|
|
{ |
548
|
|
|
return static::API_OBJECT_PERSON_FIELD_NAME; |
549
|
|
|
} |
550
|
|
|
|
551
|
|
|
/** |
552
|
|
|
* @return string |
553
|
|
|
*/ |
554
|
|
|
public function getApiObjectPersonFieldSurname(): string |
555
|
|
|
{ |
556
|
|
|
return static::API_OBJECT_PERSON_FIELD_SURNAME; |
557
|
|
|
} |
558
|
|
|
|
559
|
|
|
/** |
560
|
|
|
* @return string |
561
|
|
|
*/ |
562
|
|
|
public function getApiObjectPersonFieldDateOfBirth(): string |
563
|
|
|
{ |
564
|
|
|
return static::API_OBJECT_PERSON_FIELD_DATE_OF_BIRTH; |
565
|
|
|
} |
566
|
|
|
|
567
|
|
|
/** |
568
|
|
|
* @return string |
569
|
|
|
*/ |
570
|
|
|
public function getApiObjectPersonFieldEmail(): string |
571
|
|
|
{ |
572
|
|
|
return static::API_OBJECT_PERSON_FIELD_EMAIL; |
573
|
|
|
} |
574
|
|
|
|
575
|
|
|
/** |
576
|
|
|
* @return string |
577
|
|
|
*/ |
578
|
|
|
public function getApiObjectPersonFieldPhoneNumber(): string |
579
|
|
|
{ |
580
|
|
|
return static::API_OBJECT_PERSON_FIELD_PHONE_NUMBER; |
581
|
|
|
} |
582
|
|
|
|
583
|
|
|
/** |
584
|
|
|
* @return string |
585
|
|
|
*/ |
586
|
|
|
public function getApiObjectPersonFieldFaxNumber(): string |
587
|
|
|
{ |
588
|
|
|
return static::API_OBJECT_PERSON_FIELD_FAX_NUMBER; |
589
|
|
|
} |
590
|
|
|
|
591
|
|
|
/** |
592
|
|
|
* @return string |
593
|
|
|
*/ |
594
|
|
|
public function getApiObjectAddressFieldStreet(): string |
595
|
|
|
{ |
596
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_STREET; |
597
|
|
|
} |
598
|
|
|
|
599
|
|
|
/** |
600
|
|
|
* @return string |
601
|
|
|
*/ |
602
|
|
|
public function getApiObjectAddressFieldHouseNumber(): string |
603
|
|
|
{ |
604
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_HOUSE_NUMBER; |
605
|
|
|
} |
606
|
|
|
|
607
|
|
|
/** |
608
|
|
|
* @return string |
609
|
|
|
*/ |
610
|
|
|
public function getApiObjectAddressFieldAdditional(): string |
611
|
|
|
{ |
612
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_ADDITIONAL; |
613
|
|
|
} |
614
|
|
|
|
615
|
|
|
/** |
616
|
|
|
* @return string |
617
|
|
|
*/ |
618
|
|
|
public function getApiObjectAddressFieldZip(): string |
619
|
|
|
{ |
620
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_ZIP; |
621
|
|
|
} |
622
|
|
|
|
623
|
|
|
/** |
624
|
|
|
* @return string |
625
|
|
|
*/ |
626
|
|
|
public function getApiObjectAddressFieldCity(): string |
627
|
|
|
{ |
628
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_CITY; |
629
|
|
|
} |
630
|
|
|
|
631
|
|
|
/** |
632
|
|
|
* @return string |
633
|
|
|
*/ |
634
|
|
|
public function getApiObjectAddressFieldState(): string |
635
|
|
|
{ |
636
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_STATE; |
637
|
|
|
} |
638
|
|
|
|
639
|
|
|
/** |
640
|
|
|
* @return string |
641
|
|
|
*/ |
642
|
|
|
public function getApiObjectAddressFieldCountry(): string |
643
|
|
|
{ |
644
|
|
|
return static::API_OBJECT_ADDRESS_FIELD_COUNTRY; |
645
|
|
|
} |
646
|
|
|
} |
647
|
|
|
|