├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── Doxyfile
├── GlobalPayments.Api.sln
├── LICENSE.md
├── README.md
├── examples
├── gpapi
│ └── end-to-end
│ │ ├── end-to-end.sln
│ │ └── end-to-end
│ │ ├── App_Start
│ │ ├── BundleConfig.cs
│ │ └── RouteConfig.cs
│ │ ├── Authorization.ashx
│ │ ├── Authorization.ashx.cs
│ │ ├── Bundle.config
│ │ ├── ChallengeNotificationUrl.ashx
│ │ ├── ChallengeNotificationUrl.ashx.cs
│ │ ├── Check3dsVersion.ashx
│ │ ├── Check3dsVersion.ashx.cs
│ │ ├── Content
│ │ ├── Site.css
│ │ └── styles.css
│ │ ├── Default.aspx
│ │ ├── Default.aspx.cs
│ │ ├── Default.aspx.designer.cs
│ │ ├── Global.asax
│ │ ├── Global.asax.cs
│ │ ├── InitiateAuthentication.ashx
│ │ ├── InitiateAuthentication.ashx.cs
│ │ ├── MethodNotificationUrl.ashx
│ │ ├── MethodNotificationUrl.ashx.cs
│ │ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── ServiceDependencies
│ │ │ └── azsneyderwebapp-staging - Web Deploy
│ │ │ └── profile.arm.json
│ │ ├── Scripts
│ │ ├── globalpayments-3ds.copy.min.js.map
│ │ ├── globalpayments-3ds.js
│ │ ├── globalpayments-3ds.min.js.map
│ │ ├── jquery-3.7.0.intellisense.js
│ │ ├── jquery-3.7.0.js
│ │ ├── jquery-3.7.0.min.js
│ │ ├── jquery-3.7.0.min.map
│ │ ├── jquery-3.7.0.slim.js
│ │ ├── jquery-3.7.0.slim.min.js
│ │ ├── jquery-3.7.0.slim.min.map
│ │ └── main.js
│ │ ├── Site.Mobile.Master
│ │ ├── Site.Mobile.Master.cs
│ │ ├── Site.Mobile.Master.designer.cs
│ │ ├── ViewSwitcher.ascx
│ │ ├── ViewSwitcher.ascx.cs
│ │ ├── ViewSwitcher.ascx.designer.cs
│ │ ├── Web.Debug.config
│ │ ├── Web.Release.config
│ │ ├── Web.config
│ │ ├── end-to-end.csproj
│ │ ├── favicon.ico
│ │ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ │ └── packages.config
├── mvc
│ └── end-to-end
│ │ ├── end-to-end.sln
│ │ └── end-to-end
│ │ ├── .bowerrc
│ │ ├── Controllers
│ │ └── HomeController.cs
│ │ ├── Models
│ │ ├── OrderDetails.cs
│ │ └── SuccessModel.cs
│ │ ├── Program.cs
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ ├── Startup.cs
│ │ ├── Views
│ │ ├── Home
│ │ │ ├── Error.cshtml
│ │ │ ├── Index.cshtml
│ │ │ └── Success.cshtml
│ │ ├── Shared
│ │ │ ├── Error.cshtml
│ │ │ └── _Layout.cshtml
│ │ ├── _ViewImports.cshtml
│ │ └── _ViewStart.cshtml
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── bower.json
│ │ ├── bundleconfig.json
│ │ ├── end-to-end.csproj
│ │ ├── libman.json
│ │ └── wwwroot
│ │ ├── css
│ │ ├── site.css
│ │ └── site.min.css
│ │ ├── favicon.ico
│ │ ├── images
│ │ ├── banner1.svg
│ │ ├── banner2.svg
│ │ ├── banner3.svg
│ │ └── banner4.svg
│ │ ├── js
│ │ ├── site.js
│ │ └── site.min.js
│ │ └── lib
│ │ ├── bootstrap
│ │ ├── LICENSE
│ │ └── dist
│ │ │ ├── css
│ │ │ ├── bootstrap-theme.css.map
│ │ │ ├── bootstrap-theme.min.css
│ │ │ ├── bootstrap-theme.min.css.map
│ │ │ ├── bootstrap.css
│ │ │ ├── bootstrap.css.map
│ │ │ ├── bootstrap.min.css
│ │ │ └── bootstrap.min.css.map
│ │ │ ├── fonts
│ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ ├── glyphicons-halflings-regular.svg
│ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ └── js
│ │ │ ├── bootstrap.js
│ │ │ ├── bootstrap.min.js
│ │ │ └── npm.js
│ │ ├── jquery-validation-unobtrusive
│ │ ├── .bower.json
│ │ ├── jquery.validate.unobtrusive.js
│ │ └── jquery.validate.unobtrusive.min.js
│ │ ├── jquery-validation
│ │ ├── .bower.json
│ │ ├── LICENSE.md
│ │ └── dist
│ │ │ ├── additional-methods.js
│ │ │ ├── additional-methods.min.js
│ │ │ ├── jquery.validate.js
│ │ │ └── jquery.validate.min.js
│ │ └── jquery
│ │ ├── .bower.json
│ │ ├── LICENSE.txt
│ │ └── dist
│ │ ├── jquery.js
│ │ ├── jquery.min.js
│ │ └── jquery.min.map
├── selfboarding
│ └── BoardingAPI
│ │ └── TestBoardingAPI
│ │ └── TestBoardingAPI
│ │ └── Models
│ │ └── CompletedApplication.cs
├── terminals
│ └── heartland-payment-app
│ │ └── TestTerminalApp
│ │ ├── TestTerminalApp.sln
│ │ └── TestTerminalApp
│ │ ├── Program.cs
│ │ └── TestTerminalApp.csproj
└── webforms
│ └── end-to-end
│ ├── .nuget
│ ├── NuGet.Config
│ ├── NuGet.exe
│ ├── NuGet.exe.old
│ └── NuGet.targets
│ ├── Default.aspx
│ ├── Default.aspx.cs
│ ├── Default.aspx.designer.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── Response.aspx
│ ├── Response.aspx.cs
│ ├── Response.aspx.designer.cs
│ ├── Scripts
│ ├── jquery-1.7.1.intellisense.js
│ ├── jquery-1.7.1.js
│ └── jquery-1.7.1.min.js
│ ├── Web.Debug.config
│ ├── Web.Release.config
│ ├── Web.config
│ ├── css
│ ├── response.css
│ └── site.css
│ ├── end-to-end.csproj
│ ├── end-to-end.sln
│ └── packages.config
├── src
└── GlobalPayments.Api
│ ├── Builders
│ ├── AuthorizationBuilder.cs
│ ├── BaseBuilder.cs
│ ├── BillingBuilder.cs
│ ├── FileProcessingBuilder.cs
│ ├── FraudBuilder.cs
│ ├── InstallmentBuilder.cs
│ ├── ManagementBuilder.cs
│ ├── PayFacBuilder.cs
│ ├── RecurringBuilder.cs
│ ├── ReportBuilder.cs
│ ├── RequestBuilder
│ │ ├── GpApi
│ │ │ ├── GpApiAuthorizationRequestBuilder.cs
│ │ │ ├── GpApiFileProcessingRequestBuilder.cs
│ │ │ ├── GpApiInstallmentRequestBuilder.cs
│ │ │ ├── GpApiManagementRequestBuilder.cs
│ │ │ ├── GpApiMiCRequestBuilder.cs
│ │ │ ├── GpApiPayFacRequestBuilder.cs
│ │ │ ├── GpApiRecurringRequestBuilder.cs
│ │ │ ├── GpApiReportRequestBuilder.cs
│ │ │ └── GpApiSecureRequestBuilder.cs
│ │ └── RequestBuilderValidations.cs
│ ├── ResubmitBuilder.cs
│ ├── Secure3dBuilder.cs
│ ├── SecureBuilder.cs
│ ├── TransactionBuilder.cs
│ ├── TransactionReportBuilder.cs
│ ├── UserReportBuilder.cs
│ └── Validations
│ │ ├── ValidationClause.cs
│ │ ├── ValidationTarget.cs
│ │ └── Validations.cs
│ ├── Entities
│ ├── Action.cs
│ ├── AdditionalTaxDetails.cs
│ ├── Address.cs
│ ├── AlternativePaymentResponse.cs
│ ├── AutoSubstantiation.cs
│ ├── BNPLResponse.cs
│ ├── BankPaymentResponse.cs
│ ├── BatchSummary.cs
│ ├── Billing
│ │ ├── AuthorizationRecord.cs
│ │ ├── Bill.cs
│ │ ├── BillingResponse.cs
│ │ ├── ConvenienceFeeResponse.cs
│ │ ├── Credentials.cs
│ │ ├── LoadHostedPaymentResponse.cs
│ │ ├── LoadSecurePayResponse.cs
│ │ ├── TokenData.cs
│ │ └── TokenResponse.cs
│ ├── BlockedCardType.cs
│ ├── BrowserData.cs
│ ├── Card.cs
│ ├── CardIssuerResponse.cs
│ ├── CheckResponseErrorMessage.cs
│ ├── CommercialData.cs
│ ├── CommercialLineItem.cs
│ ├── CountryData.cs
│ ├── Customer.cs
│ ├── CustomerDocument.cs
│ ├── DccRateData.cs
│ ├── DebitMac.cs
│ ├── DecisionManager.cs
│ ├── DiscountDetails.cs
│ ├── DisputeDocument.cs
│ ├── Document.cs
│ ├── DocumentUploadData.cs
│ ├── EcommerceInfo.cs
│ ├── EncryptionData.cs
│ ├── Enums.cs
│ ├── Enums
│ │ ├── AcquisitionType.cs
│ │ ├── ActionSortProperty.cs
│ │ ├── AdvancedDepositType.cs
│ │ ├── AgeIndicator.cs
│ │ ├── AuthenticationSource.cs
│ │ ├── BNPLShippingMethod.cs
│ │ ├── BNPLType.cs
│ │ ├── BankPaymentStatus.cs
│ │ ├── BankPaymentType.cs
│ │ ├── BillPresentment.cs
│ │ ├── BillingLoadType.cs
│ │ ├── BlockCardType.cs
│ │ ├── CardTypeFilter.cs
│ │ ├── ChallengeRequestIndicator.cs
│ │ ├── Channel.cs
│ │ ├── CommercialIndicator.cs
│ │ ├── CountryCodeFormat.cs
│ │ ├── CreditDebitIndicator.cs
│ │ ├── CustomerAuthenticationMethod.cs
│ │ ├── CustomerDocumentType.cs
│ │ ├── CvnPresenceIndicator.cs
│ │ ├── DccProcessor.cs
│ │ ├── DccRateType.cs
│ │ ├── DebugLevel.cs
│ │ ├── DebugLogsOutput.cs
│ │ ├── DecoupledFlowRequest.cs
│ │ ├── DeliveryTimeFrame.cs
│ │ ├── DepositSortProperty.cs
│ │ ├── DepositStatus.cs
│ │ ├── DisplayOption.cs
│ │ ├── DisputeSortProperty.cs
│ │ ├── DisputeStage.cs
│ │ ├── DisputeStatus.cs
│ │ ├── DocumentCategory.cs
│ │ ├── EmvFallbackCondition.cs
│ │ ├── EmvLastChipRead.cs
│ │ ├── EncryptedFieldMatrix.cs
│ │ ├── ExemptReason.cs
│ │ ├── ExemptStatus.cs
│ │ ├── ExtraChargeType.cs
│ │ ├── FileProcessingActionType.cs
│ │ ├── FileType.cs
│ │ ├── FraudFilterResult.cs
│ │ ├── FundsStatus.cs
│ │ ├── GatewayProvider.cs
│ │ ├── HostedPaymentType.cs
│ │ ├── InputAlignment.cs
│ │ ├── IntervalToExpire.cs
│ │ ├── Language.cs
│ │ ├── LodgingItemType.cs
│ │ ├── LogFile.cs
│ │ ├── MerchantAccountStatus.cs
│ │ ├── MerchantAccountType.cs
│ │ ├── MerchantAccountsSortProperty.cs
│ │ ├── MerchantCategory.cs
│ │ ├── MerchantInitiatedRequestType.cs
│ │ ├── NetGrossIndicator.cs
│ │ ├── OperationType.cs
│ │ ├── OrderTransactionType.cs
│ │ ├── PayByLinkSortProperty.cs
│ │ ├── PayByLinkStatus.cs
│ │ ├── PayByLinkType.cs
│ │ ├── PaymentEntryMode.cs
│ │ ├── PaymentMethodFunction.cs
│ │ ├── PaymentMethodName.cs
│ │ ├── PaymentMethodProgram.cs
│ │ ├── PaymentMethodUsageMode.cs
│ │ ├── PaymentProvider.cs
│ │ ├── PaymentType.cs
│ │ ├── PersonFunctions.cs
│ │ ├── PhoneNumberType.cs
│ │ ├── PreOrderIndicator.cs
│ │ ├── PrestigiousPropertyLimit.cs
│ │ ├── PriorAuthenticationMethod.cs
│ │ ├── ProPayAccountStatus.cs
│ │ ├── PromptType.cs
│ │ ├── PropayTermsVersion.cs
│ │ ├── RecordId.cs
│ │ ├── Region.cs
│ │ ├── Reinitialize.cs
│ │ ├── RemittanceReferenceType.cs
│ │ ├── ReorderIndicator.cs
│ │ ├── Risk.cs
│ │ ├── RiskAssessmentStatus.cs
│ │ ├── SafIndicator.cs
│ │ ├── SafMode.cs
│ │ ├── SdkInterface.cs
│ │ ├── SdkUiType.cs
│ │ ├── Secure3dStatus.cs
│ │ ├── ServiceEndpoints.cs
│ │ ├── ServiceType.cs
│ │ ├── ShaHashType.cs
│ │ ├── ShippingMethod.cs
│ │ ├── SortDirection.cs
│ │ ├── StatusChangeReason.cs
│ │ ├── StoredCredentialInitiator.cs
│ │ ├── StoredCredentialReason.cs
│ │ ├── StoredCredentialSequence.cs
│ │ ├── StoredCredentialType.cs
│ │ ├── StoredPaymentMethodSortProperty.cs
│ │ ├── StoredPaymentMethodStatus.cs
│ │ ├── SuspiciousAccountActivity.cs
│ │ ├── TaxCategory.cs
│ │ ├── TerminalConfigType.cs
│ │ ├── TextFormat.cs
│ │ ├── TokenizationFieldMatrix.cs
│ │ ├── TokenizationOperationType.cs
│ │ ├── TokenizationType.cs
│ │ ├── TrackNumber.cs
│ │ ├── TransactionSortProperty.cs
│ │ ├── TransactionStatus.cs
│ │ ├── TransactionType.cs
│ │ ├── UCAFIndicator.cs
│ │ ├── UDFileType.cs
│ │ ├── UcafType.cs
│ │ ├── UnitOfMeasure.cs
│ │ ├── UpdateResourceFileType.cs
│ │ ├── UsableBalanceMode.cs
│ │ ├── UserLevelRelationship.cs
│ │ ├── UserStatus.cs
│ │ ├── UserType.cs
│ │ └── VoidReason.cs
│ ├── Exceptions.cs
│ ├── FileProcessor.cs
│ ├── FileUploaded.cs
│ ├── FraudManagementResponse.cs
│ ├── FraudResponse.cs
│ ├── FraudRule.cs
│ ├── FraudRuleCollection.cs
│ ├── FundsAccountDetails.cs
│ ├── FundsData.cs
│ ├── GpApi
│ │ ├── AccessTokenInfo.cs
│ │ ├── GpApiAccount.cs
│ │ ├── GpApiEntity.cs
│ │ ├── GpApiRequest.cs
│ │ ├── GpApiResponse.cs
│ │ ├── GpApiSessionInfo.cs
│ │ ├── GpApiTokenResponse.cs
│ │ ├── InstallmentData.cs
│ │ └── PagedResult.cs
│ ├── HostedPaymentData.cs
│ ├── IInstallmentEntity.cs
│ ├── IRecurringEntity.cs
│ ├── IRequestBuilder.cs
│ ├── Lodging.cs
│ ├── Lodging
│ │ └── LodgingData.cs
│ ├── LodgingItems.cs
│ ├── MaskedValueCollection.cs
│ ├── MessageExtension.cs
│ ├── MobileData.cs
│ ├── OnlineBoarding
│ │ ├── BoardingApplication.cs
│ │ └── BoardingResponse.cs
│ ├── OrderDetails.cs
│ ├── PayByLinkData.cs
│ ├── PayByLinkResponse.cs
│ ├── PayFac
│ │ ├── AccountPermissions.cs
│ │ ├── BankAccountData.cs
│ │ ├── BankAccountOwnershipData.cs
│ │ ├── BeneficialOwnerData.cs
│ │ ├── BusinessData.cs
│ │ ├── DeviceData.cs
│ │ ├── FlashFundsPaymentCardData.cs
│ │ ├── GrossBillingInformation.cs
│ │ ├── OrderDevice.cs
│ │ ├── OwnersData.cs
│ │ ├── PayFacResponseData.cs
│ │ ├── RenewAccountData.cs
│ │ ├── SignificantOwnerData.cs
│ │ ├── ThreatRiskData.cs
│ │ ├── UserPersonalData.cs
│ │ └── UserReference.cs
│ ├── PayerDetails.cs
│ ├── PaymentMethodList.cs
│ ├── PaymentStatistics.cs
│ ├── Payroll
│ │ ├── Entities
│ │ │ ├── ClientInfo.cs
│ │ │ ├── Employee.cs
│ │ │ ├── Enums.cs
│ │ │ ├── PayrollCollectionItem.cs
│ │ │ ├── PayrollData.cs
│ │ │ ├── PayrollEntity.cs
│ │ │ └── SessionInfo.cs
│ │ ├── PayrollEncoder.cs
│ │ ├── PayrollRequest.cs
│ │ └── PayrollResponse.cs
│ ├── Person.cs
│ ├── PhoneNumber.cs
│ ├── Product.cs
│ ├── RecurringEntity.cs
│ ├── Reporting
│ │ ├── ActionSummary.cs
│ │ ├── AltPaymentData.cs
│ │ ├── CheckData.cs
│ │ ├── DepositSummary.cs
│ │ ├── DisputeSummary.cs
│ │ ├── MerchantAccountSummary.cs
│ │ ├── MerchantSummary.cs
│ │ ├── PayByLinkSummary.cs
│ │ ├── SearchCriteria.cs
│ │ ├── StoredPaymentMethodSummary.cs
│ │ └── TransactionSummary.cs
│ ├── Request.cs
│ ├── RiskAssessment.cs
│ ├── SSORequestData.cs
│ ├── Schedule.cs
│ ├── StoredCredential.cs
│ ├── TableService
│ │ ├── BaseTableServiceResponse.cs
│ │ ├── BumpStatusCollection.cs
│ │ ├── LoginResponse.cs
│ │ ├── ServerAssignmentResponse.cs
│ │ ├── ServerListResponse.cs
│ │ ├── ShiftAssignments.cs
│ │ ├── TableServiceResponse.cs
│ │ └── Ticket.cs
│ ├── Terms.cs
│ ├── ThirdPartyResponse.cs
│ ├── ThreeDSecure.cs
│ ├── Transaction.cs
│ ├── TransactionApi
│ │ ├── Request
│ │ │ └── TransactionData.cs
│ │ ├── Response
│ │ │ ├── CardResponse.cs
│ │ │ ├── CheckResponse.cs
│ │ │ ├── PaymentResponse.cs
│ │ │ └── TransactionResponseDetail.cs
│ │ ├── TransactionApiAuthorizationRequestBuilder.cs
│ │ ├── TransactionApiEntity.cs
│ │ ├── TransactionApiManagementRequestBuilder.cs
│ │ ├── TransactionApiReportRequestBuilder.cs
│ │ ├── TransactionApiRequest.cs
│ │ ├── TransactionApiResponse.cs
│ │ ├── TransactionApiSessionInfo.cs
│ │ ├── TransactionApiStatusCode.cs
│ │ └── TransactionApiTokenResponse.cs
│ ├── UPA
│ │ ├── Button.cs
│ │ ├── GenericData.cs
│ │ ├── HostData.cs
│ │ ├── MessageLines.cs
│ │ ├── PANDetails.cs
│ │ ├── POSData.cs
│ │ ├── PrintData.cs
│ │ ├── ProcessingIndicator.cs
│ │ ├── PromptData.cs
│ │ ├── PromptMessages.cs
│ │ ├── ScanData.cs
│ │ ├── ThreeDesDukpt.cs
│ │ ├── TrackData.cs
│ │ ├── UDData.cs
│ │ ├── UpaConfigContent.cs
│ │ ├── UpaParam.cs
│ │ └── UpaTransactionData.cs
│ ├── User.cs
│ ├── UserAccount.cs
│ └── UserLinks.cs
│ ├── Gateways
│ ├── AmaryllisConnector.cs
│ ├── BillPay
│ │ ├── AuthorizationRequest.cs
│ │ ├── BillingRequest.cs
│ │ ├── GatewayRequestBase.cs
│ │ ├── IBillPayRequest.cs
│ │ ├── IBillPayResponse.cs
│ │ ├── ManagementRequest.cs
│ │ ├── RecurringRequest.cs
│ │ ├── ReportRequest.cs
│ │ ├── Requests
│ │ │ ├── BillPayRequestBase.cs
│ │ │ ├── ClearLoadedBillsRequest.cs
│ │ │ ├── CommitPreloadedBillsRequest.cs
│ │ │ ├── CreateCustomerAccountRequest.cs
│ │ │ ├── CreateSingleSignOnAccountRequest.cs
│ │ │ ├── DeleteCustomerAccountRequest.cs
│ │ │ ├── DeleteSingleSignOnAccountRequest.cs
│ │ │ ├── GetAchTokenRequest.cs
│ │ │ ├── GetConvenienceFeeRequest.cs
│ │ │ ├── GetTokenInformationRequest.cs
│ │ │ ├── GetTokenRequest.cs
│ │ │ ├── GetTransactionByOrderIDRequest.cs
│ │ │ ├── LoadSecurePayRequest.cs
│ │ │ ├── MakeBlindPaymentRequest.cs
│ │ │ ├── MakeBlindPaymentReturnTokenRequest.cs
│ │ │ ├── MakePaymentRequest.cs
│ │ │ ├── MakePaymentReturnTokenRequest.cs
│ │ │ ├── MakeQuickPayBlindPaymentRequest.cs
│ │ │ ├── MakeQuickPayBlindPaymentReturnTokenRequest.cs
│ │ │ ├── PreloadBillsRequest.cs
│ │ │ ├── ReversePaymentRequest.cs
│ │ │ ├── UpdateCustomerAccountRequest.cs
│ │ │ ├── UpdateSingleSignOnAccountRequest.cs
│ │ │ └── UpdateTokenRequest.cs
│ │ └── Responses
│ │ │ ├── BillPayResponseBase.cs
│ │ │ ├── BillingRequestResponse.cs
│ │ │ ├── CommitPreloadBillsResponse.cs
│ │ │ ├── ConvenienceFeeRequestResponse.cs
│ │ │ ├── CreateCustomerAccountResponse.cs
│ │ │ ├── CustomerAccountResponse.cs
│ │ │ ├── PreloadBillsResponse.cs
│ │ │ ├── ReversalResponse.cs
│ │ │ ├── SecurePayResponse.cs
│ │ │ ├── SingleSignOnAccountResponse.cs
│ │ │ ├── TokenInformationRequestResponse.cs
│ │ │ ├── TokenRequestResponse.cs
│ │ │ ├── TransactionByOrderIDRequestResponse.cs
│ │ │ ├── TransactionResponse.cs
│ │ │ └── UpdateTokenResponse.cs
│ ├── BillPayProvider.cs
│ ├── DataServicesConnector.cs
│ ├── Events
│ │ ├── ConnectionEvent.cs
│ │ ├── GatewayEvent.cs
│ │ ├── GatewayEventType.cs
│ │ └── IGatewayEvent.cs
│ ├── Gateway.cs
│ ├── GatewayResponse.cs
│ ├── GeniusConnector.cs
│ ├── Gp3DSProvider.cs
│ ├── GpApiConnector.cs
│ ├── GpEcomConnector.cs
│ ├── HttpClientHandlerBuilder.cs
│ ├── Interfaces
│ │ ├── IAccessTokenProvider.cs
│ │ ├── IBillingProvider.cs
│ │ ├── IDeviceCloudService.cs
│ │ ├── IFileProcessingService.cs
│ │ ├── IFraudCheckService.cs
│ │ ├── IInstallmentService.cs
│ │ ├── IOpenBankingProvider.cs
│ │ ├── IPayFacProvider.cs
│ │ ├── IPaymentGateway.cs
│ │ ├── IRecurringService.cs
│ │ ├── IReportingService.cs
│ │ └── ISecure3dProvider.cs
│ ├── NWSConnector.cs
│ ├── NetworkConnector.cs
│ ├── NetworkGateway.cs
│ ├── OnlineBoardingConnector.cs
│ ├── OpenBankingProvider.cs
│ ├── PayPlanConnector.cs
│ ├── PayrollConnector.cs
│ ├── PorticoConnector.cs
│ ├── ProPayConnector.cs
│ ├── RestGateway.cs
│ ├── TableServiceConnector.cs
│ ├── TransactionApiConnector.cs
│ ├── TransitConnector.cs
│ └── XmlGateway.cs
│ ├── GlobalPayments.Api.csproj
│ ├── Logging
│ ├── IRequestLogger.cs
│ └── ProtectSensitiveData.cs
│ ├── Mapping
│ ├── GpApiMapping.cs
│ ├── OpenBankingMapping.cs
│ └── TransactionApiMapping.cs
│ ├── Network
│ ├── Abstractions
│ │ ├── IBatchProvider.cs
│ │ ├── IDataElement.cs
│ │ └── IStanProvider.cs
│ ├── Elements
│ │ ├── DE103_Check_MICR_Data.cs
│ │ ├── DE117_WIC_Data_Field_EA.cs
│ │ ├── DE117_WIC_Data_Field_PS.cs
│ │ ├── DE117_WIC_Data_Fields.cs
│ │ ├── DE123_ReconciliationTotal.cs
│ │ ├── DE123_ReconciliationTotals.cs
│ │ ├── DE124_SundryData.cs
│ │ ├── DE124_SundryEntry.cs
│ │ ├── DE127_ForwardingData.cs
│ │ ├── DE127_ForwardingDataEntry.cs
│ │ ├── DE22_PosDataCode.cs
│ │ ├── DE30_OriginalAmounts.cs
│ │ ├── DE3_ProcessingCode.cs
│ │ ├── DE43_CardAcceptorData.cs
│ │ ├── DE44_AdditionalResponseData.cs
│ │ ├── DE46_FeeAmounts.cs
│ │ ├── DE48_14_PinEncryptionMethodology.cs
│ │ ├── DE48_1_CommunicationDiagnostics.cs
│ │ ├── DE48_2_HardwareSoftwareConfig.cs
│ │ ├── DE48_33_PosConfiguration.cs
│ │ ├── DE48_34_MessageConfiguration.cs
│ │ ├── DE48_39_PriorMessageInformation.cs
│ │ ├── DE48_8_CustomerData.cs
│ │ ├── DE48_Address.cs
│ │ ├── DE48_MessageControl.cs
│ │ ├── DE48_Name.cs
│ │ ├── DE54_AdditionalAmount.cs
│ │ ├── DE54_AmountsAdditional.cs
│ │ ├── DE56_OriginalDataElements.cs
│ │ ├── DE62_2_CardIssuerEntry.cs
│ │ ├── DE62_CardIssuerData.cs
│ │ ├── DE63_ProductData.cs
│ │ ├── DE63_ProductDataEntry.cs
│ │ ├── DE72_DataRecord.cs
│ │ └── EWICData.cs
│ ├── Entities
│ │ ├── FleetData.cs
│ │ ├── NtsData.cs
│ │ ├── PriorMessageInformation.cs
│ │ ├── ProductData.cs
│ │ ├── RecordDataEntry.cs
│ │ └── TransactionMatchingData.cs
│ ├── Enums
│ │ ├── AuthorizerCode.cs
│ │ ├── CardDataInputCapability.cs
│ │ ├── CardDataOutputCapability.cs
│ │ ├── CardHolderAuthenticationCapability.cs
│ │ ├── CardHolderAuthenticationEntity.cs
│ │ ├── CardHolderAuthenticationMethod.cs
│ │ ├── CharacterSet.cs
│ │ ├── ConnectionType.cs
│ │ ├── DE123_TotalType.cs
│ │ ├── DE123_TransactionType.cs
│ │ ├── DE124_SundryDataTag.cs
│ │ ├── DE127_ForwardingDataTag.cs
│ │ ├── DE22_CardDataInputMode.cs
│ │ ├── DE22_CardHolderPresence.cs
│ │ ├── DE22_CardPresence.cs
│ │ ├── DE25_MessageReasonCode.cs
│ │ ├── DE39_ActionCode.cs
│ │ ├── DE3_AccountType.cs
│ │ ├── DE3_TransactionType.cs
│ │ ├── DE44_ActionReasonCode.cs
│ │ ├── DE48_AddressType.cs
│ │ ├── DE48_AddressUsage.cs
│ │ ├── DE48_AdministrativelyDirectedTaskCode.cs
│ │ ├── DE48_CardType.cs
│ │ ├── DE48_ConnectionResult.cs
│ │ ├── DE48_CustomerDataType.cs
│ │ ├── DE48_EncryptionAlgorithmDataCode.cs
│ │ ├── DE48_HostConnected.cs
│ │ ├── DE48_KeyManagementDataCode.cs
│ │ ├── DE48_NameFormat.cs
│ │ ├── DE48_NameType.cs
│ │ ├── DE54_AccountType.cs
│ │ ├── DE54_AmountTypeCode.cs
│ │ ├── DE62_C00_2_VerificationType.cs
│ │ ├── DE62_CardIssuerEntryTag.cs
│ │ ├── DataElementId.cs
│ │ ├── DataElementType.cs
│ │ ├── DebitAuthorizerCode.cs
│ │ ├── EncryptionType.cs
│ │ ├── FallbackCode.cs
│ │ ├── FeeType.cs
│ │ ├── Iso4217_CurrencyCode.cs
│ │ ├── Iso8583MessageType.cs
│ │ ├── MessageType.cs
│ │ ├── NetworkGatewayType.cs
│ │ ├── NetworkProcessingFlag.cs
│ │ ├── NetworkResponseCode.cs
│ │ ├── NetworkResponseCodeOrigin.cs
│ │ ├── NetworkTransactionType.cs
│ │ ├── OperatingEnvironment.cs
│ │ ├── PinCaptureCapability.cs
│ │ ├── ProductCode.cs
│ │ ├── ProductCodeSet.cs
│ │ ├── ProductDataFormat.cs
│ │ ├── ProtocolType.cs
│ │ ├── ServiceLevel.cs
│ │ ├── TerminalOutputCapability.cs
│ │ └── UnitOfMeasure.cs
│ ├── Iso8583Bitmap.cs
│ ├── Iso8583Element.cs
│ ├── Iso8583ElementFactory.cs
│ ├── NetworkMessage.cs
│ └── NetworkMessageHeader.cs
│ ├── PaymentMethods
│ ├── AccountFunds.cs
│ ├── AlternativePaymentMethod.cs
│ ├── BNPL.cs
│ ├── BankPayment.cs
│ ├── Cash.cs
│ ├── Credit.cs
│ ├── CreditCardData.cs
│ ├── CreditTrackData.cs
│ ├── Debit.cs
│ ├── DebitTrackData.cs
│ ├── EBT.cs
│ ├── EBTCardData.cs
│ ├── EBTTrackData.cs
│ ├── Ewic.cs
│ ├── EwicCardData.cs
│ ├── EwicTrackData.cs
│ ├── GiftCard.cs
│ ├── Installment.cs
│ ├── PaymentInterfaces
│ │ ├── IAuthable.cs
│ │ ├── IBalancable.cs
│ │ ├── ICardData.cs
│ │ ├── IChargable.cs
│ │ ├── IEditable.cs
│ │ ├── IEncryptable.cs
│ │ ├── INotificationData.cs
│ │ ├── IPaymentMethod.cs
│ │ ├── IPinProtected.cs
│ │ ├── IPrePayable.cs
│ │ ├── IRefundable.cs
│ │ ├── IReversable.cs
│ │ ├── ISecure3d.cs
│ │ ├── ITokenizable.cs
│ │ ├── ITrackData.cs
│ │ ├── IVerifiable.cs
│ │ └── IVoidable.cs
│ ├── RecurringPaymentMethod.cs
│ ├── TransactionReference.cs
│ └── eCheck.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── ServiceConfigs
│ ├── AcceptorConfig.cs
│ ├── BillPayConfig.cs
│ ├── BoardingConfig.cs
│ ├── Configuration.cs
│ ├── Gateways
│ │ ├── AcceptorConfig.cs
│ │ ├── GatewayConfig.cs
│ │ ├── GeniusConfig.cs
│ │ ├── GpApiConfig.cs
│ │ ├── GpEcomConfig.cs
│ │ ├── PorticoConfig.cs
│ │ ├── TransactionApiConfig.cs
│ │ └── TransitConfig.cs
│ ├── HostedPaymentConfig.cs
│ ├── NetworkGatewayConfig.cs
│ ├── PayrollConfig.cs
│ ├── ServicesConfig.cs
│ └── TableServiceConfig.cs
│ ├── Services
│ ├── AdminService.cs
│ ├── BatchService.cs
│ ├── BillPayService.cs
│ ├── BoardingService.cs
│ ├── CheckService.cs
│ ├── CreditService.cs
│ ├── DebitService.cs
│ ├── DeviceCloudService.cs
│ ├── DeviceService.cs
│ ├── EbtService.cs
│ ├── FileProcessingService.cs
│ ├── FraudService.cs
│ ├── GiftService.cs
│ ├── GpApiService.cs
│ ├── HostedService.cs
│ ├── InstallmentService.cs
│ ├── PayByLinkService.cs
│ ├── PayFacService.cs
│ ├── PayrollService.cs
│ ├── RecurringService.cs
│ ├── ReportingService.cs
│ ├── Secure3dService.cs
│ ├── TableService.cs
│ └── TransitService.cs
│ ├── ServicesContainer.cs
│ ├── Terminals
│ ├── Abstractions
│ │ ├── IBatchClearResponse.cs
│ │ ├── IBatchCloseResponse.cs
│ │ ├── IBatchReportResponse.cs
│ │ ├── ICardBrandSummary.cs
│ │ ├── IDeviceCommInterface.cs
│ │ ├── IDeviceInterface.cs
│ │ ├── IDeviceMessage.cs
│ │ ├── IDeviceResponse.cs
│ │ ├── IDeviceScreen.cs
│ │ ├── IEODResponse.cs
│ │ ├── IInitializeResponse.cs
│ │ ├── IRequestIdProvider.cs
│ │ ├── IRequestSubGroup.cs
│ │ ├── IResponseSubGroup.cs
│ │ ├── ISAFResponse.cs
│ │ ├── ISafDeleteFileResponse.cs
│ │ ├── ISafParamsResponse.cs
│ │ ├── ISafSummaryReport.cs
│ │ ├── ISafUploadResponse.cs
│ │ └── ISignatureResponse.cs
│ ├── Builders
│ │ ├── HpaAdminBuilder.cs
│ │ ├── TerminalAuthBuilder.cs
│ │ ├── TerminalBuilder.cs
│ │ ├── TerminalManageBuilder.cs
│ │ └── TerminalReportBuilder.cs
│ ├── ConnectionConfig.cs
│ ├── ControlCodes.cs
│ ├── DeviceController.cs
│ ├── DeviceInterface.cs
│ ├── DeviceMessage.cs
│ ├── DeviceResponse.cs
│ ├── Diamond
│ │ ├── DiamondController.cs
│ │ ├── Entities
│ │ │ ├── DiamondCloudRequest.cs
│ │ │ └── Enums
│ │ │ │ ├── AuthorizationMethod.cs
│ │ │ │ ├── AuthorizationType.cs
│ │ │ │ ├── CardSource.cs
│ │ │ │ ├── DiamondCloudSearchCriteria.cs
│ │ │ │ ├── DiamondCloudTransactionType.cs
│ │ │ │ └── TransactionResult.cs
│ │ ├── Interfaces
│ │ │ ├── DiamondHttpInterface.cs
│ │ │ └── DiamondInterface.cs
│ │ └── Responses
│ │ │ └── DiamondCloudResponse.cs
│ ├── DiamondCloudConfig.cs
│ ├── Enums
│ │ ├── HostDecision.cs
│ │ ├── MerchantDecision.cs
│ │ ├── ReportOutPut.cs
│ │ ├── SummaryType.cs
│ │ └── TerminalReportType.cs
│ ├── Extensions
│ │ ├── BinaryReaderExtensions.cs
│ │ ├── BitConverterExtensions.cs
│ │ ├── ListExtensions.cs
│ │ └── NetworkStreamExtensions.cs
│ ├── Genius
│ │ ├── Builders
│ │ │ └── MitcManageBuilder.cs
│ │ ├── Enums
│ │ │ ├── MitcRequestType.cs
│ │ │ └── TransactionIdType.cs
│ │ ├── GeniusController.cs
│ │ ├── GeniusInterface.cs
│ │ ├── Interfaces
│ │ │ ├── GeniusHttpInterface.cs
│ │ │ └── MitcGateway.cs
│ │ ├── Request
│ │ │ └── GeniusMitcRequest.cs
│ │ ├── Responses
│ │ │ └── MitcResponse.cs
│ │ └── ServiceConfigs
│ │ │ └── MitcConfig.cs
│ ├── HPA
│ │ ├── HpaController.cs
│ │ ├── HpaEnums.cs
│ │ ├── HpaFileUpload.cs
│ │ ├── HpaInterface.cs
│ │ ├── Interfaces
│ │ │ └── HpaTcpInterface.cs
│ │ └── Responses
│ │ │ ├── BatchReportResponse.cs
│ │ │ ├── BatchResponse.cs
│ │ │ ├── CardBrandSummary.cs
│ │ │ ├── EODResponse.cs
│ │ │ ├── HeartBeatResponse.cs
│ │ │ ├── InitializeResponse.cs
│ │ │ ├── SAFResponse.cs
│ │ │ ├── SignatureResponse.cs
│ │ │ ├── SipBaseResponse.cs
│ │ │ ├── SipDeviceResponse.cs
│ │ │ ├── SipKvpResponse.cs
│ │ │ └── SipSendFileResponse.cs
│ ├── Messaging
│ │ ├── BroadcastMessageEventHandler.cs
│ │ ├── MessageReceivedEventHandler.cs
│ │ └── MessageSentEventHandler.cs
│ ├── PAX
│ │ ├── Interfaces
│ │ │ ├── PaxHttpInterface.cs
│ │ │ └── PaxTcpInterface.cs
│ │ ├── PaxController.cs
│ │ ├── PaxEnums.cs
│ │ ├── PaxInterface.cs
│ │ ├── Responses
│ │ │ ├── BatchClearResponse.cs
│ │ │ ├── BatchCloseResponse.cs
│ │ │ ├── CashResponse.cs
│ │ │ ├── CheckResponse.cs
│ │ │ ├── CreditResponse.cs
│ │ │ ├── DebitResponse.cs
│ │ │ ├── DeviceResponse.cs
│ │ │ ├── EbtResponse.cs
│ │ │ ├── GiftResponse.cs
│ │ │ ├── InitializeResponse.cs
│ │ │ ├── LocalDetailReport.cs
│ │ │ ├── ResetResponse.cs
│ │ │ ├── SafDeleteFileResponse.cs
│ │ │ ├── SafParamsResponse.cs
│ │ │ ├── SafSummaryReport.cs
│ │ │ ├── SafUploadResponse.cs
│ │ │ └── SignatureResponse.cs
│ │ └── SubGroups
│ │ │ ├── AccountSubGroups.cs
│ │ │ ├── AmountSubGroups.cs
│ │ │ ├── AvsSubGroups.cs
│ │ │ ├── CashierSubGroup.cs
│ │ │ ├── CheckSubGroup.cs
│ │ │ ├── CommercialSubGroups.cs
│ │ │ ├── EcomSubGroup.cs
│ │ │ ├── ExtDataSubGroups.cs
│ │ │ ├── HostSubGroup.cs
│ │ │ └── TraceSubGroups.cs
│ ├── SummaryResponse.cs
│ ├── TerminalUtilities.cs
│ ├── UPA
│ │ ├── Interfaces
│ │ │ ├── UpaMicInterface.cs
│ │ │ └── UpaTcpInterface.cs
│ │ ├── Responses
│ │ │ ├── BatchList.cs
│ │ │ ├── BatchRecordResponse.cs
│ │ │ ├── BatchReportResponse.cs
│ │ │ ├── BatchTransactionResponse.cs
│ │ │ ├── OpenTab.cs
│ │ │ ├── OpenTabDetailsResponse.cs
│ │ │ ├── PinDUKPTResponse.cs
│ │ │ ├── SafReportResponse.cs
│ │ │ ├── TransactionResponse.cs
│ │ │ ├── UDScreenResponse.cs
│ │ │ ├── UPAResponseHandler.cs
│ │ │ ├── UpaEODResponse.cs
│ │ │ ├── UpaGiftCardResponse.cs
│ │ │ ├── UpaSAFResponse.cs
│ │ │ └── UpaSignatureResponse.cs
│ │ ├── UpaController.cs
│ │ ├── UpaInterface.cs
│ │ ├── UpaMessageType.cs
│ │ ├── UpaSearchCriteria.cs
│ │ └── UpaTransType.cs
│ └── ValidationRequest.cs
│ └── Utils
│ ├── CardUtils.cs
│ ├── CountryUtils.cs
│ ├── ElementTree.cs
│ ├── EmvData.cs
│ ├── EmvUtils.cs
│ ├── EnumUtils.cs
│ ├── EventLogger.cs
│ ├── Extensions.cs
│ ├── FormDataUtils.cs
│ ├── GenerationUtils.cs
│ ├── IRawRequestBuilder.cs
│ ├── JsonUtils.cs
│ ├── Logging
│ ├── RequestConsoleLogger.cs
│ └── RequestFileLogger.cs
│ ├── MessageReader.cs
│ ├── MessageWriter.cs
│ ├── NetworkMessageBuilder.cs
│ ├── StringParser.cs
│ ├── StringUtils.cs
│ ├── TlvData.cs
│ └── TransitRequestBuilder.cs
└── tests
└── GlobalPayments.Api.Tests
├── BatchProvider.cs
├── BillPay
└── BillPayTests.cs
├── BuilderValidationTests.cs
├── CardUtilsTests.cs
├── Certifications
├── Portico
│ ├── AutoSubCertification.cs
│ ├── CheckCertification.cs
│ ├── EcomCertification.cs
│ ├── EcomCheckCertification.cs
│ ├── LodgingCertification.cs
│ ├── MotoCertification.cs
│ ├── MotoCheckCertification.cs
│ ├── RecurringCertification.cs
│ └── RetailCertification.cs
└── TransIT
│ ├── TransitBaseTestClass.cs
│ ├── TransitEcom.cs
│ ├── TransitEcomTokens.cs
│ └── TransitMoto.cs
├── CountryUtilsTests.cs
├── FileProcessing
├── FileProcessingClient.cs
└── FilesToUpload
│ ├── 202310261147-Create-Token-Tokenization-FPR-1000records.csv.encrypted.txt
│ └── 202310261147CreateToken-TokenizationFPR-new.csv.encrypted.txt
├── GenerationUtilsTests.cs
├── Genius
└── GeniusTests.cs
├── GlobalPayments.Api.Tests.csproj
├── GpApi
├── BaseGpApiReportingTest.cs
├── BaseGpApiTests.cs
├── Certification
│ └── GpApiSdkCertificationTest.cs
├── Client
│ └── GpApi3DSecureAcsClient.cs
├── FileProcessingTest.cs
├── FraudManagementTest.cs
├── GpApi3DSTestCards.cs
├── GpApi3DSecure2Test.cs
├── GpApi3DSecureTest.cs
├── GpApiAchTest.cs
├── GpApiApmTest.cs
├── GpApiAuthenticationTest.cs
├── GpApiAvsCheckTestCards.cs
├── GpApiBNPLTest.cs
├── GpApiBatchTest.cs
├── GpApiCreateInstallmentTest.cs
├── GpApiCreditCardNotPresentTest.cs
├── GpApiCreditCardPresentTest.cs
├── GpApiCreditWithMerchantIdTest.cs
├── GpApiDccCardNotPresentTest.cs
├── GpApiDebitTest.cs
├── GpApiDigitalWalletTest.cs
├── GpApiDisputeTest.cs
├── GpApiEbtTest.cs
├── GpApiInstallmentTests.cs
├── GpApiMappingTest.cs
├── GpApiMerchantAccountsTest.cs
├── GpApiMerchantsOnboardTest.cs
├── GpApiMultipleConfigTests.cs
├── GpApiOpenBankingTest.cs
├── GpApiPayByLinkTest.cs
├── GpApiPayerTest.cs
├── GpApiReportingActionsTest.cs
├── GpApiReportingDepositsTest.cs
├── GpApiReportingDisputesTest.cs
├── GpApiReportingStoredPaymentMethodsTest.cs
├── GpApiReportingTransactionsTest.cs
├── GpApiRiskAssessmentTest.cs
├── GpApiTokenManagementErrorTest.cs
└── GpApiTokenManagementTest.cs
├── GpEcom
├── Certification
│ ├── GpEcomSdkCertificationTest.cs
│ └── JsonComparatorTest.cs
├── GpEcom3dSecureTests.cs
├── GpEcomApmTest.cs
├── GpEcomCreditTest.cs
├── GpEcomDataServiceReportingTest.cs
├── GpEcomHppRequestTest.cs
├── GpEcomHppResponseTest.cs
├── GpEcomOpenBankingTest.cs
├── GpEcomRecurringTest.cs
├── GpEcomReportingTest.cs
├── GpEcomSecure3dServiceExemptionTest.cs
├── GpEcomSecure3dServiceTest.cs
└── Hpp
│ └── RealexHppClient.cs
├── JsonComparator.cs
├── Logging
├── CustomWebProxy.cs
└── TransitCertLogger.cs
├── Network
├── Certification
│ ├── ContactLessEMVTests.cs
│ └── VoyagerEMVTests.cs
├── NWSAdministrativeTests.cs
├── NWSAvsTests.cs
├── NWSBatchTests.cs
├── NWSCheckTests.cs
├── NWSCombined3DesTokenizationTest.cs
├── NWSCreditTests.cs
├── NWSCvnTests.cs
├── NWSDebitTests.cs
├── NWSDebitTokenizationTests.cs
├── NWSEMVTests.cs
├── NWSEbtTests.cs
├── NWSEcomCardOnFileTests.cs
├── NWSEncryption3DesTests.cs
├── NWSEncryptionTests.cs
├── NWSEwicTests.cs
├── NWSFleetTests.cs
├── NWSGiftTests.cs
├── NWSIcrTests.cs
├── NWSPanTests.cs
├── NWSRegressionCreditTests.cs
├── NWSTimeoutTests.cs
├── NWSTokenizationTest.cs
├── NWSWexEMVTests.cs
└── NWSWexTests.cs
├── OnlineBoarding
└── OnlineBoardingTests.cs
├── Payroll
└── PayrollTests.cs
├── Portico
├── PorticoAchTests.cs
├── PorticoAutoSubTests.cs
├── PorticoCreditTests.cs
├── PorticoDebitTests.cs
├── PorticoEbtTests.cs
├── PorticoEcommerceTests.cs
├── PorticoGiftTests.cs
├── PorticoInteracTests.cs
├── PorticoLevel2And3Tests.cs
├── PorticoRecurringTests.cs
├── PorticoReportingTests.cs
└── PorticoTokenManagement.cs
├── ProPay
├── GetInformationTests.cs
├── ProPayAccountTests.cs
├── ProPayFundsTests.cs
├── ProPayInNetworkTransactionTests.cs
└── TestData
│ ├── TestAccountData.cs
│ ├── TestDoc.docx
│ ├── TestDocChargeback.docx
│ ├── TestFundsData.cs
│ └── testCertificate.crt
├── Properties
└── AssemblyInfo.cs
├── Services
├── CheckServiceTests.cs
├── CreditServiceTests.cs
├── DebitServiceTests.cs
├── EbtServiceTests.cs
└── GiftServiceTests.cs
├── StanGenerator.cs
├── TableService
└── TableServiceTests.cs
├── Terminals
├── DiamondCloud
│ └── DiamondCloudTest.cs
├── Genius
│ └── GeniusCreditTests.cs
├── HPA
│ ├── HpaAdminTests.cs
│ ├── HpaCreditTests.cs
│ ├── HpaDebitTests.cs
│ ├── HpaEbtTests.cs
│ ├── HpaEndOfDayTests.cs
│ ├── HpaGiftTests.cs
│ ├── HpaMessageTests.cs
│ └── VRF
│ │ └── VerificationTests.cs
├── Pax
│ ├── PaxAdminTests.cs
│ ├── PaxAsyncTests.cs
│ ├── PaxBatchTests.cs
│ ├── PaxCreditTests.cs
│ ├── PaxDebitTests.cs
│ ├── PaxEbtTests.cs
│ ├── PaxGiftTests.cs
│ ├── PaxLevel2Tests.cs
│ ├── PaxMessageTests.cs
│ └── PaxReportTests.cs
├── RequestIdProviders.cs
└── UPA
│ ├── FileExamples
│ ├── UDDataFile.html
│ ├── download.png
│ ├── example.html
│ └── example.jpg
│ ├── UpaAdminTests.cs
│ ├── UpaCreditTests.cs
│ ├── UpaDebitTests.cs
│ ├── UpaEbtTests.cs
│ ├── UpaMicTests.cs
│ └── UpaReportTests.cs
├── TestData
├── TestCards.cs
├── TestChecks.cs
└── mt30_ad1.zip
├── ThreadSafeTests.cs
├── TransIT
├── TransitAuthenticationTests.cs
├── TransitCreditTests.cs
└── TransitDebitTests.cs
├── TransactionApi
├── CARegion
│ ├── TransactionApiAchCATests.cs
│ └── TransactionApiCreditCATests.cs
└── USRegion
│ ├── TransactionApiAchTests.cs
│ └── TransactionApiCreditTests.cs
└── Utils
└── ExtensionsTests.cs
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: csharp
2 |
3 | sudo: false
4 | branches:
5 | only:
6 | - master
7 |
8 | mono: none
9 | dotnet: 2.1.502
10 |
11 | addons:
12 | apt:
13 | packages:
14 | - doxygen
15 |
16 | install:
17 | - dotnet restore
18 |
19 | script:
20 | - doxygen Doxyfile
21 |
22 | deploy:
23 | local-dir: docs/html
24 | provider: pages
25 | skip-cleanup: true
26 | github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
27 | keep-history: true
28 | on:
29 | branch: master
30 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/App_Start/BundleConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Optimization;
6 | using System.Web.UI;
7 |
8 | namespace end_to_end
9 | {
10 | public class BundleConfig
11 | {
12 | // For more information on Bundling, visit https://go.microsoft.com/fwlink/?LinkID=303951
13 | public static void RegisterBundles(BundleCollection bundles)
14 | {
15 |
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/App_Start/RouteConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Web;
4 | using System.Web.Routing;
5 | using Microsoft.AspNet.FriendlyUrls;
6 |
7 | namespace end_to_end
8 | {
9 | public static class RouteConfig
10 | {
11 | public static void RegisterRoutes(RouteCollection routes)
12 | {
13 | var settings = new FriendlyUrlSettings();
14 | settings.AutoRedirectMode = RedirectMode.Permanent;
15 | routes.EnableFriendlyUrls(settings);
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Authorization.ashx:
--------------------------------------------------------------------------------
1 | <%@ WebHandler Language="C#" CodeBehind="Authorization.ashx.cs" Class="end_to_end.Authorization" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Bundle.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/ChallengeNotificationUrl.ashx:
--------------------------------------------------------------------------------
1 | <%@ WebHandler Language="C#" CodeBehind="ChallengeNotificationUrl.ashx.cs" Class="end_to_end.ChallengeNotificationUrl" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Check3dsVersion.ashx:
--------------------------------------------------------------------------------
1 | <%@ WebHandler Language="C#" CodeBehind="Check3dsVersion.ashx.cs" Class="end_to_end.Check3dsVersion" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Content/Site.css:
--------------------------------------------------------------------------------
1 | /* Move down content because we have a fixed navbar that is 50px tall */
2 | body {
3 | padding-top: 50px;
4 | padding-bottom: 20px;
5 | }
6 |
7 | /* Wrapping element */
8 | /* Set some basic padding to keep content from hitting the edges */
9 | .body-content {
10 | padding-left: 15px;
11 | padding-right: 15px;
12 | }
13 |
14 | /* Set widths on the form inputs since otherwise they're 100% wide */
15 | input,
16 | select,
17 | textarea {
18 | max-width: 280px;
19 | }
20 |
21 |
22 | /* Responsive: Portrait tablets and up */
23 | @media screen and (min-width: 768px) {
24 | .jumbotron {
25 | margin-top: 20px;
26 | }
27 |
28 | .body-content {
29 | padding: 0;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Content/styles.css:
--------------------------------------------------------------------------------
1 | .container {
2 | background-color: #f2f2f2;
3 | padding: 5px 20px 15px 20px;
4 | border: 1px solid lightgrey;
5 | border-radius: 10px;
6 | max-width: 500px;
7 | margin-left: auto;
8 | margin-right: auto;
9 | }
10 |
11 | iframe[id^="secure-payment-field"] {
12 | min-height: 66px !important;
13 | }
14 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 |
11 | namespace end_to_end
12 | {
13 | public partial class _Default
14 | {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="end_to_end.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Optimization;
6 | using System.Web.Routing;
7 | using System.Web.Security;
8 | using System.Web.SessionState;
9 |
10 | namespace end_to_end
11 | {
12 | public class Global : HttpApplication
13 | {
14 | void Application_Start(object sender, EventArgs e)
15 | {
16 | // Code that runs on application startup
17 | RouteConfig.RegisterRoutes(RouteTable.Routes);
18 | BundleConfig.RegisterBundles(BundleTable.Bundles);
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/InitiateAuthentication.ashx:
--------------------------------------------------------------------------------
1 | <%@ WebHandler Language="C#" CodeBehind="InitiateAuthentication.ashx.cs" Class="end_to_end.InitiateAuthentication" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/MethodNotificationUrl.ashx:
--------------------------------------------------------------------------------
1 | <%@ WebHandler Language="C#" CodeBehind="MethodNotificationUrl.ashx.cs" Class="end_to_end.MethodNotificationUrl" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/Site.Mobile.Master.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace end_to_end
9 | {
10 | public partial class Site_Mobile : System.Web.UI.MasterPage
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/ViewSwitcher.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewSwitcher.ascx.cs" Inherits="end_to_end.ViewSwitcher" %>
2 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/ViewSwitcher.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace end_to_end {
11 |
12 |
13 | public partial class ViewSwitcher {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/gpapi/end-to-end/end-to-end/favicon.ico
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/gpapi/end-to-end/end-to-end/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/.bowerrc:
--------------------------------------------------------------------------------
1 | {
2 | "directory": "wwwroot/lib"
3 | }
4 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Models/OrderDetails.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Models {
2 | public class OrderDetails {
3 | public string Token_value { get; set; }
4 | public string FirstName { get; set; }
5 | public string LastName { get; set; }
6 | public string Email { get; set; }
7 | public string Address { get; set; }
8 | public string City { get; set; }
9 | public string State { get; set; }
10 | public string Zip { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Models/SuccessModel.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Models {
2 | public class SuccessModel {
3 | public string FirstName { get; set; }
4 | public string TransactionId { get; set; }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Hosting;
2 | using Microsoft.Extensions.Hosting;
3 |
4 | namespace GlobalPayments {
5 | public class Program {
6 | public static void Main(string[] args) {
7 | CreateHostBuilder(args).Build().Run();
8 | }
9 |
10 | public static IHostBuilder CreateHostBuilder(string[] args) =>
11 | Host.CreateDefaultBuilder(args)
12 | .ConfigureWebHostDefaults(webBuilder => {
13 | webBuilder.UseStartup();
14 | });
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:33141/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "end_to_end": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:33142"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewData["Title"] = "Error";
3 | }
4 |
5 | Error.
6 | An error occurred while processing your request.
7 |
8 | Development Mode
9 |
10 | Swapping to Development environment will display more detailed information about the error that occurred.
11 |
12 |
13 | Development environment should not be enabled in deployed applications , as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development , and restarting the application.
14 |
15 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @ViewData["Title"] - end_to_end
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | @RenderBody()
17 |
18 |
19 | @RenderSection("Scripts", required: false)
20 |
21 |
22 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using GlobalPayments
2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
3 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "LogLevel": {
5 | "Default": "Debug",
6 | "System": "Information",
7 | "Microsoft": "Information"
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "LogLevel": {
5 | "Default": "Warning"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "asp.net",
3 | "private": true,
4 | "dependencies": {
5 | "bootstrap": "3.3.7",
6 | "jquery": "2.2.0",
7 | "jquery-validation": "1.14.0",
8 | "jquery-validation-unobtrusive": "3.2.6"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/bundleconfig.json:
--------------------------------------------------------------------------------
1 | // Configure bundling and minification for the project.
2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241
3 | [
4 | {
5 | "outputFileName": "wwwroot/css/site.min.css",
6 | // An array of relative input file paths. Globbing patterns supported
7 | "inputFiles": [
8 | "wwwroot/css/site.css"
9 | ]
10 | },
11 | {
12 | "outputFileName": "wwwroot/js/site.min.js",
13 | "inputFiles": [
14 | "wwwroot/js/site.js"
15 | ],
16 | // Optionally specify minification options
17 | "minify": {
18 | "enabled": true,
19 | "renameLocals": true
20 | },
21 | // Optionally generate .map file
22 | "sourceMap": false
23 | }
24 | ]
25 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/libman.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "defaultProvider": "jsdelivr",
4 | "libraries": [
5 | {
6 | "library": "bootstrap@4.6.1",
7 | "destination": "wwwroot/lib/bootstrap/",
8 | "files": [
9 | "dist/js/bootstrap.min.js",
10 | "dist/js/bootstrap.js",
11 | "dist/css/bootstrap.css",
12 | "dist/css/bootstrap.min.css"
13 | ]
14 | }
15 | ]
16 | }
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/css/site.min.css:
--------------------------------------------------------------------------------
1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}}
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/mvc/end-to-end/end-to-end/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/js/site.js:
--------------------------------------------------------------------------------
1 | // Write your Javascript code.
2 |
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/js/site.min.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/mvc/end-to-end/end-to-end/wwwroot/js/site.min.js
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/examples/mvc/end-to-end/end-to-end/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "main": "dist/jquery.js",
4 | "license": "MIT",
5 | "ignore": [
6 | "package.json"
7 | ],
8 | "keywords": [
9 | "jquery",
10 | "javascript",
11 | "browser",
12 | "library"
13 | ],
14 | "homepage": "https://github.com/jquery/jquery-dist",
15 | "version": "2.2.0",
16 | "_release": "2.2.0",
17 | "_resolution": {
18 | "type": "version",
19 | "tag": "2.2.0",
20 | "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 | },
22 | "_source": "git://github.com/jquery/jquery-dist.git",
23 | "_target": "2.2.0",
24 | "_originalSource": "jquery"
25 | }
--------------------------------------------------------------------------------
/examples/selfboarding/BoardingAPI/TestBoardingAPI/TestBoardingAPI/Models/CompletedApplication.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace TestBoardingAPI.Models {
4 | public class CompletedApplication {
5 | public int Id { get; set; }
6 | public string Status { get; set; }
7 | public DateTime SubmittedDate { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/examples/terminals/heartland-payment-app/TestTerminalApp/TestTerminalApp/TestTerminalApp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp1.1
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/examples/webforms/end-to-end/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/examples/webforms/end-to-end/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/webforms/end-to-end/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/examples/webforms/end-to-end/.nuget/NuGet.exe.old:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/examples/webforms/end-to-end/.nuget/NuGet.exe.old
--------------------------------------------------------------------------------
/examples/webforms/end-to-end/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace end_to_end {
11 |
12 |
13 | public partial class Default {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/examples/webforms/end-to-end/css/response.css:
--------------------------------------------------------------------------------
1 | body {
2 | }
3 | .btn {
4 | TOP: 120px;
5 | box-sizing: border-box;
6 | font-size: 14px;
7 | font-weight: 400;
8 | text-align: center;
9 | white-space: nowrap;
10 | color: #ffffff;
11 | background-color: #36b46e;
12 | font-family: sans-serif;
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Builders/BaseBuilder.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.Builders {
4 | public abstract class BaseBuilder {
5 | internal Validations Validations { get; set; }
6 |
7 | public BaseBuilder() {
8 | Validations = new Validations();
9 | SetupValidations();
10 | }
11 |
12 | public virtual TResult Execute(string configName = "default") {
13 | Validations.Validate(this);
14 | return default(TResult);
15 | }
16 |
17 | public virtual TResult Execute(Secure3dVersion version, string configName = "default")
18 | {
19 | Validations.Validate(this);
20 | return default(TResult);
21 | }
22 |
23 | protected virtual void SetupValidations() { }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/AdditionalTaxDetails.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public class AdditionalTaxDetails {
3 | public decimal? TaxAmount { get; set; }
4 | public TaxCategory? TaxCategory { get; set; }
5 | public decimal? TaxRate { get; set; }
6 | public string TaxType { get; set; }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/BNPLResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class BNPLResponse
8 | {
9 | public string ProviderName { get; set; }
10 |
11 | ///
12 | /// URL to redirect the customer, sent so merchant can redirect consumer to complete the payment.
13 | ///
14 | public string RedirectUrl { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/BillingResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | public class BillingResponse {
7 | ///
8 | /// Indicates if the action was succesful
9 | ///
10 | internal bool IsSuccessful { get; set; }
11 |
12 | ///
13 | /// The response code from the Billing Gateway
14 | ///
15 | public string ResponseCode { get; set; }
16 |
17 | ///
18 | /// The response message from the Billing Gateway
19 | ///
20 | public string ResponseMessage { get; set; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/ConvenienceFeeResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | public class ConvenienceFeeResponse : BillingResponse {
7 | public decimal ConvenienceFee { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/Credentials.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | internal class Credentials {
7 | public string ApiKey { get; set; }
8 | public string MerchantName { get; set; }
9 | public string Password { get; set; }
10 | public string UserName { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/LoadHostedPaymentResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | public class LoadHostedPaymentResponse : BillingResponse {
7 | ///
8 | /// Unique identifier for the hosted payment page
9 | ///
10 | public string PaymentIdentifier { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/LoadSecurePayResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | public class LoadSecurePayResponse: BillingResponse {
7 | public string PaymentIdentifier { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/TokenData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | public class TokenData {
7 | public DateTime LastUsedDateUTC { get; set; }
8 | public bool IsExpired { get; set; }
9 | public bool ShareTokenWithGroup { get; set; }
10 | public List Merchants { get; set; } = null;
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Billing/TokenResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Billing {
6 | public class TokenResponse: BillingResponse {
7 | public string Token { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/BlockedCardType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class BlockedCardType
8 | {
9 | public bool? Consumerdebit { get; set; }
10 | public bool? Consumercredit { get; set; }
11 | public bool? Commercialcredit { get; set; }
12 | public bool? Commercialdebit { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/BrowserData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities {
6 | public class BrowserData {
7 | public string AcceptHeader { get; set; }
8 | public ColorDepth ColorDepth { get; set; }
9 | public string IpAddress { get; set; }
10 | public bool JavaEnabled { get; set; }
11 | public bool JavaScriptEnabled { get; set; }
12 | public string Language { get; set; }
13 | public int ScreenHeight { get; set; }
14 | public int ScreenWidth { get; set; }
15 | public ChallengeWindowSize ChallengeWindowSize { get; set; }
16 | public string Timezone { get; set; }
17 | public string UserAgent { get; set; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/CheckResponseErrorMessage.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities
2 | {
3 | public class CheckResponseErrorMessage
4 | {
5 | public string RspMessage { get; set; }
6 | public string Type { get; set; }
7 | public string Code { get; set; }
8 | public string Message { get; set; }
9 | }
10 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/CustomerDocument.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities
7 | {
8 | public class CustomerDocument
9 | {
10 | public string Reference { get; set; }
11 | public string Issuer { get; set; }
12 | public CustomerDocumentType Type { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/DebitMac.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public class DebitMac {
3 | public string TransactionCode { get; set; }
4 | public string TransmissionNumber { get; set; }
5 | public string BankResponseCode { get; set; }
6 | public string MacKey { get; set; }
7 | public string PinKey { get; set; }
8 | public string FieldKey { get; set; }
9 | public string TraceNumber { get; set; }
10 | public string MessageAuthenticationCode { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/DiscountDetails.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public class DiscountDetails {
3 | public string DiscountName { get; set; }
4 | public decimal? DiscountAmount { get; set; }
5 | public decimal? DiscountPercentage { get; set; }
6 | public string DiscountType { get; set; }
7 | public int DiscountPriority { get; set; }
8 | public bool DiscountIsStackable { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/DisputeDocument.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public class DisputeDocument : Document
5 | {
6 | [JsonProperty("type")]
7 | public string Type { get; set; }
8 |
9 | [JsonProperty("b64_content")]
10 | public string Base64Content { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Document.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 | using Newtonsoft.Json;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Entities
8 | {
9 | public class Document
10 | {
11 | [JsonProperty("id")]
12 | public string Id { get; set; }
13 | public string Name { get; set; }
14 | public string Status { get; set; }
15 | public string TimeCreated { get; set; }
16 | public FileType Format { get; set; }
17 | public DocumentCategory Category { get; set; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/AcquisitionType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum AcquisitionType {
5 | [Map(Target.UPA, "None")]
6 | None,
7 | [Map(Target.UPA, "Contact")]
8 | Contact,
9 | [Map(Target.UPA, "Contactless")]
10 | Contactless,
11 | [Map(Target.UPA, "Swipe")]
12 | Swipe,
13 | [Map(Target.UPA, "Manual")]
14 | Manual,
15 | [Map(Target.UPA, "Scan")]
16 | Scan,
17 | [Map(Target.UPA, "Insert")]
18 | Insert,
19 | [Map(Target.UPA, "Tap")]
20 | Tap
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ActionSortProperty.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum ActionSortProperty {
6 | [Map(Target.GP_API, "TIME_CREATED")]
7 | TimeCreated,
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/AdvancedDepositType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum AdvancedDepositType {
3 | ASSURED_RESERVATION,
4 | CARD_DEPOSIT,
5 | PURCHASE,
6 | OTHER
7 | }
8 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/AgeIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum AgeIndicator {
3 | NO_ACCOUNT,
4 | NO_CHANGE,
5 | THIS_TRANSACTION,
6 | LESS_THAN_THIRTY_DAYS,
7 | THIRTY_TO_SIXTY_DAYS,
8 | MORE_THEN_SIXTY_DAYS
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/AuthenticationSource.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum AuthenticationSource {
3 | BROWSER,
4 | STORED_RECURRING,
5 | MOBILE_SDK,
6 | MERCHANT_INITIATED,
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/BNPLShippingMethod.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public enum BNPLShippingMethod {
8 | DELIVERY,
9 | COLLECTION,
10 | EMAIL
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/BNPLType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | [MapTarget(Target.GP_API)]
9 | public enum BNPLType {
10 | [Map(Target.GP_API, "AFFIRM")]
11 | AFFIRM,
12 |
13 | [Map(Target.GP_API, "CLEARPAY")]
14 | CLEARPAY,
15 |
16 | [Map(Target.GP_API, "KLARNA")]
17 | KLARNA
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/BankPaymentType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum BankPaymentType {
8 | FASTERPAYMENTS,
9 | SEPA
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/BillPresentment.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | ///
3 | /// The Presentment Status of a bill
4 | /// Will default to Full if not set
5 | ///
6 | public enum BillPresentment {
7 | Full
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/BillingLoadType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum BillingLoadType {
3 | None,
4 | Bills,
5 | SecurePayment
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/BlockCardType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | public enum BlockCardType
9 | {
10 | [Description("consumercredit")]
11 | CONSUMER_CREDIT,
12 | [Description("consumerdebit")]
13 | CONSUMER_DEBIT,
14 | [Description("commercialdebit")]
15 | COMMERCIAL_DEBIT,
16 | [Description("commercialcredit")]
17 | COMMERCIAL_CREDIT
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/CardTypeFilter.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum CardTypeFilter {
5 | [Map(Target.UPA, "GIFT")]
6 | GIFT,
7 | [Map(Target.UPA, "VISA")]
8 | VISA,
9 | [Map(Target.UPA, "MC")]
10 | MC,
11 | [Map(Target.UPA, "AMEX")]
12 | AMEX,
13 | [Map(Target.UPA, "DISCOVER")]
14 | DISCOVER
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ChallengeRequestIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum ChallengeRequestIndicator {
3 | NO_PREFERENCE,
4 | NO_CHALLENGE_REQUESTED,
5 | CHALLENGE_PREFERRED,
6 | CHALLENGE_MANDATED,
7 | NO_CHALLENGE_REQUESTED_TRANSACTION_RISK_ANALYSIS_PERFORMED,
8 | NO_CHALLENGE_REQUESTED_DATA_SHARE_ONLY,
9 | NO_CHALLENGE_REQUESTED_SCA_ALREADY_PERFORMED,
10 | NO_CHALLENGE_REQUESTED_WHITELIST,
11 | CHALLENGE_REQUESTED_PROMPT_FOR_WHITELIST
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/Channel.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum Channel {
6 | [Map(Target.GP_API, "CP")]
7 | CardPresent,
8 |
9 | [Map(Target.GP_API, "CNP")]
10 | CardNotPresent
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/CommercialIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum CommercialIndicator {
3 | Level_II,
4 | Level_III
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/CountryCodeFormat.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities
2 | {
3 | public enum CountryCodeFormat {
4 | Alpha2,
5 | Alpha3,
6 | Numeric,
7 | Name
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/CreditDebitIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum CreditDebitIndicator {
3 | Debit,
4 | Credit
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/CustomerAuthenticationMethod.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum CustomerAuthenticationMethod {
3 | NOT_AUTHENTICATED,
4 | MERCHANT_SYSTEM_AUTHENTICATION,
5 | FEDERATED_ID_AUTHENTICATION,
6 | ISSUER_CREDENTIAL_AUTHENTICATION,
7 | THIRD_PARTY_AUTHENTICATION,
8 | FIDO_AUTHENTICATION
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/CustomerDocumentType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum CustomerDocumentType {
8 | NATIONAL,
9 | CPF,
10 | CPNJ,
11 | CURP,
12 | SSN,
13 | DRIVER_LICENSE,
14 | PASSPORT
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DccProcessor.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum DccProcessor {
3 | None = 0,
4 | Fexco,
5 | Euroconex
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DccRateType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum DccRateType {
3 | None = 0,
4 | Sale,
5 | Refund
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DebugLevel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | [Flags]
5 | public enum DebugLevel {
6 | NOLOGS = 0,
7 | ERROR = 1,
8 | WARNING = 2,
9 | FLOW = 4,
10 | MESSAGE = 8,
11 | DATA = 16,
12 | PACKETS = 32,
13 | PIA = 64,
14 | PERF = 128
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DebugLogsOutput.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum DebugLogsOutput {
3 | CONSOLE = 0,
4 | FILE = 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DecoupledFlowRequest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum DecoupledFlowRequest {
8 | DECOUPLED_PREFERRED,
9 | DO_NOT_USE_DECOUPLED
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DeliveryTimeFrame.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum DeliveryTimeFrame {
3 | ELECTRONIC_DELIVERY,
4 | SAME_DAY,
5 | OVERNIGHT,
6 | TWO_DAYS_OR_MORE
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DepositSortProperty.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum DepositSortProperty {
6 | [Map(Target.GP_API, "TIME_CREATED")]
7 | TimeCreated,
8 |
9 | [Map(Target.GP_API, "STATUS")]
10 | Status,
11 |
12 | [Map(Target.GP_API, "TYPE")]
13 | Type,
14 |
15 | [Map(Target.GP_API, "DEPOSIT_ID")]
16 | DepositId
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DepositStatus.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum DepositStatus {
6 | [Map(Target.GP_API, "FUNDED")]
7 | Funded,
8 |
9 | [Map(Target.GP_API, "SPLIT_FUNDING")]
10 | SplitFunding,
11 |
12 | [Map(Target.GP_API, "DELAYED")]
13 | Delayed,
14 |
15 | [Map(Target.GP_API, "RESERVED")]
16 | Reserved,
17 |
18 | [Map(Target.GP_API, "IRREG")]
19 | Irregular,
20 |
21 | [Map(Target.GP_API, "RELEASED")]
22 | Released
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DisplayOption.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum DisplayOption {
3 | NoScreenChange = 0,
4 | ReturnToIdleScreen = 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DisputeStatus.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum DisputeStatus {
6 | [Map(Target.GP_API, "UNDER_REVIEW")]
7 | UnderReview,
8 |
9 | [Map(Target.GP_API, "WITH_MERCHANT")]
10 | WithMerchant,
11 |
12 | [Map(Target.GP_API, "CLOSED")]
13 | Closed,
14 |
15 | //Only for Settlement disputes
16 | [Map(Target.GP_API, "FUNDED")]
17 | Funded
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/DocumentCategory.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | public enum DocumentCategory
9 | {
10 | [Map(Target.GP_API, "IDENTITY_VERIFICATION")]
11 | IDENTITY_VERIFICATION,
12 | [Map(Target.GP_API, "RISK_REVIEW")]
13 | RISK_REVIEW,
14 | [Map(Target.GP_API, "UNDERWRITING")]
15 | UNDERWRITING,
16 |
17 | VERIFICATION
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/EmvFallbackCondition.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum EmvFallbackCondition {
5 | [Map(Target.Transit, "ICC_TERMINAL_ERROR")]
6 | ChipReadFailure,
7 |
8 | [Map(Target.Transit, "NO_CANDIDATE_LIST")]
9 | NoCandidateList
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/EmvLastChipRead.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum EmvLastChipRead {
5 | [Map(Target.Transit, "SUCCESSFUL")]
6 | [Map(Target.Portico, "CHIP_FAILED_PREV_SUCCESS")]
7 | [Map(Target.GP_API, "PREV_SUCCESS")]
8 | Successful,
9 |
10 | [Map(Target.Transit, "FAILED")]
11 | [Map(Target.Portico, "CHIP_FAILED_PREV_FAILED")]
12 | [Map(Target.GP_API, "PREV_FAILED")]
13 | Failed,
14 |
15 | [Map(Target.Transit, "NOT_A_CHIP_TRANSACTION")]
16 | NotAChipTransaction,
17 |
18 | [Map(Target.Transit, "UNKNOWN")]
19 | Unknown
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/EncryptedFieldMatrix.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum EncryptedFieldMatrix {
5 | [Map(Target.NWS, "1")]
6 | Track1,
7 | [Map(Target.NWS, "2")]
8 | Track2,
9 | [Map(Target.NWS, "3")]
10 | Pan,
11 | [Map(Target.NWS, "03")]
12 | CustomerData,
13 | [Map(Target.NWS, "04")]
14 | CustomerDataCSV
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ExemptReason.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum ExemptReason {
3 | APPLY_EXEMPTION,
4 | CONTINUE,
5 | FORCE_SECURE,
6 | BLOCK
7 | }
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ExemptStatus.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum ExemptStatus {
3 | LOW_VALUE,
4 | TRANSACTION_RISK_ANALYSIS,
5 | TRUSTED_MERCHANT,
6 | SECURE_CORPORATE_PAYMENT,
7 | SCA_DELEGATION
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ExtraChargeType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum ExtraChargeType {
3 | Restaurant = 1,
4 | GiftShop = 2,
5 | MiniBar = 3,
6 | Telephone = 4,
7 | Laundry = 5,
8 | Other = 10
9 | }
10 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/FileProcessingActionType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum FileProcessingActionType {
3 | CREATE_UPLOAD_URL = 1,
4 | GET_DETAILS = 2
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/FileType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum FileType {
8 | TIF,
9 | TIFF,
10 | BMP,
11 | JPG,
12 | JPEG,
13 | GIF,
14 | PNG,
15 | DOC,
16 | DOCX
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/FraudFilterResult.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | public enum FraudFilterResult {
9 | [Map(Target.GP_API, "PENDING_REVIEW")]
10 | HOLD,
11 |
12 | [Map(Target.GP_API, "ACCEPTED")]
13 | PASS,
14 |
15 | [Map(Target.GP_API, "REJECTED")]
16 | BLOCK,
17 |
18 | [Map(Target.GP_API, "NOT_EXECUTED")]
19 | NOT_EXECUTED,
20 |
21 | [Map(Target.GP_API, "ERROR")]
22 | ERROR,
23 |
24 | [Map(Target.GP_API, "RELEASE_SUCCESSFUL")]
25 | RELEASE_SUCCESSFUL,
26 |
27 | [Map(Target.GP_API, "HOLD_SUCCESSFUL")]
28 | HOLD_SUCCESSFUL
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/FundsStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum FundsStatus {
8 | CAPTURED,
9 | DECLINE
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/GatewayProvider.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum GatewayProvider {
3 | Portico,
4 | GP_API,
5 | GP_Ecom,
6 | Genius,
7 | TransIT,
8 | TransactionApi
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/HostedPaymentType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | ///
3 | /// Specifies the Bill Pay Hosted Payment Type
4 | ///
5 | public enum HostedPaymentType {
6 | None,
7 | MakePayment,
8 | MakePaymentReturnToken,
9 | GetToken,
10 | MyAccount
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/InputAlignment.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum InputAlignment {
5 | [Description("LR")]
6 | LEFT_TO_RIGHT,
7 | [Description("RL")]
8 | RIGHT_TO_LEFT
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/IntervalToExpire.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum IntervalToExpire {
6 | [Map(Target.GP_API, "WEEK")]
7 | WEEK,
8 |
9 | [Map(Target.GP_API, "DAY")]
10 | DAY,
11 |
12 | [Map(Target.GP_API, "12_HOURS")]
13 | TWELVE_HOURS,
14 |
15 | [Map(Target.GP_API, "6_HOURS")]
16 | SIX_HOURS,
17 |
18 | [Map(Target.GP_API, "3_HOURS")]
19 | THREE_HOURS,
20 |
21 | [Map(Target.GP_API, "1_HOUR")]
22 | ONE_HOUR,
23 |
24 | [Map(Target.GP_API, "30_MINUTES")]
25 | THIRTY_MINUTES,
26 |
27 | [Map(Target.GP_API, "10_MINUTES")]
28 | TEN_MINUTES,
29 |
30 | [Map(Target.GP_API, "5_MINUTES")]
31 | FIVE_MINUTES
32 | }
33 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/Language.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum Language {
6 | [Map(Target.GP_API, "EN")]
7 | English,
8 |
9 | [Map(Target.GP_API, "ES")]
10 | Spanish
11 | }
12 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/LodgingItemType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum LodgingItemType {
8 | RESTAURANT,
9 | GIFT_SHOP,
10 | MINI_BAR,
11 | PHONE,
12 | LAUNDRY,
13 | OTHER,
14 | NO_SHOW
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/LogFile.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum LogFile {
5 | [Description("Debuglog1.log")]
6 | Debuglog1 = 1,
7 | [Description("Debuglog2.log")]
8 | Debuglog2 = 2,
9 | [Description("Debuglog3.log")]
10 | Debuglog3 = 3
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/MerchantAccountStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum MerchantAccountStatus {
8 | ACTIVE,
9 | INACTIVE
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/MerchantAccountType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum MerchantAccountType {
8 | TRANSACTION_PROCESSING,
9 | DATA_SERVICES,
10 | DISPUTE_MANAGEMENT,
11 | MERCHANT_MANAGEMENT,
12 | TOKENIZATION,
13 | FUND_MANAGEMENT,
14 | RISK_ASSESSMENT
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/MerchantAccountsSortProperty.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | [MapTarget(Target.GP_API)]
9 | public enum MerchantAccountsSortProperty {
10 | [Map(Target.GP_API, "TIME_CREATED")]
11 | TIME_CREATED
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/MerchantCategory.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum MerchantCategory {
8 | HOTEL,
9 | AIRLINE,
10 | RETAIL,
11 | TOP_UP,
12 | PLAYER,
13 | CD_KEY,
14 | OTHER
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/MerchantInitiatedRequestType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum MerchantInitiatedRequestType {
3 | RECURRING_TRANSACTION,
4 | INSTALLMENT_TRANSACTION,
5 | ADD_CARD,
6 | MAINTAIN_CARD_INFORMATION,
7 | ACCOUNT_VERIFICATION,
8 | SPLIT_OR_DELAYED_SHIPMENT,
9 | TOP_UP,
10 | MAIL_ORDER,
11 | TELEPHONE_ORDER,
12 | WHITELIST_STATUS_CHECK,
13 | OTHER_PAYMENT,
14 | BILLING_AGREEMENT
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/NetGrossIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum NetGrossIndicator {
3 | Net,
4 | Gross
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/OperationType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum OperationType {
5 | [Map(Target.NWS, "1")]
6 | Reserved,
7 | [Map(Target.NWS, "2")]
8 | Decrypt
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/OrderTransactionType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum OrderTransactionType {
3 | GOODS_SERVICE_PURCHASE,
4 | CHECK_ACCEPTANCE,
5 | ACCOUNT_FUNDING,
6 | QUASI_CASH_TRANSACTION,
7 | PREPAID_ACTIVATION_AND_LOAD
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PayByLinkSortProperty.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | [MapTarget(Target.GP_API)]
9 | public enum PayByLinkSortProperty {
10 | [Map(Target.GP_API, "TIME_CREATED")]
11 | TimeCreated
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PayByLinkStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum PayByLinkStatus {
8 | ACTIVE,
9 | INACTIVE,
10 | CLOSED,
11 | EXPIRED,
12 | PAID
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PayByLinkType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum PayByLinkType {
8 | PAYMENT,
9 | HOSTED_PAYMENT_PAGE,
10 | THIRD_PARTY_PAGE
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentEntryMode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum PaymentEntryMode {
6 | [Map(Target.GP_API, "CHIP")]
7 | Chip,
8 |
9 | [Map(Target.GP_API, "CONTACTLESS_CHIP")]
10 | ContactlessChip,
11 |
12 | [Map(Target.GP_API, "CONTACTLESS_SWIPE")]
13 | ContactlessSwipe,
14 |
15 | [Map(Target.GP_API, "ECOM")]
16 | Ecom,
17 |
18 | [Map(Target.GP_API, "IN_APP")]
19 | InApp,
20 |
21 | [Map(Target.GP_API, "MANUAL")]
22 | Manual,
23 |
24 | [Map(Target.GP_API, "MOTO")]
25 | Moto,
26 |
27 | [Map(Target.GP_API, "SWIPE")]
28 | Swipe
29 | }
30 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentMethodFunction.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | public enum PaymentMethodFunction {
9 | [Description("PRIMARY_PAYOUT")]
10 | PRIMARY_PAYOUT,
11 |
12 | [Description("SECONDARY_PAYOUT")]
13 | SECONDARY_PAYOUT,
14 |
15 | [Description("ACCOUNT_ACTIVATION_FEE")]
16 | ACCOUNT_ACTIVATION_FEE
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentMethodName.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum PaymentMethodName {
6 | [Map(Target.GP_API, "APM")]
7 | APM,
8 |
9 | [Map(Target.GP_API, "DIGITAL WALLET")]
10 | DigitalWallet,
11 |
12 | [Map(Target.GP_API, "CARD")]
13 | Card,
14 |
15 | [Map(Target.GP_API, "BANK_TRANSFER")]
16 | BankTransfer,
17 |
18 | [Map(Target.GP_ECOM, "BANK PAYMENT")]
19 | [Map(Target.GP_API, "BANK PAYMENT")]
20 | BankPayment,
21 |
22 | [Map(Target.GP_API, "BNPL")]
23 | BNPL
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentMethodProgram.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum PaymentMethodProgram {
8 | ASSURED_RESERVATION,
9 | CARD_DEPOSIT,
10 | PURCHASE,
11 | OTHER
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentMethodUsageMode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum PaymentMethodUsageMode {
5 | [Map(Target.GP_API, "SINGLE")]
6 | Single,
7 |
8 | [Map(Target.GP_API, "MULTIPLE")]
9 | Multiple
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentProvider.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum PaymentProvider {
8 | OPEN_BANKING
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PaymentType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum PaymentType {
6 | [Map(Target.GP_API, "REFUND")]
7 | Refund,
8 |
9 | [Map(Target.GP_API, "SALE")]
10 | Sale
11 | }
12 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PersonFunctions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum PersonFunctions {
8 | APPLICANT,
9 | BENEFICIAL_OWNER,
10 | PAYMENT_METHOD_OWNER
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PhoneNumberType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum PhoneNumberType {
3 | Home,
4 | Work,
5 | Shipping,
6 | Mobile
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PreOrderIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum PreOrderIndicator {
3 | MERCHANDISE_AVAILABLE,
4 | FUTURE_AVAILABILITY
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PrestigiousPropertyLimit.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum PrestigiousPropertyLimit {
3 | LIMIT_500,
4 | LIMIT_1000,
5 | LIMIT_1500,
6 | NOT_PARTICIPATING
7 | }
8 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PriorAuthenticationMethod.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum PriorAuthenticationMethod {
3 | FRICTIONLESS_AUTHENTICATION,
4 | CHALLENGE_OCCURRED,
5 | AVS_VERIFIED,
6 | OTHER_ISSUER_METHOD
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ProPayAccountStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum ProPayAccountStatus {
8 | ReadyToProcess,
9 | FraudAccount,
10 | RiskwiseDeclined,
11 | Hold,
12 | Canceled,
13 | FraudVictim,
14 | ClosedEula,
15 | ClosedExcessiveChargeback
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PromptType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum PromptType {
3 | MENU = 1,
4 | OPTIONS = 2
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/PropayTermsVersion.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum PropayTermsVersion {
3 | MerchantUS = 1,
4 | PaymentUS = 2,
5 | MerchantCA = 3,
6 | MerchantUK = 4,
7 | MerchantAU = 5
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/RecordId.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum RecordId {
5 | [Map(Target.GP_API, "E3")]
6 | E3_Encryption,
7 | [Map(Target.NWS, "3D")]
8 | [Map(Target.GP_API, "3D")]
9 | Encryption_3DE,
10 | [Map(Target.NWS, "TD")]
11 | [Map(Target.GP_API, "TD")]
12 | Tokenization_TD
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/Region.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum Region {
3 | US,
4 | CA,
5 | AU,
6 | NZ,
7 | UK,
8 | EU
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/Reinitialize.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum Reinitialize {
3 | ReinitializeApplication = 1,
4 | NoReinitializeApplication = 0
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/RemittanceReferenceType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum RemittanceReferenceType {
8 | TEXT,
9 | PAN
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ReorderIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum ReorderIndicator {
3 | FIRST_TIME_ORDER,
4 | REORDER
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/Risk.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum Risk {
5 | High,
6 | Low
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/RiskAssessmentStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum RiskAssessmentStatus {
8 | ACCEPTED,
9 | REJECTED,
10 | CHALLENGE,
11 | PENDING_REVIEW
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/SafIndicator.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums
2 | {
3 | public enum SafIndicator
4 | {
5 | NEWLY_STORED_TRANSACTIONS,
6 | FAILED_TRANSACTIONS,
7 | ALL_TRANSACTIONS
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/SafMode.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums
2 | {
3 | public enum SafMode
4 | {
5 | STAY_ONLINE,
6 | STAY_OFFLINE,
7 | OFFLINE_TILL_BATCH,
8 | OFFLINE_ONDEMAND_OR_AUTO
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/SdkInterface.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum SdkInterface {
3 | NATIVE,
4 | BROWSER,
5 | BOTH
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/SdkUiType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System.ComponentModel;
3 |
4 | namespace GlobalPayments.Api.Entities
5 | {
6 | public enum SdkUiType {
7 | [Map(Target.GP_API, "TEXT")]
8 | TEXT,
9 | [Map(Target.GP_API, "SINGLE_SELECT")]
10 | SINGLE_SELECT,
11 | [Map(Target.GP_API, "MULTI_SELECT")]
12 | MULTI_SELECT,
13 | [Map(Target.GP_API, "OUT_OF_BAND")]
14 | OOB,
15 | [Map(Target.GP_API, "HTML_OTHER")]
16 | HTML_OTHER
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/Secure3dStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum Secure3dStatus {
8 | SUCCESS_AUTHENTICATED,
9 | SUCCESS_ATTEMPT_MADE,
10 | NOT_AUTHENTICATED,
11 | FAILED,
12 | NOT_ENROLLED,
13 | AVAILABLE,
14 | ENROLLED,
15 | CHALLENGE_REQUIRED
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ServiceType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum ServiceType {
5 | [Map(Target.NWS, "G")]
6 | GPN_API,
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ShaHashType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum ShaHashType {
8 | SHA1,
9 | SHA256,
10 | SHA512
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/ShippingMethod.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum ShippingMethod {
5 | BILLING_ADDRESS,
6 | ANOTHER_VERIFIED_ADDRESS,
7 | UNVERIFIED_ADDRESS,
8 | SHIP_TO_STORE,
9 | DIGITAL_GOODS,
10 | TRAVEL_AND_EVENT_TICKETS,
11 | OTHER
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/SortDirection.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum SortDirection {
6 | [Map(Target.GP_API, "ASC")]
7 | Ascending,
8 |
9 | [Map(Target.GP_API, "DESC")]
10 | Descending
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StatusChangeReason.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum StatusChangeReason {
8 | ACTIVE,
9 | CLOSED_BY_MERCHANT,
10 | CLOSED_BY_RISK,
11 | APPLICATION_DENIED,
12 | PENDING_REVIEW,
13 | PENDING_MERCHANT_CONSENT,
14 | PENDING_IDENTITY_VALIDATION,
15 | PENDING_IDENTITY_VALIDATION_AND_PAYMENT,
16 | PENDING_PAYMENT,
17 | UNKNOWN_STATUS,
18 | REMOVE_PARTNERSHIP
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StoredCredentialInitiator.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.Portico)]
5 | public enum StoredCredentialInitiator {
6 | [Map(Target.Portico, "C")]
7 | [Map(Target.GP_API, "PAYER")]
8 | [Map(Target.UPA, "C")]
9 | CardHolder,
10 | [Map(Target.Portico, "M")]
11 | [Map(Target.GP_API, "MERCHANT")]
12 | [Map(Target.UPA, "M")]
13 | Merchant,
14 | Scheduled
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StoredCredentialReason.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum StoredCredentialReason {
5 | [Map(Target.GP_API, "INCREMENTAL")]
6 | Incremental,
7 | [Map(Target.GP_API, "RESUBMISSION")]
8 | Resubmission,
9 | [Map(Target.GP_API, "REAUTHORIZATION")]
10 | Reauthorization,
11 | [Map(Target.GP_API, "DELAYED")]
12 | Delayed,
13 | [Map(Target.GP_API, "NO_SHOW")]
14 | NoShow
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StoredCredentialSequence.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum StoredCredentialSequence {
5 | [Map(Target.GP_API, "FIRST")]
6 | First,
7 | [Map(Target.GP_API, "SUBSEQUENT")]
8 | Subsequent,
9 | [Map(Target.GP_API, "LAST")]
10 | Last
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StoredCredentialType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum StoredCredentialType {
5 | OneOff,
6 | [Map(Target.GP_API, "INSTALLMENT")]
7 | Installment,
8 | [Map(Target.GP_API, "RECURRING")]
9 | Recurring,
10 | [Map(Target.GP_API, "UNSCHEDULED")]
11 | Unscheduled,
12 | [Map(Target.GP_API, "SUBSCRIPTION")]
13 | Subscription,
14 | [Map(Target.GP_API, "MAINTAIN_PAYMENT_METHOD")]
15 | MaintainPaymentMethod,
16 | [Map(Target.GP_API, "MAINTAIN_PAYMENT_VERIFICATION")]
17 | MaintainPaymentVerification
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StoredPaymentMethodSortProperty.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum StoredPaymentMethodSortProperty {
6 | [Map(Target.GP_API, "TIME_CREATED")]
7 | TimeCreated
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/StoredPaymentMethodStatus.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.GP_API)]
5 | public enum StoredPaymentMethodStatus {
6 | [Map(Target.GP_API, "ACTIVE")]
7 | Active
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/SuspiciousAccountActivity.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum SuspiciousAccountActivity {
3 | SUSPICIOUS_ACTIVITY,
4 | NO_SUSPICIOUS_ACTIVITY
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TaxCategory.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum TaxCategory {
5 | [Map(Target.Transit, "SERVICE")]
6 | Service,
7 |
8 | [Map(Target.Transit, "DUTY")]
9 | Duty,
10 |
11 | [Map(Target.Transit, "VAT")]
12 | VAT,
13 |
14 | [Map(Target.Transit, "ALTERNATE")]
15 | Alternate,
16 |
17 | [Map(Target.Transit, "NATIONAL")]
18 | National,
19 |
20 | [Map(Target.Transit, "TAX_EXEMPT")]
21 | TaxExempt
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TerminalConfigType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum TerminalConfigType {
3 | ContactTerminalConfiguration = 1,
4 | ContactCardDataConfiguration = 2,
5 | ContactCAPK = 3,
6 | ContactlessTerminalConfiguration = 4,
7 | ContactlessCardDataConfiguration = 5,
8 | ContactlessCAPK = 6,
9 | AIDList = 7,
10 | ModifyAIDs = 8
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TextFormat.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum TextFormat {
3 | Numeric,
4 | Password,
5 | Alphanumeric
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TokenizationFieldMatrix.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum TokenizationFieldMatrix {
5 | [Map(Target.NWS, "1")]
6 | AccountNumber,
7 | [Map(Target.NWS, "2")]
8 | TokenizedData
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TokenizationOperationType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum TokenizationOperationType {
5 | [Map(Target.NWS, "1")]
6 | Tokenize,
7 | [Map(Target.NWS, "2")]
8 | DeTokenize,
9 | [Map(Target.NWS, "3")]
10 | DeleteToken,
11 | [Map(Target.NWS, "4")]
12 | UpdateToken
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TokenizationType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Enums {
4 | public enum TokenizationType {
5 | [Map(Target.NWS, "1")]
6 | GlobalTokenization,
7 | [Map(Target.NWS, "2")]
8 | MerchantTokenization
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/TrackNumber.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum TrackNumber {
3 | Unknown,
4 | TrackOne,
5 | TrackTwo,
6 | BothOneAndTwo,
7 | PAN
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UCAFIndicator.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum UCAFIndicator {
5 | [Map(Target.Transit, "0")]
6 | NotSupported,
7 |
8 | [Map(Target.Transit, "1")]
9 | MerchantOnly,
10 |
11 | [Map(Target.Transit, "2")]
12 | FullyAuthenticated,
13 |
14 | [Map(Target.Transit, "5")]
15 | IssuerRiskBased,
16 |
17 | [Map(Target.Transit, "6")]
18 | MerchantRiskBased,
19 |
20 | [Map(Target.Transit, "7")]
21 | PartialShipmentIncremental
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UDFileType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums {
2 | public enum UDFileType {
3 | HTML5,
4 | IMG,
5 | MOV
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UcafType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum UCAFType {
3 |
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UnitOfMeasure.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum UnitOfMeasure {
3 | Pound
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UpdateResourceFileType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.Enums
2 | {
3 | public enum UpdateResourceFileType
4 | {
5 | RESOURCE_FILE,
6 | OFFLINE_RKI_KEY_FILE,
7 | INSTALLATION_PAKAGE,
8 | LICENSE_FILE
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UsableBalanceMode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum UsableBalanceMode {
8 | AVAILABLE_BALANCE,
9 | AVAILABLE_AND_PENDING_BALANCE
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UserLevelRelationship.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum UserLevelRelationship {
8 | SELF,
9 | ACCOUNTS
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UserStatus.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.Enums
6 | {
7 | public enum UserStatus {
8 | ACTIVE,
9 | INACTIVE,
10 | UNDER_REVIEW,
11 | DECLINED
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/UserType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Enums
7 | {
8 | public enum UserType {
9 | [Description("MERCHANT")]
10 | MERCHANT
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Enums/VoidReason.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public enum VoidReason {
5 | [Map(Target.Transit, "POST_AUTH_USER_DECLINE")]
6 | PostAuth_UserDeclined,
7 |
8 | [Map(Target.Transit, "DEVICE_TIMEOUT")]
9 | DeviceTimeout,
10 |
11 | [Map(Target.Transit, "DEVICE_UNAVAILABLE")]
12 | DeviceUnavailable,
13 |
14 | [Map(Target.Transit, "PARTIAL_REVERSAL")]
15 | PartialReversal,
16 |
17 | [Map(Target.Transit, "TORN_TRANSACTIONS")]
18 | TornTransactions,
19 |
20 | [Map(Target.Transit, "POST_AUTH_CHIP_DECLINE")]
21 | PostAuth_ChipDecline
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FileProcessor.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public class FileProcessor {
5 | public string ResourceId { get; set; }
6 | public string UploadUrl { get; set; }
7 | public string ExpirationDate { get; set; }
8 | public string Status { get; set; }
9 | public string CreatedDate { get; set; }
10 | public string TotalRecordCount { get; set; }
11 | public string ResponseCode { get; set; }
12 | public string ResponseMessage { get; set; }
13 | public List FilesUploaded { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FileUploaded.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class FileUploaded
8 | {
9 | public string FileId { get; set; }
10 | public string FileName { get; set; }
11 | public string TimeCreated { get; set; }
12 | public string Url { get; set; }
13 | public string ExpirationDate { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FraudResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class FraudResponse
8 | {
9 | public class Rule
10 | {
11 | public String Name { get; set; }
12 | public String Id { get; set; }
13 | public String Action { get; set; }
14 | }
15 |
16 | public FraudFilterMode mode { get; set; }
17 | public String Result { get; set; }
18 | public List Rules { get; set; }
19 |
20 | public FraudResponse()
21 | {
22 | Rules = new List();
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FraudRule.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class FraudRule
8 | {
9 | public string Key { get; set; }
10 | public FraudFilterMode Mode { get; set; }
11 | public string Description { get; set; }
12 | public string result { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FraudRuleCollection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class FraudRuleCollection
8 | {
9 | public List Rules { get; set; }
10 |
11 | public FraudRuleCollection()
12 | {
13 | Rules = new List();
14 | }
15 |
16 | public void AddRule(string key, FraudFilterMode mode)
17 | {
18 | if (hasRule(key))
19 | return;
20 |
21 | Rules.Add(new FraudRule
22 | {
23 | Key = key,
24 | Mode = mode
25 | });
26 | }
27 |
28 | private bool hasRule(string key)
29 | {
30 | return Rules.Exists(x => x.Key == key);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FundsAccountDetails.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class FundsAccountDetails {
8 | public string Id { get; set; }
9 | public string Status { get; set; }
10 | public string TimeCreated { get; set; }
11 | public string TimeLastUpdated { get; set; }
12 | public decimal? Amount { get; set; }
13 | public string Reference { get; set; }
14 | public string Description { get; set; }
15 | public string Currency { get; set; }
16 | public string PaymentMethodType { get; set; }
17 | public string PaymentMethodName { get; set; }
18 | public UserAccount Account { get; set; }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/FundsData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class FundsData
8 | {
9 | public string MerchantId { get; set; }
10 | public string RecipientAccountId { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/GpApi/GpApiAccount.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | internal class GpApiAccount {
3 | public string Id { get; set; }
4 | public string Name { get; set; }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/GpApi/GpApiEntity.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public abstract class GpApiEntity {
5 | internal abstract void FromJson(JsonDoc doc);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/GpApi/PagedResult.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public class PagedResult {
5 | public int TotalRecordCount { get; set; }
6 | public int PageSize { get; set; }
7 | public int Page { get; set; }
8 | public string Order { get; set; }
9 | public string OrderBy { get; set; }
10 | public List Results { get; set; }
11 |
12 | public PagedResult() {
13 | Results = new List();
14 | }
15 |
16 | public void Add(T item) {
17 | Results.Add(item);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/IInstallmentEntity.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.PaymentMethods;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities {
7 | public interface IInstallmentEntity {
8 | Installment Create(string configName);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/IRecurringEntity.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | ///
3 | /// Base interface for recurring resource types.
4 | ///
5 | public interface IRecurringEntity {
6 | ///
7 | /// All resource should be supplied a merchant-/application-defined ID.
8 | ///
9 | string Id { get; set; }
10 |
11 | ///
12 | /// All resources should be supplied a gateway-defined ID.
13 | ///
14 | string Key { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/IRequestBuilder.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using GlobalPayments.Api.Gateways;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Text;
7 |
8 | namespace GlobalPayments.Api.Gateways
9 | {
10 | internal interface IRequestBuilder {
11 | Request BuildRequest(T builder, GpApiConnector gateway);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/LodgingItems.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class LodgingItems
8 | {
9 | public string Types { get; set; }
10 | public string Reference { get; set; }
11 | public string TotalAmount { get; set; }
12 | public string[] paymentMethodProgramCodes { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/MessageExtension.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Collections.Generic;
4 | using System.Text;
5 | using System.Collections;
6 |
7 | namespace GlobalPayments.Api.Entities {
8 | public class MessageExtension
9 | {
10 | public string CriticalityIndicator { get; set; }
11 | public string MessageExtensionData { get; set; }
12 | public string MessageExtensionId { get; set; }
13 | public string MessageExtensionName { get; set; }
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/OnlineBoarding/BoardingResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.OnlineBoarding {
2 | public class BoardingResponse {
3 | public int? ApplicationId { get; set; }
4 | public string Message { get; set; }
5 | public bool HasSignatureLink { get { return !string.IsNullOrEmpty(SignatureUrl); } }
6 | public string SignatureUrl { get; set; }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/OrderDetails.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities {
6 | public class OrderDetails {
7 | public decimal? InsuranceAmount { get; set; }
8 | public bool HasInsurance { get; set; }
9 | public decimal? HandlingAmount { get; set; }
10 | public string Description { get; set; }
11 | }
12 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayFac/BankAccountOwnershipData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.PayFac
6 | {
7 | public class BankAccountOwnershipData {
8 | public string FirstName { get; set; }
9 | public string LastName { get; set; }
10 | public Address OwnerAddress { get; set; }
11 | public string PhoneNumber { get; set; }
12 |
13 | public BankAccountOwnershipData() {
14 | OwnerAddress = new Address();
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayFac/BeneficialOwnerData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.PayFac
6 | {
7 | public class BeneficialOwnerData {
8 | public string OwnersCount { get; set; }
9 | public List OwnersList { get; set; }
10 |
11 | public BeneficialOwnerData() {
12 | OwnersList = new List();
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayFac/FlashFundsPaymentCardData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.PaymentMethods;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.PayFac
7 | {
8 | public class FlashFundsPaymentCardData {
9 | public CreditCardData CreditCard { get; set; }
10 | public Address CardholderAddress { get; set; }
11 |
12 | public FlashFundsPaymentCardData() {
13 | CreditCard = new CreditCardData();
14 | CardholderAddress = new Address();
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayFac/GrossBillingInformation.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.PaymentMethods;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.PayFac
7 | {
8 | public class GrossBillingInformation {
9 | public Address GrossSettleAddress { get; set; }
10 | public BankAccountData GrossSettleBankData { get; set; }
11 | public CreditCardData GrossSettleCreditCardData { get; set; }
12 |
13 | public GrossBillingInformation() {
14 | GrossSettleAddress = new Address();
15 | GrossSettleBankData = new BankAccountData();
16 | GrossSettleCreditCardData = new CreditCardData();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayFac/ThreatRiskData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.PayFac
6 | {
7 | public class ThreatRiskData {
8 | ///
9 | /// SourceIp of Merchant, see ProPay Fraud Detection Solutions Manual
10 | ///
11 | public string MerchantSourceIP { get; set; }
12 | ///
13 | /// Threat Metrix Policy, see ProPay Fraud Detection Solutions Manual
14 | ///
15 | public string ThreatMetrixPolicy { get; set; }
16 | ///
17 | /// SessionId for Threat Metrix, see ProPay Fraud Detection Solutions Manual
18 | ///
19 | public string ThreatMetrixSessionID { get; set; }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayFac/UserReference.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.PayFac
7 | {
8 | public class UserReference
9 | {
10 | public string UserId { get; set; }
11 | public UserType? UserType { get; set; }
12 | public UserStatus? UserStatus { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PayerDetails.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class PayerDetails
8 | {
9 | public string Id { get; set; }
10 | public string FirstName { get; set; }
11 | public string LastName { get; set; }
12 | public string Email { get; set; }
13 | public Address BillingAddress{ get; set;}
14 | public Address ShippingAddress { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PaymentMethodList.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 | using GlobalPayments.Api.PaymentMethods;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Entities
8 | {
9 | public class PaymentMethodList
10 | {
11 | public PaymentMethodFunction Function { get; set; }
12 |
13 | public object PaymentMethod {get;set;}
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/PaymentStatistics.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class PaymentStatistics
8 | {
9 | ///
10 | /// The total monthly sales of the merchant.
11 | ///
12 | public decimal? TotalMonthlySalesAmount { get; set; }
13 |
14 | ///
15 | /// The total monthly sales of the merchant.
16 | ///
17 | public decimal? AverageTicketSalesAmount { get; set; }
18 |
19 | ///
20 | /// The merchants highest ticket amount.
21 | ///
22 | public decimal? HighestTicketSalesAmount { get; set; }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Payroll/Entities/PayrollEntity.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities.Payroll {
4 | public abstract class PayrollEntity {
5 | internal abstract void FromJson(JsonDoc doc, PayrollEncoder encoder);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Payroll/PayrollRequest.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace GlobalPayments.Api.Entities.Payroll {
4 | internal class PayrollRequest {
5 | public string Endpoint { get; set; }
6 | public string RequestBody { get; set; }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Reporting/AltPaymentData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace GlobalPayments.Api.Entities {
5 | public class AltPaymentData {
6 | public string Status { get; set; }
7 | public string StatusMessage { get; set; }
8 | public string BuyerEmailAddress { get; set; }
9 | public DateTime? StateDate { get; set; }
10 | public List ProcessorResponseInfo { get; set; }
11 | }
12 |
13 | public class AltPaymentProcessorInfo {
14 | public string Code { get; set; }
15 | public string Message { get; set; }
16 | public string Type { get; set; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Reporting/CheckData.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public class CheckData {
3 | public string AccountInfo { get; set; }
4 | public string ConsumerInfo { get; set; }
5 | public string DataEntryMode { get; set; }
6 | public string CheckType { get; set; }
7 | public string SECCode { get; set; }
8 | public string CheckAction { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Reporting/MerchantSummary.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities.Reporting
7 | {
8 | public class MerchantSummary
9 | {
10 | ///
11 | /// A unique identifier for the object created by Global Payments. The first 3 characters identifies the resource an id relates to.
12 | ///
13 | public string Id { get; set; }
14 |
15 | ///
16 | /// The label to identify the merchant
17 | ///
18 | public string Name { get; set; }
19 |
20 |
21 | public UserStatus? Status { get; set; }
22 |
23 |
24 | public List Links { get; set; }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/Reporting/StoredPaymentMethodSummary.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities {
6 | public class StoredPaymentMethodSummary {
7 | public string Id { get; internal set; }
8 | public DateTime TimeCreated { get; internal set; }
9 | public string Status { get; internal set; }
10 | public string Reference { get; internal set; }
11 | public string Name { get; internal set; }
12 | public string CardLast4 { get; internal set; }
13 | public string CardType { get; internal set; }
14 | public string CardExpMonth { get; internal set; }
15 | public string CardExpYear { get; internal set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/StoredCredential.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public class StoredCredential {
5 | public StoredCredentialType Type { get; set; }
6 | public StoredCredentialInitiator Initiator { get; set; }
7 | public StoredCredentialSequence Sequence { get; set; }
8 | public StoredCredentialReason Reason { get; set; }
9 | public string SchemeId { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TableService/ShiftAssignments.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities.TableService {
6 | public class ShiftAssignments : Dictionary> {
7 | public override string ToString() {
8 | var sb = new StringBuilder();
9 |
10 | foreach (var key in this.Keys) {
11 | sb.Append(key + "-");
12 | sb.Append(string.Join(",", this[key]));
13 | sb.Append("|");
14 | }
15 |
16 | return sb.ToString().TrimEnd('|');
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/ThirdPartyResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class ThirdPartyResponse
8 | {
9 | public string Platform { get; set; }
10 |
11 | ///
12 | /// Data json string that represents the raw data received from another platform.
13 | ///
14 | public string Data { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/Request/TransactionData.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.TransactionApi.Request {
2 | public class TransactionData {
3 | public CountryCode? CountryCode { get; set; }
4 | public EcomIndicator? EcommerceIndicator { get; set; }
5 | public LanguageEnum? Language { get; set; }
6 | public string SoftDescriptor { get; set; }
7 | public bool AddressVerificationService { get; set; }
8 | public bool CreateToken { get; set; }
9 | public bool GenerateReceipt { get; set; }
10 | public bool PartialApproval { get; set; }
11 | public string EntryClass { get; set; }
12 | public string PaymentPurposeCode { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/Response/CardResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.TransactionApi.Response {
2 | public class CardResponse {
3 | public string MaskedCardNnumber { get; set; }
4 | public string CardholderName { get; set; }
5 | public string ExpiryMonth { get; set; }
6 | public string ExpiryYear { get; set; }
7 | public string Type { get; set; }
8 | public string Balance { get; set; }
9 | public string Token { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/Response/CheckResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.TransactionApi.Response {
2 | public class CheckResponse {
3 | public string MaskedCardNnumber { get; set; }
4 | public string RoutingNumber { get; set; }
5 | public string CheckNumber { get; set; }
6 | public string Token { get; set; }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/Response/PaymentResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.TransactionApi.Response {
2 | public class PaymentResponse {
3 | public string Amount { get; set; }
4 | public string CurrencyCode { get; set; }
5 | public string InvoiceNumber { get; set; }
6 | public string Type { get; set; }
7 | public string GratuityAmount { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/Response/TransactionResponseDetail.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.TransactionApi.Response {
2 | public class TransactionResponseDetail {
3 | public string BatchAmount { get; set; }
4 | public string BatchNumber { get; set; }
5 | public string EntryType { get; set; }
6 | public string Language { get; set; }
7 | public string EntryClass { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/TransactionApiEntity.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | public abstract class TransactionApiEntity {
5 | internal abstract void FromJson(JsonDoc doc);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/TransactionApiReportRequestBuilder.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Gateways;
3 | using System.Net.Http;
4 |
5 | namespace GlobalPayments.Api.Entities {
6 | internal class TransactionApiReportRequestBuilder {
7 | internal static TransactionApiRequest BuildRequest(ReportBuilder builder, TransactionApiConnector gateway) where T : class {
8 | return new TransactionApiRequest {
9 | Verb = HttpMethod.Get,
10 | Endpoint = $"",
11 | };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/TransactionApi/TransactionApiStatusCode.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities {
2 | public enum TransactionApiStatusCode {
3 | TooManyRequests = 429,
4 | Declined = 470,
5 | PartiallyApproved = 471,
6 | CallIssuer = 472,
7 | CreatedValidationMismatch = 473,
8 | PartiallyApprovedValidationMismatch = 474,
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/Button.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class Button {
3 | public string Text { get; set; }
4 | public string Color { get; set; }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/HostData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class HostData {
5 | public HostDecision? HostDecision { get; set; }
6 | public string IssuerScripts { get; set; }
7 | public string IssuerAuthData { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/MessageLines.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class MessageLines {
3 | public string Line1 { get; set; }
4 | public string Line2 { get; set; }
5 | public string Line3 { get; set; }
6 | public string Line4 { get; set; }
7 | public string Line5 { get; set; }
8 | ///
9 | /// int|null Number of seconds that the message will be displayed. If this parameter is not received, the default
10 | /// timeout is the IdleTimeout value set through the settings.
11 | ///
12 | public int? Timeout { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/PANDetails.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class PANDetails {
3 | public string ClearPAN { get; set; }
4 | public string MaskedPAN { get; set; }
5 | public string EncryptedPAN { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/POSData.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class POSData {
3 | public string AppName { get; set; }
4 | public int? LaunchOrder { get; set; } = 0;
5 | public bool Remove { get; set; } = false;
6 | public int? Silent { get; set; } = 0;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/PrintData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class PrintData {
5 | public string FilePath { get; set; }
6 | public string Line1 { get; set; }
7 | public string Line2 { get; set; }
8 | public DisplayOption? DisplayOption { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/ProcessingIndicator.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class ProcessingIndicator {
5 | public string QuickChip { get; set; }
6 | public string CheckLuhn { get; set; }
7 | public string SecurityCode { get; set; }
8 | public CardTypeFilter CardTypeFilter { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/PromptData.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class PromptData {
5 | public PromptMessages Prompts { get; set; }
6 | public List Buttons { get; set; }
7 | public int? Timeout { get; set; } = 0;
8 | ///
9 | /// List of text which will be displayed in Menu 1 to Menu 6. This should contain at least 2 items and a maximum of 6 items.
10 | ///
11 | public List Menu { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/PromptMessages.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class PromptMessages {
3 | public string Prompt1 { get; set; }
4 | public string Prompt2 { get; set; }
5 | public string Prompt3 { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/ScanData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class ScanData {
5 | public string Header { get; set; }
6 | public string Prompt1 { get; set; }
7 | public string Prompt2 { get; set; }
8 | public DisplayOption? DisplayOption { get; set; }
9 | public int? TimeOut { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/ThreeDesDukpt.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class ThreeDesDukpt {
3 | public string EncryptedBlob { get; set; }
4 | public string Ksn { get; set; }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/TrackData.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Entities.UPA {
2 | public class TrackData {
3 | public string ClearTrack2 { get; set; }
4 | public string MaskedTrack2 { get; set; }
5 | public string ClearTrack1 { get; set; }
6 | public string MaskedTrack1 { get; set; }
7 | public string ClearTrack3 { get; set; }
8 | public string MaskedTrack3 { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/UDData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class UDData {
5 | public UDFileType FileType { get; set; }
6 | public short SlotNum { get; set; }
7 | ///
8 | /// Filename of the file to be stored in the device. Must include the file extension.
9 | ///
10 | public string FileName { get; set; }
11 | public DisplayOption? DisplayOption { get; set; }
12 | public string FilePath { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/UpaConfigContent.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class UpaConfigContent {
5 | public TerminalConfigType ConfigType { get; set; }
6 | public string FileContent { get; set; }
7 | public int Length { get; set; }
8 | public Reinitialize? Reinitialize { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/UpaParam.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class UpaParam {
5 | public int Timeout { get; set; }
6 | public AcquisitionType AcquisitionTypes { get; set; }
7 | public string Header { get; set; }
8 | public string DisplayTotalAmount { get; set; }
9 | public bool PromptForManual { get; set; }
10 | public int BrandIcon1 { get; set; }
11 | public int BrandIcon2 { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UPA/UpaTransactionData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Entities.UPA {
4 | public class UpaTransactionData {
5 | public decimal TotalAmount { get; set; }
6 | public decimal CashBackAmount { get; set; }
7 | public DateTime TranDate { get; set; }
8 | public DateTime TranTime { get; set; }
9 | public TransactionType TransType { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UserAccount.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Entities
6 | {
7 | public class UserAccount
8 | {
9 | public string Id { get; set; }
10 | public string Name { get; set; }
11 | public string Type { get; set; }
12 |
13 | public UserAccount(string id, string name = null) {
14 | Id = id;
15 | Name = name;
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Entities/UserLinks.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Entities
7 | {
8 | public class UserLinks
9 | {
10 | ///
11 | /// Describes the relationship the associated link href value has to the current resource.
12 | ///
13 | public UserLevelRelationship? Rel { get; set; }
14 |
15 | ///
16 | /// A href link to the resources or resource actions as indicated in the corresponding rel value.
17 | ///
18 | public string Href { get; set; }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/IBillPayRequest.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal interface IBillPayRequest {
5 | IBillPayRequest Build(TBuilder builder, Credentials credentials);
6 | IBillPayResponse Execute(string endpoint = "");
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/IBillPayResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Gateways.BillPay {
2 | internal interface IBillPayResponse {
3 | T Map();
4 | IBillPayResponse WithResponseTagName(string tagName);
5 | IBillPayResponse WithResponse(string response);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Requests/ClearLoadedBillsRequest.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 | using GlobalPayments.Api.Utils;
3 |
4 | namespace GlobalPayments.Api.Gateways.BillPay {
5 | internal sealed class ClearLoadedBillsRequest : BillPayRequestBase {
6 | public ClearLoadedBillsRequest(ElementTree et) : base(et) { }
7 |
8 | public string Build(Element envelope, Credentials credentials) {
9 | var body = et.SubElement(envelope, "soapenv:Body");
10 | var methodElement = et.SubElement(body, "bil:ClearLoadedBills");
11 | var requestElement = et.SubElement(methodElement, "bil:ClearLoadedBillsRequest");
12 |
13 | BuildCredentials(requestElement, credentials);
14 |
15 | return et.ToString(envelope);
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Requests/CommitPreloadedBillsRequest.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 | using GlobalPayments.Api.Utils;
3 |
4 | namespace GlobalPayments.Api.Gateways.BillPay {
5 | internal sealed class CommitPreloadedBillsRequest : BillPayRequestBase {
6 | public CommitPreloadedBillsRequest(ElementTree et) : base(et) { }
7 |
8 | public string Build(Element envelope, Credentials credentials) {
9 | var body = et.SubElement(envelope, "soapenv:Body");
10 | var methodElement = et.SubElement(body, "bil:CommitPreloadedBills");
11 | var requestElement = et.SubElement(methodElement, "bil:CommitPreloadedBillsRequest");
12 |
13 | BuildCredentials(requestElement, credentials);
14 |
15 | return et.ToString(envelope);
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/BillingRequestResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 | using GlobalPayments.Api.Utils;
3 |
4 | namespace GlobalPayments.Api.Gateways.BillPay {
5 | internal sealed class BillingRequestResponse : BillPayResponseBase {
6 | public override BillingResponse Map() {
7 | return new BillingResponse {
8 | IsSuccessful = response.GetValue("a:IsSuccessful"),
9 | ResponseCode = response.GetValue("a:ResponseCode"),
10 | ResponseMessage = GetFirstResponseMessage(response),
11 | };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/CommitPreloadBillsResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class CommitPreloadBillsResponse: BillPayResponseBase {
5 | public override BillingResponse Map() {
6 | return new BillingResponse() {
7 | IsSuccessful = response.GetValue("a:IsSuccessful"),
8 | ResponseCode = GetFirstResponseCode(response),
9 | ResponseMessage = GetFirstResponseMessage(response),
10 | };
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/ConvenienceFeeRequestResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class ConvenienceFeeRequestResponse : BillPayResponseBase {
5 | public override ConvenienceFeeResponse Map() {
6 | return new ConvenienceFeeResponse() {
7 | IsSuccessful = response.GetValue("a:isSuccessful"),
8 | ResponseCode = response.GetValue("a:ResponseCode"),
9 | ResponseMessage = GetFirstResponseMessage(response),
10 | ConvenienceFee = response.GetValue("a:ConvenienceFee")
11 | };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/CreateCustomerAccountResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class CreateCustomerAccountResponse : BillPayResponseBase {
5 | public override TokenResponse Map() {
6 | return new TokenResponse {
7 | IsSuccessful = response.GetValue("a:isSuccessful"),
8 | ResponseCode = response.GetValue("a:ResponseCode"),
9 | ResponseMessage = GetFirstResponseMessage(response),
10 | Token = response.GetValue("a:Token")
11 | };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/CustomerAccountResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class CustomerAccountResponse : BillPayResponseBase {
5 | public override BillingResponse Map() {
6 | return new BillingResponse {
7 | IsSuccessful = response.GetValue("a:isSuccessful"),
8 | ResponseCode = response.GetValue("a:ResponseCode"),
9 | ResponseMessage = GetFirstResponseMessage(response),
10 | };
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/PreloadBillsResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Gateways.BillPay {
7 | internal sealed class PreloadBillsResponse : BillPayResponseBase {
8 | public override BillingResponse Map() {
9 | return new BillingResponse {
10 | IsSuccessful = response.GetValue("a:isSuccessful"),
11 | ResponseCode = response.GetValue("a:ResponseCode"),
12 | ResponseMessage = GetFirstResponseMessage(response),
13 | };
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/SecurePayResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class SecurePayResponse : BillPayResponseBase {
5 | public override LoadSecurePayResponse Map() {
6 | return new LoadSecurePayResponse {
7 | PaymentIdentifier = response.GetValue("a:GUID"),
8 | IsSuccessful = response.GetValue("a:isSuccessful"),
9 | ResponseCode = response.GetValue("a:ResponseCode"),
10 | ResponseMessage = GetFirstResponseMessage(response),
11 | };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/SingleSignOnAccountResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Billing;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class SingleSignOnAccountResponse : BillPayResponseBase {
5 | public override BillingResponse Map() {
6 | return new BillingResponse {
7 | IsSuccessful = response.GetValue("a:isSuccessful"),
8 | ResponseCode = response.GetValue("a:ResponseCode"),
9 | ResponseMessage = GetFirstResponseMessage(response),
10 | };
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/TokenRequestResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class TokenRequestResponse : BillPayResponseBase {
5 | public override Transaction Map() {
6 | return new Transaction {
7 | ResponseCode = response.GetValue("a:ResponseCode"),
8 | ResponseMessage = GetFirstResponseMessage(response),
9 | Token = response.GetValue("a:Token")
10 | };
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/BillPay/Responses/UpdateTokenResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.Gateways.BillPay {
4 | internal sealed class UpdateTokenResponse : BillPayResponseBase {
5 | public override Transaction Map() {
6 | return new Transaction() {
7 | ResponseCode = response.GetValue("a:ResponseCode"),
8 | ResponseMessage = GetFirstResponseMessage(response),
9 | };
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Events/GatewayEvent.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Gateways.Events {
4 | public abstract class GatewayEvent {
5 | public string ConnectorName { get; set; }
6 | public GatewayEventType EventType { get; set; }
7 | public DateTime Timestamp { get; set; }
8 |
9 | internal GatewayEvent(string connectorName, GatewayEventType eventType) {
10 | this.ConnectorName = connectorName;
11 | this.EventType = eventType;
12 | this.Timestamp = DateTime.UtcNow;
13 | }
14 | public string GetTimestamp() {
15 | return Timestamp.ToString("MM-dd-yyyy hh:mm:ss.SSS");
16 | }
17 | public string GetEventMessage() {
18 | return string.Format("[{0}] - ", GetTimestamp());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Events/GatewayEventType.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Gateways.Events {
3 | public enum GatewayEventType {
4 | Connection,
5 | Disconnected,
6 | RequestSent,
7 | ResponseReceived,
8 | Timeout,
9 | TimeoutFailOver
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Events/IGatewayEvent.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Gateways.Events {
4 | public interface IGatewayEvent {
5 | GatewayEventType GetEventType();
6 | string GetTimestamp();
7 | string GetEventMessage();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/GatewayResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace GlobalPayments.Api.Gateways {
4 | internal class GatewayResponse {
5 | public string RawResponse { get; set; }
6 | public string RequestUrl { get; set; }
7 | public HttpStatusCode StatusCode { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/HttpClientHandlerBuilder.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 | using System.Net.Http;
3 |
4 | namespace GlobalPayments.Api.Gateways {
5 | internal class HttpClientHandlerBuilder {
6 | internal static HttpClientHandler Build(IWebProxy webProxy = null) {
7 | var handler = new HttpClientHandler {
8 | AutomaticDecompression = DecompressionMethods.GZip,
9 | };
10 |
11 | if (webProxy != null) {
12 | handler.UseProxy = true;
13 | handler.Proxy = webProxy;
14 | }
15 |
16 | return handler;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IAccessTokenProvider.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.Gateways {
4 | public interface IAccessTokenProvider {
5 | Request SignIn(string appId, string appKey, int? secondsToExpire = null, IntervalToExpire? intervalToExpire = null, string[] permissions = null);
6 | Request SignOut();
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IBillingProvider.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities.Billing;
3 |
4 | namespace GlobalPayments.Api.Gateways {
5 | internal interface IBillingProvider {
6 | ///
7 | /// Indicates if the Billing Gateway hosts merchant bill records
8 | ///
9 | bool IsBillDataHosted { get; }
10 | BillingResponse ProcessBillingRequest(BillingBuilder builder);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IDeviceCloudService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Gateways {
4 | public interface IDeviceCloudService {
5 | string ProcessPassThrough(JsonDoc request);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IFileProcessingService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Gateways.Interfaces
8 | {
9 | public interface IFileProcessingService {
10 | FileProcessor ProcessFileUpload(FileProcessingBuilder builder);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IFraudCheckService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Gateways
8 | {
9 | public interface IFraudCheckService
10 | {
11 | T ProcessFraud(FraudBuilder builder) where T : class;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IInstallmentService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.PaymentMethods;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Gateways.Interfaces {
8 | public interface IInstallmentService {
9 | Installment ProcessInstallment(InstallmentBuilder builder);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IOpenBankingProvider.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Gateways
8 | {
9 | public interface IOpenBankingProvider
10 | {
11 | bool SupportsHostedPayments { get; }
12 | Transaction ProcessOpenBanking(AuthorizationBuilder builder);
13 | Transaction ManageOpenBanking(ManagementBuilder builder);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IPayFacProvider.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Text;
6 |
7 | namespace GlobalPayments.Api.Gateways
8 | {
9 | interface IPayFacProvider {
10 | T ProcessPayFac(PayFacBuilder builder) where T : class;
11 | T ProcessBoardingUser(PayFacBuilder builder) where T : class;
12 | bool HasBuiltInMerchantManagementService { get; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IPaymentGateway.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 |
4 | namespace GlobalPayments.Api.Gateways {
5 | internal interface IPaymentGateway {
6 | Transaction ProcessAuthorization(AuthorizationBuilder builder);
7 | Transaction ManageTransaction(ManagementBuilder builder);
8 | string SerializeRequest(AuthorizationBuilder builder);
9 | bool SupportsHostedPayments { get; }
10 | bool SupportsOpenBanking { get; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IRecurringService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.Gateways {
4 | interface IRecurringService {
5 | bool SupportsRetrieval { get; }
6 | bool SupportsUpdatePaymentDetails { get; }
7 | T ProcessRecurring(RecurringBuilder builder) where T : class;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/IReportingService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.Gateways {
4 | internal interface IReportingService {
5 | T ProcessReport(ReportBuilder builder) where T : class;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Gateways/Interfaces/ISecure3dProvider.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 |
4 | namespace GlobalPayments.Api.Gateways {
5 | public interface ISecure3dProvider {
6 | Secure3dVersion Version { get; }
7 |
8 | Transaction ProcessSecure3d(Secure3dBuilder builder);
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Logging/IRequestLogger.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Logging {
4 | public interface IRequestLogger {
5 | void RequestSent(string request);
6 | void ResponseReceived(string response);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Abstractions/IDataElement.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Network.Abstractions {
2 | public interface IDataElement {
3 | TResult FromByteArray(byte[] buffer);
4 | byte[] ToByteArray();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Abstractions/IStanProvider.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Network.Abstractions {
2 | public interface IStanProvider {
3 | int GenerateStan();
4 | }
5 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Elements/DE117_WIC_Data_Field_PS.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Network.Elements {
7 | public class DE117_WIC_Data_Field_PS {
8 | public string UPCData { get; set; }
9 | public string CategoryCode { get; set; }
10 | public string SubCategoryCode { get; set; }
11 | public string Units { get; set; }
12 | public string ItemPrice { get; set; }
13 | public string PurchaseQuantity { get; set; }
14 | public string ItemActionCode { get; set; }
15 | public string OriginalItemPrice { get; set; }
16 | public string OriginalPurchaseQuantity { get; set; }
17 | public string UPCDataLength { get; set; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Elements/DE123_ReconciliationTotal.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Network.Entities;
2 |
3 | namespace GlobalPayments.Api.Network.Elements {
4 | public class DE123_ReconciliationTotal {
5 | public DE123_TransactionType TransactionType { get; set; }
6 | public DE123_TotalType TotalType { get; set; } = DE123_TotalType.NotSpecific;
7 | public string CardType { get; set; } = " ";
8 | public int TransactionCount { get; set; }
9 | public decimal TotalAmount { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Elements/DE62_2_CardIssuerEntry.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Network.Entities;
2 |
3 | namespace GlobalPayments.Api.Network.Elements {
4 | public class DE62_2_CardIssuerEntry {
5 | public DE62_CardIssuerEntryTag IssuerTag { get; set; }
6 | public string IssuerTagValue { get; set; }
7 | public string IssuerEntry { get; set; }
8 |
9 | public DE62_2_CardIssuerEntry(DE62_CardIssuerEntryTag tag, string entry) : this(tag, null, entry) { }
10 |
11 | public DE62_2_CardIssuerEntry(DE62_CardIssuerEntryTag tag, string tagValue, string entry) {
12 | this.IssuerTag = tag;
13 | this.IssuerTagValue = tagValue;
14 | this.IssuerEntry = entry;
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Elements/EWICData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Network.Elements {
6 | public class EWICData {
7 | private DE117_WIC_Data_Fields ewicData;
8 | public EWICData() {
9 | ewicData = new DE117_WIC_Data_Fields();
10 | }
11 |
12 | public void Add(DE117_WIC_Data_Field_EA eaData) {
13 | //ewicData.DataSetIdentifier = "EA";
14 | ewicData.EAData = eaData;
15 | }
16 |
17 | public void Add(DE117_WIC_Data_Field_PS psData) {
18 | //ewicData.DataSetIdentifier = "PS";
19 | ewicData.PSData = psData;
20 | }
21 |
22 | public DE117_WIC_Data_Fields ToDataElement() {
23 | return ewicData;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Entities/TransactionMatchingData.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Network.Entities {
2 | public class TransactionMatchingData {
3 | public string OriginalBatchNumber { get; set; }
4 | public string OriginalDate { get; set; }
5 |
6 | public string GetElementData() {
7 | if (OriginalBatchNumber != null && OriginalDate != null) {
8 | return OriginalBatchNumber + OriginalDate;
9 | }
10 | return null;
11 | }
12 |
13 | public TransactionMatchingData(string batchNumber, string date) {
14 | OriginalBatchNumber = batchNumber;
15 | OriginalDate = date;
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/AuthorizerCode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum AuthorizerCode {
6 | [Map(Target.NWS, " ")]
7 | Interchange_Authorized,
8 | [Map(Target.NWS, "B")]
9 | Host_Authorized,
10 | [Map(Target.NWS, "T")]
11 | Terminal_Authorized,
12 | [Map(Target.NWS, "V")]
13 | Voice_Authorized,
14 | [Map(Target.NWS, "P")]
15 | PassThrough,
16 | [Map(Target.NWS, "N")]
17 | NegativeFile,
18 | [Map(Target.NWS, "L")]
19 | LocalNegativeFile,
20 | [Map(Target.NWS, "A")]
21 | AuthTable
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/CardDataOutputCapability.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Entities {
4 | [MapTarget(Target.VAPS | Target.Transit | Target.NWS)]
5 | public enum CardDataOutputCapability {
6 | [Map(Target.VAPS, "0")]
7 | [Map(Target.Transit, "OTHER")]
8 | [Map(Target.NWS, "0")]
9 | Unknown,
10 |
11 | [Map(Target.VAPS, "1")]
12 | [Map(Target.Transit, "NONE")]
13 | [Map(Target.NWS, "1")]
14 | None,
15 |
16 | [Map(Target.VAPS, "2")]
17 | [Map(Target.Transit, "MAGNETIC_STRIPE_WRITE")]
18 | [Map(Target.NWS, "2")]
19 | MagStripe_Write,
20 |
21 | [Map(Target.VAPS, "3")]
22 | [Map(Target.Transit, "ICC")]
23 | [Map(Target.NWS, "3")]
24 | ICC
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/CharacterSet.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum CharacterSet {
4 | ASCII = 0x01,
5 | EBCDIC = 0x02,
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE124_SundryDataTag.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE124_SundryDataTag {
6 | [Map(Target.NWS, "00")]
7 | ClientSuppliedData,
8 | [Map(Target.NWS, "01")]
9 | PiggyBack_CollectTransaction,
10 | [Map(Target.NWS, "02")]
11 | PiggyBack_AuthCaptureData
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE127_ForwardingDataTag.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE127_ForwardingDataTag {
6 | [Map(Target.NWS, "E3E")]
7 | E3_EncryptedData,
8 | [Map(Target.NWS, "HDR")]
9 | ForwardedHeaderOnly,
10 | [Map(Target.NWS, "REQ")]
11 | ForwardedRequest,
12 | [Map(Target.NWS, "RSP")]
13 | ForwardedResponse,
14 | [Map(Target.NWS, "3DE")]
15 | Encryption_3DES,
16 | [Map(Target.NWS, "TOK")]
17 | Tokenization_TOK
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE22_CardPresence.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE22_CardPresence {
6 | [Map(Target.NWS, "0")]
7 | CardNotPresent,
8 | [Map(Target.NWS, "1")]
9 | CardPresent,
10 | [Map(Target.NWS, "8")]
11 | CardOnFile
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_AddressType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_AddressType {
6 | [Map(Target.NWS, "0")]
7 | StreetAddress,
8 | [Map(Target.NWS, "1")]
9 | AddressVerification,
10 | [Map(Target.NWS, "2")]
11 | PhoneNumber,
12 | [Map(Target.NWS, "3")]
13 | Email,
14 | [Map(Target.NWS, "4")]
15 | PrefixedUrl,
16 | [Map(Target.NWS, "5")]
17 | AddressVerification_Numeric
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_AddressUsage.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_AddressUsage {
6 | [Map(Target.NWS, "0")]
7 | Business,
8 | [Map(Target.NWS, "1")]
9 | Home,
10 | [Map(Target.NWS, "2")]
11 | Fax,
12 | [Map(Target.NWS, "3")]
13 | Cellular,
14 | [Map(Target.NWS, "4")]
15 | Billing,
16 | [Map(Target.NWS, "5")]
17 | Shipping,
18 | [Map(Target.NWS, "6")]
19 | CustomerServiceCenter,
20 | [Map(Target.NWS, "7")]
21 | Daytime,
22 | [Map(Target.NWS, "8")]
23 | Evening,
24 | [Map(Target.NWS, "9")]
25 | PreviousHome,
26 | [Map(Target.NWS, "A")]
27 | Merchant
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_AdministrativelyDirectedTaskCode.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum DE48_AdministrativelyDirectedTaskCode {
4 | NoNotification = 0x30,
5 | MailPending = 0x31,
6 | ParameterDataLoad_Pending = 0x32,
7 | EMV_ParameterDataLoad_Pending = 0x33,
8 | MultipleMessagesPending = 0x34
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_EncryptionAlgorithmDataCode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_EncryptionAlgorithmDataCode {
6 | [Map(Target.NWS, "0")]
7 | NoEncryption,
8 | [Map(Target.NWS, "1")]
9 | DES,
10 | [Map(Target.NWS, "2")]
11 | TripleDES_2Keys,
12 | [Map(Target.NWS, "3")]
13 | TripleDES_3Keys
14 |
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_HostConnected.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_HostConnected {
6 | [Map(Target.NWS, "0")]
7 | Unavailable,
8 | [Map(Target.NWS, "1")]
9 | PrimaryHost,
10 | [Map(Target.NWS, "2")]
11 | SecondaryHost
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_KeyManagementDataCode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_KeyManagementDataCode {
6 | [Map(Target.NWS, "0")]
7 | NoKey,
8 | [Map(Target.NWS, "3")]
9 | DerivedUniqueKeyPerTransaction_DUKPT,
10 | [Map(Target.NWS, "4")]
11 | ANSI,
12 | [Map(Target.NWS, "5")]
13 | PinPadCharacter
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_NameFormat.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_NameFormat {
6 | [Map(Target.NWS, "0")]
7 | FreeFormat,
8 | [Map(Target.NWS, "1")]
9 | Delimited_FirstMiddleLast,
10 | [Map(Target.NWS, "2")]
11 | Delimited_Title
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE48_NameType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE48_NameType {
6 | [Map(Target.NWS, "0")]
7 | CardHolderName,
8 | [Map(Target.NWS, "1")]
9 | CompanyName,
10 | [Map(Target.NWS, "2")]
11 | Secondary_Joint_AccountName
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DE54_AccountType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum DE54_AccountType {
6 | [Map(Target.NWS, "00")]
7 | Unspecified,
8 | [Map(Target.NWS, "01")]
9 | AccountLedgerBalance,
10 | [Map(Target.NWS, "02")]
11 | AccountAvailableBalance,
12 | [Map(Target.NWS, "03")]
13 | AmountOwing,
14 | [Map(Target.NWS, "04")]
15 | AmountDue,
16 | [Map(Target.NWS, "05")]
17 | AccountAvailableCredit,
18 | [Map(Target.NWS, "17")]
19 | AccountMaximumLimit,
20 | [Map(Target.NWS, "20")]
21 | AmountRemainingThisCycle
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/DataElementType.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum DataElementType {
4 | LVAR,
5 | LLVAR,
6 | LLLVAR,
7 | DVAR,
8 | ALPHA,
9 | BINARY,
10 | HEXADECIMAL,
11 | NUMERIC,
12 | PAD,
13 | SPECIAL,
14 | ACCOUNTING_ENTRY_DESIGNATION,
15 | ALPHA_NUMERIC,
16 | ALPHA_SPECIAL,
17 | NUMERIC_PAD,
18 | NUMERIC_SPECIAL,
19 | ALPHA_NUMERIC_PAD,
20 | ALPHA_NUMERIC_SPECIAL
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/EncryptionType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum EncryptionType {
6 | [Map(Target.NWS,"0")]
7 | InValid,
8 | [Map(Target.NWS, "1")]
9 | TEP1,
10 | [Map(Target.NWS, "2")]
11 | TEP2,
12 | [Map(Target.NWS, "3")]
13 | TDES
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/FallbackCode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum FallbackCode {
6 | [Map(Target.NWS, "00")]
7 | None,
8 | [Map(Target.NWS, "08")]
9 | CreditAdjustment,
10 | [Map(Target.NWS, "30")]
11 | Referral,
12 | [Map(Target.NWS, "48")]
13 | Received_SystemMalfunction,
14 | [Map(Target.NWS, "68")]
15 | CouldNotCommunicateWithHost,
16 | [Map(Target.NWS, "88")]
17 | Received_IssuerTimeout,
18 | [Map(Target.NWS, "98")]
19 | Received_IssuerUnavailable
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/FeeType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum FeeType {
6 | [Map(Target.NWS, "00")]
7 | TransactionFee,
8 | [Map(Target.NWS, "22")]
9 | Surcharge
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/Iso4217_CurrencyCode.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum Iso4217_CurrencyCode {
6 | [Map(Target.NWS, "124")]
7 | CAD,
8 | [Map(Target.NWS, "840")]
9 | USD
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/Iso8583MessageType.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum Iso8583MessageType {
4 | CompleteMessage,
5 | SubElement_DE_048,
6 | SubElement_DE_0117_EA,
7 | SubElement_DE_0117_PS
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/NetworkGatewayType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Network.Enums {
6 | public enum NetworkGatewayType {
7 | NWS,
8 | VAPS
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/NetworkProcessingFlag.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum NetworkProcessingFlag {
4 | NonPersistentConnection = 0x00,
5 | PersistentConnection = 0x01
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/NetworkResponseCode.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum NetworkResponseCode {
4 | Success= 0x00,
5 | FailedConnection= 0x01,
6 | Timeout= 0x02,
7 | FormatError_Originator= 0x03,
8 | StoreAndForward= 0x04,
9 | UnsupportedTransaction= 0x05,
10 | UnsupportedServiceProvider= 0x06,
11 | FormatError_ServiceProvider= 0x07
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/NetworkResponseCodeOrigin.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum NetworkResponseCodeOrigin {
4 | Default= 0x00,
5 | FrontEndProcess= 0x01,
6 | BackEndProcess= 0x02,
7 | InternalProcess= 0x03,
8 | AuthorizationHost= 0x04
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/NetworkTransactionType.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum NetworkTransactionType {
6 | [Map(Target.NWS, "NT")]
7 | KeepAlive,
8 | [Map(Target.NWS, "EH")]
9 | Transaction
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/ProductCodeSet.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum ProductCodeSet {
6 | [Map(Target.NWS, "0")]
7 | Heartland,
8 | [Map(Target.NWS, "1")]
9 | ClientSpecific,
10 | [Map(Target.NWS, "2")]
11 | IssuerSpecific,
12 | [Map(Target.NWS, "3")]
13 | Conexxus_3_Digit,
14 | [Map(Target.NWS, "4")]
15 | Conexxus_6_Digit,
16 | [Map(Target.NWS, "5")]
17 | UCC_12,
18 | [Map(Target.NWS, "6")]
19 | GTIN,
20 | [Map(Target.NWS, "7")]
21 | Mixed,
22 | [Map(Target.NWS, "8")]
23 | ClientSpecificAddendum_1,
24 | [Map(Target.NWS, "9")]
25 | ClientSpecificAddendum_2
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/ProductDataFormat.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum ProductDataFormat {
6 | [Map(Target.NWS, "0")]
7 | HeartlandStandardFormat,
8 | [Map(Target.NWS, "1")]
9 | ANSI_X9_TG23_Format,
10 | [Map(Target.NWS, "2")]
11 | Heartland_ProductCoupon_Format
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/ProtocolType.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace GlobalPayments.Api.Network.Entities {
3 | public enum ProtocolType {
4 | NotSpecified = 0x00,
5 | TCP_IP = 0x01,
6 | UDP_IP = 0x02,
7 | X25 = 0x03,
8 | SNA = 0x04,
9 | Async = 0x05,
10 | /* TODO:
11 | For asynchronous protocol two options exist, without link level and with link level support
12 | (protocol types 5 and 7 respectively). Use protocol type value of 7 when type message value is
13 | 35 or 37. Use protocol type value of 5 when type message value is 01. For other type message
14 | values consult with your Heartland representative.
15 | */
16 | Bisync_3270 = 0x06
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/ServiceLevel.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Network.Entities {
4 | [MapTarget(Target.NWS)]
5 | public enum ServiceLevel {
6 | [Map(Target.NWS, "F")]
7 | FullServe,
8 | [Map(Target.NWS, "N")]
9 | MiniServe,
10 | [Map(Target.NWS, "O")]
11 | Other_NonFuel,
12 | [Map(Target.NWS, "S")]
13 | SelfServe,
14 | [Map(Target.NWS, "X")]
15 | MaxiServe
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Network/Enums/UnitOfMeasure.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Network.Entities {
7 | [MapTarget(Target.NWS)]
8 | public enum UnitOfMeasure {
9 | [Map(Target.NWS, "C")]
10 | CaseOrCarton,
11 | [Map(Target.NWS, "G")]
12 | Gallons,
13 | [Map(Target.NWS, "K")]
14 | Kilograms,
15 | [Map(Target.NWS, "L")]
16 | Liters,
17 | [Map(Target.NWS, "O")]
18 | OtherOrUnknown,
19 | [Map(Target.NWS, "P")]
20 | Pounds,
21 | [Map(Target.NWS, "Q")]
22 | Quarts,
23 | [Map(Target.NWS, "U")]
24 | Units,
25 | [Map(Target.NWS, "Z")]
26 | Ounces
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IAuthable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IAuthable {
5 | AuthorizationBuilder Authorize(decimal? amount = null, bool isEstimated = false);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IBalancable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 |
4 | namespace GlobalPayments.Api.PaymentMethods {
5 | interface IBalanceable {
6 | AuthorizationBuilder BalanceInquiry(InquiryType? inquiry);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/ICardData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | public interface ICardData {
5 | bool CardPresent { get; set; }
6 | string CardType { get; set; }
7 | string CardHolderName { get; set; }
8 | string Cvn { get; set; }
9 | CvnPresenceIndicator CvnPresenceIndicator { get; set; }
10 | string Number { get; set; }
11 | int? ExpMonth { get; set; }
12 | int? ExpYear { get; set; }
13 | bool ReaderPresent { get; set; }
14 | string ShortExpiry { get; }
15 | ManualEntryMethod? EntryMethod { get; set; }
16 | EntryMethod? OriginalEntryMethod { get; set; }
17 | string TokenizationData { get; set; }
18 |
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IChargable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IChargable {
5 | AuthorizationBuilder Charge(decimal? amount = null);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IEditable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IEditable {
5 | ManagementBuilder Edit(decimal? amount = null);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IEncryptable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IEncryptable {
5 | EncryptionData EncryptionData { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IPaymentMethod.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | public interface IPaymentMethod {
5 | PaymentMethodType PaymentMethodType { get; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IPinProtected.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.PaymentMethods {
2 | interface IPinProtected {
3 | string PinBlock { get; set; }
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IPrePayable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IPrePaid {
5 | AuthorizationBuilder AddValue(decimal? amount = null);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IRefundable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IRefundable {
5 | AuthorizationBuilder Refund(decimal? amount = null);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IReversable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IReversable {
5 | AuthorizationBuilder Reverse(decimal? amount = null);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/ISecure3d.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface ISecure3d {
5 | ThreeDSecure ThreeDSecure { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/ITokenizable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 |
4 | namespace GlobalPayments.Api.PaymentMethods {
5 | interface ITokenizable {
6 | string Token { get; set; }
7 | string Tokenize(string configName = "default", PaymentMethodUsageMode paymentMethodUsageMode = PaymentMethodUsageMode.Multiple);
8 | string Tokenize(bool validateCard, string configName = "default", PaymentMethodUsageMode paymentMethodUsageMode = PaymentMethodUsageMode.Multiple);
9 | bool UpdateTokenExpiry(string configName = "default");
10 | bool DeleteToken(string configName = "default");
11 | ManagementBuilder UpdateToken();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/ITrackData.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | public interface ITrackData {
5 | string Expiry { get; set; }
6 | string Pan { get; set; }
7 | TrackNumber TrackNumber { get; set; }
8 | string TrackData { get; set; }
9 | string DiscretionaryData { get; set; }
10 | string Value { get; set; }
11 | EntryMethod EntryMethod { get; set; }
12 | string TokenizationData { get; set; }
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IVerifiable.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 |
3 | namespace GlobalPayments.Api.PaymentMethods {
4 | interface IVerifiable {
5 | AuthorizationBuilder Verify();
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/PaymentMethods/PaymentInterfaces/IVoidable.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.PaymentMethods {
2 | interface IVoidable { }
3 | }
4 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/src/GlobalPayments.Api/Properties/AssemblyInfo.cs
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/ServiceConfigs/BoardingConfig.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Gateways;
2 | using System;
3 |
4 | namespace GlobalPayments.Api {
5 | public class BoardingConfig : Configuration {
6 | public string Portal { get; set; }
7 |
8 | internal override void ConfigureContainer(ConfiguredServices services) {
9 | services.BoardingConnector = new OnlineBoardingConnector {
10 | Portal = Portal
11 | };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Services/DeviceService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals;
2 |
3 | namespace GlobalPayments.Api.Services {
4 | public class DeviceService {
5 | public static IDeviceInterface Create(ConnectionConfig config, string configName = "default") {
6 | ServicesContainer.ConfigureService(config, configName);
7 | if (config.GatewayConfig != null) {
8 | ServicesContainer.ConfigureService(config.GatewayConfig, "_upa_passthrough");
9 | }
10 | return ServicesContainer.Instance.GetDeviceInterface(configName);
11 | }
12 |
13 | public static IDeviceInterface FindDeviceController(string configName = "default")
14 | {
15 | return ServicesContainer.Instance.GetDeviceInterface(configName);
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Services/FileProcessingService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using GlobalPayments.Api.Entities.Enums;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Text;
7 |
8 | namespace GlobalPayments.Api.Services {
9 | public class FileProcessingService {
10 | public FileProcessor Initiate() {
11 | return new FileProcessingBuilder(FileProcessingActionType.CREATE_UPLOAD_URL)
12 | .Execute();
13 | }
14 |
15 | public FileProcessor GetDetails(string resourceId) {
16 | return new FileProcessingBuilder(FileProcessingActionType.GET_DETAILS)
17 | .WithResourceId(resourceId)
18 | .Execute();
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Services/FraudService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Builders;
2 | using GlobalPayments.Api.Entities;
3 | using GlobalPayments.Api.PaymentMethods;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Text;
7 |
8 | namespace GlobalPayments.Api.Services
9 | {
10 | public class FraudService
11 | {
12 | public static FraudBuilder RiskAssess(IPaymentMethod paymentMethod)
13 | {
14 | return (new FraudBuilder(TransactionType.RiskAssess))
15 | .WithPaymentMethod>(paymentMethod);
16 |
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Services/TransitService.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 | using GlobalPayments.Api.Gateways;
3 |
4 | namespace GlobalPayments.Api.Services {
5 | public class TransitService {
6 | public static string GenerateTransactionKey(Environment environment, string merchantId, string userId, string password, string transactionKey = null) {
7 | var connector = new TransitConnector {
8 | MerchantId = merchantId,
9 | TransactionKey = transactionKey,
10 | ServiceUrl = environment.Equals(Environment.PRODUCTION) ? ServiceEndpoints.TRANSIT_MULTIPASS_PRODUCTION: ServiceEndpoints.TRANSIT_MULTIPASS_TEST,
11 | Timeout = 10000
12 | };
13 |
14 | return connector.GenerateKey(userId, password);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IBatchClearResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions
2 | { public interface IBatchClearResponse : IDeviceResponse {
3 | string SequenceNumber { get; set; }
4 | string TotalCount { get; set; }
5 | string TotalAmount { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IBatchCloseResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions {
2 | public interface IBatchCloseResponse : IDeviceResponse {
3 | string SequenceNumber { get; set; }
4 | string TotalCount { get; set; }
5 | string TotalAmount { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IBatchReportResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 | using GlobalPayments.Api.Terminals.HPA.Responses;
3 | using System.Collections.Generic;
4 |
5 | namespace GlobalPayments.Api.Terminals.Abstractions {
6 | public interface IBatchReportResponse : IDeviceResponse {
7 | BatchSummary BatchSummary { get; }
8 | CardBrandSummary VisaSummary { get; }
9 | CardBrandSummary MasterCardSummary { get; }
10 | CardBrandSummary AmexSummary { get; }
11 | CardBrandSummary DiscoverSummary { get; }
12 | CardBrandSummary PaypalSummary { get; }
13 | List TransactionSummaries { get; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ICardBrandSummary.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Terminals.Abstractions {
7 | public interface ICardBrandSummary {
8 | CardType CardType { get; }
9 | int CreditCount { get; }
10 | decimal? CreditAmount { get; }
11 | int DebitCount { get; }
12 | decimal? DebitAmount { get; }
13 | int SaleCount { get; }
14 | decimal? SaleAmount { get; }
15 | int RefundCount { get; }
16 | decimal? RefundAmount { get; }
17 | int TotalCount { get; }
18 | decimal? TotalAmount { get; }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IDeviceCommInterface.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals.Messaging;
2 |
3 | namespace GlobalPayments.Api.Terminals.Abstractions {
4 | public interface IDeviceCommInterface {
5 | void Connect();
6 |
7 | void Disconnect();
8 |
9 | byte[] Send(IDeviceMessage message);
10 |
11 | event MessageSentEventHandler OnMessageSent;
12 |
13 | event MessageReceivedEventHandler OnMessageReceived;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IDeviceMessage.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Terminals.Abstractions {
4 | public interface IDeviceMessage {
5 | bool KeepAlive { get; set; }
6 | bool AwaitResponse { get; set; }
7 |
8 | byte[] GetSendBuffer();
9 |
10 | IRawRequestBuilder GetRequestBuilder();
11 | T GetRequestField(string keyName);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IDeviceScreen.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions {
2 | public interface IDeviceScreen : IDeviceResponse {
3 | }
4 | }
5 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IInitializeResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | namespace GlobalPayments.Api.Terminals.Abstractions {
3 | public interface IInitializeResponse : IDeviceResponse {
4 | string SerialNumber { get; set; }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IRequestIdProvider.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals.Builders;
2 |
3 | namespace GlobalPayments.Api.Terminals.Abstractions {
4 | public interface IRequestIdProvider {
5 | int GetRequestId();
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IRequestSubGroup.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Terminals.Abstractions {
4 | internal interface IRequestSubGroup {
5 | string GetElementString();
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/IResponseSubGroup.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 |
4 | namespace GlobalPayments.Api.Terminals.Abstractions {
5 | internal interface IResponseSubGroup {
6 |
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ISAFResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals.Enums;
2 | using System.Collections.Generic;
3 | namespace GlobalPayments.Api.Terminals.Abstractions {
4 | public interface ISAFResponse : IDeviceResponse {
5 | int TotalCount { get; }
6 | decimal? TotalAmount { get; }
7 |
8 | Dictionary Approved { get; }
9 | Dictionary Pending { get; }
10 | Dictionary Declined { get; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ISafDeleteFileResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions
2 | {
3 | public interface ISafDeleteFileResponse : IDeviceResponse {
4 | string TotalCount { get; set; }
5 | string TorInfo { get; set; }
6 | }
7 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ISafParamsResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities.Enums;
2 |
3 | namespace GlobalPayments.Api.Terminals.Abstractions {
4 | public interface ISafParamsResponse : IDeviceResponse {
5 | SafMode SAFMode { get; set; }
6 | string StartDateTime { get; set; }
7 | string EndDateTime { get; set; }
8 | string DurationInDays { get; set; }
9 | string MaxNumberOfRecord { get; set; }
10 | string TotalCeilingAmount { get; set; }
11 | string CeilingAmountPerCardType { get; set; }
12 | string HALOPerCardType { get; set; }
13 | string UploadMode { get; set; }
14 | string AutoUploadIntervalTime { get; set; }
15 | string DeleteSAFConfirmation { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ISafSummaryReport.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions
2 | {
3 | public interface ISafSummaryReport : IDeviceResponse
4 | {
5 | string TotalCount { get; set; }
6 | string TotalAmount { get; set; }
7 | }
8 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ISafUploadResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions
2 | {
3 | public interface ISafUploadResponse : IDeviceResponse {
4 | string TotalCount { get; set; }
5 | string TotalAmount { get; set; }
6 | string TimeStamp { get; set; }
7 | string UploadedCount { get; set; }
8 | string UploadedAmount { get; set; }
9 | string FailedCount { get; set; }
10 | string FailedTotal { get; set; }
11 | string TorInfo { get; set; }
12 | }
13 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Abstractions/ISignatureResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Abstractions {
2 | public interface ISignatureResponse : IDeviceResponse {
3 | byte[] SignatureData { get; set; }
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/ControlCodes.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace GlobalPayments.Api.Terminals {
8 | public enum ControlCodes : byte {
9 | STX = 0x02,
10 | ETX = 0x03,
11 | ACK = 0x06,
12 | NAK = 0x15,
13 | ENQ = 0x05,
14 | FS = 0x1C,
15 | GS = 0x1D,
16 | EOT = 0x04,
17 |
18 | // PAX Specific ??
19 | US = 0x1F,
20 | RS = 0x1E,
21 | COMMA = 0x2C,
22 | COLON = 0x3A,
23 | PTGS = 0x7C,
24 | LF = 0x0A
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Diamond/Entities/Enums/AuthorizationMethod.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Diamond.Entities.Enums {
2 | public enum AuthorizationMethod {
3 | PIN = 'A',
4 | SIGNATURE = '@',
5 | PIN_AND_SIGNATURE = 'B',
6 | NO_AUTH_METHOD = '?'
7 | }
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Diamond/Entities/Enums/AuthorizationType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Diamond.Entities.Enums {
2 | public enum AuthorizationType {
3 | ONLINE = '1',
4 | OFFLINE = '3',
5 | REFERRAL = '4'
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Diamond/Entities/Enums/CardSource.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Diamond.Entities.Enums {
2 | public enum CardSource {
3 | CONTACTLESS = 'B',
4 | MANUAL = 'M',
5 | MAGSTRIPE = 'C',
6 | ICC = 'P',
7 | UNKNOWN = '?'
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Diamond/Entities/Enums/DiamondCloudSearchCriteria.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Diamond.Entities.Enums {
2 | public enum DiamondCloudSearchCriteria {
3 | TerminalReferenceNumber,
4 | ReferenceNumber,
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Diamond/Entities/Enums/DiamondCloudTransactionType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Diamond.Entities.Enums {
2 | public enum DiamondCloudTransactionType {
3 | UNKNOWN = 0,
4 | SALE = 1,
5 | PREAUTH = 4,
6 | CAPTURE = 5,
7 | REFUND = 6,
8 | VOID = 10,
9 | REPORT = 66,
10 | PREAUTH_CANCEL = 82,
11 | INCR_AUTH = 86
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Diamond/Entities/Enums/TransactionResult.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Diamond.Entities.Enums {
2 | public enum TransactionResult {
3 | ACCEPTED = '0',
4 | REFUSED = '1',
5 | NO_CONNECTION = '2',
6 | CANCELED = '7'
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Enums/HostDecision.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Terminals.Enums {
4 | public enum HostDecision {
5 | [Description("Approved")]
6 | APPROVED,
7 | [Description("Declined")]
8 | DECLINED,
9 | [Description("Failed to Connect")]
10 | FAILED_TO_CONNECT,
11 | [Description("Stand IN")]
12 | STAND_IN
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Enums/MerchantDecision.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Terminals.Enums {
4 | public enum MerchantDecision {
5 | [Description("Approved")]
6 | APPROVED,
7 | [Description("Force Online")]
8 | FORCE_ONLINE,
9 | [Description("Force Decline - AAC")]
10 | FORCE_DECLINE
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Enums/ReportOutPut.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Enums {
2 | public enum ReportOutput {
3 | Print,
4 | ReturnData
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Enums/SummaryType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Enums {
2 | public enum SummaryType {
3 | Approved,
4 | PartiallyApproved,
5 | VoidApproved,
6 | Pending,
7 | VoidPending,
8 | Declined,
9 | VoidDeclined,
10 | OfflineApproved,
11 | Provsional,
12 | Discarded,
13 | VoidProvisional,
14 | VoidDiscarded,
15 | Reversal,
16 | EmvDeclined,
17 | Attachment,
18 | Unknown
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Enums/TerminalReportType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Enums {
2 | public enum TerminalReportType {
3 | LocalDetailReport,
4 | GetSAFReport,
5 | GetBatchReport,
6 | GetBatchDetails,
7 | GetOpenTabDetails,
8 | FindBatches
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Extensions/BitConverterExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace System {
4 | public static partial class BitConverterX {
5 | public static short ToInt16(byte[] buffer, int startIndex) {
6 | byte[] lengthBuffer = new byte[2];
7 | Array.Copy(buffer, 0, lengthBuffer, 0, 2);
8 | Array.Reverse(lengthBuffer);
9 | return BitConverter.ToInt16(lengthBuffer, 0);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Extensions/ListExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace GlobalPayments.Api.Terminals.Extensions {
5 | internal static class ListExtensions {
6 | public static void ForEach(this List list, Action action) {
7 | foreach (T item in list)
8 | action(item);
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Genius/Enums/TransactionIdType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GlobalPayments.Api.Terminals.Genius.Enums
6 | {
7 | public enum TransactionIdType
8 | {
9 | CLIENT_TRANSACTION_ID,
10 | GATEWAY_TRANSACTION_ID
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/HPA/Responses/HeartBeatResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 |
6 | namespace GlobalPayments.Api.Terminals.HPA.Responses {
7 | public class HeartBeatResponse : SipBaseResponse {
8 | public string TransactionTime { get; set; }
9 |
10 | public HeartBeatResponse(byte[] buffer, params string[] messageIds) : base(buffer, messageIds) { }
11 |
12 | internal override void MapResponse(Element response) {
13 | base.MapResponse(response);
14 | DeviceResponseCode = NormalizeResponse(response.GetValue("Result"));
15 | DeviceResponseText = response.GetValue("ResultText");
16 | TransactionTime = response.GetValue("TransactionTime");
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/HPA/Responses/SignatureResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals.Abstractions;
2 | using GlobalPayments.Api.Utils;
3 | using System;
4 |
5 | namespace GlobalPayments.Api.Terminals.HPA.Responses {
6 | public class SignatureResponse : SipTerminalResponse, ISignatureResponse {
7 | public SignatureResponse(byte[] response, params string[] messageIds) : base(response, messageIds) { }
8 |
9 | internal override void MapResponse(Element response) {
10 | base.MapResponse(response);
11 |
12 | if (DeviceResponseCode == "00") {
13 | var attachmentData = response.GetValue("AttachmentData");
14 | if(!string.IsNullOrEmpty(attachmentData))
15 | SignatureData = Convert.FromBase64String(attachmentData);
16 | }
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/HPA/Responses/SipSendFileResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Utils;
2 |
3 | namespace GlobalPayments.Api.Terminals.HPA.Responses {
4 | public class SipSendFileResponse : SipBaseResponse {
5 | public int MaxDataSize { get; set; }
6 |
7 | public SipSendFileResponse(byte[] buffer, params string[] messageIds) : base(buffer, messageIds) {
8 | }
9 |
10 | internal override void MapResponse(Element response) {
11 | base.MapResponse(response);
12 |
13 | MaxDataSize = response.GetValue("MaxDataSize");
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Messaging/BroadcastMessageEventHandler.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Messaging {
2 | public delegate void BroadcastMessageEventHandler();
3 | }
4 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Messaging/MessageReceivedEventHandler.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Messaging
2 | {
3 | public delegate void MessageReceivedEventHandler(string message);
4 | }
5 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/Messaging/MessageSentEventHandler.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.Messaging {
2 | public delegate void MessageSentEventHandler(string message);
3 | }
4 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/PAX/Responses/InitializeResponse.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using GlobalPayments.Api.Terminals.Abstractions;
3 | using GlobalPayments.Api.Terminals.Extensions;
4 |
5 | namespace GlobalPayments.Api.Terminals.PAX {
6 | public class InitializeResponse : PaxTerminalResponse, IInitializeResponse {
7 | public string SerialNumber { get; set; }
8 |
9 | public InitializeResponse(byte[] buffer)
10 | : base(buffer, PAX_MSG_ID.A01_RSP_INITIALIZE) {
11 | }
12 |
13 | protected override void ParseResponse(BinaryReader br) {
14 | base.ParseResponse(br);
15 | SerialNumber = br.ReadToCode(ControlCodes.ETX);
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/PAX/Responses/ResetResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Terminals.PAX {
4 | public class ResetResponse : PaxTerminalResponse {
5 | public ResetResponse(byte[] buffer) : base(buffer, PAX_MSG_ID.A17_RSP_RESET) { }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/PAX/Responses/SafSummaryReport.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using GlobalPayments.Api.Terminals.Abstractions;
3 | using GlobalPayments.Api.Terminals.Extensions;
4 |
5 | namespace GlobalPayments.Api.Terminals.PAX.Responses
6 | {
7 | public class SafSummaryReport : PaxTerminalResponse, ISafSummaryReport
8 | {
9 | public string TotalCount { get; set; }
10 | public string TotalAmount { get; set; }
11 | public SafSummaryReport(byte[] buffer)
12 | : base(buffer, PAX_MSG_ID.R11_RSP_SAF_SUMMARY_REPORT)
13 | {
14 | }
15 |
16 | protected override void ParseResponse(BinaryReader br)
17 | {
18 | base.ParseResponse(br);
19 | TotalCount = br.ReadToCode(ControlCodes.FS);
20 | TotalAmount = br.ReadToCode(ControlCodes.FS);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/PAX/Responses/SignatureResponse.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using GlobalPayments.Api.Entities;
3 | using GlobalPayments.Api.Terminals.Abstractions;
4 | using GlobalPayments.Api.Terminals.Extensions;
5 |
6 | namespace GlobalPayments.Api.Terminals.PAX {
7 | public class SignatureResponse : PaxTerminalResponse, ISignatureResponse {
8 | private DeviceType _deviceType;
9 |
10 | public int TotalLength { get; set; }
11 | public int ResponseLegth { get; set; }
12 |
13 | public SignatureResponse(byte[] response, DeviceType deviceType = DeviceType.PAX_S300) : base(response, PAX_MSG_ID.A09_RSP_GET_SIGNATURE, PAX_MSG_ID.A21_RSP_DO_SIGNATURE) {
14 | _deviceType = deviceType;
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/SummaryResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 | using GlobalPayments.Api.Terminals.Enums;
3 | using System.Collections.Generic;
4 |
5 | namespace GlobalPayments.Api.Terminals {
6 | public class SummaryResponse {
7 | public decimal? Amount { get; set; }
8 | public decimal? AmountDue { get; set; }
9 | public decimal? AuthorizedAmount { get; set; }
10 | public int Count { get; set; }
11 | public SummaryType SummaryType { get; set; }
12 | public decimal? TotalAmount { get; set; }
13 | public List Transactions { get; set; }
14 |
15 | public SummaryResponse() {
16 | Transactions = new List();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/UPA/Responses/BatchTransactionResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.UPA
2 | {
3 | public class BatchTransactionResponse
4 | {
5 | public string CardType { get; set; }
6 | public decimal TotalAmount { get; set; }
7 | public int TotalCnt { get; set; }
8 | public int CreditCnt { get; set; }
9 | public decimal CreditAmt { get; set; }
10 | public int DebitCnt { get; set; }
11 | public decimal DebitAmt { get; set; }
12 | public int SaleCnt { get; set; }
13 | public decimal SaleAmt { get; set; }
14 | public int ReturnCnt { get; set; }
15 | public decimal ReturnAmt { get; set; }
16 | public decimal TotalGratuityAmt { get; set; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/UPA/Responses/OpenTab.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Entities;
2 |
3 | namespace GlobalPayments.Api.Terminals.UPA
4 |
5 | {
6 | public class OpenTab {
7 | public decimal AuthorizedAmount { get; set; }
8 | public string CardType { get; set; }
9 | public string MaskedPan { get; set; }
10 | public string TransactionId { get; set; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/UPA/Responses/PinDUKPTResponse.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.UPA.Responses {
2 | public class PinDUKPTResponse {
3 | public string PinBlock { get; set; }
4 | public string Ksn { get; set; }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/UPA/Responses/UDScreenResponse.cs:
--------------------------------------------------------------------------------
1 | using GlobalPayments.Api.Terminals.Abstractions;
2 | using GlobalPayments.Api.Utils;
3 |
4 | namespace GlobalPayments.Api.Terminals.UPA.Responses {
5 | public class UDScreenResponse : UPAResponseHandler, IDeviceScreen {
6 | public UDScreenResponse(JsonDoc root) {
7 | ParseResponse(root);
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/UPA/UpaMessageType.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.UPA
2 | {
3 | internal class UpaMessageType
4 | {
5 | public const string Ack = "ACK";
6 | public const string Nak = "NAK";
7 | public const string Ready = "READY";
8 | public const string Busy = "BUSY";
9 | public const string TimeOut = "TO";
10 | public const string Msg = "MSG";
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Terminals/UPA/UpaSearchCriteria.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Terminals.UPA
2 | {
3 | public enum UpaSearchCriteria
4 | {
5 | EcrId,
6 | Batch,
7 | ReportOutput
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/GlobalPayments.Api/Utils/IRawRequestBuilder.cs:
--------------------------------------------------------------------------------
1 | namespace GlobalPayments.Api.Utils {
2 | public interface IRawRequestBuilder {
3 | T GetValue(params string[] names);
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/GpApi/BaseGpApiReportingTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GlobalPayments.Api.Tests.GpApi
4 | {
5 | public abstract class BaseGpApiReportingTest : BaseGpApiTests
6 | {
7 | protected DateTime ReportingStartDate = DateTime.UtcNow.AddYears(-1);
8 | protected DateTime ReportingEndDate = DateTime.UtcNow;
9 | protected DateTime ReportingLastMonthDate = DateTime.UtcNow.AddMonths(-1);
10 |
11 | protected const int FirstPage = 1;
12 | protected const int PageSize = 10;
13 | }
14 | }
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/Logging/CustomWebProxy.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Net;
3 |
4 | namespace GlobalPayments.Api.Tests.Logging {
5 | public class CustomWebProxy : IWebProxy {
6 | private readonly string _uri;
7 |
8 | public CustomWebProxy(string uri, ICredentials credentials = null) {
9 | _uri = uri;
10 | if (credentials != null) {
11 | Credentials = credentials;
12 | }
13 | }
14 |
15 | public ICredentials Credentials { get; set; }
16 |
17 | public Uri GetProxy(Uri destination) {
18 | return new Uri(_uri);
19 | }
20 |
21 | public bool IsBypassed(Uri host) {
22 | return false;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/ProPay/TestData/TestDoc.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/tests/GlobalPayments.Api.Tests/ProPay/TestData/TestDoc.docx
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/ProPay/TestData/TestDocChargeback.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/tests/GlobalPayments.Api.Tests/ProPay/TestData/TestDocChargeback.docx
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/Terminals/UPA/FileExamples/UDDataFile.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PIA TEST
5 |
6 |
7 | PIA TESTING
8 |
9 |
17 |
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/Terminals/UPA/FileExamples/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/tests/GlobalPayments.Api.Tests/Terminals/UPA/FileExamples/download.png
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/Terminals/UPA/FileExamples/example.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Esto es una prueba
4 |
5 |
6 |
7 | Ir a Google
8 |
9 |
Esto es una prueba de texto
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/Terminals/UPA/FileExamples/example.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/tests/GlobalPayments.Api.Tests/Terminals/UPA/FileExamples/example.jpg
--------------------------------------------------------------------------------
/tests/GlobalPayments.Api.Tests/TestData/mt30_ad1.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/globalpayments/dotnet-sdk/ebd66f11a30531581a2eb4f3a346ec39dd56f470/tests/GlobalPayments.Api.Tests/TestData/mt30_ad1.zip
--------------------------------------------------------------------------------