mirror of
https://github.com/mautrix/signal.git
synced 2026-09-16 15:52:04 -04:00
3403 lines
140 KiB
Go
Generated
3403 lines
140 KiB
Go
Generated
//
|
|
// Copyright 2026 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: org/signal/chat/subscriptions.proto
|
|
|
|
package subscriptions
|
|
|
|
import (
|
|
_ "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/common"
|
|
errors "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/errors"
|
|
_ "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/require"
|
|
_ "go.mau.fi/mautrix-signal/pkg/signalmeow/protobuf/rpc/tag"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type PaymentProvider int32
|
|
|
|
const (
|
|
PaymentProvider_PAYMENT_PROVIDER_UNKNOWN PaymentProvider = 0
|
|
PaymentProvider_PAYMENT_PROVIDER_STRIPE PaymentProvider = 1
|
|
PaymentProvider_PAYMENT_PROVIDER_BRAINTREE PaymentProvider = 2
|
|
PaymentProvider_PAYMENT_PROVIDER_GOOGLE_PLAY_BILLING PaymentProvider = 3
|
|
PaymentProvider_PAYMENT_PROVIDER_APPLE_APP_STORE PaymentProvider = 4
|
|
)
|
|
|
|
// Enum value maps for PaymentProvider.
|
|
var (
|
|
PaymentProvider_name = map[int32]string{
|
|
0: "PAYMENT_PROVIDER_UNKNOWN",
|
|
1: "PAYMENT_PROVIDER_STRIPE",
|
|
2: "PAYMENT_PROVIDER_BRAINTREE",
|
|
3: "PAYMENT_PROVIDER_GOOGLE_PLAY_BILLING",
|
|
4: "PAYMENT_PROVIDER_APPLE_APP_STORE",
|
|
}
|
|
PaymentProvider_value = map[string]int32{
|
|
"PAYMENT_PROVIDER_UNKNOWN": 0,
|
|
"PAYMENT_PROVIDER_STRIPE": 1,
|
|
"PAYMENT_PROVIDER_BRAINTREE": 2,
|
|
"PAYMENT_PROVIDER_GOOGLE_PLAY_BILLING": 3,
|
|
"PAYMENT_PROVIDER_APPLE_APP_STORE": 4,
|
|
}
|
|
)
|
|
|
|
func (x PaymentProvider) Enum() *PaymentProvider {
|
|
p := new(PaymentProvider)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PaymentProvider) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PaymentProvider) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_org_signal_chat_subscriptions_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (PaymentProvider) Type() protoreflect.EnumType {
|
|
return &file_org_signal_chat_subscriptions_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x PaymentProvider) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PaymentProvider.Descriptor instead.
|
|
func (PaymentProvider) EnumDescriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type PaymentMethod int32
|
|
|
|
const (
|
|
PaymentMethod_PAYMENT_METHOD_UNKNOWN PaymentMethod = 0
|
|
// A credit card or debit card, including those from Apple Pay and Google Pay
|
|
PaymentMethod_PAYMENT_METHOD_CARD PaymentMethod = 1
|
|
// A SEPA debit account
|
|
PaymentMethod_PAYMENT_METHOD_SEPA_DEBIT PaymentMethod = 2
|
|
// An iDEAL account
|
|
PaymentMethod_PAYMENT_METHOD_IDEAL PaymentMethod = 3
|
|
// A PayPal account
|
|
PaymentMethod_PAYMENT_METHOD_PAYPAL PaymentMethod = 4
|
|
PaymentMethod_PAYMENT_METHOD_GOOGLE_PLAY_BILLING PaymentMethod = 5
|
|
PaymentMethod_PAYMENT_METHOD_APPLE_APP_STORE PaymentMethod = 6
|
|
)
|
|
|
|
// Enum value maps for PaymentMethod.
|
|
var (
|
|
PaymentMethod_name = map[int32]string{
|
|
0: "PAYMENT_METHOD_UNKNOWN",
|
|
1: "PAYMENT_METHOD_CARD",
|
|
2: "PAYMENT_METHOD_SEPA_DEBIT",
|
|
3: "PAYMENT_METHOD_IDEAL",
|
|
4: "PAYMENT_METHOD_PAYPAL",
|
|
5: "PAYMENT_METHOD_GOOGLE_PLAY_BILLING",
|
|
6: "PAYMENT_METHOD_APPLE_APP_STORE",
|
|
}
|
|
PaymentMethod_value = map[string]int32{
|
|
"PAYMENT_METHOD_UNKNOWN": 0,
|
|
"PAYMENT_METHOD_CARD": 1,
|
|
"PAYMENT_METHOD_SEPA_DEBIT": 2,
|
|
"PAYMENT_METHOD_IDEAL": 3,
|
|
"PAYMENT_METHOD_PAYPAL": 4,
|
|
"PAYMENT_METHOD_GOOGLE_PLAY_BILLING": 5,
|
|
"PAYMENT_METHOD_APPLE_APP_STORE": 6,
|
|
}
|
|
)
|
|
|
|
func (x PaymentMethod) Enum() *PaymentMethod {
|
|
p := new(PaymentMethod)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PaymentMethod) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PaymentMethod) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_org_signal_chat_subscriptions_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (PaymentMethod) Type() protoreflect.EnumType {
|
|
return &file_org_signal_chat_subscriptions_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x PaymentMethod) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PaymentMethod.Descriptor instead.
|
|
func (PaymentMethod) EnumDescriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type SubscriptionStatus int32
|
|
|
|
const (
|
|
SubscriptionStatus_SUBSCRIPTION_STATUS_UNKNOWN SubscriptionStatus = 0
|
|
// The subscription is in good standing and the most recent payment was successful.
|
|
SubscriptionStatus_SUBSCRIPTION_STATUS_ACTIVE SubscriptionStatus = 1
|
|
// Payment failed when creating the subscription, or the subscription's start date is in the future.
|
|
SubscriptionStatus_SUBSCRIPTION_STATUS_INCOMPLETE SubscriptionStatus = 2
|
|
// Payment on the latest renewal failed but there are processor retries left, or payment wasn't attempted.
|
|
SubscriptionStatus_SUBSCRIPTION_STATUS_PAST_DUE SubscriptionStatus = 3
|
|
// The subscription has been canceled.
|
|
SubscriptionStatus_SUBSCRIPTION_STATUS_CANCELED SubscriptionStatus = 4
|
|
// The latest renewal hasn't been paid but the subscription remains in place.
|
|
SubscriptionStatus_SUBSCRIPTION_STATUS_UNPAID SubscriptionStatus = 5
|
|
)
|
|
|
|
// Enum value maps for SubscriptionStatus.
|
|
var (
|
|
SubscriptionStatus_name = map[int32]string{
|
|
0: "SUBSCRIPTION_STATUS_UNKNOWN",
|
|
1: "SUBSCRIPTION_STATUS_ACTIVE",
|
|
2: "SUBSCRIPTION_STATUS_INCOMPLETE",
|
|
3: "SUBSCRIPTION_STATUS_PAST_DUE",
|
|
4: "SUBSCRIPTION_STATUS_CANCELED",
|
|
5: "SUBSCRIPTION_STATUS_UNPAID",
|
|
}
|
|
SubscriptionStatus_value = map[string]int32{
|
|
"SUBSCRIPTION_STATUS_UNKNOWN": 0,
|
|
"SUBSCRIPTION_STATUS_ACTIVE": 1,
|
|
"SUBSCRIPTION_STATUS_INCOMPLETE": 2,
|
|
"SUBSCRIPTION_STATUS_PAST_DUE": 3,
|
|
"SUBSCRIPTION_STATUS_CANCELED": 4,
|
|
"SUBSCRIPTION_STATUS_UNPAID": 5,
|
|
}
|
|
)
|
|
|
|
func (x SubscriptionStatus) Enum() *SubscriptionStatus {
|
|
p := new(SubscriptionStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SubscriptionStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SubscriptionStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_org_signal_chat_subscriptions_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (SubscriptionStatus) Type() protoreflect.EnumType {
|
|
return &file_org_signal_chat_subscriptions_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x SubscriptionStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SubscriptionStatus.Descriptor instead.
|
|
func (SubscriptionStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type BankTransferType int32
|
|
|
|
const (
|
|
BankTransferType_BANK_TRANSFER_TYPE_UNKNOWN BankTransferType = 0
|
|
BankTransferType_BANK_TRANSFER_TYPE_SEPA_DEBIT BankTransferType = 1
|
|
)
|
|
|
|
// Enum value maps for BankTransferType.
|
|
var (
|
|
BankTransferType_name = map[int32]string{
|
|
0: "BANK_TRANSFER_TYPE_UNKNOWN",
|
|
1: "BANK_TRANSFER_TYPE_SEPA_DEBIT",
|
|
}
|
|
BankTransferType_value = map[string]int32{
|
|
"BANK_TRANSFER_TYPE_UNKNOWN": 0,
|
|
"BANK_TRANSFER_TYPE_SEPA_DEBIT": 1,
|
|
}
|
|
)
|
|
|
|
func (x BankTransferType) Enum() *BankTransferType {
|
|
p := new(BankTransferType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x BankTransferType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (BankTransferType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_org_signal_chat_subscriptions_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (BankTransferType) Type() protoreflect.EnumType {
|
|
return &file_org_signal_chat_subscriptions_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x BankTransferType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use BankTransferType.Descriptor instead.
|
|
func (BankTransferType) EnumDescriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type UpdateSubscriberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriber_id,json=subscriberId,proto3" json:"subscriber_id,omitempty"`
|
|
// A libsignal DonationPermit from rpc Donations.CreateDonationPermit.
|
|
// Not required if the subscriber already exists.
|
|
DonationPermit []byte `protobuf:"bytes,2,opt,name=donation_permit,json=donationPermit,proto3" json:"donation_permit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateSubscriberRequest) Reset() {
|
|
*x = UpdateSubscriberRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateSubscriberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateSubscriberRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateSubscriberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateSubscriberRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateSubscriberRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UpdateSubscriberRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateSubscriberRequest) GetDonationPermit() []byte {
|
|
if x != nil {
|
|
return x.DonationPermit
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateSubscriberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *UpdateSubscriberResponse_Success
|
|
// *UpdateSubscriberResponse_SubscriberIdMismatch
|
|
// *UpdateSubscriberResponse_PermitRejected
|
|
Response isUpdateSubscriberResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateSubscriberResponse) Reset() {
|
|
*x = UpdateSubscriberResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateSubscriberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateSubscriberResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateSubscriberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateSubscriberResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateSubscriberResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UpdateSubscriberResponse) GetResponse() isUpdateSubscriberResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateSubscriberResponse) GetSuccess() *emptypb.Empty {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*UpdateSubscriberResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateSubscriberResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*UpdateSubscriberResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateSubscriberResponse) GetPermitRejected() *errors.FailedZkAuthentication {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*UpdateSubscriberResponse_PermitRejected); ok {
|
|
return x.PermitRejected
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isUpdateSubscriberResponse_Response interface {
|
|
isUpdateSubscriberResponse_Response()
|
|
}
|
|
|
|
type UpdateSubscriberResponse_Success struct {
|
|
Success *emptypb.Empty `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type UpdateSubscriberResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,2,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type UpdateSubscriberResponse_PermitRejected struct {
|
|
// The donation permit was expired or already spent
|
|
PermitRejected *errors.FailedZkAuthentication `protobuf:"bytes,3,opt,name=permit_rejected,json=permitRejected,proto3,oneof"`
|
|
}
|
|
|
|
func (*UpdateSubscriberResponse_Success) isUpdateSubscriberResponse_Response() {}
|
|
|
|
func (*UpdateSubscriberResponse_SubscriberIdMismatch) isUpdateSubscriberResponse_Response() {}
|
|
|
|
func (*UpdateSubscriberResponse_PermitRejected) isUpdateSubscriberResponse_Response() {}
|
|
|
|
type DeleteSubscriberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteSubscriberRequest) Reset() {
|
|
*x = DeleteSubscriberRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteSubscriberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteSubscriberRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteSubscriberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteSubscriberRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteSubscriberRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DeleteSubscriberRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteSubscriberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *DeleteSubscriberResponse_Success
|
|
// *DeleteSubscriberResponse_SubscriberNotFound
|
|
// *DeleteSubscriberResponse_CannotCancelSubscription
|
|
Response isDeleteSubscriberResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteSubscriberResponse) Reset() {
|
|
*x = DeleteSubscriberResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteSubscriberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteSubscriberResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteSubscriberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteSubscriberResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteSubscriberResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DeleteSubscriberResponse) GetResponse() isDeleteSubscriberResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteSubscriberResponse) GetSuccess() *emptypb.Empty {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*DeleteSubscriberResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteSubscriberResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*DeleteSubscriberResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteSubscriberResponse) GetCannotCancelSubscription() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*DeleteSubscriberResponse_CannotCancelSubscription); ok {
|
|
return x.CannotCancelSubscription
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isDeleteSubscriberResponse_Response interface {
|
|
isDeleteSubscriberResponse_Response()
|
|
}
|
|
|
|
type DeleteSubscriberResponse_Success struct {
|
|
Success *emptypb.Empty `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type DeleteSubscriberResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type DeleteSubscriberResponse_CannotCancelSubscription struct {
|
|
// The associated subscription is not a type that can be cancelled by the server. Cancel client-side, and then retry.
|
|
CannotCancelSubscription *errors.FailedPrecondition `protobuf:"bytes,3,opt,name=cannot_cancel_subscription,json=cannotCancelSubscription,proto3,oneof"`
|
|
}
|
|
|
|
func (*DeleteSubscriberResponse_Success) isDeleteSubscriberResponse_Response() {}
|
|
|
|
func (*DeleteSubscriberResponse_SubscriberNotFound) isDeleteSubscriberResponse_Response() {}
|
|
|
|
func (*DeleteSubscriberResponse_CannotCancelSubscription) isDeleteSubscriberResponse_Response() {}
|
|
|
|
type CreatePaymentMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Only PAYMENT_METHOD_CARD, PAYMENT_METHOD_SEPA_DEBIT, and PAYMENT_METHOD_IDEAL are supported;
|
|
// other values will result in an INVALID_ARGUMENT error.
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriber_id,json=subscriberId,proto3" json:"subscriber_id,omitempty"`
|
|
PaymentMethod PaymentMethod `protobuf:"varint,2,opt,name=payment_method,json=paymentMethod,proto3,enum=org.signal.chat.purchase.PaymentMethod" json:"payment_method,omitempty"`
|
|
// a libsignal DonationPermit from rpc Donations.CreateDonationPermit
|
|
DonationPermit []byte `protobuf:"bytes,3,opt,name=donation_permit,json=donationPermit,proto3" json:"donation_permit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePaymentMethodRequest) Reset() {
|
|
*x = CreatePaymentMethodRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePaymentMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePaymentMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *CreatePaymentMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePaymentMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreatePaymentMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CreatePaymentMethodRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePaymentMethodRequest) GetPaymentMethod() PaymentMethod {
|
|
if x != nil {
|
|
return x.PaymentMethod
|
|
}
|
|
return PaymentMethod_PAYMENT_METHOD_UNKNOWN
|
|
}
|
|
|
|
func (x *CreatePaymentMethodRequest) GetDonationPermit() []byte {
|
|
if x != nil {
|
|
return x.DonationPermit
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreatePaymentMethodResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *CreatePaymentMethodResponse_Result
|
|
// *CreatePaymentMethodResponse_SubscriberNotFound
|
|
// *CreatePaymentMethodResponse_SubscriberIdMismatch
|
|
// *CreatePaymentMethodResponse_SubscriptionProcessorConflict
|
|
// *CreatePaymentMethodResponse_PermitRejected
|
|
Response isCreatePaymentMethodResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) Reset() {
|
|
*x = CreatePaymentMethodResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePaymentMethodResponse) ProtoMessage() {}
|
|
|
|
func (x *CreatePaymentMethodResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePaymentMethodResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreatePaymentMethodResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) GetResponse() isCreatePaymentMethodResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) GetResult() *CreatePaymentMethodResponse_CreatePaymentMethodResult {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePaymentMethodResponse_Result); ok {
|
|
return x.Result
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePaymentMethodResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePaymentMethodResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) GetSubscriptionProcessorConflict() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePaymentMethodResponse_SubscriptionProcessorConflict); ok {
|
|
return x.SubscriptionProcessorConflict
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse) GetPermitRejected() *errors.FailedZkAuthentication {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePaymentMethodResponse_PermitRejected); ok {
|
|
return x.PermitRejected
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isCreatePaymentMethodResponse_Response interface {
|
|
isCreatePaymentMethodResponse_Response()
|
|
}
|
|
|
|
type CreatePaymentMethodResponse_Result struct {
|
|
Result *CreatePaymentMethodResponse_CreatePaymentMethodResult `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePaymentMethodResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePaymentMethodResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePaymentMethodResponse_SubscriptionProcessorConflict struct {
|
|
// New payment processor does not match existing processor associated with the subscription
|
|
SubscriptionProcessorConflict *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=subscription_processor_conflict,json=subscriptionProcessorConflict,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePaymentMethodResponse_PermitRejected struct {
|
|
// The donation permit was expired or already spent
|
|
PermitRejected *errors.FailedZkAuthentication `protobuf:"bytes,5,opt,name=permit_rejected,json=permitRejected,proto3,oneof"`
|
|
}
|
|
|
|
func (*CreatePaymentMethodResponse_Result) isCreatePaymentMethodResponse_Response() {}
|
|
|
|
func (*CreatePaymentMethodResponse_SubscriberNotFound) isCreatePaymentMethodResponse_Response() {}
|
|
|
|
func (*CreatePaymentMethodResponse_SubscriberIdMismatch) isCreatePaymentMethodResponse_Response() {}
|
|
|
|
func (*CreatePaymentMethodResponse_SubscriptionProcessorConflict) isCreatePaymentMethodResponse_Response() {
|
|
}
|
|
|
|
func (*CreatePaymentMethodResponse_PermitRejected) isCreatePaymentMethodResponse_Response() {}
|
|
|
|
type CreatePayPalPaymentMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
// a callback URL (e.g. an in-client URL handler) for when the user approved the payment
|
|
ReturnUrl string `protobuf:"bytes,2,opt,name=returnUrl,proto3" json:"returnUrl,omitempty"`
|
|
// a callback URL (e.g. an in-client URL handler) for when the user did not approve the payment
|
|
CancelUrl string `protobuf:"bytes,3,opt,name=cancelUrl,proto3" json:"cancelUrl,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodRequest) Reset() {
|
|
*x = CreatePayPalPaymentMethodRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePayPalPaymentMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *CreatePayPalPaymentMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePayPalPaymentMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreatePayPalPaymentMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodRequest) GetReturnUrl() string {
|
|
if x != nil {
|
|
return x.ReturnUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodRequest) GetCancelUrl() string {
|
|
if x != nil {
|
|
return x.CancelUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreatePayPalPaymentMethodResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *CreatePayPalPaymentMethodResponse_Result
|
|
// *CreatePayPalPaymentMethodResponse_SubscriberNotFound
|
|
// *CreatePayPalPaymentMethodResponse_SubscriberIdMismatch
|
|
// *CreatePayPalPaymentMethodResponse_SubscriptionProcessorConflict
|
|
Response isCreatePayPalPaymentMethodResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) Reset() {
|
|
*x = CreatePayPalPaymentMethodResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePayPalPaymentMethodResponse) ProtoMessage() {}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePayPalPaymentMethodResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreatePayPalPaymentMethodResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) GetResponse() isCreatePayPalPaymentMethodResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) GetResult() *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePayPalPaymentMethodResponse_Result); ok {
|
|
return x.Result
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePayPalPaymentMethodResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePayPalPaymentMethodResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse) GetSubscriptionProcessorConflict() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*CreatePayPalPaymentMethodResponse_SubscriptionProcessorConflict); ok {
|
|
return x.SubscriptionProcessorConflict
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isCreatePayPalPaymentMethodResponse_Response interface {
|
|
isCreatePayPalPaymentMethodResponse_Response()
|
|
}
|
|
|
|
type CreatePayPalPaymentMethodResponse_Result struct {
|
|
Result *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePayPalPaymentMethodResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePayPalPaymentMethodResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type CreatePayPalPaymentMethodResponse_SubscriptionProcessorConflict struct {
|
|
// New payment processor does not match existing processor associated with the subscription
|
|
SubscriptionProcessorConflict *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=subscription_processor_conflict,json=subscriptionProcessorConflict,proto3,oneof"`
|
|
}
|
|
|
|
func (*CreatePayPalPaymentMethodResponse_Result) isCreatePayPalPaymentMethodResponse_Response() {}
|
|
|
|
func (*CreatePayPalPaymentMethodResponse_SubscriberNotFound) isCreatePayPalPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
func (*CreatePayPalPaymentMethodResponse_SubscriberIdMismatch) isCreatePayPalPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
func (*CreatePayPalPaymentMethodResponse_SubscriptionProcessorConflict) isCreatePayPalPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
// Types that are valid to be assigned to Request:
|
|
//
|
|
// *SetDefaultPaymentMethodRequest_Stripe
|
|
// *SetDefaultPaymentMethodRequest_Braintree
|
|
// *SetDefaultPaymentMethodRequest_Sepa
|
|
Request isSetDefaultPaymentMethodRequest_Request `protobuf_oneof:"request"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) Reset() {
|
|
*x = SetDefaultPaymentMethodRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodRequest) ProtoMessage() {}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetDefaultPaymentMethodRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetDefaultPaymentMethodRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) GetRequest() isSetDefaultPaymentMethodRequest_Request {
|
|
if x != nil {
|
|
return x.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) GetStripe() *SetDefaultPaymentMethodRequest_StripePaymentMethod {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*SetDefaultPaymentMethodRequest_Stripe); ok {
|
|
return x.Stripe
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) GetBraintree() *SetDefaultPaymentMethodRequest_BraintreePaymentMethod {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*SetDefaultPaymentMethodRequest_Braintree); ok {
|
|
return x.Braintree
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest) GetSepa() *SetDefaultPaymentMethodRequest_SepaPaymentMethod {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*SetDefaultPaymentMethodRequest_Sepa); ok {
|
|
return x.Sepa
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSetDefaultPaymentMethodRequest_Request interface {
|
|
isSetDefaultPaymentMethodRequest_Request()
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest_Stripe struct {
|
|
Stripe *SetDefaultPaymentMethodRequest_StripePaymentMethod `protobuf:"bytes,2,opt,name=stripe,proto3,oneof"`
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest_Braintree struct {
|
|
Braintree *SetDefaultPaymentMethodRequest_BraintreePaymentMethod `protobuf:"bytes,3,opt,name=braintree,proto3,oneof"`
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest_Sepa struct {
|
|
Sepa *SetDefaultPaymentMethodRequest_SepaPaymentMethod `protobuf:"bytes,4,opt,name=sepa,proto3,oneof"`
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodRequest_Stripe) isSetDefaultPaymentMethodRequest_Request() {}
|
|
|
|
func (*SetDefaultPaymentMethodRequest_Braintree) isSetDefaultPaymentMethodRequest_Request() {}
|
|
|
|
func (*SetDefaultPaymentMethodRequest_Sepa) isSetDefaultPaymentMethodRequest_Request() {}
|
|
|
|
type SetDefaultPaymentMethodResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *SetDefaultPaymentMethodResponse_Success
|
|
// *SetDefaultPaymentMethodResponse_SubscriberNotFound
|
|
// *SetDefaultPaymentMethodResponse_SubscriberIdMismatch
|
|
// *SetDefaultPaymentMethodResponse_PaymentMethodNotSetUp
|
|
// *SetDefaultPaymentMethodResponse_SubscriptionProcessorConflict
|
|
Response isSetDefaultPaymentMethodResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) Reset() {
|
|
*x = SetDefaultPaymentMethodResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodResponse) ProtoMessage() {}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetDefaultPaymentMethodResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetDefaultPaymentMethodResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) GetResponse() isSetDefaultPaymentMethodResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) GetSuccess() *emptypb.Empty {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetDefaultPaymentMethodResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetDefaultPaymentMethodResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetDefaultPaymentMethodResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) GetPaymentMethodNotSetUp() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetDefaultPaymentMethodResponse_PaymentMethodNotSetUp); ok {
|
|
return x.PaymentMethodNotSetUp
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodResponse) GetSubscriptionProcessorConflict() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetDefaultPaymentMethodResponse_SubscriptionProcessorConflict); ok {
|
|
return x.SubscriptionProcessorConflict
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSetDefaultPaymentMethodResponse_Response interface {
|
|
isSetDefaultPaymentMethodResponse_Response()
|
|
}
|
|
|
|
type SetDefaultPaymentMethodResponse_Success struct {
|
|
Success *emptypb.Empty `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type SetDefaultPaymentMethodResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type SetDefaultPaymentMethodResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type SetDefaultPaymentMethodResponse_PaymentMethodNotSetUp struct {
|
|
PaymentMethodNotSetUp *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=payment_method_not_set_up,json=paymentMethodNotSetUp,proto3,oneof"`
|
|
}
|
|
|
|
type SetDefaultPaymentMethodResponse_SubscriptionProcessorConflict struct {
|
|
// Payment processor does not match existing processor associated with the subscription
|
|
SubscriptionProcessorConflict *errors.FailedPrecondition `protobuf:"bytes,5,opt,name=subscription_processor_conflict,json=subscriptionProcessorConflict,proto3,oneof"`
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodResponse_Success) isSetDefaultPaymentMethodResponse_Response() {}
|
|
|
|
func (*SetDefaultPaymentMethodResponse_SubscriberNotFound) isSetDefaultPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodResponse_SubscriberIdMismatch) isSetDefaultPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodResponse_PaymentMethodNotSetUp) isSetDefaultPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodResponse_SubscriptionProcessorConflict) isSetDefaultPaymentMethodResponse_Response() {
|
|
}
|
|
|
|
type SetSubscriptionLevelRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
Level uint64 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
|
|
Currency string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
|
|
IdempotencyKey string `protobuf:"bytes,4,opt,name=idempotencyKey,proto3" json:"idempotencyKey,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelRequest) Reset() {
|
|
*x = SetSubscriptionLevelRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetSubscriptionLevelRequest) ProtoMessage() {}
|
|
|
|
func (x *SetSubscriptionLevelRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetSubscriptionLevelRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetSubscriptionLevelRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelRequest) GetLevel() uint64 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelRequest) GetCurrency() string {
|
|
if x != nil {
|
|
return x.Currency
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelRequest) GetIdempotencyKey() string {
|
|
if x != nil {
|
|
return x.IdempotencyKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Meaningfully interpreting chargeFailure response fields requires inspecting the processor field first.
|
|
//
|
|
// For Stripe, code will be one of the [codes defined here](https://stripe.com/docs/api/charges/object#charge_object-failure_code),
|
|
// while message [may contain a further textual description](https://stripe.com/docs/api/charges/object#charge_object-failure_message).
|
|
// The outcome fields are optional, but present values will directly map to Stripe [response properties](https://stripe.com/docs/api/charges/object#charge_object-outcome-network_status)
|
|
//
|
|
// For Braintree, the outcome fields will be null. The code and message will contain one of
|
|
// - a processor decline code (as a string) in code, and associated text in message, as defined this [table](https://developer.paypal.com/braintree/docs/reference/general/processor-responses/authorization-responses)
|
|
// - `gateway` in code, with a [reason](https://developer.paypal.com/braintree/articles/control-panel/transactions/gateway-rejections) in message
|
|
// - `code` = "unknown", message = "unknown"
|
|
//
|
|
// IAP payment processors will never include charge failure information, and detailed order information should be
|
|
// retrieved from the payment processor directly
|
|
type ChargeFailure struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Processor PaymentProvider `protobuf:"varint,1,opt,name=processor,proto3,enum=org.signal.chat.purchase.PaymentProvider" json:"processor,omitempty"`
|
|
// See [Stripe failure codes](https://stripe.com/docs/api/charges/object#charge_object-failure_code) or
|
|
// [Braintree decline codes](https://developer.paypal.com/braintree/docs/reference/general/processor-responses/authorization-responses#decline-codes)
|
|
// depending on which processor was used
|
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
|
// See [Stripe failure codes](https://stripe.com/docs/api/charges/object#charge_object-failure_code) or
|
|
// [Braintree decline codes](https://developer.paypal.com/braintree/docs/reference/general/processor-responses/authorization-responses#decline-codes)
|
|
// depending on which processor was used
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
// See [Outcome Network Status](https://stripe.com/docs/api/charges/object#charge_object-outcome-network_status)
|
|
OutcomeNetworkStatus *string `protobuf:"bytes,4,opt,name=outcome_network_status,json=outcomeNetworkStatus,proto3,oneof" json:"outcome_network_status,omitempty"`
|
|
// See [Outcome Reason](https://stripe.com/docs/api/charges/object#charge_object-outcome-reason)
|
|
OutcomeReason *string `protobuf:"bytes,5,opt,name=outcome_reason,json=outcomeReason,proto3,oneof" json:"outcome_reason,omitempty"`
|
|
// See [Outcome Type](https://stripe.com/docs/api/charges/object#charge_object-outcome-type)
|
|
OutcomeType *string `protobuf:"bytes,6,opt,name=outcome_type,json=outcomeType,proto3,oneof" json:"outcome_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChargeFailure) Reset() {
|
|
*x = ChargeFailure{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChargeFailure) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChargeFailure) ProtoMessage() {}
|
|
|
|
func (x *ChargeFailure) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChargeFailure.ProtoReflect.Descriptor instead.
|
|
func (*ChargeFailure) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ChargeFailure) GetProcessor() PaymentProvider {
|
|
if x != nil {
|
|
return x.Processor
|
|
}
|
|
return PaymentProvider_PAYMENT_PROVIDER_UNKNOWN
|
|
}
|
|
|
|
func (x *ChargeFailure) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChargeFailure) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChargeFailure) GetOutcomeNetworkStatus() string {
|
|
if x != nil && x.OutcomeNetworkStatus != nil {
|
|
return *x.OutcomeNetworkStatus
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChargeFailure) GetOutcomeReason() string {
|
|
if x != nil && x.OutcomeReason != nil {
|
|
return *x.OutcomeReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChargeFailure) GetOutcomeType() string {
|
|
if x != nil && x.OutcomeType != nil {
|
|
return *x.OutcomeType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PaymentRequired struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ChargeFailure *ChargeFailure `protobuf:"bytes,1,opt,name=charge_failure,json=chargeFailure,proto3,oneof" json:"charge_failure,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PaymentRequired) Reset() {
|
|
*x = PaymentRequired{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PaymentRequired) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PaymentRequired) ProtoMessage() {}
|
|
|
|
func (x *PaymentRequired) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PaymentRequired.ProtoReflect.Descriptor instead.
|
|
func (*PaymentRequired) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *PaymentRequired) GetChargeFailure() *ChargeFailure {
|
|
if x != nil {
|
|
return x.ChargeFailure
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *SetSubscriptionLevelResponse_Success
|
|
// *SetSubscriptionLevelResponse_SubscriberNotFound
|
|
// *SetSubscriptionLevelResponse_SubscriberIdMismatch
|
|
// *SetSubscriptionLevelResponse_SubscriptionProcessorConflict
|
|
// *SetSubscriptionLevelResponse_PaymentMethodNotSetUp
|
|
// *SetSubscriptionLevelResponse_UnsupportedOperation
|
|
// *SetSubscriptionLevelResponse_UnsupportedLevel
|
|
// *SetSubscriptionLevelResponse_UnsupportedCurrency
|
|
// *SetSubscriptionLevelResponse_PaymentRequiresAction
|
|
// *SetSubscriptionLevelResponse_InvalidLevelTransition
|
|
// *SetSubscriptionLevelResponse_InvalidIdempotencyKey
|
|
// *SetSubscriptionLevelResponse_ChargeFailure
|
|
Response isSetSubscriptionLevelResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) Reset() {
|
|
*x = SetSubscriptionLevelResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse) ProtoMessage() {}
|
|
|
|
func (x *SetSubscriptionLevelResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetSubscriptionLevelResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetSubscriptionLevelResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetResponse() isSetSubscriptionLevelResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetSuccess() *SetSubscriptionLevelResponse_SetSubscriptionLevelResult {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetSubscriptionProcessorConflict() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_SubscriptionProcessorConflict); ok {
|
|
return x.SubscriptionProcessorConflict
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetPaymentMethodNotSetUp() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_PaymentMethodNotSetUp); ok {
|
|
return x.PaymentMethodNotSetUp
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetUnsupportedOperation() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_UnsupportedOperation); ok {
|
|
return x.UnsupportedOperation
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetUnsupportedLevel() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_UnsupportedLevel); ok {
|
|
return x.UnsupportedLevel
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetUnsupportedCurrency() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_UnsupportedCurrency); ok {
|
|
return x.UnsupportedCurrency
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetPaymentRequiresAction() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_PaymentRequiresAction); ok {
|
|
return x.PaymentRequiresAction
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetInvalidLevelTransition() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_InvalidLevelTransition); ok {
|
|
return x.InvalidLevelTransition
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetInvalidIdempotencyKey() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_InvalidIdempotencyKey); ok {
|
|
return x.InvalidIdempotencyKey
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse) GetChargeFailure() *ChargeFailure {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetSubscriptionLevelResponse_ChargeFailure); ok {
|
|
return x.ChargeFailure
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSetSubscriptionLevelResponse_Response interface {
|
|
isSetSubscriptionLevelResponse_Response()
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_Success struct {
|
|
Success *SetSubscriptionLevelResponse_SetSubscriptionLevelResult `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_SubscriptionProcessorConflict struct {
|
|
// New payment processor does not match existing processor associated with the subscription
|
|
SubscriptionProcessorConflict *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=subscription_processor_conflict,json=subscriptionProcessorConflict,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_PaymentMethodNotSetUp struct {
|
|
PaymentMethodNotSetUp *errors.FailedPrecondition `protobuf:"bytes,5,opt,name=payment_method_not_set_up,json=paymentMethodNotSetUp,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_UnsupportedOperation struct {
|
|
// The payment processor does not support this operation
|
|
UnsupportedOperation *errors.FailedPrecondition `protobuf:"bytes,6,opt,name=unsupported_operation,json=unsupportedOperation,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_UnsupportedLevel struct {
|
|
// The requested level was invalid
|
|
UnsupportedLevel *errors.FailedPrecondition `protobuf:"bytes,7,opt,name=unsupported_level,json=unsupportedLevel,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_UnsupportedCurrency struct {
|
|
// The requested currency was invalid
|
|
UnsupportedCurrency *errors.FailedPrecondition `protobuf:"bytes,8,opt,name=unsupported_currency,json=unsupportedCurrency,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_PaymentRequiresAction struct {
|
|
// The card could not be charged
|
|
PaymentRequiresAction *errors.FailedPrecondition `protobuf:"bytes,9,opt,name=payment_requires_action,json=paymentRequiresAction,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_InvalidLevelTransition struct {
|
|
// Cannot transition from existing level to the requested level
|
|
InvalidLevelTransition *errors.FailedPrecondition `protobuf:"bytes,10,opt,name=invalid_level_transition,json=invalidLevelTransition,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_InvalidIdempotencyKey struct {
|
|
// The idempotency key was invalid or re-used with a modified request
|
|
InvalidIdempotencyKey *errors.FailedPrecondition `protobuf:"bytes,11,opt,name=invalid_idempotency_key,json=invalidIdempotencyKey,proto3,oneof"`
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_ChargeFailure struct {
|
|
// The payment failed; see charge failure details
|
|
ChargeFailure *ChargeFailure `protobuf:"bytes,12,opt,name=charge_failure,json=chargeFailure,proto3,oneof"`
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_Success) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
func (*SetSubscriptionLevelResponse_SubscriberNotFound) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
func (*SetSubscriptionLevelResponse_SubscriberIdMismatch) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
func (*SetSubscriptionLevelResponse_SubscriptionProcessorConflict) isSetSubscriptionLevelResponse_Response() {
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_PaymentMethodNotSetUp) isSetSubscriptionLevelResponse_Response() {
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_UnsupportedOperation) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
func (*SetSubscriptionLevelResponse_UnsupportedLevel) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
func (*SetSubscriptionLevelResponse_UnsupportedCurrency) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
func (*SetSubscriptionLevelResponse_PaymentRequiresAction) isSetSubscriptionLevelResponse_Response() {
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_InvalidLevelTransition) isSetSubscriptionLevelResponse_Response() {
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_InvalidIdempotencyKey) isSetSubscriptionLevelResponse_Response() {
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_ChargeFailure) isSetSubscriptionLevelResponse_Response() {}
|
|
|
|
type SetIapSubscriptionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
// Types that are valid to be assigned to Request:
|
|
//
|
|
// *SetIapSubscriptionRequest_AppStore
|
|
// *SetIapSubscriptionRequest_PlayBilling
|
|
Request isSetIapSubscriptionRequest_Request `protobuf_oneof:"request"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest) Reset() {
|
|
*x = SetIapSubscriptionRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetIapSubscriptionRequest) ProtoMessage() {}
|
|
|
|
func (x *SetIapSubscriptionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetIapSubscriptionRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetIapSubscriptionRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest) GetRequest() isSetIapSubscriptionRequest_Request {
|
|
if x != nil {
|
|
return x.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest) GetAppStore() *SetIapSubscriptionRequest_AppStorePurchase {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*SetIapSubscriptionRequest_AppStore); ok {
|
|
return x.AppStore
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest) GetPlayBilling() *SetIapSubscriptionRequest_PlayBillingPurchase {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*SetIapSubscriptionRequest_PlayBilling); ok {
|
|
return x.PlayBilling
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSetIapSubscriptionRequest_Request interface {
|
|
isSetIapSubscriptionRequest_Request()
|
|
}
|
|
|
|
type SetIapSubscriptionRequest_AppStore struct {
|
|
AppStore *SetIapSubscriptionRequest_AppStorePurchase `protobuf:"bytes,2,opt,name=app_store,json=appStore,proto3,oneof"`
|
|
}
|
|
|
|
type SetIapSubscriptionRequest_PlayBilling struct {
|
|
PlayBilling *SetIapSubscriptionRequest_PlayBillingPurchase `protobuf:"bytes,3,opt,name=play_billing,json=playBilling,proto3,oneof"`
|
|
}
|
|
|
|
func (*SetIapSubscriptionRequest_AppStore) isSetIapSubscriptionRequest_Request() {}
|
|
|
|
func (*SetIapSubscriptionRequest_PlayBilling) isSetIapSubscriptionRequest_Request() {}
|
|
|
|
type SetIapSubscriptionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *SetIapSubscriptionResponse_Success
|
|
// *SetIapSubscriptionResponse_SubscriberNotFound
|
|
// *SetIapSubscriptionResponse_SubscriberIdMismatch
|
|
// *SetIapSubscriptionResponse_SubscriptionProcessorConflict
|
|
// *SetIapSubscriptionResponse_PaymentRequired
|
|
// *SetIapSubscriptionResponse_InvalidTransaction
|
|
Response isSetIapSubscriptionResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) Reset() {
|
|
*x = SetIapSubscriptionResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetIapSubscriptionResponse) ProtoMessage() {}
|
|
|
|
func (x *SetIapSubscriptionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetIapSubscriptionResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetIapSubscriptionResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetResponse() isSetIapSubscriptionResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetSuccess() *SetIapSubscriptionResponse_SetIapSubscriptionResult {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetIapSubscriptionResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetIapSubscriptionResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetIapSubscriptionResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetSubscriptionProcessorConflict() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetIapSubscriptionResponse_SubscriptionProcessorConflict); ok {
|
|
return x.SubscriptionProcessorConflict
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetPaymentRequired() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetIapSubscriptionResponse_PaymentRequired); ok {
|
|
return x.PaymentRequired
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse) GetInvalidTransaction() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*SetIapSubscriptionResponse_InvalidTransaction); ok {
|
|
return x.InvalidTransaction
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSetIapSubscriptionResponse_Response interface {
|
|
isSetIapSubscriptionResponse_Response()
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_Success struct {
|
|
Success *SetIapSubscriptionResponse_SetIapSubscriptionResult `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_SubscriptionProcessorConflict struct {
|
|
// New payment processor does not match existing processor associated with the subscription
|
|
SubscriptionProcessorConflict *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=subscription_processor_conflict,json=subscriptionProcessorConflict,proto3,oneof"`
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_PaymentRequired struct {
|
|
PaymentRequired *errors.FailedPrecondition `protobuf:"bytes,5,opt,name=payment_required,json=paymentRequired,proto3,oneof"`
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_InvalidTransaction struct {
|
|
InvalidTransaction *errors.FailedPrecondition `protobuf:"bytes,6,opt,name=invalid_transaction,json=invalidTransaction,proto3,oneof"`
|
|
}
|
|
|
|
func (*SetIapSubscriptionResponse_Success) isSetIapSubscriptionResponse_Response() {}
|
|
|
|
func (*SetIapSubscriptionResponse_SubscriberNotFound) isSetIapSubscriptionResponse_Response() {}
|
|
|
|
func (*SetIapSubscriptionResponse_SubscriberIdMismatch) isSetIapSubscriptionResponse_Response() {}
|
|
|
|
func (*SetIapSubscriptionResponse_SubscriptionProcessorConflict) isSetIapSubscriptionResponse_Response() {
|
|
}
|
|
|
|
func (*SetIapSubscriptionResponse_PaymentRequired) isSetIapSubscriptionResponse_Response() {}
|
|
|
|
func (*SetIapSubscriptionResponse_InvalidTransaction) isSetIapSubscriptionResponse_Response() {}
|
|
|
|
type GetReceiptCredentialsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
ReceiptCredentialRequest []byte `protobuf:"bytes,2,opt,name=receiptCredentialRequest,proto3" json:"receiptCredentialRequest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsRequest) Reset() {
|
|
*x = GetReceiptCredentialsRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReceiptCredentialsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetReceiptCredentialsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetReceiptCredentialsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetReceiptCredentialsRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsRequest) GetReceiptCredentialRequest() []byte {
|
|
if x != nil {
|
|
return x.ReceiptCredentialRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *GetReceiptCredentialsResponse_Success
|
|
// *GetReceiptCredentialsResponse_SubscriberNotFound
|
|
// *GetReceiptCredentialsResponse_SubscriberIdMismatch
|
|
// *GetReceiptCredentialsResponse_NoPaidInvoice
|
|
// *GetReceiptCredentialsResponse_PaymentRequired
|
|
// *GetReceiptCredentialsResponse_AlreadyRedeemed
|
|
Response isGetReceiptCredentialsResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) Reset() {
|
|
*x = GetReceiptCredentialsResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReceiptCredentialsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetReceiptCredentialsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetReceiptCredentialsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetReceiptCredentialsResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetResponse() isGetReceiptCredentialsResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetSuccess() *GetReceiptCredentialsResponse_GetReceiptCredentialsResult {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetReceiptCredentialsResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetReceiptCredentialsResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetReceiptCredentialsResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetNoPaidInvoice() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetReceiptCredentialsResponse_NoPaidInvoice); ok {
|
|
return x.NoPaidInvoice
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetPaymentRequired() *PaymentRequired {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetReceiptCredentialsResponse_PaymentRequired); ok {
|
|
return x.PaymentRequired
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse) GetAlreadyRedeemed() *errors.FailedPrecondition {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetReceiptCredentialsResponse_AlreadyRedeemed); ok {
|
|
return x.AlreadyRedeemed
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isGetReceiptCredentialsResponse_Response interface {
|
|
isGetReceiptCredentialsResponse_Response()
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_Success struct {
|
|
Success *GetReceiptCredentialsResponse_GetReceiptCredentialsResult `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,2,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,3,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_NoPaidInvoice struct {
|
|
// No invoice has been issued for this subscription OR invoice is in 'draft' or 'open' state
|
|
NoPaidInvoice *errors.FailedPrecondition `protobuf:"bytes,4,opt,name=no_paid_invoice,json=noPaidInvoice,proto3,oneof"`
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_PaymentRequired struct {
|
|
// Invoice is in any state other than 'draft', 'open', or 'paid'; Charge failure details may be present
|
|
PaymentRequired *PaymentRequired `protobuf:"bytes,5,opt,name=payment_required,json=paymentRequired,proto3,oneof"`
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_AlreadyRedeemed struct {
|
|
// Latest paid receipt on subscription was already redeemed for a receipt credential but with a different GetReceiptCredentialRequest
|
|
AlreadyRedeemed *errors.FailedPrecondition `protobuf:"bytes,6,opt,name=already_redeemed,json=alreadyRedeemed,proto3,oneof"`
|
|
}
|
|
|
|
func (*GetReceiptCredentialsResponse_Success) isGetReceiptCredentialsResponse_Response() {}
|
|
|
|
func (*GetReceiptCredentialsResponse_SubscriberNotFound) isGetReceiptCredentialsResponse_Response() {}
|
|
|
|
func (*GetReceiptCredentialsResponse_SubscriberIdMismatch) isGetReceiptCredentialsResponse_Response() {
|
|
}
|
|
|
|
func (*GetReceiptCredentialsResponse_NoPaidInvoice) isGetReceiptCredentialsResponse_Response() {}
|
|
|
|
func (*GetReceiptCredentialsResponse_PaymentRequired) isGetReceiptCredentialsResponse_Response() {}
|
|
|
|
func (*GetReceiptCredentialsResponse_AlreadyRedeemed) isGetReceiptCredentialsResponse_Response() {}
|
|
|
|
type GetSubscriptionInformationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SubscriberId []byte `protobuf:"bytes,1,opt,name=subscriberId,proto3" json:"subscriberId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationRequest) Reset() {
|
|
*x = GetSubscriptionInformationRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSubscriptionInformationRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSubscriptionInformationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetSubscriptionInformationRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSubscriptionInformationRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationRequest) GetSubscriberId() []byte {
|
|
if x != nil {
|
|
return x.SubscriberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetSubscriptionInformationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Response:
|
|
//
|
|
// *GetSubscriptionInformationResponse_Success
|
|
// *GetSubscriptionInformationResponse_NoSubscription
|
|
// *GetSubscriptionInformationResponse_SubscriberNotFound
|
|
// *GetSubscriptionInformationResponse_SubscriberIdMismatch
|
|
Response isGetSubscriptionInformationResponse_Response `protobuf_oneof:"response"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) Reset() {
|
|
*x = GetSubscriptionInformationResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSubscriptionInformationResponse) ProtoMessage() {}
|
|
|
|
func (x *GetSubscriptionInformationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetSubscriptionInformationResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetSubscriptionInformationResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) GetResponse() isGetSubscriptionInformationResponse_Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) GetSuccess() *GetSubscriptionInformationResponse_Subscription {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetSubscriptionInformationResponse_Success); ok {
|
|
return x.Success
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) GetNoSubscription() *emptypb.Empty {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetSubscriptionInformationResponse_NoSubscription); ok {
|
|
return x.NoSubscription
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) GetSubscriberNotFound() *errors.NotFound {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetSubscriptionInformationResponse_SubscriberNotFound); ok {
|
|
return x.SubscriberNotFound
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse) GetSubscriberIdMismatch() *errors.FailedUnidentifiedAuthorization {
|
|
if x != nil {
|
|
if x, ok := x.Response.(*GetSubscriptionInformationResponse_SubscriberIdMismatch); ok {
|
|
return x.SubscriberIdMismatch
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isGetSubscriptionInformationResponse_Response interface {
|
|
isGetSubscriptionInformationResponse_Response()
|
|
}
|
|
|
|
type GetSubscriptionInformationResponse_Success struct {
|
|
Success *GetSubscriptionInformationResponse_Subscription `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type GetSubscriptionInformationResponse_NoSubscription struct {
|
|
NoSubscription *emptypb.Empty `protobuf:"bytes,2,opt,name=no_subscription,json=noSubscription,proto3,oneof"`
|
|
}
|
|
|
|
type GetSubscriptionInformationResponse_SubscriberNotFound struct {
|
|
SubscriberNotFound *errors.NotFound `protobuf:"bytes,3,opt,name=subscriber_not_found,json=subscriberNotFound,proto3,oneof"`
|
|
}
|
|
|
|
type GetSubscriptionInformationResponse_SubscriberIdMismatch struct {
|
|
// subscriberId authentication failure
|
|
SubscriberIdMismatch *errors.FailedUnidentifiedAuthorization `protobuf:"bytes,4,opt,name=subscriber_id_mismatch,json=subscriberIdMismatch,proto3,oneof"`
|
|
}
|
|
|
|
func (*GetSubscriptionInformationResponse_Success) isGetSubscriptionInformationResponse_Response() {}
|
|
|
|
func (*GetSubscriptionInformationResponse_NoSubscription) isGetSubscriptionInformationResponse_Response() {
|
|
}
|
|
|
|
func (*GetSubscriptionInformationResponse_SubscriberNotFound) isGetSubscriptionInformationResponse_Response() {
|
|
}
|
|
|
|
func (*GetSubscriptionInformationResponse_SubscriberIdMismatch) isGetSubscriptionInformationResponse_Response() {
|
|
}
|
|
|
|
type GetBankMandateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BankTransferType BankTransferType `protobuf:"varint,1,opt,name=bank_transfer_type,json=bankTransferType,proto3,enum=org.signal.chat.purchase.BankTransferType" json:"bank_transfer_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBankMandateRequest) Reset() {
|
|
*x = GetBankMandateRequest{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBankMandateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBankMandateRequest) ProtoMessage() {}
|
|
|
|
func (x *GetBankMandateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetBankMandateRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetBankMandateRequest) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *GetBankMandateRequest) GetBankTransferType() BankTransferType {
|
|
if x != nil {
|
|
return x.BankTransferType
|
|
}
|
|
return BankTransferType_BANK_TRANSFER_TYPE_UNKNOWN
|
|
}
|
|
|
|
type GetBankMandateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mandate string `protobuf:"bytes,1,opt,name=mandate,proto3" json:"mandate,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBankMandateResponse) Reset() {
|
|
*x = GetBankMandateResponse{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBankMandateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBankMandateResponse) ProtoMessage() {}
|
|
|
|
func (x *GetBankMandateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetBankMandateResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetBankMandateResponse) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *GetBankMandateResponse) GetMandate() string {
|
|
if x != nil {
|
|
return x.Mandate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreatePaymentMethodResponse_CreatePaymentMethodResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientSecret string `protobuf:"bytes,1,opt,name=clientSecret,proto3" json:"clientSecret,omitempty"`
|
|
PaymentProvider PaymentProvider `protobuf:"varint,2,opt,name=paymentProvider,proto3,enum=org.signal.chat.purchase.PaymentProvider" json:"paymentProvider,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse_CreatePaymentMethodResult) Reset() {
|
|
*x = CreatePaymentMethodResponse_CreatePaymentMethodResult{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse_CreatePaymentMethodResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePaymentMethodResponse_CreatePaymentMethodResult) ProtoMessage() {}
|
|
|
|
func (x *CreatePaymentMethodResponse_CreatePaymentMethodResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePaymentMethodResponse_CreatePaymentMethodResult.ProtoReflect.Descriptor instead.
|
|
func (*CreatePaymentMethodResponse_CreatePaymentMethodResult) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{5, 0}
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse_CreatePaymentMethodResult) GetClientSecret() string {
|
|
if x != nil {
|
|
return x.ClientSecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreatePaymentMethodResponse_CreatePaymentMethodResult) GetPaymentProvider() PaymentProvider {
|
|
if x != nil {
|
|
return x.PaymentProvider
|
|
}
|
|
return PaymentProvider_PAYMENT_PROVIDER_UNKNOWN
|
|
}
|
|
|
|
type CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// a URL to open where the user may approve the payment
|
|
ApprovalUrl string `protobuf:"bytes,1,opt,name=approvalUrl,proto3" json:"approvalUrl,omitempty"`
|
|
// an opaque PayPal payment identifier to use with SetDefaultPaymentMethodRequest
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) Reset() {
|
|
*x = CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) ProtoMessage() {}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult.ProtoReflect.Descriptor instead.
|
|
func (*CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{7, 0}
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) GetApprovalUrl() string {
|
|
if x != nil {
|
|
return x.ApprovalUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest_StripePaymentMethod struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PaymentMethodToken string `protobuf:"bytes,1,opt,name=paymentMethodToken,proto3" json:"paymentMethodToken,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_StripePaymentMethod) Reset() {
|
|
*x = SetDefaultPaymentMethodRequest_StripePaymentMethod{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_StripePaymentMethod) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodRequest_StripePaymentMethod) ProtoMessage() {}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_StripePaymentMethod) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetDefaultPaymentMethodRequest_StripePaymentMethod.ProtoReflect.Descriptor instead.
|
|
func (*SetDefaultPaymentMethodRequest_StripePaymentMethod) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{8, 0}
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_StripePaymentMethod) GetPaymentMethodToken() string {
|
|
if x != nil {
|
|
return x.PaymentMethodToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest_BraintreePaymentMethod struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PaymentMethodToken string `protobuf:"bytes,1,opt,name=paymentMethodToken,proto3" json:"paymentMethodToken,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_BraintreePaymentMethod) Reset() {
|
|
*x = SetDefaultPaymentMethodRequest_BraintreePaymentMethod{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_BraintreePaymentMethod) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodRequest_BraintreePaymentMethod) ProtoMessage() {}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_BraintreePaymentMethod) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetDefaultPaymentMethodRequest_BraintreePaymentMethod.ProtoReflect.Descriptor instead.
|
|
func (*SetDefaultPaymentMethodRequest_BraintreePaymentMethod) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{8, 1}
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_BraintreePaymentMethod) GetPaymentMethodToken() string {
|
|
if x != nil {
|
|
return x.PaymentMethodToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetDefaultPaymentMethodRequest_SepaPaymentMethod struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SetupIntentId string `protobuf:"bytes,1,opt,name=setupIntentId,proto3" json:"setupIntentId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_SepaPaymentMethod) Reset() {
|
|
*x = SetDefaultPaymentMethodRequest_SepaPaymentMethod{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_SepaPaymentMethod) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDefaultPaymentMethodRequest_SepaPaymentMethod) ProtoMessage() {}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_SepaPaymentMethod) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetDefaultPaymentMethodRequest_SepaPaymentMethod.ProtoReflect.Descriptor instead.
|
|
func (*SetDefaultPaymentMethodRequest_SepaPaymentMethod) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{8, 2}
|
|
}
|
|
|
|
func (x *SetDefaultPaymentMethodRequest_SepaPaymentMethod) GetSetupIntentId() string {
|
|
if x != nil {
|
|
return x.SetupIntentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetSubscriptionLevelResponse_SetSubscriptionLevelResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Level uint64 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse_SetSubscriptionLevelResult) Reset() {
|
|
*x = SetSubscriptionLevelResponse_SetSubscriptionLevelResult{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse_SetSubscriptionLevelResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetSubscriptionLevelResponse_SetSubscriptionLevelResult) ProtoMessage() {}
|
|
|
|
func (x *SetSubscriptionLevelResponse_SetSubscriptionLevelResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetSubscriptionLevelResponse_SetSubscriptionLevelResult.ProtoReflect.Descriptor instead.
|
|
func (*SetSubscriptionLevelResponse_SetSubscriptionLevelResult) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{13, 0}
|
|
}
|
|
|
|
func (x *SetSubscriptionLevelResponse_SetSubscriptionLevelResult) GetLevel() uint64 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetIapSubscriptionRequest_AppStorePurchase struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OriginalTransactionId string `protobuf:"bytes,1,opt,name=original_transaction_id,json=originalTransactionId,proto3" json:"original_transaction_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest_AppStorePurchase) Reset() {
|
|
*x = SetIapSubscriptionRequest_AppStorePurchase{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest_AppStorePurchase) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetIapSubscriptionRequest_AppStorePurchase) ProtoMessage() {}
|
|
|
|
func (x *SetIapSubscriptionRequest_AppStorePurchase) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetIapSubscriptionRequest_AppStorePurchase.ProtoReflect.Descriptor instead.
|
|
func (*SetIapSubscriptionRequest_AppStorePurchase) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{14, 0}
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest_AppStorePurchase) GetOriginalTransactionId() string {
|
|
if x != nil {
|
|
return x.OriginalTransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetIapSubscriptionRequest_PlayBillingPurchase struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PurchaseToken string `protobuf:"bytes,1,opt,name=purchase_token,json=purchaseToken,proto3" json:"purchase_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest_PlayBillingPurchase) Reset() {
|
|
*x = SetIapSubscriptionRequest_PlayBillingPurchase{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest_PlayBillingPurchase) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetIapSubscriptionRequest_PlayBillingPurchase) ProtoMessage() {}
|
|
|
|
func (x *SetIapSubscriptionRequest_PlayBillingPurchase) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetIapSubscriptionRequest_PlayBillingPurchase.ProtoReflect.Descriptor instead.
|
|
func (*SetIapSubscriptionRequest_PlayBillingPurchase) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{14, 1}
|
|
}
|
|
|
|
func (x *SetIapSubscriptionRequest_PlayBillingPurchase) GetPurchaseToken() string {
|
|
if x != nil {
|
|
return x.PurchaseToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetIapSubscriptionResponse_SetIapSubscriptionResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Level uint64 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse_SetIapSubscriptionResult) Reset() {
|
|
*x = SetIapSubscriptionResponse_SetIapSubscriptionResult{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse_SetIapSubscriptionResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetIapSubscriptionResponse_SetIapSubscriptionResult) ProtoMessage() {}
|
|
|
|
func (x *SetIapSubscriptionResponse_SetIapSubscriptionResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[30]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetIapSubscriptionResponse_SetIapSubscriptionResult.ProtoReflect.Descriptor instead.
|
|
func (*SetIapSubscriptionResponse_SetIapSubscriptionResult) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{15, 0}
|
|
}
|
|
|
|
func (x *SetIapSubscriptionResponse_SetIapSubscriptionResult) GetLevel() uint64 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetReceiptCredentialsResponse_GetReceiptCredentialsResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReceiptCredentialResponse []byte `protobuf:"bytes,1,opt,name=receiptCredentialResponse,proto3" json:"receiptCredentialResponse,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse_GetReceiptCredentialsResult) Reset() {
|
|
*x = GetReceiptCredentialsResponse_GetReceiptCredentialsResult{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse_GetReceiptCredentialsResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReceiptCredentialsResponse_GetReceiptCredentialsResult) ProtoMessage() {}
|
|
|
|
func (x *GetReceiptCredentialsResponse_GetReceiptCredentialsResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[31]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetReceiptCredentialsResponse_GetReceiptCredentialsResult.ProtoReflect.Descriptor instead.
|
|
func (*GetReceiptCredentialsResponse_GetReceiptCredentialsResult) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{17, 0}
|
|
}
|
|
|
|
func (x *GetReceiptCredentialsResponse_GetReceiptCredentialsResult) GetReceiptCredentialResponse() []byte {
|
|
if x != nil {
|
|
return x.ReceiptCredentialResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetSubscriptionInformationResponse_Subscription struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The subscription level
|
|
Level uint64 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
|
|
// If present, UNIX Epoch Timestamp in seconds, can be used to calculate next billing date.
|
|
BillingCycleAnchor *uint64 `protobuf:"varint,2,opt,name=billing_cycle_anchor,json=billingCycleAnchor,proto3,oneof" json:"billing_cycle_anchor,omitempty"`
|
|
// UNIX Epoch Timestamp in seconds, when the current subscription period ends
|
|
EndOfCurrentPeriod uint64 `protobuf:"varint,3,opt,name=end_of_current_period,json=endOfCurrentPeriod,proto3" json:"end_of_current_period,omitempty"`
|
|
// Whether there is a currently active subscription
|
|
Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"`
|
|
// If true, an active subscription will not auto-renew at the end of the current period
|
|
CancelAtPeriodEnd bool `protobuf:"varint,5,opt,name=cancel_at_period_end,json=cancelAtPeriodEnd,proto3" json:"cancel_at_period_end,omitempty"`
|
|
// A three-letter ISO 4217 currency code for currency used in the subscription
|
|
Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"`
|
|
// The amount paid for the subscription in the currency's smallest unit
|
|
Amount uint64 `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
// The subscription's status, mapped to Stripe's statuses. trialing will never be returned
|
|
Status SubscriptionStatus `protobuf:"varint,8,opt,name=status,proto3,enum=org.signal.chat.purchase.SubscriptionStatus" json:"status,omitempty"`
|
|
// The payment provider associated with the subscription
|
|
Processor PaymentProvider `protobuf:"varint,9,opt,name=processor,proto3,enum=org.signal.chat.purchase.PaymentProvider" json:"processor,omitempty"`
|
|
// The payment method associated with the subscription
|
|
PaymentMethod PaymentMethod `protobuf:"varint,10,opt,name=payment_method,json=paymentMethod,proto3,enum=org.signal.chat.purchase.PaymentMethod" json:"payment_method,omitempty"`
|
|
// Whether the latest charge for the subscription is in a non-terminal state
|
|
PaymentProcessing bool `protobuf:"varint,11,opt,name=payment_processing,json=paymentProcessing,proto3" json:"payment_processing,omitempty"`
|
|
// if present, contains information that may be interpreted to help the user fix a failure
|
|
ChargeFailure *ChargeFailure `protobuf:"bytes,12,opt,name=charge_failure,json=chargeFailure,proto3,oneof" json:"charge_failure,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) Reset() {
|
|
*x = GetSubscriptionInformationResponse_Subscription{}
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSubscriptionInformationResponse_Subscription) ProtoMessage() {}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) ProtoReflect() protoreflect.Message {
|
|
mi := &file_org_signal_chat_subscriptions_proto_msgTypes[32]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetSubscriptionInformationResponse_Subscription.ProtoReflect.Descriptor instead.
|
|
func (*GetSubscriptionInformationResponse_Subscription) Descriptor() ([]byte, []int) {
|
|
return file_org_signal_chat_subscriptions_proto_rawDescGZIP(), []int{19, 0}
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetLevel() uint64 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetBillingCycleAnchor() uint64 {
|
|
if x != nil && x.BillingCycleAnchor != nil {
|
|
return *x.BillingCycleAnchor
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetEndOfCurrentPeriod() uint64 {
|
|
if x != nil {
|
|
return x.EndOfCurrentPeriod
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetActive() bool {
|
|
if x != nil {
|
|
return x.Active
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetCancelAtPeriodEnd() bool {
|
|
if x != nil {
|
|
return x.CancelAtPeriodEnd
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetCurrency() string {
|
|
if x != nil {
|
|
return x.Currency
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetAmount() uint64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetStatus() SubscriptionStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return SubscriptionStatus_SUBSCRIPTION_STATUS_UNKNOWN
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetProcessor() PaymentProvider {
|
|
if x != nil {
|
|
return x.Processor
|
|
}
|
|
return PaymentProvider_PAYMENT_PROVIDER_UNKNOWN
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetPaymentMethod() PaymentMethod {
|
|
if x != nil {
|
|
return x.PaymentMethod
|
|
}
|
|
return PaymentMethod_PAYMENT_METHOD_UNKNOWN
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetPaymentProcessing() bool {
|
|
if x != nil {
|
|
return x.PaymentProcessing
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetSubscriptionInformationResponse_Subscription) GetChargeFailure() *ChargeFailure {
|
|
if x != nil {
|
|
return x.ChargeFailure
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_org_signal_chat_subscriptions_proto protoreflect.FileDescriptor
|
|
|
|
const file_org_signal_chat_subscriptions_proto_rawDesc = "" +
|
|
"\n" +
|
|
"#org/signal/chat/subscriptions.proto\x12\x18org.signal.chat.purchase\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1corg/signal/chat/common.proto\x1a\x1dorg/signal/chat/require.proto\x1a\x1corg/signal/chat/errors.proto\x1a\x19org/signal/chat/tag.proto\"n\n" +
|
|
"\x17UpdateSubscriberRequest\x12*\n" +
|
|
"\rsubscriber_id\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12'\n" +
|
|
"\x0fdonation_permit\x18\x02 \x01(\fR\x0edonationPermit\"\xd8\x02\n" +
|
|
"\x18UpdateSubscriberResponse\x122\n" +
|
|
"\asuccess\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\asuccess\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x02 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12n\n" +
|
|
"\x0fpermit_rejected\x18\x03 \x01(\v2..org.signal.chat.errors.FailedZkAuthenticationB\x13\xc2\xd5\"\x0fpermit_rejectedH\x00R\x0epermitRejectedB\n" +
|
|
"\n" +
|
|
"\bresponse\"D\n" +
|
|
"\x17DeleteSubscriberRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\"\xd7\x02\n" +
|
|
"\x18DeleteSubscriberResponse\x122\n" +
|
|
"\asuccess\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\asuccess\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8a\x01\n" +
|
|
"\x1acannot_cancel_subscription\x18\x03 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1e\xc2\xd5\"\x1acannot_cancel_subscriptionH\x00R\x18cannotCancelSubscriptionB\n" +
|
|
"\n" +
|
|
"\bresponse\"\xcd\x01\n" +
|
|
"\x1aCreatePaymentMethodRequest\x12*\n" +
|
|
"\rsubscriber_id\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12T\n" +
|
|
"\x0epayment_method\x18\x02 \x01(\x0e2'.org.signal.chat.purchase.PaymentMethodB\x04\x90\x97\"\x01R\rpaymentMethod\x12-\n" +
|
|
"\x0fdonation_permit\x18\x03 \x01(\fB\x04\x88\x97\"\x01R\x0edonationPermit\"\xb5\x06\n" +
|
|
"\x1bCreatePaymentMethodResponse\x12i\n" +
|
|
"\x06result\x18\x01 \x01(\v2O.org.signal.chat.purchase.CreatePaymentMethodResponse.CreatePaymentMethodResultH\x00R\x06result\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12\x99\x01\n" +
|
|
"\x1fsubscription_processor_conflict\x18\x04 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB#\xc2\xd5\"\x1fsubscription_processor_conflictH\x00R\x1dsubscriptionProcessorConflict\x12n\n" +
|
|
"\x0fpermit_rejected\x18\x05 \x01(\v2..org.signal.chat.errors.FailedZkAuthenticationB\x13\xc2\xd5\"\x0fpermit_rejectedH\x00R\x0epermitRejected\x1a\x94\x01\n" +
|
|
"\x19CreatePaymentMethodResult\x12\"\n" +
|
|
"\fclientSecret\x18\x01 \x01(\tR\fclientSecret\x12S\n" +
|
|
"\x0fpaymentProvider\x18\x02 \x01(\x0e2).org.signal.chat.purchase.PaymentProviderR\x0fpaymentProviderB\n" +
|
|
"\n" +
|
|
"\bresponse\"\x89\x01\n" +
|
|
" CreatePayPalPaymentMethodRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12\x1c\n" +
|
|
"\treturnUrl\x18\x02 \x01(\tR\treturnUrl\x12\x1c\n" +
|
|
"\tcancelUrl\x18\x03 \x01(\tR\tcancelUrl\"\x9b\x05\n" +
|
|
"!CreatePayPalPaymentMethodResponse\x12u\n" +
|
|
"\x06result\x18\x01 \x01(\v2[.org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.CreatePayPalPaymentMethodResultH\x00R\x06result\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12\x99\x01\n" +
|
|
"\x1fsubscription_processor_conflict\x18\x04 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB#\xc2\xd5\"\x1fsubscription_processor_conflictH\x00R\x1dsubscriptionProcessorConflict\x1aY\n" +
|
|
"\x1fCreatePayPalPaymentMethodResult\x12 \n" +
|
|
"\vapprovalUrl\x18\x01 \x01(\tR\vapprovalUrl\x12\x14\n" +
|
|
"\x05token\x18\x02 \x01(\tR\x05tokenB\n" +
|
|
"\n" +
|
|
"\bresponse\"\xef\x04\n" +
|
|
"\x1eSetDefaultPaymentMethodRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12f\n" +
|
|
"\x06stripe\x18\x02 \x01(\v2L.org.signal.chat.purchase.SetDefaultPaymentMethodRequest.StripePaymentMethodH\x00R\x06stripe\x12o\n" +
|
|
"\tbraintree\x18\x03 \x01(\v2O.org.signal.chat.purchase.SetDefaultPaymentMethodRequest.BraintreePaymentMethodH\x00R\tbraintree\x12`\n" +
|
|
"\x04sepa\x18\x04 \x01(\v2J.org.signal.chat.purchase.SetDefaultPaymentMethodRequest.SepaPaymentMethodH\x00R\x04sepa\x1aK\n" +
|
|
"\x13StripePaymentMethod\x124\n" +
|
|
"\x12paymentMethodToken\x18\x01 \x01(\tB\x04\x88\x97\"\x01R\x12paymentMethodToken\x1aN\n" +
|
|
"\x16BraintreePaymentMethod\x124\n" +
|
|
"\x12paymentMethodToken\x18\x01 \x01(\tB\x04\x88\x97\"\x01R\x12paymentMethodToken\x1a?\n" +
|
|
"\x11SepaPaymentMethod\x12*\n" +
|
|
"\rsetupIntentId\x18\x01 \x01(\tB\x04\x88\x97\"\x01R\rsetupIntentIdB\t\n" +
|
|
"\arequest\"\x83\x05\n" +
|
|
"\x1fSetDefaultPaymentMethodResponse\x122\n" +
|
|
"\asuccess\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\asuccess\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12\x85\x01\n" +
|
|
"\x19payment_method_not_set_up\x18\x04 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1d\xc2\xd5\"\x19payment_method_not_set_upH\x00R\x15paymentMethodNotSetUp\x12\x99\x01\n" +
|
|
"\x1fsubscription_processor_conflict\x18\x05 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB#\xc2\xd5\"\x1fsubscription_processor_conflictH\x00R\x1dsubscriptionProcessorConflictB\n" +
|
|
"\n" +
|
|
"\bresponse\"\xa2\x01\n" +
|
|
"\x1bSetSubscriptionLevelRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12\x14\n" +
|
|
"\x05level\x18\x02 \x01(\x04R\x05level\x12\x1a\n" +
|
|
"\bcurrency\x18\x03 \x01(\tR\bcurrency\x12&\n" +
|
|
"\x0eidempotencyKey\x18\x04 \x01(\tR\x0eidempotencyKey\"\xd4\x02\n" +
|
|
"\rChargeFailure\x12G\n" +
|
|
"\tprocessor\x18\x01 \x01(\x0e2).org.signal.chat.purchase.PaymentProviderR\tprocessor\x12\x12\n" +
|
|
"\x04code\x18\x02 \x01(\tR\x04code\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x129\n" +
|
|
"\x16outcome_network_status\x18\x04 \x01(\tH\x00R\x14outcomeNetworkStatus\x88\x01\x01\x12*\n" +
|
|
"\x0eoutcome_reason\x18\x05 \x01(\tH\x01R\routcomeReason\x88\x01\x01\x12&\n" +
|
|
"\foutcome_type\x18\x06 \x01(\tH\x02R\voutcomeType\x88\x01\x01B\x19\n" +
|
|
"\x17_outcome_network_statusB\x11\n" +
|
|
"\x0f_outcome_reasonB\x0f\n" +
|
|
"\r_outcome_type\"y\n" +
|
|
"\x0fPaymentRequired\x12S\n" +
|
|
"\x0echarge_failure\x18\x01 \x01(\v2'.org.signal.chat.purchase.ChargeFailureH\x00R\rchargeFailure\x88\x01\x01B\x11\n" +
|
|
"\x0f_charge_failure\"\xcf\f\n" +
|
|
"\x1cSetSubscriptionLevelResponse\x12m\n" +
|
|
"\asuccess\x18\x01 \x01(\v2Q.org.signal.chat.purchase.SetSubscriptionLevelResponse.SetSubscriptionLevelResultH\x00R\asuccess\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12\x99\x01\n" +
|
|
"\x1fsubscription_processor_conflict\x18\x04 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB#\xc2\xd5\"\x1fsubscription_processor_conflictH\x00R\x1dsubscriptionProcessorConflict\x12\x85\x01\n" +
|
|
"\x19payment_method_not_set_up\x18\x05 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1d\xc2\xd5\"\x19payment_method_not_set_upH\x00R\x15paymentMethodNotSetUp\x12|\n" +
|
|
"\x15unsupported_operation\x18\x06 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x19\xc2\xd5\"\x15unsupported_operationH\x00R\x14unsupportedOperation\x12p\n" +
|
|
"\x11unsupported_level\x18\a \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x15\xc2\xd5\"\x11unsupported_levelH\x00R\x10unsupportedLevel\x12y\n" +
|
|
"\x14unsupported_currency\x18\b \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x18\xc2\xd5\"\x14unsupported_currencyH\x00R\x13unsupportedCurrency\x12\x81\x01\n" +
|
|
"\x17payment_requires_action\x18\t \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1b\xc2\xd5\"\x17payment_requires_actionH\x00R\x15paymentRequiresAction\x12\x84\x01\n" +
|
|
"\x18invalid_level_transition\x18\n" +
|
|
" \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1c\xc2\xd5\"\x18invalid_level_transitionH\x00R\x16invalidLevelTransition\x12\x81\x01\n" +
|
|
"\x17invalid_idempotency_key\x18\v \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x1b\xc2\xd5\"\x17invalid_idempotency_keyH\x00R\x15invalidIdempotencyKey\x12d\n" +
|
|
"\x0echarge_failure\x18\f \x01(\v2'.org.signal.chat.purchase.ChargeFailureB\x12\xc2\xd5\"\x0echarge_failureH\x00R\rchargeFailure\x1a2\n" +
|
|
"\x1aSetSubscriptionLevelResult\x12\x14\n" +
|
|
"\x05level\x18\x01 \x01(\x04R\x05levelB\n" +
|
|
"\n" +
|
|
"\bresponse\"\xba\x03\n" +
|
|
"\x19SetIapSubscriptionRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12c\n" +
|
|
"\tapp_store\x18\x02 \x01(\v2D.org.signal.chat.purchase.SetIapSubscriptionRequest.AppStorePurchaseH\x00R\bappStore\x12l\n" +
|
|
"\fplay_billing\x18\x03 \x01(\v2G.org.signal.chat.purchase.SetIapSubscriptionRequest.PlayBillingPurchaseH\x00R\vplayBilling\x1aP\n" +
|
|
"\x10AppStorePurchase\x12<\n" +
|
|
"\x17original_transaction_id\x18\x01 \x01(\tB\x04\x88\x97\"\x01R\x15originalTransactionId\x1aB\n" +
|
|
"\x13PlayBillingPurchase\x12+\n" +
|
|
"\x0epurchase_token\x18\x01 \x01(\tB\x04\x88\x97\"\x01R\rpurchaseTokenB\t\n" +
|
|
"\arequest\"\xc6\x06\n" +
|
|
"\x1aSetIapSubscriptionResponse\x12i\n" +
|
|
"\asuccess\x18\x01 \x01(\v2M.org.signal.chat.purchase.SetIapSubscriptionResponse.SetIapSubscriptionResultH\x00R\asuccess\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12\x99\x01\n" +
|
|
"\x1fsubscription_processor_conflict\x18\x04 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB#\xc2\xd5\"\x1fsubscription_processor_conflictH\x00R\x1dsubscriptionProcessorConflict\x12m\n" +
|
|
"\x10payment_required\x18\x05 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x14\xc2\xd5\"\x10payment_requiredH\x00R\x0fpaymentRequired\x12v\n" +
|
|
"\x13invalid_transaction\x18\x06 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x17\xc2\xd5\"\x13invalid_transactionH\x00R\x12invalidTransaction\x1a0\n" +
|
|
"\x18SetIapSubscriptionResult\x12\x14\n" +
|
|
"\x05level\x18\x01 \x01(\x04R\x05levelB\n" +
|
|
"\n" +
|
|
"\bresponse\"\x8c\x01\n" +
|
|
"\x1cGetReceiptCredentialsRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\x12A\n" +
|
|
"\x18receiptCredentialRequest\x18\x02 \x01(\fB\x05\xa2\x97\"\x01aR\x18receiptCredentialRequest\"\xbf\x06\n" +
|
|
"\x1dGetReceiptCredentialsResponse\x12o\n" +
|
|
"\asuccess\x18\x01 \x01(\v2S.org.signal.chat.purchase.GetReceiptCredentialsResponse.GetReceiptCredentialsResultH\x00R\asuccess\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x02 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x03 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x12i\n" +
|
|
"\x0fno_paid_invoice\x18\x04 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x13\xc2\xd5\"\x0fno_paid_invoiceH\x00R\rnoPaidInvoice\x12l\n" +
|
|
"\x10payment_required\x18\x05 \x01(\v2).org.signal.chat.purchase.PaymentRequiredB\x14\xc2\xd5\"\x10payment_requiredH\x00R\x0fpaymentRequired\x12m\n" +
|
|
"\x10already_redeemed\x18\x06 \x01(\v2*.org.signal.chat.errors.FailedPreconditionB\x14\xc2\xd5\"\x10already_redeemedH\x00R\x0falreadyRedeemed\x1a[\n" +
|
|
"\x1bGetReceiptCredentialsResult\x12<\n" +
|
|
"\x19receiptCredentialResponse\x18\x01 \x01(\fR\x19receiptCredentialResponseB\n" +
|
|
"\n" +
|
|
"\bresponse\"N\n" +
|
|
"!GetSubscriptionInformationRequest\x12)\n" +
|
|
"\fsubscriberId\x18\x01 \x01(\fB\x05\xa2\x97\"\x01 R\fsubscriberId\"\xf5\b\n" +
|
|
"\"GetSubscriptionInformationResponse\x12e\n" +
|
|
"\asuccess\x18\x01 \x01(\v2I.org.signal.chat.purchase.GetSubscriptionInformationResponse.SubscriptionH\x00R\asuccess\x12A\n" +
|
|
"\x0fno_subscription\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x0enoSubscription\x12n\n" +
|
|
"\x14subscriber_not_found\x18\x03 \x01(\v2 .org.signal.chat.errors.NotFoundB\x18\xc2\xd5\"\x14subscriber_not_foundH\x00R\x12subscriberNotFound\x12\x8b\x01\n" +
|
|
"\x16subscriber_id_mismatch\x18\x04 \x01(\v27.org.signal.chat.errors.FailedUnidentifiedAuthorizationB\x1a\xc2\xd5\"\x16subscriber_id_mismatchH\x00R\x14subscriberIdMismatch\x1a\x9a\x05\n" +
|
|
"\fSubscription\x12\x14\n" +
|
|
"\x05level\x18\x01 \x01(\x04R\x05level\x125\n" +
|
|
"\x14billing_cycle_anchor\x18\x02 \x01(\x04H\x00R\x12billingCycleAnchor\x88\x01\x01\x121\n" +
|
|
"\x15end_of_current_period\x18\x03 \x01(\x04R\x12endOfCurrentPeriod\x12\x16\n" +
|
|
"\x06active\x18\x04 \x01(\bR\x06active\x12/\n" +
|
|
"\x14cancel_at_period_end\x18\x05 \x01(\bR\x11cancelAtPeriodEnd\x12\x1a\n" +
|
|
"\bcurrency\x18\x06 \x01(\tR\bcurrency\x12\x16\n" +
|
|
"\x06amount\x18\a \x01(\x04R\x06amount\x12D\n" +
|
|
"\x06status\x18\b \x01(\x0e2,.org.signal.chat.purchase.SubscriptionStatusR\x06status\x12G\n" +
|
|
"\tprocessor\x18\t \x01(\x0e2).org.signal.chat.purchase.PaymentProviderR\tprocessor\x12N\n" +
|
|
"\x0epayment_method\x18\n" +
|
|
" \x01(\x0e2'.org.signal.chat.purchase.PaymentMethodR\rpaymentMethod\x12-\n" +
|
|
"\x12payment_processing\x18\v \x01(\bR\x11paymentProcessing\x12S\n" +
|
|
"\x0echarge_failure\x18\f \x01(\v2'.org.signal.chat.purchase.ChargeFailureH\x01R\rchargeFailure\x88\x01\x01B\x17\n" +
|
|
"\x15_billing_cycle_anchorB\x11\n" +
|
|
"\x0f_charge_failureB\n" +
|
|
"\n" +
|
|
"\bresponse\"w\n" +
|
|
"\x15GetBankMandateRequest\x12^\n" +
|
|
"\x12bank_transfer_type\x18\x01 \x01(\x0e2*.org.signal.chat.purchase.BankTransferTypeB\x04\x90\x97\"\x01R\x10bankTransferType\"2\n" +
|
|
"\x16GetBankMandateResponse\x12\x18\n" +
|
|
"\amandate\x18\x01 \x01(\tR\amandate*\xbc\x01\n" +
|
|
"\x0fPaymentProvider\x12\x1c\n" +
|
|
"\x18PAYMENT_PROVIDER_UNKNOWN\x10\x00\x12\x1b\n" +
|
|
"\x17PAYMENT_PROVIDER_STRIPE\x10\x01\x12\x1e\n" +
|
|
"\x1aPAYMENT_PROVIDER_BRAINTREE\x10\x02\x12(\n" +
|
|
"$PAYMENT_PROVIDER_GOOGLE_PLAY_BILLING\x10\x03\x12$\n" +
|
|
" PAYMENT_PROVIDER_APPLE_APP_STORE\x10\x04*\xe4\x01\n" +
|
|
"\rPaymentMethod\x12\x1a\n" +
|
|
"\x16PAYMENT_METHOD_UNKNOWN\x10\x00\x12\x17\n" +
|
|
"\x13PAYMENT_METHOD_CARD\x10\x01\x12\x1d\n" +
|
|
"\x19PAYMENT_METHOD_SEPA_DEBIT\x10\x02\x12\x18\n" +
|
|
"\x14PAYMENT_METHOD_IDEAL\x10\x03\x12\x19\n" +
|
|
"\x15PAYMENT_METHOD_PAYPAL\x10\x04\x12&\n" +
|
|
"\"PAYMENT_METHOD_GOOGLE_PLAY_BILLING\x10\x05\x12\"\n" +
|
|
"\x1ePAYMENT_METHOD_APPLE_APP_STORE\x10\x06*\xdd\x01\n" +
|
|
"\x12SubscriptionStatus\x12\x1f\n" +
|
|
"\x1bSUBSCRIPTION_STATUS_UNKNOWN\x10\x00\x12\x1e\n" +
|
|
"\x1aSUBSCRIPTION_STATUS_ACTIVE\x10\x01\x12\"\n" +
|
|
"\x1eSUBSCRIPTION_STATUS_INCOMPLETE\x10\x02\x12 \n" +
|
|
"\x1cSUBSCRIPTION_STATUS_PAST_DUE\x10\x03\x12 \n" +
|
|
"\x1cSUBSCRIPTION_STATUS_CANCELED\x10\x04\x12\x1e\n" +
|
|
"\x1aSUBSCRIPTION_STATUS_UNPAID\x10\x05*U\n" +
|
|
"\x10BankTransferType\x12\x1e\n" +
|
|
"\x1aBANK_TRANSFER_TYPE_UNKNOWN\x10\x00\x12!\n" +
|
|
"\x1dBANK_TRANSFER_TYPE_SEPA_DEBIT\x10\x012\xf0\n" +
|
|
"\n" +
|
|
"\rSubscriptions\x12{\n" +
|
|
"\x10UpdateSubscriber\x121.org.signal.chat.purchase.UpdateSubscriberRequest\x1a2.org.signal.chat.purchase.UpdateSubscriberResponse\"\x00\x12{\n" +
|
|
"\x10DeleteSubscriber\x121.org.signal.chat.purchase.DeleteSubscriberRequest\x1a2.org.signal.chat.purchase.DeleteSubscriberResponse\"\x00\x12\x84\x01\n" +
|
|
"\x13CreatePaymentMethod\x124.org.signal.chat.purchase.CreatePaymentMethodRequest\x1a5.org.signal.chat.purchase.CreatePaymentMethodResponse\"\x00\x12\x96\x01\n" +
|
|
"\x19CreatePayPalPaymentMethod\x12:.org.signal.chat.purchase.CreatePayPalPaymentMethodRequest\x1a;.org.signal.chat.purchase.CreatePayPalPaymentMethodResponse\"\x00\x12\x90\x01\n" +
|
|
"\x17SetDefaultPaymentMethod\x128.org.signal.chat.purchase.SetDefaultPaymentMethodRequest\x1a9.org.signal.chat.purchase.SetDefaultPaymentMethodResponse\"\x00\x12\x87\x01\n" +
|
|
"\x14SetSubscriptionLevel\x125.org.signal.chat.purchase.SetSubscriptionLevelRequest\x1a6.org.signal.chat.purchase.SetSubscriptionLevelResponse\"\x00\x12\x99\x01\n" +
|
|
"\x1aGetSubscriptionInformation\x12;.org.signal.chat.purchase.GetSubscriptionInformationRequest\x1a<.org.signal.chat.purchase.GetSubscriptionInformationResponse\"\x00\x12\x8a\x01\n" +
|
|
"\x15GetReceiptCredentials\x126.org.signal.chat.purchase.GetReceiptCredentialsRequest\x1a7.org.signal.chat.purchase.GetReceiptCredentialsResponse\"\x00\x12\x81\x01\n" +
|
|
"\x12SetIapSubscription\x123.org.signal.chat.purchase.SetIapSubscriptionRequest\x1a4.org.signal.chat.purchase.SetIapSubscriptionResponse\"\x00\x12u\n" +
|
|
"\x0eGetBankMandate\x12/.org.signal.chat.purchase.GetBankMandateRequest\x1a0.org.signal.chat.purchase.GetBankMandateResponse\"\x00\x1a\x04\xc8\xd5\"\x02B\x02P\x01b\x06proto3"
|
|
|
|
var (
|
|
file_org_signal_chat_subscriptions_proto_rawDescOnce sync.Once
|
|
file_org_signal_chat_subscriptions_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_org_signal_chat_subscriptions_proto_rawDescGZIP() []byte {
|
|
file_org_signal_chat_subscriptions_proto_rawDescOnce.Do(func() {
|
|
file_org_signal_chat_subscriptions_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_org_signal_chat_subscriptions_proto_rawDesc), len(file_org_signal_chat_subscriptions_proto_rawDesc)))
|
|
})
|
|
return file_org_signal_chat_subscriptions_proto_rawDescData
|
|
}
|
|
|
|
var file_org_signal_chat_subscriptions_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
var file_org_signal_chat_subscriptions_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
|
|
var file_org_signal_chat_subscriptions_proto_goTypes = []any{
|
|
(PaymentProvider)(0), // 0: org.signal.chat.purchase.PaymentProvider
|
|
(PaymentMethod)(0), // 1: org.signal.chat.purchase.PaymentMethod
|
|
(SubscriptionStatus)(0), // 2: org.signal.chat.purchase.SubscriptionStatus
|
|
(BankTransferType)(0), // 3: org.signal.chat.purchase.BankTransferType
|
|
(*UpdateSubscriberRequest)(nil), // 4: org.signal.chat.purchase.UpdateSubscriberRequest
|
|
(*UpdateSubscriberResponse)(nil), // 5: org.signal.chat.purchase.UpdateSubscriberResponse
|
|
(*DeleteSubscriberRequest)(nil), // 6: org.signal.chat.purchase.DeleteSubscriberRequest
|
|
(*DeleteSubscriberResponse)(nil), // 7: org.signal.chat.purchase.DeleteSubscriberResponse
|
|
(*CreatePaymentMethodRequest)(nil), // 8: org.signal.chat.purchase.CreatePaymentMethodRequest
|
|
(*CreatePaymentMethodResponse)(nil), // 9: org.signal.chat.purchase.CreatePaymentMethodResponse
|
|
(*CreatePayPalPaymentMethodRequest)(nil), // 10: org.signal.chat.purchase.CreatePayPalPaymentMethodRequest
|
|
(*CreatePayPalPaymentMethodResponse)(nil), // 11: org.signal.chat.purchase.CreatePayPalPaymentMethodResponse
|
|
(*SetDefaultPaymentMethodRequest)(nil), // 12: org.signal.chat.purchase.SetDefaultPaymentMethodRequest
|
|
(*SetDefaultPaymentMethodResponse)(nil), // 13: org.signal.chat.purchase.SetDefaultPaymentMethodResponse
|
|
(*SetSubscriptionLevelRequest)(nil), // 14: org.signal.chat.purchase.SetSubscriptionLevelRequest
|
|
(*ChargeFailure)(nil), // 15: org.signal.chat.purchase.ChargeFailure
|
|
(*PaymentRequired)(nil), // 16: org.signal.chat.purchase.PaymentRequired
|
|
(*SetSubscriptionLevelResponse)(nil), // 17: org.signal.chat.purchase.SetSubscriptionLevelResponse
|
|
(*SetIapSubscriptionRequest)(nil), // 18: org.signal.chat.purchase.SetIapSubscriptionRequest
|
|
(*SetIapSubscriptionResponse)(nil), // 19: org.signal.chat.purchase.SetIapSubscriptionResponse
|
|
(*GetReceiptCredentialsRequest)(nil), // 20: org.signal.chat.purchase.GetReceiptCredentialsRequest
|
|
(*GetReceiptCredentialsResponse)(nil), // 21: org.signal.chat.purchase.GetReceiptCredentialsResponse
|
|
(*GetSubscriptionInformationRequest)(nil), // 22: org.signal.chat.purchase.GetSubscriptionInformationRequest
|
|
(*GetSubscriptionInformationResponse)(nil), // 23: org.signal.chat.purchase.GetSubscriptionInformationResponse
|
|
(*GetBankMandateRequest)(nil), // 24: org.signal.chat.purchase.GetBankMandateRequest
|
|
(*GetBankMandateResponse)(nil), // 25: org.signal.chat.purchase.GetBankMandateResponse
|
|
(*CreatePaymentMethodResponse_CreatePaymentMethodResult)(nil), // 26: org.signal.chat.purchase.CreatePaymentMethodResponse.CreatePaymentMethodResult
|
|
(*CreatePayPalPaymentMethodResponse_CreatePayPalPaymentMethodResult)(nil), // 27: org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.CreatePayPalPaymentMethodResult
|
|
(*SetDefaultPaymentMethodRequest_StripePaymentMethod)(nil), // 28: org.signal.chat.purchase.SetDefaultPaymentMethodRequest.StripePaymentMethod
|
|
(*SetDefaultPaymentMethodRequest_BraintreePaymentMethod)(nil), // 29: org.signal.chat.purchase.SetDefaultPaymentMethodRequest.BraintreePaymentMethod
|
|
(*SetDefaultPaymentMethodRequest_SepaPaymentMethod)(nil), // 30: org.signal.chat.purchase.SetDefaultPaymentMethodRequest.SepaPaymentMethod
|
|
(*SetSubscriptionLevelResponse_SetSubscriptionLevelResult)(nil), // 31: org.signal.chat.purchase.SetSubscriptionLevelResponse.SetSubscriptionLevelResult
|
|
(*SetIapSubscriptionRequest_AppStorePurchase)(nil), // 32: org.signal.chat.purchase.SetIapSubscriptionRequest.AppStorePurchase
|
|
(*SetIapSubscriptionRequest_PlayBillingPurchase)(nil), // 33: org.signal.chat.purchase.SetIapSubscriptionRequest.PlayBillingPurchase
|
|
(*SetIapSubscriptionResponse_SetIapSubscriptionResult)(nil), // 34: org.signal.chat.purchase.SetIapSubscriptionResponse.SetIapSubscriptionResult
|
|
(*GetReceiptCredentialsResponse_GetReceiptCredentialsResult)(nil), // 35: org.signal.chat.purchase.GetReceiptCredentialsResponse.GetReceiptCredentialsResult
|
|
(*GetSubscriptionInformationResponse_Subscription)(nil), // 36: org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription
|
|
(*emptypb.Empty)(nil), // 37: google.protobuf.Empty
|
|
(*errors.FailedUnidentifiedAuthorization)(nil), // 38: org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
(*errors.FailedZkAuthentication)(nil), // 39: org.signal.chat.errors.FailedZkAuthentication
|
|
(*errors.NotFound)(nil), // 40: org.signal.chat.errors.NotFound
|
|
(*errors.FailedPrecondition)(nil), // 41: org.signal.chat.errors.FailedPrecondition
|
|
}
|
|
var file_org_signal_chat_subscriptions_proto_depIdxs = []int32{
|
|
37, // 0: org.signal.chat.purchase.UpdateSubscriberResponse.success:type_name -> google.protobuf.Empty
|
|
38, // 1: org.signal.chat.purchase.UpdateSubscriberResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
39, // 2: org.signal.chat.purchase.UpdateSubscriberResponse.permit_rejected:type_name -> org.signal.chat.errors.FailedZkAuthentication
|
|
37, // 3: org.signal.chat.purchase.DeleteSubscriberResponse.success:type_name -> google.protobuf.Empty
|
|
40, // 4: org.signal.chat.purchase.DeleteSubscriberResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
41, // 5: org.signal.chat.purchase.DeleteSubscriberResponse.cannot_cancel_subscription:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
1, // 6: org.signal.chat.purchase.CreatePaymentMethodRequest.payment_method:type_name -> org.signal.chat.purchase.PaymentMethod
|
|
26, // 7: org.signal.chat.purchase.CreatePaymentMethodResponse.result:type_name -> org.signal.chat.purchase.CreatePaymentMethodResponse.CreatePaymentMethodResult
|
|
40, // 8: org.signal.chat.purchase.CreatePaymentMethodResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 9: org.signal.chat.purchase.CreatePaymentMethodResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
41, // 10: org.signal.chat.purchase.CreatePaymentMethodResponse.subscription_processor_conflict:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
39, // 11: org.signal.chat.purchase.CreatePaymentMethodResponse.permit_rejected:type_name -> org.signal.chat.errors.FailedZkAuthentication
|
|
27, // 12: org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.result:type_name -> org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.CreatePayPalPaymentMethodResult
|
|
40, // 13: org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 14: org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
41, // 15: org.signal.chat.purchase.CreatePayPalPaymentMethodResponse.subscription_processor_conflict:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
28, // 16: org.signal.chat.purchase.SetDefaultPaymentMethodRequest.stripe:type_name -> org.signal.chat.purchase.SetDefaultPaymentMethodRequest.StripePaymentMethod
|
|
29, // 17: org.signal.chat.purchase.SetDefaultPaymentMethodRequest.braintree:type_name -> org.signal.chat.purchase.SetDefaultPaymentMethodRequest.BraintreePaymentMethod
|
|
30, // 18: org.signal.chat.purchase.SetDefaultPaymentMethodRequest.sepa:type_name -> org.signal.chat.purchase.SetDefaultPaymentMethodRequest.SepaPaymentMethod
|
|
37, // 19: org.signal.chat.purchase.SetDefaultPaymentMethodResponse.success:type_name -> google.protobuf.Empty
|
|
40, // 20: org.signal.chat.purchase.SetDefaultPaymentMethodResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 21: org.signal.chat.purchase.SetDefaultPaymentMethodResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
41, // 22: org.signal.chat.purchase.SetDefaultPaymentMethodResponse.payment_method_not_set_up:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 23: org.signal.chat.purchase.SetDefaultPaymentMethodResponse.subscription_processor_conflict:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
0, // 24: org.signal.chat.purchase.ChargeFailure.processor:type_name -> org.signal.chat.purchase.PaymentProvider
|
|
15, // 25: org.signal.chat.purchase.PaymentRequired.charge_failure:type_name -> org.signal.chat.purchase.ChargeFailure
|
|
31, // 26: org.signal.chat.purchase.SetSubscriptionLevelResponse.success:type_name -> org.signal.chat.purchase.SetSubscriptionLevelResponse.SetSubscriptionLevelResult
|
|
40, // 27: org.signal.chat.purchase.SetSubscriptionLevelResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 28: org.signal.chat.purchase.SetSubscriptionLevelResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
41, // 29: org.signal.chat.purchase.SetSubscriptionLevelResponse.subscription_processor_conflict:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 30: org.signal.chat.purchase.SetSubscriptionLevelResponse.payment_method_not_set_up:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 31: org.signal.chat.purchase.SetSubscriptionLevelResponse.unsupported_operation:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 32: org.signal.chat.purchase.SetSubscriptionLevelResponse.unsupported_level:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 33: org.signal.chat.purchase.SetSubscriptionLevelResponse.unsupported_currency:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 34: org.signal.chat.purchase.SetSubscriptionLevelResponse.payment_requires_action:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 35: org.signal.chat.purchase.SetSubscriptionLevelResponse.invalid_level_transition:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 36: org.signal.chat.purchase.SetSubscriptionLevelResponse.invalid_idempotency_key:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
15, // 37: org.signal.chat.purchase.SetSubscriptionLevelResponse.charge_failure:type_name -> org.signal.chat.purchase.ChargeFailure
|
|
32, // 38: org.signal.chat.purchase.SetIapSubscriptionRequest.app_store:type_name -> org.signal.chat.purchase.SetIapSubscriptionRequest.AppStorePurchase
|
|
33, // 39: org.signal.chat.purchase.SetIapSubscriptionRequest.play_billing:type_name -> org.signal.chat.purchase.SetIapSubscriptionRequest.PlayBillingPurchase
|
|
34, // 40: org.signal.chat.purchase.SetIapSubscriptionResponse.success:type_name -> org.signal.chat.purchase.SetIapSubscriptionResponse.SetIapSubscriptionResult
|
|
40, // 41: org.signal.chat.purchase.SetIapSubscriptionResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 42: org.signal.chat.purchase.SetIapSubscriptionResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
41, // 43: org.signal.chat.purchase.SetIapSubscriptionResponse.subscription_processor_conflict:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 44: org.signal.chat.purchase.SetIapSubscriptionResponse.payment_required:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
41, // 45: org.signal.chat.purchase.SetIapSubscriptionResponse.invalid_transaction:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
35, // 46: org.signal.chat.purchase.GetReceiptCredentialsResponse.success:type_name -> org.signal.chat.purchase.GetReceiptCredentialsResponse.GetReceiptCredentialsResult
|
|
40, // 47: org.signal.chat.purchase.GetReceiptCredentialsResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 48: org.signal.chat.purchase.GetReceiptCredentialsResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
41, // 49: org.signal.chat.purchase.GetReceiptCredentialsResponse.no_paid_invoice:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
16, // 50: org.signal.chat.purchase.GetReceiptCredentialsResponse.payment_required:type_name -> org.signal.chat.purchase.PaymentRequired
|
|
41, // 51: org.signal.chat.purchase.GetReceiptCredentialsResponse.already_redeemed:type_name -> org.signal.chat.errors.FailedPrecondition
|
|
36, // 52: org.signal.chat.purchase.GetSubscriptionInformationResponse.success:type_name -> org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription
|
|
37, // 53: org.signal.chat.purchase.GetSubscriptionInformationResponse.no_subscription:type_name -> google.protobuf.Empty
|
|
40, // 54: org.signal.chat.purchase.GetSubscriptionInformationResponse.subscriber_not_found:type_name -> org.signal.chat.errors.NotFound
|
|
38, // 55: org.signal.chat.purchase.GetSubscriptionInformationResponse.subscriber_id_mismatch:type_name -> org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
3, // 56: org.signal.chat.purchase.GetBankMandateRequest.bank_transfer_type:type_name -> org.signal.chat.purchase.BankTransferType
|
|
0, // 57: org.signal.chat.purchase.CreatePaymentMethodResponse.CreatePaymentMethodResult.paymentProvider:type_name -> org.signal.chat.purchase.PaymentProvider
|
|
2, // 58: org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription.status:type_name -> org.signal.chat.purchase.SubscriptionStatus
|
|
0, // 59: org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription.processor:type_name -> org.signal.chat.purchase.PaymentProvider
|
|
1, // 60: org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription.payment_method:type_name -> org.signal.chat.purchase.PaymentMethod
|
|
15, // 61: org.signal.chat.purchase.GetSubscriptionInformationResponse.Subscription.charge_failure:type_name -> org.signal.chat.purchase.ChargeFailure
|
|
4, // 62: org.signal.chat.purchase.Subscriptions.UpdateSubscriber:input_type -> org.signal.chat.purchase.UpdateSubscriberRequest
|
|
6, // 63: org.signal.chat.purchase.Subscriptions.DeleteSubscriber:input_type -> org.signal.chat.purchase.DeleteSubscriberRequest
|
|
8, // 64: org.signal.chat.purchase.Subscriptions.CreatePaymentMethod:input_type -> org.signal.chat.purchase.CreatePaymentMethodRequest
|
|
10, // 65: org.signal.chat.purchase.Subscriptions.CreatePayPalPaymentMethod:input_type -> org.signal.chat.purchase.CreatePayPalPaymentMethodRequest
|
|
12, // 66: org.signal.chat.purchase.Subscriptions.SetDefaultPaymentMethod:input_type -> org.signal.chat.purchase.SetDefaultPaymentMethodRequest
|
|
14, // 67: org.signal.chat.purchase.Subscriptions.SetSubscriptionLevel:input_type -> org.signal.chat.purchase.SetSubscriptionLevelRequest
|
|
22, // 68: org.signal.chat.purchase.Subscriptions.GetSubscriptionInformation:input_type -> org.signal.chat.purchase.GetSubscriptionInformationRequest
|
|
20, // 69: org.signal.chat.purchase.Subscriptions.GetReceiptCredentials:input_type -> org.signal.chat.purchase.GetReceiptCredentialsRequest
|
|
18, // 70: org.signal.chat.purchase.Subscriptions.SetIapSubscription:input_type -> org.signal.chat.purchase.SetIapSubscriptionRequest
|
|
24, // 71: org.signal.chat.purchase.Subscriptions.GetBankMandate:input_type -> org.signal.chat.purchase.GetBankMandateRequest
|
|
5, // 72: org.signal.chat.purchase.Subscriptions.UpdateSubscriber:output_type -> org.signal.chat.purchase.UpdateSubscriberResponse
|
|
7, // 73: org.signal.chat.purchase.Subscriptions.DeleteSubscriber:output_type -> org.signal.chat.purchase.DeleteSubscriberResponse
|
|
9, // 74: org.signal.chat.purchase.Subscriptions.CreatePaymentMethod:output_type -> org.signal.chat.purchase.CreatePaymentMethodResponse
|
|
11, // 75: org.signal.chat.purchase.Subscriptions.CreatePayPalPaymentMethod:output_type -> org.signal.chat.purchase.CreatePayPalPaymentMethodResponse
|
|
13, // 76: org.signal.chat.purchase.Subscriptions.SetDefaultPaymentMethod:output_type -> org.signal.chat.purchase.SetDefaultPaymentMethodResponse
|
|
17, // 77: org.signal.chat.purchase.Subscriptions.SetSubscriptionLevel:output_type -> org.signal.chat.purchase.SetSubscriptionLevelResponse
|
|
23, // 78: org.signal.chat.purchase.Subscriptions.GetSubscriptionInformation:output_type -> org.signal.chat.purchase.GetSubscriptionInformationResponse
|
|
21, // 79: org.signal.chat.purchase.Subscriptions.GetReceiptCredentials:output_type -> org.signal.chat.purchase.GetReceiptCredentialsResponse
|
|
19, // 80: org.signal.chat.purchase.Subscriptions.SetIapSubscription:output_type -> org.signal.chat.purchase.SetIapSubscriptionResponse
|
|
25, // 81: org.signal.chat.purchase.Subscriptions.GetBankMandate:output_type -> org.signal.chat.purchase.GetBankMandateResponse
|
|
72, // [72:82] is the sub-list for method output_type
|
|
62, // [62:72] is the sub-list for method input_type
|
|
62, // [62:62] is the sub-list for extension type_name
|
|
62, // [62:62] is the sub-list for extension extendee
|
|
0, // [0:62] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_org_signal_chat_subscriptions_proto_init() }
|
|
func file_org_signal_chat_subscriptions_proto_init() {
|
|
if File_org_signal_chat_subscriptions_proto != nil {
|
|
return
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[1].OneofWrappers = []any{
|
|
(*UpdateSubscriberResponse_Success)(nil),
|
|
(*UpdateSubscriberResponse_SubscriberIdMismatch)(nil),
|
|
(*UpdateSubscriberResponse_PermitRejected)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[3].OneofWrappers = []any{
|
|
(*DeleteSubscriberResponse_Success)(nil),
|
|
(*DeleteSubscriberResponse_SubscriberNotFound)(nil),
|
|
(*DeleteSubscriberResponse_CannotCancelSubscription)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[5].OneofWrappers = []any{
|
|
(*CreatePaymentMethodResponse_Result)(nil),
|
|
(*CreatePaymentMethodResponse_SubscriberNotFound)(nil),
|
|
(*CreatePaymentMethodResponse_SubscriberIdMismatch)(nil),
|
|
(*CreatePaymentMethodResponse_SubscriptionProcessorConflict)(nil),
|
|
(*CreatePaymentMethodResponse_PermitRejected)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[7].OneofWrappers = []any{
|
|
(*CreatePayPalPaymentMethodResponse_Result)(nil),
|
|
(*CreatePayPalPaymentMethodResponse_SubscriberNotFound)(nil),
|
|
(*CreatePayPalPaymentMethodResponse_SubscriberIdMismatch)(nil),
|
|
(*CreatePayPalPaymentMethodResponse_SubscriptionProcessorConflict)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[8].OneofWrappers = []any{
|
|
(*SetDefaultPaymentMethodRequest_Stripe)(nil),
|
|
(*SetDefaultPaymentMethodRequest_Braintree)(nil),
|
|
(*SetDefaultPaymentMethodRequest_Sepa)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[9].OneofWrappers = []any{
|
|
(*SetDefaultPaymentMethodResponse_Success)(nil),
|
|
(*SetDefaultPaymentMethodResponse_SubscriberNotFound)(nil),
|
|
(*SetDefaultPaymentMethodResponse_SubscriberIdMismatch)(nil),
|
|
(*SetDefaultPaymentMethodResponse_PaymentMethodNotSetUp)(nil),
|
|
(*SetDefaultPaymentMethodResponse_SubscriptionProcessorConflict)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[11].OneofWrappers = []any{}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[12].OneofWrappers = []any{}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[13].OneofWrappers = []any{
|
|
(*SetSubscriptionLevelResponse_Success)(nil),
|
|
(*SetSubscriptionLevelResponse_SubscriberNotFound)(nil),
|
|
(*SetSubscriptionLevelResponse_SubscriberIdMismatch)(nil),
|
|
(*SetSubscriptionLevelResponse_SubscriptionProcessorConflict)(nil),
|
|
(*SetSubscriptionLevelResponse_PaymentMethodNotSetUp)(nil),
|
|
(*SetSubscriptionLevelResponse_UnsupportedOperation)(nil),
|
|
(*SetSubscriptionLevelResponse_UnsupportedLevel)(nil),
|
|
(*SetSubscriptionLevelResponse_UnsupportedCurrency)(nil),
|
|
(*SetSubscriptionLevelResponse_PaymentRequiresAction)(nil),
|
|
(*SetSubscriptionLevelResponse_InvalidLevelTransition)(nil),
|
|
(*SetSubscriptionLevelResponse_InvalidIdempotencyKey)(nil),
|
|
(*SetSubscriptionLevelResponse_ChargeFailure)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[14].OneofWrappers = []any{
|
|
(*SetIapSubscriptionRequest_AppStore)(nil),
|
|
(*SetIapSubscriptionRequest_PlayBilling)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[15].OneofWrappers = []any{
|
|
(*SetIapSubscriptionResponse_Success)(nil),
|
|
(*SetIapSubscriptionResponse_SubscriberNotFound)(nil),
|
|
(*SetIapSubscriptionResponse_SubscriberIdMismatch)(nil),
|
|
(*SetIapSubscriptionResponse_SubscriptionProcessorConflict)(nil),
|
|
(*SetIapSubscriptionResponse_PaymentRequired)(nil),
|
|
(*SetIapSubscriptionResponse_InvalidTransaction)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[17].OneofWrappers = []any{
|
|
(*GetReceiptCredentialsResponse_Success)(nil),
|
|
(*GetReceiptCredentialsResponse_SubscriberNotFound)(nil),
|
|
(*GetReceiptCredentialsResponse_SubscriberIdMismatch)(nil),
|
|
(*GetReceiptCredentialsResponse_NoPaidInvoice)(nil),
|
|
(*GetReceiptCredentialsResponse_PaymentRequired)(nil),
|
|
(*GetReceiptCredentialsResponse_AlreadyRedeemed)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[19].OneofWrappers = []any{
|
|
(*GetSubscriptionInformationResponse_Success)(nil),
|
|
(*GetSubscriptionInformationResponse_NoSubscription)(nil),
|
|
(*GetSubscriptionInformationResponse_SubscriberNotFound)(nil),
|
|
(*GetSubscriptionInformationResponse_SubscriberIdMismatch)(nil),
|
|
}
|
|
file_org_signal_chat_subscriptions_proto_msgTypes[32].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_org_signal_chat_subscriptions_proto_rawDesc), len(file_org_signal_chat_subscriptions_proto_rawDesc)),
|
|
NumEnums: 4,
|
|
NumMessages: 33,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_org_signal_chat_subscriptions_proto_goTypes,
|
|
DependencyIndexes: file_org_signal_chat_subscriptions_proto_depIdxs,
|
|
EnumInfos: file_org_signal_chat_subscriptions_proto_enumTypes,
|
|
MessageInfos: file_org_signal_chat_subscriptions_proto_msgTypes,
|
|
}.Build()
|
|
File_org_signal_chat_subscriptions_proto = out.File
|
|
file_org_signal_chat_subscriptions_proto_goTypes = nil
|
|
file_org_signal_chat_subscriptions_proto_depIdxs = nil
|
|
}
|