public void MergeFrom(PaymentCardRefund other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.merchantId_ != null) { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } MerchantId.MergeFrom(other.MerchantId); } if (other.refundedAmount_ != null) { if (refundedAmount_ == null) { refundedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } RefundedAmount.MergeFrom(other.RefundedAmount); } if (other.HostReferenceNumber.Length != 0) { HostReferenceNumber = other.HostReferenceNumber; } if (other.FolioBookingNumber.Length != 0) { FolioBookingNumber = other.FolioBookingNumber; } if (other.paymentCard_ != null) { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } PaymentCard.MergeFrom(other.PaymentCard); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.State != 0) { State = other.State; } }
public void MergeFrom(FolioCardRefund other) { if (other == null) { return; } if (other.card_ != null) { if (card_ == null) { card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard(); } Card.MergeFrom(other.Card); } if (other.State != 0) { State = other.State; } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.receivedBy_ != null) { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } ReceivedBy.MergeFrom(other.ReceivedBy); } if (other.refund_ != null) { if (refund_ == null) { refund_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator(); } Refund.MergeFrom(other.Refund); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator(); } input.ReadMessage(entityId_); break; } case 18: { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } input.ReadMessage(merchantId_); break; } case 26: { if (refundedAmount_ == null) { refundedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(refundedAmount_); break; } case 34: { HostReferenceNumber = input.ReadString(); break; } case 42: { FolioBookingNumber = input.ReadString(); break; } case 50: { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } input.ReadMessage(paymentCard_); break; } case 58: { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedAt_); break; } case 64: { state_ = (global::HOLMS.Types.Money.Cards.Transactions.CardRefundState)input.ReadEnum(); break; } } } }
public virtual AsyncUnaryCall <global::HOLMS.Types.Money.RPC.CardProcessingSvcVoidTransactionResponse> VoidRefundAsync(global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator request, CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_VoidRefund, null, options, request)); }
public virtual AsyncUnaryCall <global::HOLMS.Types.Money.RPC.CardProcessingSvcVoidTransactionResponse> VoidRefundAsync(global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { return(VoidRefundAsync(request, new CallOptions(headers, deadline, cancellationToken))); }
public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Money.RPC.CardProcessingSvcVoidTransactionResponse> VoidRefund(global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator request, ServerCallContext context) { throw new RpcException(new Status(StatusCode.Unimplemented, "")); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (card_ == null) { card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard(); } input.ReadMessage(card_); break; } case 16: { state_ = (global::HOLMS.Types.Money.Cards.Transactions.CardRefundState)input.ReadEnum(); break; } case 26: { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(amount_); break; } case 34: { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedAt_); break; } case 42: { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } input.ReadMessage(receivedBy_); break; } case 50: { if (refund_ == null) { refund_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator(); } input.ReadMessage(refund_); break; } } } }