class ServiceEndpoints
Public Class Methods
new(protocol = "http", server_root = "localhost:8080", server_path = "oneapiserver", api_version = "1", services = {})
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 4 def initialize(protocol = "http", server_root = "localhost:8080", server_path = "oneapiserver", api_version = "1", services = {}) services = { "AmountChargeService" =>"AmountChargeService", "AmountRefundService" =>"AmountRefundService", "AmountReserveService" =>"AmountReserveService", "AmountReserveAdditionalService" =>"AmountReserveAdditionalService", "AmountReserveChargeService" =>"AmountReserveChargeService", "AmountReserveReleaseService" =>"AmountReserveReleaseService", "LocationService" =>"LocationService", "SendSMSService" =>"SendSMSService", "QuerySMSService" =>"QuerySMSService", "SMSDeliveryService" =>"SMSDeliveryService", "CancelSMSDeliveryService" =>"CancelSMSDeliveryService", "RetrieveSMSService" =>"RetrieveSMSService", "SMSReceiptService" =>"SMSReceiptService", "CancelSMSReceiptService" =>"CancelSMSReceiptService", "SendMMSService" =>"SendMMSService", "QueryMMSService" =>"QueryMMSService", "MMSDeliveryService" =>"MMSDeliveryService", "CancelMMSDeliveryService" =>"CancelMMSDeliveryService", "RetrieveMMSService" =>"RetrieveMMSService", "RetrieveMMSMessageService" =>"RetrieveMMSMessageService", "MMSReceiptService" =>"MMSReceiptService", "CancelMMSReceiptService" =>"CancelMMSReceiptService" }.merge(services) base_path = "#{protocol}://#{server_root}/#{server_path}" @AmountCharge ="#{base_path}/#{services["AmountChargeService"]}/#{api_version}/payment/{endUserId}/transactions/amount" @AmountRefund ="#{base_path}/#{services["AmountRefundService"]}/#{api_version}/payment/{endUserId}/transactions/amount" @AmountReserve ="#{base_path}/#{services["AmountReserveService"]}/#{api_version}/payment/{endUserId}/transactions/amountReservation" @AmountReserveAdditional ="#{base_path}/#{services["AmountReserveAdditionalService"]}/#{api_version}/payment/{endUserId}/transactions/amountReservation/{transactionId}" @AmountReservationCharge ="#{base_path}/#{services["AmountReserveChargeService"]}/#{api_version}/payment/{endUserId}/transactions/amountReservation/{transactionId}" @AmountReservationRelease ="#{base_path}/#{services["AmountReserveReleaseService"]}/#{api_version}/payment/{endUserId}/transactions/amountReservation/{transactionId}" @Location ="#{base_path}/#{services["LocationService"]}/#{api_version}/location/queries/location" @SendSMS ="#{base_path}/#{services["SendSMSService"]}/#{api_version}/smsmessaging/outbound/{senderAddress}/requests" @QuerySMSDelivery ="#{base_path}/#{services["QuerySMSService"]}/#{api_version}/smsmessaging/outbound/{senderAddress}/requests/{requestId}/deliveryInfos" @SMSDeliverySubscriptions ="#{base_path}/#{services["SMSDeliveryService"]}/#{api_version}/smsmessaging/outbound/{senderAddress}/subscriptions" @CancelSMSDeliverySubscription ="#{base_path}/#{services["CancelSMSDeliveryService"]}/#{api_version}/smsmessaging/outbound/subscriptions/{subscriptionId}" @RetrieveSMS ="#{base_path}/#{services["RetrieveSMSService"]}/#{api_version}/smsmessaging/inbound/registrations/{registrationId}/messages/?maxBatchSize={maxBatchSize}" @SMSReceiptSubscriptions ="#{base_path}/#{services["SMSReceiptService"]}/#{api_version}/smsmessaging/inbound/subscriptions" @CancelSMSReceiptSubscription ="#{base_path}/#{services["CancelSMSReceiptService"]}/#{api_version}/smsmessaging/inbound/subscriptions/{subscriptionId}" @SendMMS ="#{base_path}/#{services["SendMMSService"]}/#{api_version}/messaging/outbound/{senderAddress}/requests" @QueryMMSDelivery ="#{base_path}/#{services["QueryMMSService"]}/#{api_version}/messaging/outbound/{senderAddress}/requests/{requestId}/deliveryInfos" @MMSDeliverySubscriptions ="#{base_path}/#{services["MMSDeliveryService"]}/#{api_version}/messaging/outbound/{senderAddress}/subscriptions" @CancelMMSDeliverySubscription ="#{base_path}/#{services["CancelMMSDeliveryService"]}/#{api_version}/messaging/outbound/subscriptions/{subscriptionId}" @RetrieveMMS ="#{base_path}/#{services["RetrieveMMSService"]}/#{api_version}/messaging/inbound/registrations/{registrationId}/messages/?maxBatchSize={maxBatchSize}" @RetrieveMMSMessage ="#{base_path}/#{services["RetrieveMMSMessageService"]}/#{api_version}/messaging/inbound/registrations/{registrationId}/messages/{messageId}?resFormat={resFormat}" @MMSReceiptSubscriptions ="#{base_path}/#{services["MMSReceiptService"]}/#{api_version}/messaging/inbound/subscriptions" @CancelMMSReceiptSubscription ="#{base_path}/#{services["CancelMMSReceiptService"]}/#{api_version}/messaging/inbound/subscriptions/{subscriptionId}" end
Public Instance Methods
getAmountChargeEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 56 def getAmountChargeEndpoint @AmountCharge end
getAmountRefundEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 60 def getAmountRefundEndpoint @AmountRefund end
getAmountReservationChargeEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 72 def getAmountReservationChargeEndpoint @AmountReservationCharge end
getAmountReservationReleaseEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 76 def getAmountReservationReleaseEndpoint @AmountReservationRelease end
getAmountReserveAdditionalEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 68 def getAmountReserveAdditionalEndpoint @AmountReserveAdditional end
getAmountReserveEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 64 def getAmountReserveEndpoint @AmountReserve end
getCancelMMSDeliverySubscriptionEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 124 def getCancelMMSDeliverySubscriptionEndpoint @CancelMMSDeliverySubscription end
getCancelMMSReceiptSubscriptionEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 140 def getCancelMMSReceiptSubscriptionEndpoint @CancelMMSReceiptSubscription end
getCancelSMSDeliverySubscriptionEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 96 def getCancelSMSDeliverySubscriptionEndpoint @CancelSMSDeliverySubscription end
getCancelSMSReceiptSubscriptionEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 108 def getCancelSMSReceiptSubscriptionEndpoint @CancelSMSReceiptSubscription end
getLocationEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 80 def getLocationEndpoint @Location; end
getMMSDeliverySubscriptionsEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 120 def getMMSDeliverySubscriptionsEndpoint @MMSDeliverySubscriptions end
getMMSReceiptSubscriptionsEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 136 def getMMSReceiptSubscriptionsEndpoint @MMSReceiptSubscriptions end
getQueryMMSDeliveryEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 116 def getQueryMMSDeliveryEndpoint @QueryMMSDelivery end
getQuerySMSDeliveryEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 88 def getQuerySMSDeliveryEndpoint @QuerySMSDelivery end
getRetrieveMMSEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 128 def getRetrieveMMSEndpoint @RetrieveMMS end
getRetrieveMMSMessageEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 132 def getRetrieveMMSMessageEndpoint @RetrieveMMSMessage end
getRetrieveSMSEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 100 def getRetrieveSMSEndpoint @RetrieveSMS end
getSMSDeliverySubscriptionsEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 92 def getSMSDeliverySubscriptionsEndpoint @SMSDeliverySubscriptions end
getSMSReceiptSubscriptionsEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 104 def getSMSReceiptSubscriptionsEndpoint @SMSReceiptSubscriptions end
getSendMMSEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 112 def getSendMMSEndpoint @SendMMS end
getSendSMSEndpoint()
click to toggle source
# File lib/endpoints/ServiceEndpoints.rb, line 84 def getSendSMSEndpoint @SendSMS end