apimatic-polpay-sdk 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/LICENSE +28 -0
- data/README.md +173 -0
- data/bin/console +15 -0
- data/lib/poli_ap_is/api_helper.rb +10 -0
- data/lib/poli_ap_is/apis/base_api.rb +67 -0
- data/lib/poli_ap_is/apis/payments_api.rb +155 -0
- data/lib/poli_ap_is/apis/poli_links_api.rb +135 -0
- data/lib/poli_ap_is/client.rb +79 -0
- data/lib/poli_ap_is/configuration.rb +179 -0
- data/lib/poli_ap_is/exceptions/api_exception.rb +21 -0
- data/lib/poli_ap_is/http/api_response.rb +19 -0
- data/lib/poli_ap_is/http/auth/basic_auth.rb +62 -0
- data/lib/poli_ap_is/http/http_call_back.rb +10 -0
- data/lib/poli_ap_is/http/http_method_enum.rb +10 -0
- data/lib/poli_ap_is/http/http_request.rb +10 -0
- data/lib/poli_ap_is/http/http_response.rb +10 -0
- data/lib/poli_ap_is/http/proxy_settings.rb +22 -0
- data/lib/poli_ap_is/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/poli_ap_is/logging/sdk_logger.rb +17 -0
- data/lib/poli_ap_is/models/bank_details.rb +126 -0
- data/lib/poli_ap_is/models/base_model.rb +110 -0
- data/lib/poli_ap_is/models/create_poli_link_request.rb +170 -0
- data/lib/poli_ap_is/models/create_poli_link_request_body_json.rb +170 -0
- data/lib/poli_ap_is/models/daily_transaction.rb +245 -0
- data/lib/poli_ap_is/models/fetch_statusof_poli_link_response200_text.rb +48 -0
- data/lib/poli_ap_is/models/financial_institution.rb +95 -0
- data/lib/poli_ap_is/models/get_transaction_response.rb +109 -0
- data/lib/poli_ap_is/models/initiate_transaction_request.rb +201 -0
- data/lib/poli_ap_is/models/initiate_transaction_response.rb +118 -0
- data/lib/poli_ap_is/models/link_payment.rb +137 -0
- data/lib/poli_ap_is/models/merchant_details.rb +100 -0
- data/lib/poli_ap_is/models/payer_details.rb +100 -0
- data/lib/poli_ap_is/models/poli_link_basic_info.rb +116 -0
- data/lib/poli_ap_is/models/poli_link_basic_info_status.rb +48 -0
- data/lib/poli_ap_is/models/poli_link_payments_response.rb +116 -0
- data/lib/poli_ap_is/models/poli_link_payments_response_status.rb +48 -0
- data/lib/poli_ap_is/models/poli_link_payments_response_transactions_items.rb +159 -0
- data/lib/poli_ap_is/models/transaction_details.rb +148 -0
- data/lib/poli_ap_is/utilities/date_time_helper.rb +11 -0
- data/lib/poli_ap_is/utilities/file_wrapper.rb +28 -0
- data/lib/poli_ap_is.rb +64 -0
- metadata +126 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# poli_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PoliApIs
|
|
7
|
+
# PoliLinkPaymentsResponseTransactionsItems Model.
|
|
8
|
+
class PoliLinkPaymentsResponseTransactionsItems < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The transaction reference number of the transaction (unique POLi ID)
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :transaction_ref_no
|
|
15
|
+
|
|
16
|
+
# The number issued by the customer's bank for a completed payment
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :bank_receipt_no
|
|
19
|
+
|
|
20
|
+
# The date/time the transaction was completed
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :bank_receipt_date_time
|
|
23
|
+
|
|
24
|
+
# The final status of the transaction
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
28
|
+
# The amount paid for that transaction
|
|
29
|
+
# @return [Float]
|
|
30
|
+
attr_accessor :amount_paid
|
|
31
|
+
|
|
32
|
+
# The date/time the transaction was completed
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :completion_time
|
|
35
|
+
|
|
36
|
+
# The MerchantReference specified when the POLiLink was created
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :merchant_reference
|
|
39
|
+
|
|
40
|
+
# Data entered by the customer at the time of payment which uniquely
|
|
41
|
+
# identifies the customer and/or their payment
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :customer_reference
|
|
44
|
+
|
|
45
|
+
# A mapping from model property names to API property names.
|
|
46
|
+
def self.names
|
|
47
|
+
@_hash = {} if @_hash.nil?
|
|
48
|
+
@_hash['transaction_ref_no'] = 'TransactionRefNo'
|
|
49
|
+
@_hash['bank_receipt_no'] = 'BankReceiptNo'
|
|
50
|
+
@_hash['bank_receipt_date_time'] = 'BankReceiptDateTime'
|
|
51
|
+
@_hash['status'] = 'Status'
|
|
52
|
+
@_hash['amount_paid'] = 'AmountPaid'
|
|
53
|
+
@_hash['completion_time'] = 'CompletionTime'
|
|
54
|
+
@_hash['merchant_reference'] = 'MerchantReference'
|
|
55
|
+
@_hash['customer_reference'] = 'CustomerReference'
|
|
56
|
+
@_hash
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# An array for optional fields
|
|
60
|
+
def self.optionals
|
|
61
|
+
%w[
|
|
62
|
+
transaction_ref_no
|
|
63
|
+
bank_receipt_no
|
|
64
|
+
bank_receipt_date_time
|
|
65
|
+
status
|
|
66
|
+
amount_paid
|
|
67
|
+
completion_time
|
|
68
|
+
merchant_reference
|
|
69
|
+
customer_reference
|
|
70
|
+
]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for nullable fields
|
|
74
|
+
def self.nullables
|
|
75
|
+
%w[
|
|
76
|
+
customer_reference
|
|
77
|
+
]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def initialize(transaction_ref_no: SKIP, bank_receipt_no: SKIP,
|
|
81
|
+
bank_receipt_date_time: SKIP, status: SKIP,
|
|
82
|
+
amount_paid: SKIP, completion_time: SKIP,
|
|
83
|
+
merchant_reference: SKIP, customer_reference: SKIP,
|
|
84
|
+
additional_properties: nil)
|
|
85
|
+
# Add additional model properties to the instance
|
|
86
|
+
additional_properties = {} if additional_properties.nil?
|
|
87
|
+
|
|
88
|
+
@transaction_ref_no = transaction_ref_no unless transaction_ref_no == SKIP
|
|
89
|
+
@bank_receipt_no = bank_receipt_no unless bank_receipt_no == SKIP
|
|
90
|
+
@bank_receipt_date_time = bank_receipt_date_time unless bank_receipt_date_time == SKIP
|
|
91
|
+
@status = status unless status == SKIP
|
|
92
|
+
@amount_paid = amount_paid unless amount_paid == SKIP
|
|
93
|
+
@completion_time = completion_time unless completion_time == SKIP
|
|
94
|
+
@merchant_reference = merchant_reference unless merchant_reference == SKIP
|
|
95
|
+
@customer_reference = customer_reference unless customer_reference == SKIP
|
|
96
|
+
@additional_properties = additional_properties
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Creates an instance of the object from a hash.
|
|
100
|
+
def self.from_hash(hash)
|
|
101
|
+
return nil unless hash
|
|
102
|
+
|
|
103
|
+
# Extract variables from the hash.
|
|
104
|
+
transaction_ref_no =
|
|
105
|
+
hash.key?('TransactionRefNo') ? hash['TransactionRefNo'] : SKIP
|
|
106
|
+
bank_receipt_no =
|
|
107
|
+
hash.key?('BankReceiptNo') ? hash['BankReceiptNo'] : SKIP
|
|
108
|
+
bank_receipt_date_time =
|
|
109
|
+
hash.key?('BankReceiptDateTime') ? hash['BankReceiptDateTime'] : SKIP
|
|
110
|
+
status = hash.key?('Status') ? hash['Status'] : SKIP
|
|
111
|
+
amount_paid = hash.key?('AmountPaid') ? hash['AmountPaid'] : SKIP
|
|
112
|
+
completion_time =
|
|
113
|
+
hash.key?('CompletionTime') ? hash['CompletionTime'] : SKIP
|
|
114
|
+
merchant_reference =
|
|
115
|
+
hash.key?('MerchantReference') ? hash['MerchantReference'] : SKIP
|
|
116
|
+
customer_reference =
|
|
117
|
+
hash.key?('CustomerReference') ? hash['CustomerReference'] : SKIP
|
|
118
|
+
|
|
119
|
+
# Create a new hash for additional properties, removing known properties.
|
|
120
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
121
|
+
|
|
122
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
123
|
+
new_hash, proc { |value| value }
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
# Create object from extracted values.
|
|
127
|
+
PoliLinkPaymentsResponseTransactionsItems.new(transaction_ref_no: transaction_ref_no,
|
|
128
|
+
bank_receipt_no: bank_receipt_no,
|
|
129
|
+
bank_receipt_date_time: bank_receipt_date_time,
|
|
130
|
+
status: status,
|
|
131
|
+
amount_paid: amount_paid,
|
|
132
|
+
completion_time: completion_time,
|
|
133
|
+
merchant_reference: merchant_reference,
|
|
134
|
+
customer_reference: customer_reference,
|
|
135
|
+
additional_properties: additional_properties)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Provides a human-readable string representation of the object.
|
|
139
|
+
def to_s
|
|
140
|
+
class_name = self.class.name.split('::').last
|
|
141
|
+
"<#{class_name} transaction_ref_no: #{@transaction_ref_no}, bank_receipt_no:"\
|
|
142
|
+
" #{@bank_receipt_no}, bank_receipt_date_time: #{@bank_receipt_date_time}, status:"\
|
|
143
|
+
" #{@status}, amount_paid: #{@amount_paid}, completion_time: #{@completion_time},"\
|
|
144
|
+
" merchant_reference: #{@merchant_reference}, customer_reference: #{@customer_reference},"\
|
|
145
|
+
" additional_properties: #{@additional_properties}>"
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
149
|
+
def inspect
|
|
150
|
+
class_name = self.class.name.split('::').last
|
|
151
|
+
"<#{class_name} transaction_ref_no: #{@transaction_ref_no.inspect}, bank_receipt_no:"\
|
|
152
|
+
" #{@bank_receipt_no.inspect}, bank_receipt_date_time: #{@bank_receipt_date_time.inspect},"\
|
|
153
|
+
" status: #{@status.inspect}, amount_paid: #{@amount_paid.inspect}, completion_time:"\
|
|
154
|
+
" #{@completion_time.inspect}, merchant_reference: #{@merchant_reference.inspect},"\
|
|
155
|
+
" customer_reference: #{@customer_reference.inspect}, additional_properties:"\
|
|
156
|
+
" #{@additional_properties}>"
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# poli_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module PoliApIs
|
|
8
|
+
# TransactionDetails Model.
|
|
9
|
+
class TransactionDetails < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# The POLi ID associated with the transaction
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :transaction_ref_no
|
|
16
|
+
|
|
17
|
+
# A code indicating the terminal status of the transaction
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :transaction_status_code
|
|
20
|
+
|
|
21
|
+
# The date and time the transaction was established
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :established_date_time
|
|
24
|
+
|
|
25
|
+
# The date and time the transaction ended
|
|
26
|
+
# @return [DateTime]
|
|
27
|
+
attr_accessor :end_date_time
|
|
28
|
+
|
|
29
|
+
# The attempted payment amount
|
|
30
|
+
# @return [Float]
|
|
31
|
+
attr_accessor :payment_amount
|
|
32
|
+
|
|
33
|
+
# The actual amount paid for the transaction
|
|
34
|
+
# @return [Float]
|
|
35
|
+
attr_accessor :amount_paid
|
|
36
|
+
|
|
37
|
+
# A mapping from model property names to API property names.
|
|
38
|
+
def self.names
|
|
39
|
+
@_hash = {} if @_hash.nil?
|
|
40
|
+
@_hash['transaction_ref_no'] = 'TransactionRefNo'
|
|
41
|
+
@_hash['transaction_status_code'] = 'TransactionStatusCode'
|
|
42
|
+
@_hash['established_date_time'] = 'EstablishedDateTime'
|
|
43
|
+
@_hash['end_date_time'] = 'EndDateTime'
|
|
44
|
+
@_hash['payment_amount'] = 'PaymentAmount'
|
|
45
|
+
@_hash['amount_paid'] = 'AmountPaid'
|
|
46
|
+
@_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An array for optional fields
|
|
50
|
+
def self.optionals
|
|
51
|
+
%w[
|
|
52
|
+
transaction_ref_no
|
|
53
|
+
transaction_status_code
|
|
54
|
+
established_date_time
|
|
55
|
+
end_date_time
|
|
56
|
+
payment_amount
|
|
57
|
+
amount_paid
|
|
58
|
+
]
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# An array for nullable fields
|
|
62
|
+
def self.nullables
|
|
63
|
+
[]
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def initialize(transaction_ref_no: SKIP, transaction_status_code: SKIP,
|
|
67
|
+
established_date_time: SKIP, end_date_time: SKIP,
|
|
68
|
+
payment_amount: SKIP, amount_paid: SKIP,
|
|
69
|
+
additional_properties: nil)
|
|
70
|
+
# Add additional model properties to the instance
|
|
71
|
+
additional_properties = {} if additional_properties.nil?
|
|
72
|
+
|
|
73
|
+
@transaction_ref_no = transaction_ref_no unless transaction_ref_no == SKIP
|
|
74
|
+
@transaction_status_code = transaction_status_code unless transaction_status_code == SKIP
|
|
75
|
+
@established_date_time = established_date_time unless established_date_time == SKIP
|
|
76
|
+
@end_date_time = end_date_time unless end_date_time == SKIP
|
|
77
|
+
@payment_amount = payment_amount unless payment_amount == SKIP
|
|
78
|
+
@amount_paid = amount_paid unless amount_paid == SKIP
|
|
79
|
+
@additional_properties = additional_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Creates an instance of the object from a hash.
|
|
83
|
+
def self.from_hash(hash)
|
|
84
|
+
return nil unless hash
|
|
85
|
+
|
|
86
|
+
# Extract variables from the hash.
|
|
87
|
+
transaction_ref_no =
|
|
88
|
+
hash.key?('TransactionRefNo') ? hash['TransactionRefNo'] : SKIP
|
|
89
|
+
transaction_status_code =
|
|
90
|
+
hash.key?('TransactionStatusCode') ? hash['TransactionStatusCode'] : SKIP
|
|
91
|
+
established_date_time = if hash.key?('EstablishedDateTime')
|
|
92
|
+
(DateTimeHelper.from_rfc3339(hash['EstablishedDateTime']) if hash['EstablishedDateTime'])
|
|
93
|
+
else
|
|
94
|
+
SKIP
|
|
95
|
+
end
|
|
96
|
+
end_date_time = if hash.key?('EndDateTime')
|
|
97
|
+
(DateTimeHelper.from_rfc3339(hash['EndDateTime']) if hash['EndDateTime'])
|
|
98
|
+
else
|
|
99
|
+
SKIP
|
|
100
|
+
end
|
|
101
|
+
payment_amount = hash.key?('PaymentAmount') ? hash['PaymentAmount'] : SKIP
|
|
102
|
+
amount_paid = hash.key?('AmountPaid') ? hash['AmountPaid'] : SKIP
|
|
103
|
+
|
|
104
|
+
# Create a new hash for additional properties, removing known properties.
|
|
105
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
106
|
+
|
|
107
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
108
|
+
new_hash, proc { |value| value }
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
# Create object from extracted values.
|
|
112
|
+
TransactionDetails.new(transaction_ref_no: transaction_ref_no,
|
|
113
|
+
transaction_status_code: transaction_status_code,
|
|
114
|
+
established_date_time: established_date_time,
|
|
115
|
+
end_date_time: end_date_time,
|
|
116
|
+
payment_amount: payment_amount,
|
|
117
|
+
amount_paid: amount_paid,
|
|
118
|
+
additional_properties: additional_properties)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
def to_custom_established_date_time
|
|
122
|
+
DateTimeHelper.to_rfc3339(established_date_time)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def to_custom_end_date_time
|
|
126
|
+
DateTimeHelper.to_rfc3339(end_date_time)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Provides a human-readable string representation of the object.
|
|
130
|
+
def to_s
|
|
131
|
+
class_name = self.class.name.split('::').last
|
|
132
|
+
"<#{class_name} transaction_ref_no: #{@transaction_ref_no}, transaction_status_code:"\
|
|
133
|
+
" #{@transaction_status_code}, established_date_time: #{@established_date_time},"\
|
|
134
|
+
" end_date_time: #{@end_date_time}, payment_amount: #{@payment_amount}, amount_paid:"\
|
|
135
|
+
" #{@amount_paid}, additional_properties: #{@additional_properties}>"
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
139
|
+
def inspect
|
|
140
|
+
class_name = self.class.name.split('::').last
|
|
141
|
+
"<#{class_name} transaction_ref_no: #{@transaction_ref_no.inspect},"\
|
|
142
|
+
" transaction_status_code: #{@transaction_status_code.inspect}, established_date_time:"\
|
|
143
|
+
" #{@established_date_time.inspect}, end_date_time: #{@end_date_time.inspect},"\
|
|
144
|
+
" payment_amount: #{@payment_amount.inspect}, amount_paid: #{@amount_paid.inspect},"\
|
|
145
|
+
" additional_properties: #{@additional_properties}>"
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# poli_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module PoliApIs
|
|
8
|
+
# A utility that supports dateTime conversion to different formats
|
|
9
|
+
class DateTimeHelper < CoreLibrary::DateTimeHelper
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# poli_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PoliApIs
|
|
7
|
+
# A utility to allow users to set the content-type for files
|
|
8
|
+
class FileWrapper < CoreLibrary::FileWrapper
|
|
9
|
+
# The constructor.
|
|
10
|
+
# @param [File] file The file to be sent in the request.
|
|
11
|
+
# @param [string] content_type The content type of the provided file.
|
|
12
|
+
def initialize(file, content_type: 'application/octet-stream')
|
|
13
|
+
super
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Provides a human-readable string representation of the object.
|
|
17
|
+
def to_s
|
|
18
|
+
class_name = self.class.name.split('::').last
|
|
19
|
+
"<#{class_name} file: #{@file}, content_type: #{@content_type}>"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
23
|
+
def to_inspect
|
|
24
|
+
class_name = self.class.name.split('::').last
|
|
25
|
+
"<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
data/lib/poli_ap_is.rb
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# poli_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
require 'json'
|
|
8
|
+
|
|
9
|
+
require 'apimatic_core_interfaces'
|
|
10
|
+
require 'apimatic_core'
|
|
11
|
+
require 'apimatic_faraday_client_adapter'
|
|
12
|
+
|
|
13
|
+
require_relative 'poli_ap_is/api_helper'
|
|
14
|
+
require_relative 'poli_ap_is/client'
|
|
15
|
+
|
|
16
|
+
# Utilities
|
|
17
|
+
require_relative 'poli_ap_is/utilities/file_wrapper'
|
|
18
|
+
require_relative 'poli_ap_is/utilities/date_time_helper'
|
|
19
|
+
|
|
20
|
+
# Http
|
|
21
|
+
require_relative 'poli_ap_is/http/api_response'
|
|
22
|
+
require_relative 'poli_ap_is/http/http_call_back'
|
|
23
|
+
require_relative 'poli_ap_is/http/http_method_enum'
|
|
24
|
+
require_relative 'poli_ap_is/http/http_request'
|
|
25
|
+
require_relative 'poli_ap_is/http/http_response'
|
|
26
|
+
require_relative 'poli_ap_is/http/proxy_settings'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Logger
|
|
30
|
+
require_relative 'poli_ap_is/logging/configuration/api_logging_configuration'
|
|
31
|
+
require_relative 'poli_ap_is/logging/sdk_logger'
|
|
32
|
+
require_relative 'poli_ap_is/http/auth/basic_auth'
|
|
33
|
+
|
|
34
|
+
# Models
|
|
35
|
+
require_relative 'poli_ap_is/models/base_model'
|
|
36
|
+
require_relative 'poli_ap_is/models/create_poli_link_request'
|
|
37
|
+
require_relative 'poli_ap_is/models/initiate_transaction_request'
|
|
38
|
+
require_relative 'poli_ap_is/models/initiate_transaction_response'
|
|
39
|
+
require_relative 'poli_ap_is/models/get_transaction_response'
|
|
40
|
+
require_relative 'poli_ap_is/models/transaction_details'
|
|
41
|
+
require_relative 'poli_ap_is/models/bank_details'
|
|
42
|
+
require_relative 'poli_ap_is/models/merchant_details'
|
|
43
|
+
require_relative 'poli_ap_is/models/payer_details'
|
|
44
|
+
require_relative 'poli_ap_is/models/daily_transaction'
|
|
45
|
+
require_relative 'poli_ap_is/models/financial_institution'
|
|
46
|
+
require_relative 'poli_ap_is/models/link_payment'
|
|
47
|
+
require_relative 'poli_ap_is/models/poli_link_basic_info'
|
|
48
|
+
require_relative 'poli_ap_is/models/poli_link_payments_response'
|
|
49
|
+
require_relative 'poli_ap_is/models/create_poli_link_request_body_json'
|
|
50
|
+
require_relative 'poli_ap_is/models/' \
|
|
51
|
+
'poli_link_payments_response_transactions_items'
|
|
52
|
+
require_relative 'poli_ap_is/models/fetch_statusof_poli_link_response200_text'
|
|
53
|
+
require_relative 'poli_ap_is/models/poli_link_basic_info_status'
|
|
54
|
+
require_relative 'poli_ap_is/models/poli_link_payments_response_status'
|
|
55
|
+
|
|
56
|
+
# Exceptions
|
|
57
|
+
require_relative 'poli_ap_is/exceptions/api_exception'
|
|
58
|
+
|
|
59
|
+
require_relative 'poli_ap_is/configuration'
|
|
60
|
+
|
|
61
|
+
# Controllers
|
|
62
|
+
require_relative 'poli_ap_is/apis/base_api'
|
|
63
|
+
require_relative 'poli_ap_is/apis/poli_links_api'
|
|
64
|
+
require_relative 'poli_ap_is/apis/payments_api'
|
metadata
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: apimatic-polpay-sdk
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- developer sdksio
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-02-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: apimatic_core_interfaces
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.2.3
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.2.3
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: apimatic_core
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.3.20
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 0.3.20
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: apimatic_faraday_client_adapter
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.1.6
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 0.1.6
|
|
55
|
+
description: Sample SDKs for PoC purpose
|
|
56
|
+
email:
|
|
57
|
+
- developer+sdksio@apimatic.io
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- LICENSE
|
|
63
|
+
- README.md
|
|
64
|
+
- bin/console
|
|
65
|
+
- lib/poli_ap_is.rb
|
|
66
|
+
- lib/poli_ap_is/api_helper.rb
|
|
67
|
+
- lib/poli_ap_is/apis/base_api.rb
|
|
68
|
+
- lib/poli_ap_is/apis/payments_api.rb
|
|
69
|
+
- lib/poli_ap_is/apis/poli_links_api.rb
|
|
70
|
+
- lib/poli_ap_is/client.rb
|
|
71
|
+
- lib/poli_ap_is/configuration.rb
|
|
72
|
+
- lib/poli_ap_is/exceptions/api_exception.rb
|
|
73
|
+
- lib/poli_ap_is/http/api_response.rb
|
|
74
|
+
- lib/poli_ap_is/http/auth/basic_auth.rb
|
|
75
|
+
- lib/poli_ap_is/http/http_call_back.rb
|
|
76
|
+
- lib/poli_ap_is/http/http_method_enum.rb
|
|
77
|
+
- lib/poli_ap_is/http/http_request.rb
|
|
78
|
+
- lib/poli_ap_is/http/http_response.rb
|
|
79
|
+
- lib/poli_ap_is/http/proxy_settings.rb
|
|
80
|
+
- lib/poli_ap_is/logging/configuration/api_logging_configuration.rb
|
|
81
|
+
- lib/poli_ap_is/logging/sdk_logger.rb
|
|
82
|
+
- lib/poli_ap_is/models/bank_details.rb
|
|
83
|
+
- lib/poli_ap_is/models/base_model.rb
|
|
84
|
+
- lib/poli_ap_is/models/create_poli_link_request.rb
|
|
85
|
+
- lib/poli_ap_is/models/create_poli_link_request_body_json.rb
|
|
86
|
+
- lib/poli_ap_is/models/daily_transaction.rb
|
|
87
|
+
- lib/poli_ap_is/models/fetch_statusof_poli_link_response200_text.rb
|
|
88
|
+
- lib/poli_ap_is/models/financial_institution.rb
|
|
89
|
+
- lib/poli_ap_is/models/get_transaction_response.rb
|
|
90
|
+
- lib/poli_ap_is/models/initiate_transaction_request.rb
|
|
91
|
+
- lib/poli_ap_is/models/initiate_transaction_response.rb
|
|
92
|
+
- lib/poli_ap_is/models/link_payment.rb
|
|
93
|
+
- lib/poli_ap_is/models/merchant_details.rb
|
|
94
|
+
- lib/poli_ap_is/models/payer_details.rb
|
|
95
|
+
- lib/poli_ap_is/models/poli_link_basic_info.rb
|
|
96
|
+
- lib/poli_ap_is/models/poli_link_basic_info_status.rb
|
|
97
|
+
- lib/poli_ap_is/models/poli_link_payments_response.rb
|
|
98
|
+
- lib/poli_ap_is/models/poli_link_payments_response_status.rb
|
|
99
|
+
- lib/poli_ap_is/models/poli_link_payments_response_transactions_items.rb
|
|
100
|
+
- lib/poli_ap_is/models/transaction_details.rb
|
|
101
|
+
- lib/poli_ap_is/utilities/date_time_helper.rb
|
|
102
|
+
- lib/poli_ap_is/utilities/file_wrapper.rb
|
|
103
|
+
homepage: https://www.apimatic.io/
|
|
104
|
+
licenses:
|
|
105
|
+
- MIT
|
|
106
|
+
metadata: {}
|
|
107
|
+
post_install_message:
|
|
108
|
+
rdoc_options: []
|
|
109
|
+
require_paths:
|
|
110
|
+
- lib
|
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '2.6'
|
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
|
+
requirements:
|
|
118
|
+
- - ">="
|
|
119
|
+
- !ruby/object:Gem::Version
|
|
120
|
+
version: '0'
|
|
121
|
+
requirements: []
|
|
122
|
+
rubygems_version: 3.1.6
|
|
123
|
+
signing_key:
|
|
124
|
+
specification_version: 4
|
|
125
|
+
summary: Sample SDK
|
|
126
|
+
test_files: []
|