oneapi 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/lib/endpoints/ServiceEndpoints.rb +144 -0
- data/lib/foundation/FormParameter.rb +25 -0
- data/lib/foundation/FormParameters.rb +39 -0
- data/lib/foundation/JSONRequest.rb +109 -0
- data/lib/location/Locate.rb +100 -0
- data/lib/mms/MMSRetrieve.rb +198 -0
- data/lib/mms/MMSSend.rb +205 -0
- data/lib/oneapi.rb +6 -0
- data/lib/oneapi/version.rb +3 -0
- data/lib/payment/Charge.rb +166 -0
- data/lib/payment/Reservation.rb +295 -0
- data/lib/response/Attachment.rb +50 -0
- data/lib/response/HTTPResponse.rb +63 -0
- data/lib/response/PolicyException.rb +58 -0
- data/lib/response/RequestError.rb +41 -0
- data/lib/response/ResourceReference.rb +24 -0
- data/lib/response/ServiceException.rb +50 -0
- data/lib/response/location/CurrentLocation.rb +76 -0
- data/lib/response/location/ErrorInformation.rb +41 -0
- data/lib/response/location/LocationResponse.rb +49 -0
- data/lib/response/location/TerminalLocation.rb +67 -0
- data/lib/response/location/TerminalLocationList.rb +36 -0
- data/lib/response/mms/CallbackReference.rb +37 -0
- data/lib/response/mms/DeliveryInfo.rb +37 -0
- data/lib/response/mms/DeliveryInfoList.rb +49 -0
- data/lib/response/mms/DeliveryInfoNotification.rb +39 -0
- data/lib/response/mms/DeliveryReceiptSubscription.rb +39 -0
- data/lib/response/mms/HTTPResponse.rb +35 -0
- data/lib/response/mms/InboundMMSMessage.rb +37 -0
- data/lib/response/mms/InboundMessage.rb +91 -0
- data/lib/response/mms/InboundMessageList.rb +75 -0
- data/lib/response/mms/InboundMessageNotification.rb +39 -0
- data/lib/response/mms/MMSDeliveryReceiptSubscriptionResponse.rb +49 -0
- data/lib/response/mms/MMSMessageReceiptSubscriptionResponse.rb +49 -0
- data/lib/response/mms/MMSSendDeliveryStatusResponse.rb +49 -0
- data/lib/response/mms/RetrieveMMSMessageResponse.rb +57 -0
- data/lib/response/mms/RetrieveMMSResponse.rb +49 -0
- data/lib/response/mms/SendMMSResponse.rb +49 -0
- data/lib/response/payment/AmountReservationResponse.rb +49 -0
- data/lib/response/payment/AmountReservationTransaction.rb +116 -0
- data/lib/response/payment/AmountResponse.rb +49 -0
- data/lib/response/payment/AmountTransaction.rb +103 -0
- data/lib/response/payment/ChargingInformation.rb +50 -0
- data/lib/response/payment/PaymentAmount.rb +51 -0
- data/lib/response/sms/CallbackReference.rb +37 -0
- data/lib/response/sms/DeliveryInfo.rb +37 -0
- data/lib/response/sms/DeliveryInfoList.rb +49 -0
- data/lib/response/sms/DeliveryInfoNotification.rb +39 -0
- data/lib/response/sms/DeliveryReceiptSubscription.rb +39 -0
- data/lib/response/sms/HTTPResponse.rb +35 -0
- data/lib/response/sms/InboundSMSMessage.rb +89 -0
- data/lib/response/sms/InboundSMSMessageList.rb +75 -0
- data/lib/response/sms/InboundSMSMessageNotification.rb +39 -0
- data/lib/response/sms/RetrieveSMSResponse.rb +49 -0
- data/lib/response/sms/SMSDeliveryReceiptSubscriptionResponse.rb +49 -0
- data/lib/response/sms/SMSMessageReceiptSubscriptionResponse.rb +49 -0
- data/lib/response/sms/SMSSendDeliveryStatusResponse.rb +49 -0
- data/lib/response/sms/SendSMSResponse.rb +49 -0
- data/lib/sms/SMSRetrieve.rb +125 -0
- data/lib/sms/SMSSend.rb +168 -0
- data/oneapi.gemspec +23 -0
- metadata +138 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
|
2
|
+
class InboundSMSMessage
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
@dateTime=nil
|
6
|
+
@destinationAddress=nil
|
7
|
+
@senderAddress=nil
|
8
|
+
@messageId=nil
|
9
|
+
@message=nil
|
10
|
+
@resourceURL=nil
|
11
|
+
end
|
12
|
+
|
13
|
+
def initializeJSON(jsondict)
|
14
|
+
@dateTime=nil
|
15
|
+
if (jsondict!=nil) && (jsondict.has_key?'dateTime') && (jsondict['dateTime']!=nil)
|
16
|
+
@dateTime=jsondict['dateTime']
|
17
|
+
end
|
18
|
+
@destinationAddress=nil
|
19
|
+
if (jsondict!=nil) && (jsondict.has_key?'destinationAddress') && (jsondict['destinationAddress']!=nil)
|
20
|
+
@destinationAddress=jsondict['destinationAddress']
|
21
|
+
end
|
22
|
+
@senderAddress=nil
|
23
|
+
if (jsondict!=nil) && (jsondict.has_key?'senderAddress') && (jsondict['senderAddress']!=nil)
|
24
|
+
@senderAddress=jsondict['senderAddress']
|
25
|
+
end
|
26
|
+
@messageId=nil
|
27
|
+
if (jsondict!=nil) && (jsondict.has_key?'messageId') && (jsondict['messageId']!=nil)
|
28
|
+
@messageId=jsondict['messageId']
|
29
|
+
end
|
30
|
+
@message=nil
|
31
|
+
if (jsondict!=nil) && (jsondict.has_key?'message') && (jsondict['message']!=nil)
|
32
|
+
@message=jsondict['message']
|
33
|
+
end
|
34
|
+
@resourceURL=nil
|
35
|
+
if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil)
|
36
|
+
@resourceURL=jsondict['resourceURL']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def getDateTime
|
41
|
+
@dateTime
|
42
|
+
end
|
43
|
+
|
44
|
+
def setDateTime(dateTime)
|
45
|
+
@dateTime=dateTime
|
46
|
+
end
|
47
|
+
|
48
|
+
def getDestinationAddress
|
49
|
+
@destinationAddress
|
50
|
+
end
|
51
|
+
|
52
|
+
def setDestinationAddress(destinationAddress)
|
53
|
+
@destinationAddress=destinationAddress
|
54
|
+
end
|
55
|
+
|
56
|
+
def getSenderAddress
|
57
|
+
@senderAddress
|
58
|
+
end
|
59
|
+
|
60
|
+
def setSenderAddress(senderAddress)
|
61
|
+
@senderAddress=senderAddress
|
62
|
+
end
|
63
|
+
|
64
|
+
def getMessageId
|
65
|
+
@messageId
|
66
|
+
end
|
67
|
+
|
68
|
+
def setMessageId(messageId)
|
69
|
+
@messageId=messageId
|
70
|
+
end
|
71
|
+
|
72
|
+
def getMessage
|
73
|
+
@message
|
74
|
+
end
|
75
|
+
|
76
|
+
def setMessage(message)
|
77
|
+
@message=message
|
78
|
+
end
|
79
|
+
|
80
|
+
def getResourceURL
|
81
|
+
@resourceURL
|
82
|
+
end
|
83
|
+
|
84
|
+
def setResourceURL(resourceURL)
|
85
|
+
@resourceURL=resourceURL
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require "response/sms/InboundSMSMessage"
|
2
|
+
|
3
|
+
class InboundSMSMessageList
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@inboundSMSMessage=nil
|
7
|
+
@numberOfMessagesInThisBatch=0
|
8
|
+
@resourceURL=nil
|
9
|
+
@totalNumberOfPendingMessages=0
|
10
|
+
end
|
11
|
+
|
12
|
+
def initializeJSON(jsondict)
|
13
|
+
@inboundSMSMessage=nil
|
14
|
+
if (jsondict!=nil) && (jsondict.has_key?'inboundSMSMessage') && (jsondict['inboundSMSMessage']!=nil)
|
15
|
+
@inboundSMSMessage=Array.new()
|
16
|
+
fieldValue=jsondict['inboundSMSMessage']
|
17
|
+
if fieldValue.kind_of?Array
|
18
|
+
for item in fieldValue
|
19
|
+
ai=@inboundSMSMessage.length
|
20
|
+
@inboundSMSMessage[ai]=InboundSMSMessage.new()
|
21
|
+
@inboundSMSMessage[ai].initializeJSON(item)
|
22
|
+
end
|
23
|
+
else
|
24
|
+
@inboundSMSMessage[0]=InboundSMSMessage.new()
|
25
|
+
@inboundSMSMessage[0].initializeJSON(fieldValue)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
@numberOfMessagesInThisBatch=0
|
29
|
+
if (jsondict!=nil) && (jsondict.has_key?'numberOfMessagesInThisBatch') && (jsondict['numberOfMessagesInThisBatch']!=nil)
|
30
|
+
@numberOfMessagesInThisBatch=jsondict['numberOfMessagesInThisBatch'].to_i
|
31
|
+
end
|
32
|
+
@resourceURL=nil
|
33
|
+
if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil)
|
34
|
+
@resourceURL=jsondict['resourceURL']
|
35
|
+
end
|
36
|
+
@totalNumberOfPendingMessages=0
|
37
|
+
if (jsondict!=nil) && (jsondict.has_key?'totalNumberOfPendingMessages') && (jsondict['totalNumberOfPendingMessages']!=nil)
|
38
|
+
@totalNumberOfPendingMessages=jsondict['totalNumberOfPendingMessages'].to_i
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def getInboundSMSMessage
|
43
|
+
@inboundSMSMessage
|
44
|
+
end
|
45
|
+
|
46
|
+
def setInboundSMSMessage(inboundSMSMessage)
|
47
|
+
@inboundSMSMessage=inboundSMSMessage
|
48
|
+
end
|
49
|
+
|
50
|
+
def getNumberOfMessagesInThisBatch
|
51
|
+
@numberOfMessagesInThisBatch
|
52
|
+
end
|
53
|
+
|
54
|
+
def setNumberOfMessagesInThisBatch(numberOfMessagesInThisBatch)
|
55
|
+
@numberOfMessagesInThisBatch=numberOfMessagesInThisBatch
|
56
|
+
end
|
57
|
+
|
58
|
+
def getResourceURL
|
59
|
+
@resourceURL
|
60
|
+
end
|
61
|
+
|
62
|
+
def setResourceURL(resourceURL)
|
63
|
+
@resourceURL=resourceURL
|
64
|
+
end
|
65
|
+
|
66
|
+
def getTotalNumberOfPendingMessages
|
67
|
+
@totalNumberOfPendingMessages
|
68
|
+
end
|
69
|
+
|
70
|
+
def setTotalNumberOfPendingMessages(totalNumberOfPendingMessages)
|
71
|
+
@totalNumberOfPendingMessages=totalNumberOfPendingMessages
|
72
|
+
end
|
73
|
+
|
74
|
+
|
75
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require "response/sms/InboundSMSMessage"
|
2
|
+
|
3
|
+
class InboundSMSMessageNotification
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@callbackData=nil
|
7
|
+
@inboundSMSMessage=nil
|
8
|
+
end
|
9
|
+
|
10
|
+
def initializeJSON(jsondict)
|
11
|
+
@callbackData=nil
|
12
|
+
if (jsondict!=nil) && (jsondict.has_key?'callbackData') && (jsondict['callbackData']!=nil)
|
13
|
+
@callbackData=jsondict['callbackData']
|
14
|
+
end
|
15
|
+
@inboundSMSMessage=nil
|
16
|
+
if (jsondict!=nil) && (jsondict.has_key?'inboundSMSMessage') && (jsondict['inboundSMSMessage']!=nil) then
|
17
|
+
@inboundSMSMessage=InboundSMSMessage.new
|
18
|
+
@inboundSMSMessage.initializeJSON(jsondict['inboundSMSMessage'])
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def getCallbackData
|
23
|
+
@callbackData
|
24
|
+
end
|
25
|
+
|
26
|
+
def setCallbackData(callbackData)
|
27
|
+
@callbackData=callbackData
|
28
|
+
end
|
29
|
+
|
30
|
+
def getInboundSMSMessage
|
31
|
+
@inboundSMSMessage
|
32
|
+
end
|
33
|
+
|
34
|
+
def setInboundSMSMessage(inboundSMSMessage)
|
35
|
+
@inboundSMSMessage=inboundSMSMessage
|
36
|
+
end
|
37
|
+
|
38
|
+
|
39
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/sms/InboundSMSMessageList"
|
2
|
+
|
3
|
+
class RetrieveSMSResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@inboundSMSMessageList=nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def getHTTPResponseCode
|
13
|
+
@httpResponseCode
|
14
|
+
end
|
15
|
+
|
16
|
+
def setHTTPResponseCode(httpResponseCode)
|
17
|
+
@httpResponseCode=httpResponseCode
|
18
|
+
end
|
19
|
+
|
20
|
+
def getContentType
|
21
|
+
@contentType
|
22
|
+
end
|
23
|
+
|
24
|
+
def setContentType(contentType)
|
25
|
+
@contentType=contentType
|
26
|
+
end
|
27
|
+
|
28
|
+
def getLocation
|
29
|
+
@location
|
30
|
+
end
|
31
|
+
|
32
|
+
def setLocation(location)
|
33
|
+
@location=location
|
34
|
+
end
|
35
|
+
|
36
|
+
def getInboundSMSMessageList
|
37
|
+
@inboundSMSMessageList
|
38
|
+
end
|
39
|
+
|
40
|
+
def setInboundSMSMessageList(inboundSMSMessageList)
|
41
|
+
@inboundSMSMessageList=inboundSMSMessageList
|
42
|
+
end
|
43
|
+
|
44
|
+
def setInboundSMSMessageListJSON(jsondata)
|
45
|
+
@inboundSMSMessageList=InboundSMSMessageList.new
|
46
|
+
@inboundSMSMessageList.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/sms/DeliveryReceiptSubscription"
|
2
|
+
|
3
|
+
class SMSDeliveryReceiptSubscriptionResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@deliveryReceiptSubscription=nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def getHTTPResponseCode
|
13
|
+
@httpResponseCode
|
14
|
+
end
|
15
|
+
|
16
|
+
def setHTTPResponseCode(httpResponseCode)
|
17
|
+
@httpResponseCode=httpResponseCode
|
18
|
+
end
|
19
|
+
|
20
|
+
def getContentType
|
21
|
+
@contentType
|
22
|
+
end
|
23
|
+
|
24
|
+
def setContentType(contentType)
|
25
|
+
@contentType=contentType
|
26
|
+
end
|
27
|
+
|
28
|
+
def getLocation
|
29
|
+
@location
|
30
|
+
end
|
31
|
+
|
32
|
+
def setLocation(location)
|
33
|
+
@location=location
|
34
|
+
end
|
35
|
+
|
36
|
+
def getDeliveryReceiptSubscription
|
37
|
+
@deliveryReceiptSubscription
|
38
|
+
end
|
39
|
+
|
40
|
+
def setDeliveryReceiptSubscription(deliveryReceiptSubscription)
|
41
|
+
@deliveryReceiptSubscription=deliveryReceiptSubscription
|
42
|
+
end
|
43
|
+
|
44
|
+
def setDeliveryReceiptSubscriptionJSON(jsondata)
|
45
|
+
@deliveryReceiptSubscription=DeliveryReceiptSubscription.new
|
46
|
+
@deliveryReceiptSubscription.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/ResourceReference"
|
2
|
+
|
3
|
+
class SMSMessageReceiptSubscriptionResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@resourceReference=nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def getHTTPResponseCode
|
13
|
+
@httpResponseCode
|
14
|
+
end
|
15
|
+
|
16
|
+
def setHTTPResponseCode(httpResponseCode)
|
17
|
+
@httpResponseCode=httpResponseCode
|
18
|
+
end
|
19
|
+
|
20
|
+
def getContentType
|
21
|
+
@contentType
|
22
|
+
end
|
23
|
+
|
24
|
+
def setContentType(contentType)
|
25
|
+
@contentType=contentType
|
26
|
+
end
|
27
|
+
|
28
|
+
def getLocation
|
29
|
+
@location
|
30
|
+
end
|
31
|
+
|
32
|
+
def setLocation(location)
|
33
|
+
@location=location
|
34
|
+
end
|
35
|
+
|
36
|
+
def getResourceReference
|
37
|
+
@resourceReference
|
38
|
+
end
|
39
|
+
|
40
|
+
def setResourceReference(resourceReference)
|
41
|
+
@resourceReference=resourceReference
|
42
|
+
end
|
43
|
+
|
44
|
+
def setResourceReferenceJSON(jsondata)
|
45
|
+
@resourceReference=ResourceReference.new
|
46
|
+
@resourceReference.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/sms/DeliveryInfoList"
|
2
|
+
|
3
|
+
class SMSSendDeliveryStatusResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@deliveryInfoList=nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def getHTTPResponseCode
|
13
|
+
@httpResponseCode
|
14
|
+
end
|
15
|
+
|
16
|
+
def setHTTPResponseCode(httpResponseCode)
|
17
|
+
@httpResponseCode=httpResponseCode
|
18
|
+
end
|
19
|
+
|
20
|
+
def getContentType
|
21
|
+
@contentType
|
22
|
+
end
|
23
|
+
|
24
|
+
def setContentType(contentType)
|
25
|
+
@contentType=contentType
|
26
|
+
end
|
27
|
+
|
28
|
+
def getLocation
|
29
|
+
@location
|
30
|
+
end
|
31
|
+
|
32
|
+
def setLocation(location)
|
33
|
+
@location=location
|
34
|
+
end
|
35
|
+
|
36
|
+
def getDeliveryInfoList
|
37
|
+
@deliveryInfoList
|
38
|
+
end
|
39
|
+
|
40
|
+
def setDeliveryInfoList(deliveryInfoList)
|
41
|
+
@deliveryInfoList=deliveryInfoList
|
42
|
+
end
|
43
|
+
|
44
|
+
def setDeliveryInfoListJSON(jsondata)
|
45
|
+
@deliveryInfoList=DeliveryInfoList.new
|
46
|
+
@deliveryInfoList.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/ResourceReference"
|
2
|
+
|
3
|
+
class SendSMSResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@resourceReference=nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def getHTTPResponseCode
|
13
|
+
@httpResponseCode
|
14
|
+
end
|
15
|
+
|
16
|
+
def setHTTPResponseCode(httpResponseCode)
|
17
|
+
@httpResponseCode=httpResponseCode
|
18
|
+
end
|
19
|
+
|
20
|
+
def getContentType
|
21
|
+
@contentType
|
22
|
+
end
|
23
|
+
|
24
|
+
def setContentType(contentType)
|
25
|
+
@contentType=contentType
|
26
|
+
end
|
27
|
+
|
28
|
+
def getLocation
|
29
|
+
@location
|
30
|
+
end
|
31
|
+
|
32
|
+
def setLocation(location)
|
33
|
+
@location=location
|
34
|
+
end
|
35
|
+
|
36
|
+
def getResourceReference
|
37
|
+
@resourceReference
|
38
|
+
end
|
39
|
+
|
40
|
+
def setResourceReference(resourceReference)
|
41
|
+
@resourceReference=resourceReference
|
42
|
+
end
|
43
|
+
|
44
|
+
def setResourceReferenceJSON(jsondata)
|
45
|
+
@resourceReference=ResourceReference.new
|
46
|
+
@resourceReference.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|