Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

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

....

export const paymentsMethodIcon: Record<string, IconSVGElement> = {
  [PaymentMethodBrandType.SODEXO]: IconSodexo,
  [PaymentMethodBrandType.CHEQUE_GOURMET]: IconChequeGourmet,
  [PaymentMethodBrandType.TICKET_RESTAURANT]: IconTicketRestaurant,
};
 payment-method/types.ts
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

  • No labels