Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

Development

Feature Flags

Feature Flag

Description

enable-ticket-restaurant-credit-card-paycomet

This flag will be responsible for activating ticket restaurant payment method using the online payment

enable-ticket-restaurant-voucher-paycomet

This flag will be responsible for activating ticket restaurant payment method using the voucher in person

Code Changes

PaymentMethodBrand

ENUM

VALUE

TICKET_RESTAURANT

TICKET_RESTAURANT

TICKET_RESTAURANT_VOUCHER

TICKET_RESTAURANT_VOUCHER

Frontend

Expand
titlepayment-method/index.tsx
Code Block
const SelectedTicketRestaurantOptionItem = (
    <PaymentMethodAddNewItemOption
      text={formatMessage({ id: ticketRestaurantLabel(isGuestOrder) })}
      Icon={styledCardIcon(PaymentMethodBrandType.TICKET_RESTAURANT)}
      onClick={getSelectedMethodClickHandler()}
      selected
    />
  );
Expand
titlepayment-method/styled.tsx
Code Block
import IconSodexo from 'components/icons/sodexo';

....

export const paymentsMethodIcon: Record<string, IconSVGElement> = {
  [PaymentMethodBrandType.SODEXO]: IconSodexo,
  [PaymentMethodBrandType.CHEQUE_GOURMET]: IconChequeGourmet,
  [PaymentMethodBrandType.TICKET_RESTAURANT]: IconTicketRestaurant,
};
Expand
titlepayment-method/types.ts
Code Block
export enum PaymentMethodBrandType {
  SODEXO = 'SODEXO',
  SODEXO_VOUCHER = 'SODEXO_VOUCHER',
  TICKET_RESTAURANT = 'TICKET_RESTAURANT',
  TICKET_RESTAURANT_VOUCHER = 'TICKET_RESTAURANT_VOUCHER',
}

Graphql

Fulfillment

Packages

DMP

  • Propagate the paymentMethodBrand

  • Update the translation

https://github.com/rbilabs/intl-expeditor-tablet/pull/742

DOP

  • Propagate the paymentMethodBrand

  • Update the translation

https://github.com/rbilabs/ctg-fz-portal/pull/2799

Admin App

  • Propagate the paymentMethodBrand

  • Update the translation

https://github.com/rbilabs/intl-admin-app/pull/403

Driver-app ( Voucher )

  • Propagate the paymentMethodBrand

  • Update the translation

https://github.com/rbilabs/intl-driver-app/pull/286

Tests

Ticket Restaurant Card

Ticket Restaurant Voucher

Possible Issues