ration/pkg/pb/cardissuance/card_issuance.pb.go
caelum0x c3236f0bca feat(card-issuance,gateway,cli): add CloseCard — issued cards could never be shut off
CARD_STATUS_SUSPENDED/CLOSED have existed in common.proto since the
original build, and the Airwallex client package even defined
CardStatusSuspended/CardStatusClosed constants, but nothing in this
repo ever transitioned a stored card into either state: card-issuance's
airwallex.Client interface only exposed IssueCard/GetCard/
SetCardControls (limit/controls only, never status), so a leaked
credential, an offboarded cardholder's card, or any card that should
stop spending forever had no real operator path to close — only
"adjust-limit" to a smaller (but still nonzero-possible, still active)
limit.

Adds card_issuance.proto/gateway.proto's CloseCard RPC, a real
airwallex.Client.CloseCard on both Mock and Live (POST
/api/v1/issuing/cards/{id}/close), cardsvc.Service.CloseCard (releases
the card's full remaining ledger HOLD back to the tenant's available
balance, idempotent on an already-closed card), the gateway fan-out,
and `ration card close --card <id>`. AdjustCardLimit now rejects a
closed card instead of silently reopening a zombie hold.

tenantauth/ratelimit needed zero changes: both resolve card_id via
reflection, so CloseCardRequest's card_id field is automatically
tenant-scoped and rate-limited the same way GetCard/AdjustCardLimit
already are.

Verified live against the real bare-metal 7-service stack
(scripts/run-demo.sh): issued a real card (Held 1,000.00 USD), closed
it (status CLOSED, Held back to 0.00, Available back to 7,500.00),
re-closed it (idempotent — Available unchanged, no double-release),
confirmed adjust-limit on the closed card is rejected, and confirmed
closing an unknown card_id surfaces the same NotFound-wrapped error
GetCard/AdjustCardLimit already do. verify-chain: intact (5 records).
`go build`/`go vet` clean across every Go module (gateway,
card-issuance, cli, tui, auth, tenant-registry, webhook-ingestion,
agent, audit-log, sdk/go/ration), full `make build` (Rust+Go+SDK)
clean, 0 regressions.
2026-10-29 11:35:23 +03:00

