package com.ai.da.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PayPalOrderStatusEnum {

    // The order was created with the specified context.
    // 订单已创建并具有指定的上下文。
    CREATED("CREATED"),
    // The order was saved and persisted. The order status continues to be in progress until a capture is made with final_capture = true for all purchase units within the order.
    // 订单已保存并持久化。订单状态仍处于进行中，直到对订单中的所有购买单元进行了 final_capture = true 的捕获为止
    SAVED("SAVED"),
    // The customer approved the payment through the PayPal wallet or another form of guest or unbranded payment. For example, a card, bank account, or so on.
    // 客户通过PayPal钱包或其他形式的游客或非品牌支付批准了付款。例如，信用卡、银行账户等。
    APPROVED("APPROVED"),
    // All purchase units in the order are voided.
    // 订单中的所有购买单元都已作废。
    VOIDED("VOIDED"),
    // The payment was authorized or the authorized payment was captured for the order.
    // 订单的支付已被授权或已捕获授权的支付。
    COMPLETED("COMPLETED"),
    // The order requires an action from the payer (e.g. 3DS authentication). Redirect the payer to the "rel":"payer-action" HATEOAS link returned as part of the response prior to authorizing or capturing the order.
    // 订单需要支付者执行某项操作（例如3DS身份验证）。在授权或捕获订单之前，请将支付者重定向到响应中返回的"rel":"payer-action" HATEOAS链接。
    PAYER_ACTION_REQUIRED("PAYER_ACTION_REQUIRED");

    private final String status;
}
