oneapi 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,49 @@
|
|
1
|
+
require "response/ResourceReference"
|
2
|
+
|
3
|
+
class MMSMessageReceiptSubscriptionResponse
|
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/mms/DeliveryInfoList"
|
2
|
+
|
3
|
+
class MMSSendDeliveryStatusResponse
|
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,57 @@
|
|
1
|
+
require "response/mms/InboundMessage"
|
2
|
+
|
3
|
+
class RetrieveMMSMessageResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@inboundMessage=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 getInboundMessage
|
37
|
+
@inboundMessage
|
38
|
+
end
|
39
|
+
|
40
|
+
def setInboundMessage(inboundMessage)
|
41
|
+
@inboundMessage=inboundMessage
|
42
|
+
end
|
43
|
+
|
44
|
+
def setInboundMessageJSON(jsondata)
|
45
|
+
@inboundMessage=InboundMessage.new
|
46
|
+
@inboundMessage.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
def getAttachment
|
49
|
+
@attachment
|
50
|
+
end
|
51
|
+
|
52
|
+
def setAttachment(attachment)
|
53
|
+
@attachment=attachment
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/mms/InboundMessageList"
|
2
|
+
|
3
|
+
class RetrieveMMSResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@inboundMessageList=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 getInboundMessageList
|
37
|
+
@inboundMessageList
|
38
|
+
end
|
39
|
+
|
40
|
+
def setInboundMessageList(inboundMessageList)
|
41
|
+
@inboundMessageList=inboundMessageList
|
42
|
+
end
|
43
|
+
|
44
|
+
def setInboundMessageListJSON(jsondata)
|
45
|
+
@inboundMessageList=InboundMessageList.new
|
46
|
+
@inboundMessageList.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/ResourceReference"
|
2
|
+
|
3
|
+
class SendMMSResponse
|
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/payment/AmountReservationTransaction"
|
2
|
+
|
3
|
+
class AmountReservationResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@amountReservationTransaction=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 getAmountReservationTransaction
|
37
|
+
@amountReservationTransaction
|
38
|
+
end
|
39
|
+
|
40
|
+
def setAmountReservationTransaction(amountReservationTransaction)
|
41
|
+
@amountReservationTransaction=amountReservationTransaction
|
42
|
+
end
|
43
|
+
|
44
|
+
def setAmountReservationTransactionJSON(jsondata)
|
45
|
+
@amountReservationTransaction=AmountReservationTransaction.new
|
46
|
+
@amountReservationTransaction.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
|
2
|
+
class AmountReservationTransaction
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
@clientCorrelator=nil
|
6
|
+
@endUserId=nil
|
7
|
+
@paymentAmount=nil
|
8
|
+
@referenceCode=nil
|
9
|
+
@referenceSequence=0
|
10
|
+
@resourceURL=nil
|
11
|
+
@serverReferenceCode=nil
|
12
|
+
@transactionStatus=nil
|
13
|
+
end
|
14
|
+
|
15
|
+
def initializeJSON(jsondict)
|
16
|
+
@clientCorrelator=nil
|
17
|
+
if (jsondict!=nil) && (jsondict.has_key?'clientCorrelator') && (jsondict['clientCorrelator']!=nil)
|
18
|
+
@clientCorrelator=jsondict['clientCorrelator']
|
19
|
+
end
|
20
|
+
@endUserId=nil
|
21
|
+
if (jsondict!=nil) && (jsondict.has_key?'endUserId') && (jsondict['endUserId']!=nil)
|
22
|
+
@endUserId=jsondict['endUserId']
|
23
|
+
end
|
24
|
+
@paymentAmount=nil
|
25
|
+
if (jsondict!=nil) && (jsondict.has_key?'paymentAmount') && (jsondict['paymentAmount']!=nil) then
|
26
|
+
@paymentAmount=PaymentAmount.new
|
27
|
+
@paymentAmount.initializeJSON(jsondict['paymentAmount'])
|
28
|
+
end
|
29
|
+
@referenceCode=nil
|
30
|
+
if (jsondict!=nil) && (jsondict.has_key?'referenceCode') && (jsondict['referenceCode']!=nil)
|
31
|
+
@referenceCode=jsondict['referenceCode']
|
32
|
+
end
|
33
|
+
@referenceSequence=0
|
34
|
+
if (jsondict!=nil) && (jsondict.has_key?'referenceSequence') && (jsondict['referenceSequence']!=nil)
|
35
|
+
@referenceSequence=jsondict['referenceSequence'].to_i
|
36
|
+
end
|
37
|
+
@resourceURL=nil
|
38
|
+
if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil)
|
39
|
+
@resourceURL=jsondict['resourceURL']
|
40
|
+
end
|
41
|
+
@serverReferenceCode=nil
|
42
|
+
if (jsondict!=nil) && (jsondict.has_key?'serverReferenceCode') && (jsondict['serverReferenceCode']!=nil)
|
43
|
+
@serverReferenceCode=jsondict['serverReferenceCode']
|
44
|
+
end
|
45
|
+
@transactionStatus=nil
|
46
|
+
if (jsondict!=nil) && (jsondict.has_key?'transactionStatus') && (jsondict['transactionStatus']!=nil)
|
47
|
+
@transactionStatus=jsondict['transactionStatus']
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def getClientCorrelator
|
52
|
+
@clientCorrelator
|
53
|
+
end
|
54
|
+
|
55
|
+
def setClientCorrelator(clientCorrelator)
|
56
|
+
@clientCorrelator=clientCorrelator
|
57
|
+
end
|
58
|
+
|
59
|
+
def getEndUserId
|
60
|
+
@endUserId
|
61
|
+
end
|
62
|
+
|
63
|
+
def setEndUserId(endUserId)
|
64
|
+
@endUserId=endUserId
|
65
|
+
end
|
66
|
+
|
67
|
+
def getPaymentAmount
|
68
|
+
@paymentAmount
|
69
|
+
end
|
70
|
+
|
71
|
+
def setPaymentAmount(paymentAmount)
|
72
|
+
@paymentAmount=paymentAmount
|
73
|
+
end
|
74
|
+
|
75
|
+
def getReferenceCode
|
76
|
+
@referenceCode
|
77
|
+
end
|
78
|
+
|
79
|
+
def setReferenceCode(referenceCode)
|
80
|
+
@referenceCode=referenceCode
|
81
|
+
end
|
82
|
+
|
83
|
+
def getReferenceSequence
|
84
|
+
@referenceSequence
|
85
|
+
end
|
86
|
+
|
87
|
+
def setReferenceSequence(referenceSequence)
|
88
|
+
@referenceSequence=referenceSequence
|
89
|
+
end
|
90
|
+
|
91
|
+
def getResourceURL
|
92
|
+
@resourceURL
|
93
|
+
end
|
94
|
+
|
95
|
+
def setResourceURL(resourceURL)
|
96
|
+
@resourceURL=resourceURL
|
97
|
+
end
|
98
|
+
|
99
|
+
def getServerReferenceCode
|
100
|
+
@serverReferenceCode
|
101
|
+
end
|
102
|
+
|
103
|
+
def setServerReferenceCode(serverReferenceCode)
|
104
|
+
@serverReferenceCode=serverReferenceCode
|
105
|
+
end
|
106
|
+
|
107
|
+
def getTransactionStatus
|
108
|
+
@transactionStatus
|
109
|
+
end
|
110
|
+
|
111
|
+
def setTransactionStatus(transactionStatus)
|
112
|
+
@transactionStatus=transactionStatus
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require "response/payment/AmountTransaction"
|
2
|
+
|
3
|
+
class AmountResponse
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@httpResponseCode=0
|
7
|
+
@contentType=nil
|
8
|
+
@location=nil
|
9
|
+
@amountTransaction=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 getAmountTransaction
|
37
|
+
@amountTransaction
|
38
|
+
end
|
39
|
+
|
40
|
+
def setAmountTransaction(amountTransaction)
|
41
|
+
@amountTransaction=amountTransaction
|
42
|
+
end
|
43
|
+
|
44
|
+
def setAmountTransactionJSON(jsondata)
|
45
|
+
@amountTransaction=AmountTransaction.new
|
46
|
+
@amountTransaction.initializeJSON(jsondata)
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|