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.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +37 -0
  6. data/Rakefile +2 -0
  7. data/lib/endpoints/ServiceEndpoints.rb +144 -0
  8. data/lib/foundation/FormParameter.rb +25 -0
  9. data/lib/foundation/FormParameters.rb +39 -0
  10. data/lib/foundation/JSONRequest.rb +109 -0
  11. data/lib/location/Locate.rb +100 -0
  12. data/lib/mms/MMSRetrieve.rb +198 -0
  13. data/lib/mms/MMSSend.rb +205 -0
  14. data/lib/oneapi.rb +6 -0
  15. data/lib/oneapi/version.rb +3 -0
  16. data/lib/payment/Charge.rb +166 -0
  17. data/lib/payment/Reservation.rb +295 -0
  18. data/lib/response/Attachment.rb +50 -0
  19. data/lib/response/HTTPResponse.rb +63 -0
  20. data/lib/response/PolicyException.rb +58 -0
  21. data/lib/response/RequestError.rb +41 -0
  22. data/lib/response/ResourceReference.rb +24 -0
  23. data/lib/response/ServiceException.rb +50 -0
  24. data/lib/response/location/CurrentLocation.rb +76 -0
  25. data/lib/response/location/ErrorInformation.rb +41 -0
  26. data/lib/response/location/LocationResponse.rb +49 -0
  27. data/lib/response/location/TerminalLocation.rb +67 -0
  28. data/lib/response/location/TerminalLocationList.rb +36 -0
  29. data/lib/response/mms/CallbackReference.rb +37 -0
  30. data/lib/response/mms/DeliveryInfo.rb +37 -0
  31. data/lib/response/mms/DeliveryInfoList.rb +49 -0
  32. data/lib/response/mms/DeliveryInfoNotification.rb +39 -0
  33. data/lib/response/mms/DeliveryReceiptSubscription.rb +39 -0
  34. data/lib/response/mms/HTTPResponse.rb +35 -0
  35. data/lib/response/mms/InboundMMSMessage.rb +37 -0
  36. data/lib/response/mms/InboundMessage.rb +91 -0
  37. data/lib/response/mms/InboundMessageList.rb +75 -0
  38. data/lib/response/mms/InboundMessageNotification.rb +39 -0
  39. data/lib/response/mms/MMSDeliveryReceiptSubscriptionResponse.rb +49 -0
  40. data/lib/response/mms/MMSMessageReceiptSubscriptionResponse.rb +49 -0
  41. data/lib/response/mms/MMSSendDeliveryStatusResponse.rb +49 -0
  42. data/lib/response/mms/RetrieveMMSMessageResponse.rb +57 -0
  43. data/lib/response/mms/RetrieveMMSResponse.rb +49 -0
  44. data/lib/response/mms/SendMMSResponse.rb +49 -0
  45. data/lib/response/payment/AmountReservationResponse.rb +49 -0
  46. data/lib/response/payment/AmountReservationTransaction.rb +116 -0
  47. data/lib/response/payment/AmountResponse.rb +49 -0
  48. data/lib/response/payment/AmountTransaction.rb +103 -0
  49. data/lib/response/payment/ChargingInformation.rb +50 -0
  50. data/lib/response/payment/PaymentAmount.rb +51 -0
  51. data/lib/response/sms/CallbackReference.rb +37 -0
  52. data/lib/response/sms/DeliveryInfo.rb +37 -0
  53. data/lib/response/sms/DeliveryInfoList.rb +49 -0
  54. data/lib/response/sms/DeliveryInfoNotification.rb +39 -0
  55. data/lib/response/sms/DeliveryReceiptSubscription.rb +39 -0
  56. data/lib/response/sms/HTTPResponse.rb +35 -0
  57. data/lib/response/sms/InboundSMSMessage.rb +89 -0
  58. data/lib/response/sms/InboundSMSMessageList.rb +75 -0
  59. data/lib/response/sms/InboundSMSMessageNotification.rb +39 -0
  60. data/lib/response/sms/RetrieveSMSResponse.rb +49 -0
  61. data/lib/response/sms/SMSDeliveryReceiptSubscriptionResponse.rb +49 -0
  62. data/lib/response/sms/SMSMessageReceiptSubscriptionResponse.rb +49 -0
  63. data/lib/response/sms/SMSSendDeliveryStatusResponse.rb +49 -0
  64. data/lib/response/sms/SendSMSResponse.rb +49 -0
  65. data/lib/sms/SMSRetrieve.rb +125 -0
  66. data/lib/sms/SMSSend.rb +168 -0
  67. data/oneapi.gemspec +23 -0
  68. 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