684 lines
22 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc v6.33.4
// source: card_issuance.proto
package cardissuance
import (
common "github.com/caelum0x/ration/pkg/pb/common"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 Card struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
AirwallexCardId string `protobuf:"bytes,3,opt,name=airwallex_card_id,json=airwallexCardId,proto3" json:"airwallex_card_id,omitempty"`
CardholderName string `protobuf:"bytes,4,opt,name=cardholder_name,json=cardholderName,proto3" json:"cardholder_name,omitempty"`
Status common.CardStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ration.common.v1.CardStatus" json:"status,omitempty"`
LimitMinorUnits int64 `protobuf:"varint,6,opt,name=limit_minor_units,json=limitMinorUnits,proto3" json:"limit_minor_units,omitempty"`
LimitInterval string `protobuf:"bytes,7,opt,name=limit_interval,json=limitInterval,proto3" json:"limit_interval,omitempty"` // "daily" | "monthly"
Currency string `protobuf:"bytes,8,opt,name=currency,proto3" json:"currency,omitempty"`
CreatedAtUnix int64 `protobuf:"varint,9,opt,name=created_at_unix,json=createdAtUnix,proto3" json:"created_at_unix,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Card) Reset() {
*x = Card{}
mi := &file_card_issuance_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Card) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Card) ProtoMessage() {}
func (x *Card) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 Card.ProtoReflect.Descriptor instead.
func (*Card) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{0}
}
func (x *Card) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Card) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *Card) GetAirwallexCardId() string {
if x != nil {
return x.AirwallexCardId
}
return ""
}
func (x *Card) GetCardholderName() string {
if x != nil {
return x.CardholderName
}
return ""
}
func (x *Card) GetStatus() common.CardStatus {
if x != nil {
return x.Status
}
return common.CardStatus(0)
}
func (x *Card) GetLimitMinorUnits() int64 {
if x != nil {
return x.LimitMinorUnits
}
return 0
}
func (x *Card) GetLimitInterval() string {
if x != nil {
return x.LimitInterval
}
return ""
}
func (x *Card) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *Card) GetCreatedAtUnix() int64 {
if x != nil {
return x.CreatedAtUnix
}
return 0
}
type IssueCardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
CardholderName string `protobuf:"bytes,2,opt,name=cardholder_name,json=cardholderName,proto3" json:"cardholder_name,omitempty"`
LimitMinorUnits int64 `protobuf:"varint,3,opt,name=limit_minor_units,json=limitMinorUnits,proto3" json:"limit_minor_units,omitempty"`
LimitInterval string `protobuf:"bytes,4,opt,name=limit_interval,json=limitInterval,proto3" json:"limit_interval,omitempty"`
Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IssueCardRequest) Reset() {
*x = IssueCardRequest{}
mi := &file_card_issuance_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IssueCardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IssueCardRequest) ProtoMessage() {}
func (x *IssueCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 IssueCardRequest.ProtoReflect.Descriptor instead.
func (*IssueCardRequest) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{1}
}
func (x *IssueCardRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *IssueCardRequest) GetCardholderName() string {
if x != nil {
return x.CardholderName
}
return ""
}
func (x *IssueCardRequest) GetLimitMinorUnits() int64 {
if x != nil {
return x.LimitMinorUnits
}
return 0
}
func (x *IssueCardRequest) GetLimitInterval() string {
if x != nil {
return x.LimitInterval
}
return ""
}
func (x *IssueCardRequest) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
type AdjustCardLimitRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
NewLimitMinorUnits int64 `protobuf:"varint,2,opt,name=new_limit_minor_units,json=newLimitMinorUnits,proto3" json:"new_limit_minor_units,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdjustCardLimitRequest) Reset() {
*x = AdjustCardLimitRequest{}
mi := &file_card_issuance_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdjustCardLimitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdjustCardLimitRequest) ProtoMessage() {}
func (x *AdjustCardLimitRequest) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 AdjustCardLimitRequest.ProtoReflect.Descriptor instead.
func (*AdjustCardLimitRequest) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{2}
}
func (x *AdjustCardLimitRequest) GetCardId() string {
if x != nil {
return x.CardId
}
return ""
}
func (x *AdjustCardLimitRequest) GetNewLimitMinorUnits() int64 {
if x != nil {
return x.NewLimitMinorUnits
}
return 0
}
func (x *AdjustCardLimitRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
type GetCardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetCardRequest) Reset() {
*x = GetCardRequest{}
mi := &file_card_issuance_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetCardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCardRequest) ProtoMessage() {}
func (x *GetCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 GetCardRequest.ProtoReflect.Descriptor instead.
func (*GetCardRequest) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{3}
}
func (x *GetCardRequest) GetCardId() string {
if x != nil {
return x.CardId
}
return ""
}
type CloseCardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CloseCardRequest) Reset() {
*x = CloseCardRequest{}
mi := &file_card_issuance_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CloseCardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CloseCardRequest) ProtoMessage() {}
func (x *CloseCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 CloseCardRequest.ProtoReflect.Descriptor instead.
func (*CloseCardRequest) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{4}
}
func (x *CloseCardRequest) GetCardId() string {
if x != nil {
return x.CardId
}
return ""
}
type ListCardsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListCardsRequest) Reset() {
*x = ListCardsRequest{}
mi := &file_card_issuance_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListCardsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCardsRequest) ProtoMessage() {}
func (x *ListCardsRequest) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 ListCardsRequest.ProtoReflect.Descriptor instead.
func (*ListCardsRequest) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{5}
}
func (x *ListCardsRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
type ListCardsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cards []*Card `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListCardsResponse) Reset() {
*x = ListCardsResponse{}
mi := &file_card_issuance_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListCardsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCardsResponse) ProtoMessage() {}
func (x *ListCardsResponse) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 ListCardsResponse.ProtoReflect.Descriptor instead.
func (*ListCardsResponse) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{6}
}
func (x *ListCardsResponse) GetCards() []*Card {
if x != nil {
return x.Cards
}
return nil
}
type RationBridgeFundingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
RequestedMinorUnits int64 `protobuf:"varint,2,opt,name=requested_minor_units,json=requestedMinorUnits,proto3" json:"requested_minor_units,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RationBridgeFundingRequest) Reset() {
*x = RationBridgeFundingRequest{}
mi := &file_card_issuance_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RationBridgeFundingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RationBridgeFundingRequest) ProtoMessage() {}
func (x *RationBridgeFundingRequest) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 RationBridgeFundingRequest.ProtoReflect.Descriptor instead.
func (*RationBridgeFundingRequest) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{7}
}
func (x *RationBridgeFundingRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *RationBridgeFundingRequest) GetRequestedMinorUnits() int64 {
if x != nil {
return x.RequestedMinorUnits
}
return 0
}
func (x *RationBridgeFundingRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
type RationBridgeFundingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
GrantedMinorUnits int64 `protobuf:"varint,1,opt,name=granted_minor_units,json=grantedMinorUnits,proto3" json:"granted_minor_units,omitempty"`
FullyGranted bool `protobuf:"varint,2,opt,name=fully_granted,json=fullyGranted,proto3" json:"fully_granted,omitempty"`
Explanation string `protobuf:"bytes,3,opt,name=explanation,proto3" json:"explanation,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RationBridgeFundingResponse) Reset() {
*x = RationBridgeFundingResponse{}
mi := &file_card_issuance_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RationBridgeFundingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RationBridgeFundingResponse) ProtoMessage() {}
func (x *RationBridgeFundingResponse) ProtoReflect() protoreflect.Message {
mi := &file_card_issuance_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 RationBridgeFundingResponse.ProtoReflect.Descriptor instead.
func (*RationBridgeFundingResponse) Descriptor() ([]byte, []int) {
return file_card_issuance_proto_rawDescGZIP(), []int{8}
}
func (x *RationBridgeFundingResponse) GetGrantedMinorUnits() int64 {
if x != nil {
return x.GrantedMinorUnits
}
return 0
}
func (x *RationBridgeFundingResponse) GetFullyGranted() bool {
if x != nil {
return x.FullyGranted
}
return false
}
func (x *RationBridgeFundingResponse) GetExplanation() string {
if x != nil {
return x.Explanation
}
return ""
}
var File_card_issuance_proto protoreflect.FileDescriptor
const file_card_issuance_proto_rawDesc = "" +
"\n" +
"\x13card_issuance.proto\x12\x16ration.cardissuance.v1\x1a\fcommon.proto\"\xd5\x02\n" +
"\x04Card\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
"\ttenant_id\x18\x02 \x01(\tR\btenantId\x12*\n" +
"\x11airwallex_card_id\x18\x03 \x01(\tR\x0fairwallexCardId\x12'\n" +
"\x0fcardholder_name\x18\x04 \x01(\tR\x0ecardholderName\x124\n" +
"\x06status\x18\x05 \x01(\x0e2\x1c.ration.common.v1.CardStatusR\x06status\x12*\n" +
"\x11limit_minor_units\x18\x06 \x01(\x03R\x0flimitMinorUnits\x12%\n" +
"\x0elimit_interval\x18\a \x01(\tR\rlimitInterval\x12\x1a\n" +
"\bcurrency\x18\b \x01(\tR\bcurrency\x12&\n" +
"\x0fcreated_at_unix\x18\t \x01(\x03R\rcreatedAtUnix\"\xc7\x01\n" +
"\x10IssueCardRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12'\n" +
"\x0fcardholder_name\x18\x02 \x01(\tR\x0ecardholderName\x12*\n" +
"\x11limit_minor_units\x18\x03 \x01(\x03R\x0flimitMinorUnits\x12%\n" +
"\x0elimit_interval\x18\x04 \x01(\tR\rlimitInterval\x12\x1a\n" +
"\bcurrency\x18\x05 \x01(\tR\bcurrency\"|\n" +
"\x16AdjustCardLimitRequest\x12\x17\n" +
"\acard_id\x18\x01 \x01(\tR\x06cardId\x121\n" +
"\x15new_limit_minor_units\x18\x02 \x01(\x03R\x12newLimitMinorUnits\x12\x16\n" +
"\x06reason\x18\x03 \x01(\tR\x06reason\")\n" +
"\x0eGetCardRequest\x12\x17\n" +
"\acard_id\x18\x01 \x01(\tR\x06cardId\"+\n" +
"\x10CloseCardRequest\x12\x17\n" +
"\acard_id\x18\x01 \x01(\tR\x06cardId\"/\n" +
"\x10ListCardsRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\"G\n" +
"\x11ListCardsResponse\x122\n" +
"\x05cards\x18\x01 \x03(\v2\x1c.ration.cardissuance.v1.CardR\x05cards\"\x85\x01\n" +
"\x1aRationBridgeFundingRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x122\n" +
"\x15requested_minor_units\x18\x02 \x01(\x03R\x13requestedMinorUnits\x12\x16\n" +
"\x06reason\x18\x03 \x01(\tR\x06reason\"\x94\x01\n" +
"\x1bRationBridgeFundingResponse\x12.\n" +
"\x13granted_minor_units\x18\x01 \x01(\x03R\x11grantedMinorUnits\x12#\n" +
"\rfully_granted\x18\x02 \x01(\bR\ffullyGranted\x12 \n" +
"\vexplanation\x18\x03 \x01(\tR\vexplanation2\xcc\x04\n" +
"\fCardIssuance\x12S\n" +
"\tIssueCard\x12(.ration.cardissuance.v1.IssueCardRequest\x1a\x1c.ration.cardissuance.v1.Card\x12_\n" +
"\x0fAdjustCardLimit\x12..ration.cardissuance.v1.AdjustCardLimitRequest\x1a\x1c.ration.cardissuance.v1.Card\x12O\n" +
"\aGetCard\x12&.ration.cardissuance.v1.GetCardRequest\x1a\x1c.ration.cardissuance.v1.Card\x12`\n" +
"\tListCards\x12(.ration.cardissuance.v1.ListCardsRequest\x1a).ration.cardissuance.v1.ListCardsResponse\x12S\n" +
"\tCloseCard\x12(.ration.cardissuance.v1.CloseCardRequest\x1a\x1c.ration.cardissuance.v1.Card\x12~\n" +
"\x13RationBridgeFunding\x122.ration.cardissuance.v1.RationBridgeFundingRequest\x1a3.ration.cardissuance.v1.RationBridgeFundingResponseB0Z.github.com/caelum0x/ration/pkg/pb/cardissuanceb\x06proto3"
var (
file_card_issuance_proto_rawDescOnce sync.Once
file_card_issuance_proto_rawDescData []byte
)
func file_card_issuance_proto_rawDescGZIP() []byte {
file_card_issuance_proto_rawDescOnce.Do(func() {
file_card_issuance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_card_issuance_proto_rawDesc), len(file_card_issuance_proto_rawDesc)))
})
return file_card_issuance_proto_rawDescData
}
var file_card_issuance_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_card_issuance_proto_goTypes = []any{
(*Card)(nil), // 0: ration.cardissuance.v1.Card
(*IssueCardRequest)(nil), // 1: ration.cardissuance.v1.IssueCardRequest
(*AdjustCardLimitRequest)(nil), // 2: ration.cardissuance.v1.AdjustCardLimitRequest
(*GetCardRequest)(nil), // 3: ration.cardissuance.v1.GetCardRequest
(*CloseCardRequest)(nil), // 4: ration.cardissuance.v1.CloseCardRequest
(*ListCardsRequest)(nil), // 5: ration.cardissuance.v1.ListCardsRequest
(*ListCardsResponse)(nil), // 6: ration.cardissuance.v1.ListCardsResponse
(*RationBridgeFundingRequest)(nil), // 7: ration.cardissuance.v1.RationBridgeFundingRequest
(*RationBridgeFundingResponse)(nil), // 8: ration.cardissuance.v1.RationBridgeFundingResponse
(common.CardStatus)(0), // 9: ration.common.v1.CardStatus
}
var file_card_issuance_proto_depIdxs = []int32{
9, // 0: ration.cardissuance.v1.Card.status:type_name -> ration.common.v1.CardStatus
0, // 1: ration.cardissuance.v1.ListCardsResponse.cards:type_name -> ration.cardissuance.v1.Card
1, // 2: ration.cardissuance.v1.CardIssuance.IssueCard:input_type -> ration.cardissuance.v1.IssueCardRequest
2, // 3: ration.cardissuance.v1.CardIssuance.AdjustCardLimit:input_type -> ration.cardissuance.v1.AdjustCardLimitRequest
3, // 4: ration.cardissuance.v1.CardIssuance.GetCard:input_type -> ration.cardissuance.v1.GetCardRequest
5, // 5: ration.cardissuance.v1.CardIssuance.ListCards:input_type -> ration.cardissuance.v1.ListCardsRequest
4, // 6: ration.cardissuance.v1.CardIssuance.CloseCard:input_type -> ration.cardissuance.v1.CloseCardRequest
7, // 7: ration.cardissuance.v1.CardIssuance.RationBridgeFunding:input_type -> ration.cardissuance.v1.RationBridgeFundingRequest
0, // 8: ration.cardissuance.v1.CardIssuance.IssueCard:output_type -> ration.cardissuance.v1.Card
0, // 9: ration.cardissuance.v1.CardIssuance.AdjustCardLimit:output_type -> ration.cardissuance.v1.Card
0, // 10: ration.cardissuance.v1.CardIssuance.GetCard:output_type -> ration.cardissuance.v1.Card
6, // 11: ration.cardissuance.v1.CardIssuance.ListCards:output_type -> ration.cardissuance.v1.ListCardsResponse
0, // 12: ration.cardissuance.v1.CardIssuance.CloseCard:output_type -> ration.cardissuance.v1.Card
8, // 13: ration.cardissuance.v1.CardIssuance.RationBridgeFunding:output_type -> ration.cardissuance.v1.RationBridgeFundingResponse
8, // [8:14] is the sub-list for method output_type
2, // [2:8] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_card_issuance_proto_init() }
func file_card_issuance_proto_init() {
if File_card_issuance_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_card_issuance_proto_rawDesc), len(file_card_issuance_proto_rawDesc)),
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_card_issuance_proto_goTypes,
DependencyIndexes: file_card_issuance_proto_depIdxs,
MessageInfos: file_card_issuance_proto_msgTypes,
}.Build()
File_card_issuance_proto = out.File
file_card_issuance_proto_goTypes = nil
file_card_issuance_proto_depIdxs = nil
}