Class: ServiceEndpoints
- Inherits:
-
Object
- Object
- ServiceEndpoints
- Defined in:
- lib/endpoints/ServiceEndpoints.rb
Instance Method Summary collapse
- #getAmountChargeEndpoint ⇒ Object
- #getAmountRefundEndpoint ⇒ Object
- #getAmountReservationChargeEndpoint ⇒ Object
- #getAmountReservationReleaseEndpoint ⇒ Object
- #getAmountReserveAdditionalEndpoint ⇒ Object
- #getAmountReserveEndpoint ⇒ Object
- #getCancelMMSDeliverySubscriptionEndpoint ⇒ Object
- #getCancelMMSReceiptSubscriptionEndpoint ⇒ Object
- #getCancelSMSDeliverySubscriptionEndpoint ⇒ Object
- #getCancelSMSReceiptSubscriptionEndpoint ⇒ Object
- #getLocationEndpoint ⇒ Object
- #getMMSDeliverySubscriptionsEndpoint ⇒ Object
- #getMMSReceiptSubscriptionsEndpoint ⇒ Object
- #getQueryMMSDeliveryEndpoint ⇒ Object
- #getQuerySMSDeliveryEndpoint ⇒ Object
- #getRetrieveMMSEndpoint ⇒ Object
- #getRetrieveMMSMessageEndpoint ⇒ Object
- #getRetrieveSMSEndpoint ⇒ Object
- #getSendMMSEndpoint ⇒ Object
- #getSendSMSEndpoint ⇒ Object
- #getSMSDeliverySubscriptionsEndpoint ⇒ Object
- #getSMSReceiptSubscriptionsEndpoint ⇒ Object
-
#initialize(protocol = "http", server_root = "localhost:8080", server_path = "oneapiserver", api_version = "1", services = {}) ⇒ ServiceEndpoints
constructor
A new instance of ServiceEndpoints.
Constructor Details
#initialize(protocol = "http", server_root = "localhost:8080", server_path = "oneapiserver", api_version = "1", services = {}) ⇒ ServiceEndpoints
Returns a new instance of ServiceEndpoints.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# 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 |
Instance Method Details
#getAmountChargeEndpoint ⇒ Object
56 57 58 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 56 def getAmountChargeEndpoint @AmountCharge end |
#getAmountRefundEndpoint ⇒ Object
60 61 62 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 60 def getAmountRefundEndpoint @AmountRefund end |
#getAmountReservationChargeEndpoint ⇒ Object
72 73 74 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 72 def getAmountReservationChargeEndpoint @AmountReservationCharge end |
#getAmountReservationReleaseEndpoint ⇒ Object
76 77 78 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 76 def getAmountReservationReleaseEndpoint @AmountReservationRelease end |
#getAmountReserveAdditionalEndpoint ⇒ Object
68 69 70 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 68 def getAmountReserveAdditionalEndpoint @AmountReserveAdditional end |
#getAmountReserveEndpoint ⇒ Object
64 65 66 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 64 def getAmountReserveEndpoint @AmountReserve end |
#getCancelMMSDeliverySubscriptionEndpoint ⇒ Object
124 125 126 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 124 def getCancelMMSDeliverySubscriptionEndpoint @CancelMMSDeliverySubscription end |
#getCancelMMSReceiptSubscriptionEndpoint ⇒ Object
140 141 142 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 140 def getCancelMMSReceiptSubscriptionEndpoint @CancelMMSReceiptSubscription end |
#getCancelSMSDeliverySubscriptionEndpoint ⇒ Object
96 97 98 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 96 def getCancelSMSDeliverySubscriptionEndpoint @CancelSMSDeliverySubscription end |
#getCancelSMSReceiptSubscriptionEndpoint ⇒ Object
108 109 110 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 108 def getCancelSMSReceiptSubscriptionEndpoint @CancelSMSReceiptSubscription end |
#getLocationEndpoint ⇒ Object
80 81 82 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 80 def getLocationEndpoint @Location; end |
#getMMSDeliverySubscriptionsEndpoint ⇒ Object
120 121 122 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 120 def getMMSDeliverySubscriptionsEndpoint @MMSDeliverySubscriptions end |
#getMMSReceiptSubscriptionsEndpoint ⇒ Object
136 137 138 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 136 def getMMSReceiptSubscriptionsEndpoint @MMSReceiptSubscriptions end |
#getQueryMMSDeliveryEndpoint ⇒ Object
116 117 118 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 116 def getQueryMMSDeliveryEndpoint @QueryMMSDelivery end |
#getQuerySMSDeliveryEndpoint ⇒ Object
88 89 90 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 88 def getQuerySMSDeliveryEndpoint @QuerySMSDelivery end |
#getRetrieveMMSEndpoint ⇒ Object
128 129 130 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 128 def getRetrieveMMSEndpoint @RetrieveMMS end |
#getRetrieveMMSMessageEndpoint ⇒ Object
132 133 134 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 132 def getRetrieveMMSMessageEndpoint @RetrieveMMSMessage end |
#getRetrieveSMSEndpoint ⇒ Object
100 101 102 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 100 def getRetrieveSMSEndpoint @RetrieveSMS end |
#getSendMMSEndpoint ⇒ Object
112 113 114 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 112 def getSendMMSEndpoint @SendMMS end |
#getSendSMSEndpoint ⇒ Object
84 85 86 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 84 def getSendSMSEndpoint @SendSMS end |
#getSMSDeliverySubscriptionsEndpoint ⇒ Object
92 93 94 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 92 def getSMSDeliverySubscriptionsEndpoint @SMSDeliverySubscriptions end |
#getSMSReceiptSubscriptionsEndpoint ⇒ Object
104 105 106 |
# File 'lib/endpoints/ServiceEndpoints.rb', line 104 def getSMSReceiptSubscriptionsEndpoint @SMSReceiptSubscriptions end |