1 | <?php |
||
16 | class FormOfPayment |
||
17 | { |
||
18 | /** |
||
19 | * On behalf of/in exchange for a document previously issued by a Sales Agent |
||
20 | */ |
||
21 | const FOP_ISSUED_BY_AGENT = "AGT"; |
||
22 | /** |
||
23 | * Cash |
||
24 | */ |
||
25 | const FOP_CASH = "CA"; |
||
26 | /** |
||
27 | * Credit Card |
||
28 | */ |
||
29 | const FOP_CREDIT_CARD = "CC"; |
||
30 | /** |
||
31 | * Check |
||
32 | */ |
||
33 | const FOP_CHECK = "CK"; |
||
34 | /** |
||
35 | * Government transportation request |
||
36 | */ |
||
37 | const FOP_GOVERNMENT_TRANSPORTATION_REQ = "GR"; |
||
38 | /** |
||
39 | * Miscellaneous |
||
40 | */ |
||
41 | const FOP_MISCELLANEOUS = "MS"; |
||
42 | /** |
||
43 | * Non-refundable (refund restricted) |
||
44 | */ |
||
45 | const FOP_NON_REFUNDABLE = "NR"; |
||
46 | /** |
||
47 | * Prepaid Ticket Advice (PTA) |
||
48 | */ |
||
49 | const FOP_PREPAID_TICKET_ADVICE = "PT"; |
||
50 | /** |
||
51 | * Single government transportation request |
||
52 | */ |
||
53 | const FOP_SINGLE_GOVERNMENT_TRANSPORTATION_REQ = "SGR"; |
||
54 | /** |
||
55 | * United Nations Transportation Request |
||
56 | */ |
||
57 | const FOP_UNITED_NATIONS_TRANSPORTATION_REQ = "UN"; |
||
58 | |||
59 | /** |
||
60 | * self::FOP_* |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | public $type; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | */ |
||
69 | public $vendorCode; |
||
70 | |||
71 | /** |
||
72 | * FormOfPayment constructor. |
||
73 | * |
||
74 | * @param string $type self::FOP_* |
||
75 | * @param string $vendor |
||
76 | */ |
||
77 | public function __construct($type, $vendor) |
||
82 | } |
||
83 |