syntax = "proto3";

package wix.payment.api.pay.v3;

import "google/protobuf/wrappers.proto";
import "wix/api/annotations.proto";
import "wix/api/callback.proto";
import "wix/api/entity.proto";
import "wix/payment/api/pay/v3/resources/payment-event.proto";

option java_package = "com.wix.payment.api.pay.v3";

service PaymentEventsService {

    option (wix.api.service_entity).message = "wix.payment.api.pay.v3.PaymentEvent";

    //This webhook is triggered whenever a payment transaction is updated (including refunds) via specific Wix business solutions.
    option (wix.api.event) = {
       topic: "cashier-payment-event"
       payload: "wix.payment.api.pay.v3.PaymentEvent"
       permission: "CASHIER.READ_PAYMENTS"
       exposure: PUBLIC
       maturity: GA
    };
    option (wix.api.service_exposure) = PUBLIC;
    option (wix.api.service_maturity) = BETA;
}
