Skip to content

Generalize Field Trip module for non-TriMet imiplementations #353

@landonreed

Description

@landonreed

These are all TriMet-specific. If we intend to deploy the Field Trip module for a non-TriMet customer, these should be loaded from config instead:

export const TICKET_TYPES = {
own_tickets: 'Will use own tickets',
hop_new: 'Will purchase new Hop Card',
hop_reload: 'Will reload existing Hop Card'
}
const PAYMENT_PREFS = {
request_call: 'Call requested at provided phone number',
phone_cc: 'Will call in credit card info to TriMet',
fax_cc: 'Will fax credit card info to TriMet',
mail_check: 'Will mail check to TriMet'
}

export const GROUP_FIELDS = [
{inputProps: positiveIntInputProps, fieldName: 'numStudents', label: 'students 7 or older'},
{inputProps: positiveIntInputProps, fieldName: 'numFreeStudents', label: 'students under 7'},
{inputProps: positiveIntInputProps, fieldName: 'numChaperones', label: 'chaperones'}
]
export const PAYMENT_FIELDS = [
{label: 'Payment preference', fieldName: 'paymentPreference', options: PAYMENT_PREFS},
{label: 'Class Pass Hop Card #', fieldName: 'classpassId'},
{label: 'Credit card type', fieldName: 'ccType'},
{label: 'Name on credit card', fieldName: 'ccName'},
{label: 'Credit card last 4 digits', fieldName: 'ccLastFour'},
{label: 'Check/Money order number', fieldName: 'checkNumber'}
]

Originally posted by @evansiroky in #230 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions