Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Due to a miscommunication the proposed solution was only shared intl-delivery-plataform slack channel (https://rbidigital.slack.com/archives/C03DVSBAT18/p1707220483855759 ) and is already implemented but not activated. After the feedback from this ADR the code will be refactored to address any necessary changes.

...

Code Block
languagejs
export interface IDeliveryFees {                      // New DTO
  deliveryFee: IPrice;
  serviceFee: IPrice;
}

export interface IWebhookCreateDelivery {
  additionalDetails?: {
    key: string;
    value: any;
  }[];
  callbackUrl: string;
  cart: ICart;
  channel?: Platform | ReferralVendor;
  deliveryMode?: DeliveryMode;
  customer: ICustomer;
  deliveryAddress: IUserAddress;
  fireOrderInSeconds: number | null;
  instructions?: string;
  number: string;
  orderId: string;
  fees?: IDeliveryFeesIPartnerFee[];                               // New field
  payment: IPayment;
  quoteId: string;
  storeId: string;
}

...