public void MergeFrom(CardAuthorizationResponse other) { if (other == null) { return; } if (other.Response != 0) { Response = other.Response; } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } if (other.authorization_ != null) { if (authorization_ == null) { authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorizationIndicator(); } Authorization.MergeFrom(other.Authorization); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedAt_); break; } case 18: { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(amount_); break; } case 26: { Narration = input.ReadString(); break; } case 32: { paymentType_ = (global::HOLMS.Types.Folio.PaymentType)input.ReadEnum(); break; } case 40: { IsCancellable = input.ReadBool(); break; } case 50: { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } input.ReadMessage(sale_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } input.ReadMessage(sale_); break; } case 18: { if (changeAmount_ == null) { changeAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(changeAmount_); break; } case 26: { if (purpose_ == null) { purpose_ = new global::HOLMS.Types.Money.Cards.CardSalePurpose(); } input.ReadMessage(purpose_); break; } case 34: { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(reservation_); break; } } } }
public void MergeFrom(PostedPayment other) { if (other == null) { return; } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.Narration.Length != 0) { Narration = other.Narration; } if (other.PaymentType != 0) { PaymentType = other.PaymentType; } if (other.IsCancellable != false) { IsCancellable = other.IsCancellable; } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } }
public void MergeFrom(FolioSvcAuthorizationModificationRequest other) { if (other == null) { return; } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } if (other.changeAmount_ != null) { if (changeAmount_ == null) { changeAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } ChangeAmount.MergeFrom(other.ChangeAmount); } if (other.purpose_ != null) { if (purpose_ == null) { purpose_ = new global::HOLMS.Types.Money.Cards.CardSalePurpose(); } Purpose.MergeFrom(other.Purpose); } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { response_ = (global::HOLMS.Types.Money.Cards.Transactions.CardAuthorizationResponseCode)input.ReadEnum(); break; } case 18: { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } input.ReadMessage(sale_); break; } case 26: { if (authorization_ == null) { authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorizationIndicator(); } input.ReadMessage(authorization_); break; } } } }
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.PaymentCardSaleIndicator(); } input.ReadMessage(entityId_); break; } case 18: { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } input.ReadMessage(merchantId_); break; } case 26: { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } input.ReadMessage(paymentCard_); break; } case 34: { if (authorizedAmount_ == null) { authorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(authorizedAmount_); break; } case 42: { if (capturedAmount_ == null) { capturedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(capturedAmount_); break; } case 50: { HostReferenceNumber = input.ReadString(); break; } case 56: { entryMethod_ = (global::HOLMS.Types.Money.Cards.Transactions.AuthorizationEntryMethod)input.ReadEnum(); break; } case 66: { if (authorization_ == null) { authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorization(); } input.ReadMessage(authorization_); break; } case 72: { state_ = (global::HOLMS.Types.Money.Cards.Transactions.CardSaleState)input.ReadEnum(); break; } case 82: { increases_.AddEntriesFrom(input, _repeated_increases_codec); break; } case 90: { reversals_.AddEntriesFrom(input, _repeated_reversals_codec); break; } case 98: { captures_.AddEntriesFrom(input, _repeated_captures_codec); break; } case 106: { voids_.AddEntriesFrom(input, _repeated_voids_codec); break; } } } }
public void MergeFrom(PaymentCardSale other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } 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.paymentCard_ != null) { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } PaymentCard.MergeFrom(other.PaymentCard); } if (other.authorizedAmount_ != null) { if (authorizedAmount_ == null) { authorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AuthorizedAmount.MergeFrom(other.AuthorizedAmount); } if (other.capturedAmount_ != null) { if (capturedAmount_ == null) { capturedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CapturedAmount.MergeFrom(other.CapturedAmount); } if (other.HostReferenceNumber.Length != 0) { HostReferenceNumber = other.HostReferenceNumber; } if (other.EntryMethod != 0) { EntryMethod = other.EntryMethod; } if (other.authorization_ != null) { if (authorization_ == null) { authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorization(); } Authorization.MergeFrom(other.Authorization); } if (other.State != 0) { State = other.State; } increases_.Add(other.increases_); reversals_.Add(other.reversals_); captures_.Add(other.captures_); voids_.Add(other.voids_); }
/// <summary> /// Post-creation card transaction management /// </summary> public virtual AsyncUnaryCall <global::HOLMS.Types.Money.RPC.CardProcessingSvcVoidTransactionResponse> VoidSaleAsync(global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator request, CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_VoidSale, null, options, request)); }
/// <summary> /// Post-creation card transaction management /// </summary> public virtual AsyncUnaryCall <global::HOLMS.Types.Money.RPC.CardProcessingSvcVoidTransactionResponse> VoidSaleAsync(global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { return(VoidSaleAsync(request, new CallOptions(headers, deadline, cancellationToken))); }
/// <summary> /// Post-creation card transaction management /// </summary> public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Money.RPC.CardProcessingSvcVoidTransactionResponse> VoidSale(global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator 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 (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleCaptureIndicator(); } input.ReadMessage(entityId_); break; } case 18: { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } input.ReadMessage(merchantId_); break; } case 26: { if (capturedAmount_ == null) { capturedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(capturedAmount_); break; } case 42: { HostReferenceNumber = input.ReadString(); break; } case 50: { FolioBookingNumber = input.ReadString(); break; } case 58: { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } input.ReadMessage(paymentCard_); break; } case 66: { AuthorizationApprovalCode = input.ReadString(); break; } case 74: { AuthorizationHostReferenceNumber = input.ReadString(); break; } case 82: { if (authorizationAmount_ == null) { authorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(authorizationAmount_); break; } case 90: { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedAt_); break; } case 98: { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } input.ReadMessage(sale_); break; } case 104: { saleState_ = (global::HOLMS.Types.Money.Cards.Transactions.CardSaleState)input.ReadEnum(); break; } } } }
public void MergeFrom(PaymentCardSaleCapture other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleCaptureIndicator(); } 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.capturedAmount_ != null) { if (capturedAmount_ == null) { capturedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CapturedAmount.MergeFrom(other.CapturedAmount); } 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.AuthorizationApprovalCode.Length != 0) { AuthorizationApprovalCode = other.AuthorizationApprovalCode; } if (other.AuthorizationHostReferenceNumber.Length != 0) { AuthorizationHostReferenceNumber = other.AuthorizationHostReferenceNumber; } if (other.authorizationAmount_ != null) { if (authorizationAmount_ == null) { authorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AuthorizationAmount.MergeFrom(other.AuthorizationAmount); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } if (other.SaleState != 0) { SaleState = other.SaleState; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } input.ReadMessage(sale_); break; } case 18: { if (card_ == null) { card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard(); } input.ReadMessage(card_); break; } case 24: { purpose_ = (global::HOLMS.Types.Folio.FolioCardSalePurpose)input.ReadEnum(); break; } case 32: { saleState_ = (global::HOLMS.Types.Money.Cards.Transactions.CardSaleState)input.ReadEnum(); break; } case 42: { if (openAuthorized_ == null) { openAuthorized_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(openAuthorized_); break; } case 50: { if (captured_ == null) { captured_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(captured_); break; } case 56: { entryMethod_ = (global::HOLMS.Types.Money.Cards.Transactions.AuthorizationEntryMethod)input.ReadEnum(); break; } case 66: { if (authorizedAt_ == null) { authorizedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(authorizedAt_); break; } case 74: { if (capturedAt_ == null) { capturedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(capturedAt_); break; } case 82: { ApplicationLabel = input.ReadString(); break; } case 90: { AID = input.ReadString(); break; } case 98: { ApplicationCrypto = input.ReadString(); break; } case 106: { ApprovalCode = input.ReadString(); break; } case 114: { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } input.ReadMessage(receivedBy_); break; } case 122: { if (finalAuthorizedAmount_ == null) { finalAuthorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(finalAuthorizedAmount_); break; } } } }
public void MergeFrom(FolioCardSale other) { if (other == null) { return; } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } if (other.card_ != null) { if (card_ == null) { card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard(); } Card.MergeFrom(other.Card); } if (other.Purpose != 0) { Purpose = other.Purpose; } if (other.SaleState != 0) { SaleState = other.SaleState; } if (other.openAuthorized_ != null) { if (openAuthorized_ == null) { openAuthorized_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } OpenAuthorized.MergeFrom(other.OpenAuthorized); } if (other.captured_ != null) { if (captured_ == null) { captured_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Captured.MergeFrom(other.Captured); } if (other.EntryMethod != 0) { EntryMethod = other.EntryMethod; } if (other.authorizedAt_ != null) { if (authorizedAt_ == null) { authorizedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } AuthorizedAt.MergeFrom(other.AuthorizedAt); } if (other.capturedAt_ != null) { if (capturedAt_ == null) { capturedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CapturedAt.MergeFrom(other.CapturedAt); } if (other.ApplicationLabel.Length != 0) { ApplicationLabel = other.ApplicationLabel; } if (other.AID.Length != 0) { AID = other.AID; } if (other.ApplicationCrypto.Length != 0) { ApplicationCrypto = other.ApplicationCrypto; } if (other.ApprovalCode.Length != 0) { ApprovalCode = other.ApprovalCode; } if (other.receivedBy_ != null) { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } ReceivedBy.MergeFrom(other.ReceivedBy); } if (other.finalAuthorizedAmount_ != null) { if (finalAuthorizedAmount_ == null) { finalAuthorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } FinalAuthorizedAmount.MergeFrom(other.FinalAuthorizedAmount); } }