' Options:
'Date: 2024-11-21 13:09:45
'Version: 8.23
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://api.bokamera.se
'
'''GlobalNamespace:
'''MakePartial: True
'''MakeVirtual: True
'''MakeDataContractsExtensible: False
'''AddReturnMarker: True
'''AddDescriptionAsComments: True
'''AddDataContractAttributes: False
'''AddIndexesToDataMembers: False
'''AddGeneratedCodeAttributes: False
'''AddResponseStatus: False
'''AddImplicitVersion:
'''InitializeCollections: True
'''ExportValueTypes: False
'IncludeTypes: PaysonV1CreateCheckout.*
'''ExcludeTypes:
'''AddNamespaces:
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports System.Globalization
Imports ServiceStack.Data
Imports System.IO
Imports BokaMera.API.ServiceModel.Interfaces
Imports BokaMera.API.ServiceModel.Enums
Imports PaysonIntegrationCO2.Models.Enums
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
Public Partial Class PaysonCheckoutV2Response
'''
'''The checkout id
'''
Public Overridable Property Id As Guid
'''
'''The code snippet to for checkout module
'''
Public Overridable Property Snippet As String
'''
'''The checkout status
'''
Public Overridable Property Status As Payson2CheckoutStatus
End Class
Public Partial Class PaysonV1CreateCheckout
Implements IReturn(Of PaysonCheckoutV2Response)
Implements ICompany
Public Sub New()
Articles = New ArticleToCreate(){}
End Sub
'''
'''The company id.
'''
Public Overridable Property CompanyId As Nullable(Of Guid)
'''
'''Internal reference id (Could be booking, could be Article..)
'''
Public Overridable Property InternalReferenceId As String
'''
'''The booking id.
'''
Public Overridable Property BookingId As Integer
'''
'''Optional to set the checkout url. This url will be redirected to if payment is interupted for some reason.
'''
Public Overridable Property CheckoutUrl As Uri
'''
'''Optional to set your own confirmation url after payment completed.
'''
Public Overridable Property ConfirmationUrl As Uri
'''
'''The payment origin id. HomePage = 0, Embedded = 1, Admin = 2, Apps = 3, 4 = HomePageNew
'''
Public Overridable Property PaymentOrigin As PaymentOrigin
'''
'''If you want to have another language (sv, fi, dk, no, en) than the default language in system settings, specify it here. Leave empty if default language should be used.
'''
Public Overridable Property Language As String
'''
'''Articles (Could be Service, rebate code types, etc..
'''
Public Overridable Property Articles As ArticleToCreate()
'''
'''Determins if it's a test call
'''
Public Overridable Property TestMode As String
End Class
End Namespace
Namespace BokaMera.API.ServiceModel.Enums
Public Enum PaymentOrigin
HomePage
Embedded
Admin
Apps
HomePageNew
End Enum
End Namespace
Namespace BokaMera.API.ServiceModel.Interfaces
Public Interface ICompany
Property CompanyId As Nullable(Of Guid)
End Interface
End Namespace
Namespace PaysonIntegrationCO2.Models.Enums
Public Enum Payson2CheckoutStatus
None
Created
FormsFilled
ReadyToPay
ProcessingPayment
ReadyToShip
Shipped
PaidToAccount
Canceled
Credited
Expired
Denied
End Enum
End Namespace
End Namespace