cloudpayments-ruby 0.4.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/.ignore +2 -0
- data/CHANGELOG.md +50 -0
- data/README.md +250 -0
- data/SECURITY.md +23 -0
- data/lib/cloudpayments_ruby/client.rb +93 -0
- data/lib/cloudpayments_ruby/errors.rb +228 -0
- data/lib/cloudpayments_ruby/file_part.rb +58 -0
- data/lib/cloudpayments_ruby/internal/transport/base_client.rb +579 -0
- data/lib/cloudpayments_ruby/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/cloudpayments_ruby/internal/type/array_of.rb +168 -0
- data/lib/cloudpayments_ruby/internal/type/base_model.rb +536 -0
- data/lib/cloudpayments_ruby/internal/type/base_page.rb +55 -0
- data/lib/cloudpayments_ruby/internal/type/boolean.rb +77 -0
- data/lib/cloudpayments_ruby/internal/type/converter.rb +327 -0
- data/lib/cloudpayments_ruby/internal/type/enum.rb +133 -0
- data/lib/cloudpayments_ruby/internal/type/file_input.rb +111 -0
- data/lib/cloudpayments_ruby/internal/type/hash_of.rb +188 -0
- data/lib/cloudpayments_ruby/internal/type/request_parameters.rb +42 -0
- data/lib/cloudpayments_ruby/internal/type/union.rb +256 -0
- data/lib/cloudpayments_ruby/internal/type/unknown.rb +81 -0
- data/lib/cloudpayments_ruby/internal/util.rb +920 -0
- data/lib/cloudpayments_ruby/internal.rb +20 -0
- data/lib/cloudpayments_ruby/models/order_cancel_params.rb +22 -0
- data/lib/cloudpayments_ruby/models/order_cancel_response.rb +27 -0
- data/lib/cloudpayments_ruby/models/order_create_params.rb +152 -0
- data/lib/cloudpayments_ruby/models/order_create_response.rb +187 -0
- data/lib/cloudpayments_ruby/models/payment_auth_params.rb +211 -0
- data/lib/cloudpayments_ruby/models/payment_auth_response.rb +167 -0
- data/lib/cloudpayments_ruby/models/payment_charge_params.rb +211 -0
- data/lib/cloudpayments_ruby/models/payment_charge_response.rb +167 -0
- data/lib/cloudpayments_ruby/models/payment_confirm_params.rb +38 -0
- data/lib/cloudpayments_ruby/models/payment_confirm_response.rb +27 -0
- data/lib/cloudpayments_ruby/models/payment_post3ds_params.rb +30 -0
- data/lib/cloudpayments_ruby/models/payment_post3ds_response.rb +35 -0
- data/lib/cloudpayments_ruby/models/payment_refund_params.rb +38 -0
- data/lib/cloudpayments_ruby/models/payment_refund_response.rb +49 -0
- data/lib/cloudpayments_ruby/models/payment_void_params.rb +22 -0
- data/lib/cloudpayments_ruby/models/payment_void_response.rb +27 -0
- data/lib/cloudpayments_ruby/models/payments/token_auth_params.rb +197 -0
- data/lib/cloudpayments_ruby/models/payments/token_auth_response.rb +37 -0
- data/lib/cloudpayments_ruby/models/payments/token_charge_params.rb +197 -0
- data/lib/cloudpayments_ruby/models/payments/token_charge_response.rb +37 -0
- data/lib/cloudpayments_ruby/models/subscription.rb +212 -0
- data/lib/cloudpayments_ruby/models/subscription_cancel_params.rb +22 -0
- data/lib/cloudpayments_ruby/models/subscription_cancel_response.rb +27 -0
- data/lib/cloudpayments_ruby/models/subscription_create_params.rb +112 -0
- data/lib/cloudpayments_ruby/models/subscription_create_response.rb +35 -0
- data/lib/cloudpayments_ruby/models/subscription_find_params.rb +22 -0
- data/lib/cloudpayments_ruby/models/subscription_find_response.rb +37 -0
- data/lib/cloudpayments_ruby/models/subscription_get_params.rb +22 -0
- data/lib/cloudpayments_ruby/models/subscription_get_response.rb +35 -0
- data/lib/cloudpayments_ruby/models/subscription_update_params.rb +104 -0
- data/lib/cloudpayments_ruby/models/subscription_update_response.rb +35 -0
- data/lib/cloudpayments_ruby/models/transaction.rb +492 -0
- data/lib/cloudpayments_ruby/models.rb +76 -0
- data/lib/cloudpayments_ruby/request_options.rb +79 -0
- data/lib/cloudpayments_ruby/resources/orders.rb +95 -0
- data/lib/cloudpayments_ruby/resources/payments/tokens.rb +110 -0
- data/lib/cloudpayments_ruby/resources/payments.rb +232 -0
- data/lib/cloudpayments_ruby/resources/subscriptions.rb +178 -0
- data/lib/cloudpayments_ruby/version.rb +5 -0
- data/lib/cloudpayments_ruby.rb +91 -0
- data/manifest.yaml +17 -0
- data/rbi/cloudpayments_ruby/client.rbi +61 -0
- data/rbi/cloudpayments_ruby/errors.rbi +205 -0
- data/rbi/cloudpayments_ruby/file_part.rbi +37 -0
- data/rbi/cloudpayments_ruby/internal/transport/base_client.rbi +310 -0
- data/rbi/cloudpayments_ruby/internal/transport/pooled_net_requester.rbi +84 -0
- data/rbi/cloudpayments_ruby/internal/type/array_of.rbi +108 -0
- data/rbi/cloudpayments_ruby/internal/type/base_model.rbi +316 -0
- data/rbi/cloudpayments_ruby/internal/type/base_page.rbi +43 -0
- data/rbi/cloudpayments_ruby/internal/type/boolean.rbi +58 -0
- data/rbi/cloudpayments_ruby/internal/type/converter.rbi +225 -0
- data/rbi/cloudpayments_ruby/internal/type/enum.rbi +82 -0
- data/rbi/cloudpayments_ruby/internal/type/file_input.rbi +59 -0
- data/rbi/cloudpayments_ruby/internal/type/hash_of.rbi +108 -0
- data/rbi/cloudpayments_ruby/internal/type/request_parameters.rbi +33 -0
- data/rbi/cloudpayments_ruby/internal/type/union.rbi +134 -0
- data/rbi/cloudpayments_ruby/internal/type/unknown.rbi +58 -0
- data/rbi/cloudpayments_ruby/internal/util.rbi +487 -0
- data/rbi/cloudpayments_ruby/internal.rbi +18 -0
- data/rbi/cloudpayments_ruby/models/order_cancel_params.rbi +43 -0
- data/rbi/cloudpayments_ruby/models/order_cancel_response.rbi +42 -0
- data/rbi/cloudpayments_ruby/models/order_create_params.rbi +219 -0
- data/rbi/cloudpayments_ruby/models/order_create_response.rbi +255 -0
- data/rbi/cloudpayments_ruby/models/payment_auth_params.rbi +323 -0
- data/rbi/cloudpayments_ruby/models/payment_auth_response.rbi +278 -0
- data/rbi/cloudpayments_ruby/models/payment_charge_params.rbi +325 -0
- data/rbi/cloudpayments_ruby/models/payment_charge_response.rbi +278 -0
- data/rbi/cloudpayments_ruby/models/payment_confirm_params.rbi +65 -0
- data/rbi/cloudpayments_ruby/models/payment_confirm_response.rbi +42 -0
- data/rbi/cloudpayments_ruby/models/payment_post3ds_params.rbi +54 -0
- data/rbi/cloudpayments_ruby/models/payment_post3ds_response.rbi +63 -0
- data/rbi/cloudpayments_ruby/models/payment_refund_params.rbi +65 -0
- data/rbi/cloudpayments_ruby/models/payment_refund_response.rbi +97 -0
- data/rbi/cloudpayments_ruby/models/payment_void_params.rbi +46 -0
- data/rbi/cloudpayments_ruby/models/payment_void_response.rbi +42 -0
- data/rbi/cloudpayments_ruby/models/payments/token_auth_params.rbi +306 -0
- data/rbi/cloudpayments_ruby/models/payments/token_auth_response.rbi +65 -0
- data/rbi/cloudpayments_ruby/models/payments/token_charge_params.rbi +307 -0
- data/rbi/cloudpayments_ruby/models/payments/token_charge_response.rbi +65 -0
- data/rbi/cloudpayments_ruby/models/subscription.rbi +260 -0
- data/rbi/cloudpayments_ruby/models/subscription_cancel_params.rbi +43 -0
- data/rbi/cloudpayments_ruby/models/subscription_cancel_response.rbi +42 -0
- data/rbi/cloudpayments_ruby/models/subscription_create_params.rbi +143 -0
- data/rbi/cloudpayments_ruby/models/subscription_create_response.rbi +63 -0
- data/rbi/cloudpayments_ruby/models/subscription_find_params.rbi +46 -0
- data/rbi/cloudpayments_ruby/models/subscription_find_response.rbi +65 -0
- data/rbi/cloudpayments_ruby/models/subscription_get_params.rbi +43 -0
- data/rbi/cloudpayments_ruby/models/subscription_get_response.rbi +63 -0
- data/rbi/cloudpayments_ruby/models/subscription_update_params.rbi +156 -0
- data/rbi/cloudpayments_ruby/models/subscription_update_response.rbi +63 -0
- data/rbi/cloudpayments_ruby/models/transaction.rbi +594 -0
- data/rbi/cloudpayments_ruby/models.rbi +35 -0
- data/rbi/cloudpayments_ruby/request_options.rbi +64 -0
- data/rbi/cloudpayments_ruby/resources/orders.rbi +95 -0
- data/rbi/cloudpayments_ruby/resources/payments/tokens.rbi +117 -0
- data/rbi/cloudpayments_ruby/resources/payments.rbi +214 -0
- data/rbi/cloudpayments_ruby/resources/subscriptions.rbi +159 -0
- data/rbi/cloudpayments_ruby/version.rbi +5 -0
- data/sig/cloudpayments_ruby/client.rbs +33 -0
- data/sig/cloudpayments_ruby/errors.rbs +117 -0
- data/sig/cloudpayments_ruby/file_part.rbs +21 -0
- data/sig/cloudpayments_ruby/internal/transport/base_client.rbs +133 -0
- data/sig/cloudpayments_ruby/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/cloudpayments_ruby/internal/type/array_of.rbs +48 -0
- data/sig/cloudpayments_ruby/internal/type/base_model.rbs +106 -0
- data/sig/cloudpayments_ruby/internal/type/base_page.rbs +24 -0
- data/sig/cloudpayments_ruby/internal/type/boolean.rbs +26 -0
- data/sig/cloudpayments_ruby/internal/type/converter.rbs +79 -0
- data/sig/cloudpayments_ruby/internal/type/enum.rbs +32 -0
- data/sig/cloudpayments_ruby/internal/type/file_input.rbs +25 -0
- data/sig/cloudpayments_ruby/internal/type/hash_of.rbs +48 -0
- data/sig/cloudpayments_ruby/internal/type/request_parameters.rbs +20 -0
- data/sig/cloudpayments_ruby/internal/type/union.rbs +52 -0
- data/sig/cloudpayments_ruby/internal/type/unknown.rbs +26 -0
- data/sig/cloudpayments_ruby/internal/util.rbs +185 -0
- data/sig/cloudpayments_ruby/internal.rbs +10 -0
- data/sig/cloudpayments_ruby/models/order_cancel_params.rbs +23 -0
- data/sig/cloudpayments_ruby/models/order_cancel_response.rbs +17 -0
- data/sig/cloudpayments_ruby/models/order_create_params.rbs +136 -0
- data/sig/cloudpayments_ruby/models/order_create_response.rbs +146 -0
- data/sig/cloudpayments_ruby/models/payment_auth_params.rbs +197 -0
- data/sig/cloudpayments_ruby/models/payment_auth_response.rbs +151 -0
- data/sig/cloudpayments_ruby/models/payment_charge_params.rbs +197 -0
- data/sig/cloudpayments_ruby/models/payment_charge_response.rbs +151 -0
- data/sig/cloudpayments_ruby/models/payment_confirm_params.rbs +34 -0
- data/sig/cloudpayments_ruby/models/payment_confirm_response.rbs +17 -0
- data/sig/cloudpayments_ruby/models/payment_post3ds_params.rbs +28 -0
- data/sig/cloudpayments_ruby/models/payment_post3ds_response.rbs +32 -0
- data/sig/cloudpayments_ruby/models/payment_refund_params.rbs +34 -0
- data/sig/cloudpayments_ruby/models/payment_refund_response.rbs +46 -0
- data/sig/cloudpayments_ruby/models/payment_void_params.rbs +24 -0
- data/sig/cloudpayments_ruby/models/payment_void_response.rbs +17 -0
- data/sig/cloudpayments_ruby/models/payments/token_auth_params.rbs +183 -0
- data/sig/cloudpayments_ruby/models/payments/token_auth_response.rbs +38 -0
- data/sig/cloudpayments_ruby/models/payments/token_charge_params.rbs +183 -0
- data/sig/cloudpayments_ruby/models/payments/token_charge_response.rbs +38 -0
- data/sig/cloudpayments_ruby/models/subscription.rbs +158 -0
- data/sig/cloudpayments_ruby/models/subscription_cancel_params.rbs +23 -0
- data/sig/cloudpayments_ruby/models/subscription_cancel_response.rbs +17 -0
- data/sig/cloudpayments_ruby/models/subscription_create_params.rbs +87 -0
- data/sig/cloudpayments_ruby/models/subscription_create_response.rbs +32 -0
- data/sig/cloudpayments_ruby/models/subscription_find_params.rbs +24 -0
- data/sig/cloudpayments_ruby/models/subscription_find_response.rbs +36 -0
- data/sig/cloudpayments_ruby/models/subscription_get_params.rbs +23 -0
- data/sig/cloudpayments_ruby/models/subscription_get_response.rbs +32 -0
- data/sig/cloudpayments_ruby/models/subscription_update_params.rbs +96 -0
- data/sig/cloudpayments_ruby/models/subscription_update_response.rbs +32 -0
- data/sig/cloudpayments_ruby/models/transaction.rbs +369 -0
- data/sig/cloudpayments_ruby/models.rbs +33 -0
- data/sig/cloudpayments_ruby/request_options.rbs +36 -0
- data/sig/cloudpayments_ruby/resources/orders.rbs +33 -0
- data/sig/cloudpayments_ruby/resources/payments/tokens.rbs +41 -0
- data/sig/cloudpayments_ruby/resources/payments.rbs +70 -0
- data/sig/cloudpayments_ruby/resources/subscriptions.rbs +53 -0
- data/sig/cloudpayments_ruby/version.rbs +3 -0
- metadata +250 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type transaction =
|
|
4
|
+
{
|
|
5
|
+
amount: Float,
|
|
6
|
+
android_pay: bool,
|
|
7
|
+
card_exp_date: String,
|
|
8
|
+
card_first_six: String,
|
|
9
|
+
card_holder_message: String,
|
|
10
|
+
card_last_four: String,
|
|
11
|
+
card_type: String,
|
|
12
|
+
card_type_code: Integer,
|
|
13
|
+
created_date: String,
|
|
14
|
+
created_date_iso: String,
|
|
15
|
+
culture_name: String,
|
|
16
|
+
currency: String,
|
|
17
|
+
currency_code: Integer,
|
|
18
|
+
gateway_name: String,
|
|
19
|
+
ip_address: String,
|
|
20
|
+
ip_country: String,
|
|
21
|
+
issuer: String,
|
|
22
|
+
issuer_bank_country: String,
|
|
23
|
+
payment_amount: Float,
|
|
24
|
+
payment_currency: String,
|
|
25
|
+
payment_currency_code: Integer,
|
|
26
|
+
public_id: String,
|
|
27
|
+
reason: String,
|
|
28
|
+
reason_code: Integer,
|
|
29
|
+
refunded: bool,
|
|
30
|
+
status: String,
|
|
31
|
+
status_code: Integer,
|
|
32
|
+
terminal_url: String,
|
|
33
|
+
test_mode: bool,
|
|
34
|
+
total_fee: Float,
|
|
35
|
+
transaction_id: Integer,
|
|
36
|
+
type: Integer,
|
|
37
|
+
wallet_type: String,
|
|
38
|
+
account_id: String,
|
|
39
|
+
auth_code: String,
|
|
40
|
+
auth_date: String,
|
|
41
|
+
auth_date_iso: String,
|
|
42
|
+
card_category: String,
|
|
43
|
+
card_product: String,
|
|
44
|
+
confirm_date: String,
|
|
45
|
+
confirm_date_iso: String,
|
|
46
|
+
description: String,
|
|
47
|
+
email: String,
|
|
48
|
+
escrow_accumulation_id: String,
|
|
49
|
+
fall_back_scenario_declined_transaction_id: Integer,
|
|
50
|
+
invoice_id: String,
|
|
51
|
+
ip_city: String,
|
|
52
|
+
ip_district: String,
|
|
53
|
+
ip_latitude: Float,
|
|
54
|
+
ip_longitude: Float,
|
|
55
|
+
ip_region: String,
|
|
56
|
+
json_data: String,
|
|
57
|
+
name: String,
|
|
58
|
+
original_transaction_id: Integer,
|
|
59
|
+
payout_amount: Float,
|
|
60
|
+
payout_date: String,
|
|
61
|
+
payout_date_iso: String,
|
|
62
|
+
rrn: String,
|
|
63
|
+
subscription_id: String,
|
|
64
|
+
token: String
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
class Transaction < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
68
|
+
attr_accessor amount: Float
|
|
69
|
+
|
|
70
|
+
attr_accessor android_pay: bool
|
|
71
|
+
|
|
72
|
+
attr_accessor card_exp_date: String
|
|
73
|
+
|
|
74
|
+
attr_accessor card_first_six: String
|
|
75
|
+
|
|
76
|
+
attr_accessor card_holder_message: String
|
|
77
|
+
|
|
78
|
+
attr_accessor card_last_four: String
|
|
79
|
+
|
|
80
|
+
attr_accessor card_type: String
|
|
81
|
+
|
|
82
|
+
attr_accessor card_type_code: Integer
|
|
83
|
+
|
|
84
|
+
attr_accessor created_date: String
|
|
85
|
+
|
|
86
|
+
attr_accessor created_date_iso: String
|
|
87
|
+
|
|
88
|
+
attr_accessor culture_name: String
|
|
89
|
+
|
|
90
|
+
attr_accessor currency: String
|
|
91
|
+
|
|
92
|
+
attr_accessor currency_code: Integer
|
|
93
|
+
|
|
94
|
+
attr_accessor gateway_name: String
|
|
95
|
+
|
|
96
|
+
attr_accessor ip_address: String
|
|
97
|
+
|
|
98
|
+
attr_accessor ip_country: String
|
|
99
|
+
|
|
100
|
+
attr_accessor issuer: String
|
|
101
|
+
|
|
102
|
+
attr_accessor issuer_bank_country: String
|
|
103
|
+
|
|
104
|
+
attr_accessor payment_amount: Float
|
|
105
|
+
|
|
106
|
+
attr_accessor payment_currency: String
|
|
107
|
+
|
|
108
|
+
attr_accessor payment_currency_code: Integer
|
|
109
|
+
|
|
110
|
+
attr_accessor public_id: String
|
|
111
|
+
|
|
112
|
+
attr_accessor reason: String
|
|
113
|
+
|
|
114
|
+
attr_accessor reason_code: Integer
|
|
115
|
+
|
|
116
|
+
attr_accessor refunded: bool
|
|
117
|
+
|
|
118
|
+
attr_accessor status: String
|
|
119
|
+
|
|
120
|
+
attr_accessor status_code: Integer
|
|
121
|
+
|
|
122
|
+
attr_accessor terminal_url: String
|
|
123
|
+
|
|
124
|
+
attr_accessor test_mode: bool
|
|
125
|
+
|
|
126
|
+
attr_accessor total_fee: Float
|
|
127
|
+
|
|
128
|
+
attr_accessor transaction_id: Integer
|
|
129
|
+
|
|
130
|
+
attr_accessor type: Integer
|
|
131
|
+
|
|
132
|
+
attr_accessor wallet_type: String
|
|
133
|
+
|
|
134
|
+
attr_reader account_id: String?
|
|
135
|
+
|
|
136
|
+
def account_id=: (String) -> String
|
|
137
|
+
|
|
138
|
+
attr_reader auth_code: String?
|
|
139
|
+
|
|
140
|
+
def auth_code=: (String) -> String
|
|
141
|
+
|
|
142
|
+
attr_reader auth_date: String?
|
|
143
|
+
|
|
144
|
+
def auth_date=: (String) -> String
|
|
145
|
+
|
|
146
|
+
attr_reader auth_date_iso: String?
|
|
147
|
+
|
|
148
|
+
def auth_date_iso=: (String) -> String
|
|
149
|
+
|
|
150
|
+
attr_reader card_category: String?
|
|
151
|
+
|
|
152
|
+
def card_category=: (String) -> String
|
|
153
|
+
|
|
154
|
+
attr_reader card_product: String?
|
|
155
|
+
|
|
156
|
+
def card_product=: (String) -> String
|
|
157
|
+
|
|
158
|
+
attr_reader confirm_date: String?
|
|
159
|
+
|
|
160
|
+
def confirm_date=: (String) -> String
|
|
161
|
+
|
|
162
|
+
attr_reader confirm_date_iso: String?
|
|
163
|
+
|
|
164
|
+
def confirm_date_iso=: (String) -> String
|
|
165
|
+
|
|
166
|
+
attr_reader description: String?
|
|
167
|
+
|
|
168
|
+
def description=: (String) -> String
|
|
169
|
+
|
|
170
|
+
attr_reader email: String?
|
|
171
|
+
|
|
172
|
+
def email=: (String) -> String
|
|
173
|
+
|
|
174
|
+
attr_reader escrow_accumulation_id: String?
|
|
175
|
+
|
|
176
|
+
def escrow_accumulation_id=: (String) -> String
|
|
177
|
+
|
|
178
|
+
attr_reader fall_back_scenario_declined_transaction_id: Integer?
|
|
179
|
+
|
|
180
|
+
def fall_back_scenario_declined_transaction_id=: (Integer) -> Integer
|
|
181
|
+
|
|
182
|
+
attr_reader invoice_id: String?
|
|
183
|
+
|
|
184
|
+
def invoice_id=: (String) -> String
|
|
185
|
+
|
|
186
|
+
attr_reader ip_city: String?
|
|
187
|
+
|
|
188
|
+
def ip_city=: (String) -> String
|
|
189
|
+
|
|
190
|
+
attr_reader ip_district: String?
|
|
191
|
+
|
|
192
|
+
def ip_district=: (String) -> String
|
|
193
|
+
|
|
194
|
+
attr_reader ip_latitude: Float?
|
|
195
|
+
|
|
196
|
+
def ip_latitude=: (Float) -> Float
|
|
197
|
+
|
|
198
|
+
attr_reader ip_longitude: Float?
|
|
199
|
+
|
|
200
|
+
def ip_longitude=: (Float) -> Float
|
|
201
|
+
|
|
202
|
+
attr_reader ip_region: String?
|
|
203
|
+
|
|
204
|
+
def ip_region=: (String) -> String
|
|
205
|
+
|
|
206
|
+
attr_reader json_data: String?
|
|
207
|
+
|
|
208
|
+
def json_data=: (String) -> String
|
|
209
|
+
|
|
210
|
+
attr_reader name: String?
|
|
211
|
+
|
|
212
|
+
def name=: (String) -> String
|
|
213
|
+
|
|
214
|
+
attr_reader original_transaction_id: Integer?
|
|
215
|
+
|
|
216
|
+
def original_transaction_id=: (Integer) -> Integer
|
|
217
|
+
|
|
218
|
+
attr_reader payout_amount: Float?
|
|
219
|
+
|
|
220
|
+
def payout_amount=: (Float) -> Float
|
|
221
|
+
|
|
222
|
+
attr_reader payout_date: String?
|
|
223
|
+
|
|
224
|
+
def payout_date=: (String) -> String
|
|
225
|
+
|
|
226
|
+
attr_reader payout_date_iso: String?
|
|
227
|
+
|
|
228
|
+
def payout_date_iso=: (String) -> String
|
|
229
|
+
|
|
230
|
+
attr_reader rrn: String?
|
|
231
|
+
|
|
232
|
+
def rrn=: (String) -> String
|
|
233
|
+
|
|
234
|
+
attr_reader subscription_id: String?
|
|
235
|
+
|
|
236
|
+
def subscription_id=: (String) -> String
|
|
237
|
+
|
|
238
|
+
attr_reader token: String?
|
|
239
|
+
|
|
240
|
+
def token=: (String) -> String
|
|
241
|
+
|
|
242
|
+
def initialize: (
|
|
243
|
+
amount: Float,
|
|
244
|
+
android_pay: bool,
|
|
245
|
+
card_exp_date: String,
|
|
246
|
+
card_first_six: String,
|
|
247
|
+
card_holder_message: String,
|
|
248
|
+
card_last_four: String,
|
|
249
|
+
card_type: String,
|
|
250
|
+
card_type_code: Integer,
|
|
251
|
+
created_date: String,
|
|
252
|
+
created_date_iso: String,
|
|
253
|
+
culture_name: String,
|
|
254
|
+
currency: String,
|
|
255
|
+
currency_code: Integer,
|
|
256
|
+
gateway_name: String,
|
|
257
|
+
ip_address: String,
|
|
258
|
+
ip_country: String,
|
|
259
|
+
issuer: String,
|
|
260
|
+
issuer_bank_country: String,
|
|
261
|
+
payment_amount: Float,
|
|
262
|
+
payment_currency: String,
|
|
263
|
+
payment_currency_code: Integer,
|
|
264
|
+
public_id: String,
|
|
265
|
+
reason: String,
|
|
266
|
+
reason_code: Integer,
|
|
267
|
+
refunded: bool,
|
|
268
|
+
status: String,
|
|
269
|
+
status_code: Integer,
|
|
270
|
+
terminal_url: String,
|
|
271
|
+
test_mode: bool,
|
|
272
|
+
total_fee: Float,
|
|
273
|
+
transaction_id: Integer,
|
|
274
|
+
type: Integer,
|
|
275
|
+
wallet_type: String,
|
|
276
|
+
?account_id: String,
|
|
277
|
+
?auth_code: String,
|
|
278
|
+
?auth_date: String,
|
|
279
|
+
?auth_date_iso: String,
|
|
280
|
+
?card_category: String,
|
|
281
|
+
?card_product: String,
|
|
282
|
+
?confirm_date: String,
|
|
283
|
+
?confirm_date_iso: String,
|
|
284
|
+
?description: String,
|
|
285
|
+
?email: String,
|
|
286
|
+
?escrow_accumulation_id: String,
|
|
287
|
+
?fall_back_scenario_declined_transaction_id: Integer,
|
|
288
|
+
?invoice_id: String,
|
|
289
|
+
?ip_city: String,
|
|
290
|
+
?ip_district: String,
|
|
291
|
+
?ip_latitude: Float,
|
|
292
|
+
?ip_longitude: Float,
|
|
293
|
+
?ip_region: String,
|
|
294
|
+
?json_data: String,
|
|
295
|
+
?name: String,
|
|
296
|
+
?original_transaction_id: Integer,
|
|
297
|
+
?payout_amount: Float,
|
|
298
|
+
?payout_date: String,
|
|
299
|
+
?payout_date_iso: String,
|
|
300
|
+
?rrn: String,
|
|
301
|
+
?subscription_id: String,
|
|
302
|
+
?token: String
|
|
303
|
+
) -> void
|
|
304
|
+
|
|
305
|
+
def to_hash: -> {
|
|
306
|
+
amount: Float,
|
|
307
|
+
android_pay: bool,
|
|
308
|
+
card_exp_date: String,
|
|
309
|
+
card_first_six: String,
|
|
310
|
+
card_holder_message: String,
|
|
311
|
+
card_last_four: String,
|
|
312
|
+
card_type: String,
|
|
313
|
+
card_type_code: Integer,
|
|
314
|
+
created_date: String,
|
|
315
|
+
created_date_iso: String,
|
|
316
|
+
culture_name: String,
|
|
317
|
+
currency: String,
|
|
318
|
+
currency_code: Integer,
|
|
319
|
+
gateway_name: String,
|
|
320
|
+
ip_address: String,
|
|
321
|
+
ip_country: String,
|
|
322
|
+
issuer: String,
|
|
323
|
+
issuer_bank_country: String,
|
|
324
|
+
payment_amount: Float,
|
|
325
|
+
payment_currency: String,
|
|
326
|
+
payment_currency_code: Integer,
|
|
327
|
+
public_id: String,
|
|
328
|
+
reason: String,
|
|
329
|
+
reason_code: Integer,
|
|
330
|
+
refunded: bool,
|
|
331
|
+
status: String,
|
|
332
|
+
status_code: Integer,
|
|
333
|
+
terminal_url: String,
|
|
334
|
+
test_mode: bool,
|
|
335
|
+
total_fee: Float,
|
|
336
|
+
transaction_id: Integer,
|
|
337
|
+
type: Integer,
|
|
338
|
+
wallet_type: String,
|
|
339
|
+
account_id: String,
|
|
340
|
+
auth_code: String,
|
|
341
|
+
auth_date: String,
|
|
342
|
+
auth_date_iso: String,
|
|
343
|
+
card_category: String,
|
|
344
|
+
card_product: String,
|
|
345
|
+
confirm_date: String,
|
|
346
|
+
confirm_date_iso: String,
|
|
347
|
+
description: String,
|
|
348
|
+
email: String,
|
|
349
|
+
escrow_accumulation_id: String,
|
|
350
|
+
fall_back_scenario_declined_transaction_id: Integer,
|
|
351
|
+
invoice_id: String,
|
|
352
|
+
ip_city: String,
|
|
353
|
+
ip_district: String,
|
|
354
|
+
ip_latitude: Float,
|
|
355
|
+
ip_longitude: Float,
|
|
356
|
+
ip_region: String,
|
|
357
|
+
json_data: String,
|
|
358
|
+
name: String,
|
|
359
|
+
original_transaction_id: Integer,
|
|
360
|
+
payout_amount: Float,
|
|
361
|
+
payout_date: String,
|
|
362
|
+
payout_date_iso: String,
|
|
363
|
+
rrn: String,
|
|
364
|
+
subscription_id: String,
|
|
365
|
+
token: String
|
|
366
|
+
}
|
|
367
|
+
end
|
|
368
|
+
end
|
|
369
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
class OrderCancelParams = CloudpaymentsRuby::Models::OrderCancelParams
|
|
3
|
+
|
|
4
|
+
class OrderCreateParams = CloudpaymentsRuby::Models::OrderCreateParams
|
|
5
|
+
|
|
6
|
+
class PaymentAuthParams = CloudpaymentsRuby::Models::PaymentAuthParams
|
|
7
|
+
|
|
8
|
+
class PaymentChargeParams = CloudpaymentsRuby::Models::PaymentChargeParams
|
|
9
|
+
|
|
10
|
+
class PaymentConfirmParams = CloudpaymentsRuby::Models::PaymentConfirmParams
|
|
11
|
+
|
|
12
|
+
class PaymentPost3dsParams = CloudpaymentsRuby::Models::PaymentPost3dsParams
|
|
13
|
+
|
|
14
|
+
class PaymentRefundParams = CloudpaymentsRuby::Models::PaymentRefundParams
|
|
15
|
+
|
|
16
|
+
module Payments = CloudpaymentsRuby::Models::Payments
|
|
17
|
+
|
|
18
|
+
class PaymentVoidParams = CloudpaymentsRuby::Models::PaymentVoidParams
|
|
19
|
+
|
|
20
|
+
class Subscription = CloudpaymentsRuby::Models::Subscription
|
|
21
|
+
|
|
22
|
+
class SubscriptionCancelParams = CloudpaymentsRuby::Models::SubscriptionCancelParams
|
|
23
|
+
|
|
24
|
+
class SubscriptionCreateParams = CloudpaymentsRuby::Models::SubscriptionCreateParams
|
|
25
|
+
|
|
26
|
+
class SubscriptionFindParams = CloudpaymentsRuby::Models::SubscriptionFindParams
|
|
27
|
+
|
|
28
|
+
class SubscriptionGetParams = CloudpaymentsRuby::Models::SubscriptionGetParams
|
|
29
|
+
|
|
30
|
+
class SubscriptionUpdateParams = CloudpaymentsRuby::Models::SubscriptionUpdateParams
|
|
31
|
+
|
|
32
|
+
class Transaction = CloudpaymentsRuby::Models::Transaction
|
|
33
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
type request_opts =
|
|
3
|
+
CloudpaymentsRuby::RequestOptions
|
|
4
|
+
| CloudpaymentsRuby::request_options
|
|
5
|
+
| ::Hash[Symbol, top]
|
|
6
|
+
|
|
7
|
+
type request_options =
|
|
8
|
+
{
|
|
9
|
+
idempotency_key: String?,
|
|
10
|
+
extra_query: ::Hash[String, (::Array[String] | String)?]?,
|
|
11
|
+
extra_headers: ::Hash[String, String?]?,
|
|
12
|
+
extra_body: top?,
|
|
13
|
+
max_retries: Integer?,
|
|
14
|
+
timeout: Float?
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class RequestOptions < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
18
|
+
def self.validate!: (CloudpaymentsRuby::request_opts opts) -> void
|
|
19
|
+
|
|
20
|
+
attr_accessor idempotency_key: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor extra_query: ::Hash[String, (::Array[String] | String)?]?
|
|
23
|
+
|
|
24
|
+
attr_accessor extra_headers: ::Hash[String, String?]?
|
|
25
|
+
|
|
26
|
+
attr_accessor extra_body: top?
|
|
27
|
+
|
|
28
|
+
attr_accessor max_retries: Integer?
|
|
29
|
+
|
|
30
|
+
attr_accessor timeout: Float?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
?CloudpaymentsRuby::request_options | ::Hash[Symbol, top] values
|
|
34
|
+
) -> void
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Orders
|
|
4
|
+
def create: (
|
|
5
|
+
amount: Float,
|
|
6
|
+
description: String,
|
|
7
|
+
?account_id: String,
|
|
8
|
+
?culture_name: String,
|
|
9
|
+
?currency: String,
|
|
10
|
+
?email: String,
|
|
11
|
+
?fail_redirect_url: String,
|
|
12
|
+
?invoice_id: String,
|
|
13
|
+
?json_data: top,
|
|
14
|
+
?offer_uri: String,
|
|
15
|
+
?phone: String,
|
|
16
|
+
?require_confirmation: bool,
|
|
17
|
+
?send_email: bool,
|
|
18
|
+
?send_sms: bool,
|
|
19
|
+
?send_viber: bool,
|
|
20
|
+
?subscription_behavior: String,
|
|
21
|
+
?success_redirect_url: String,
|
|
22
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
23
|
+
) -> CloudpaymentsRuby::Models::OrderCreateResponse
|
|
24
|
+
|
|
25
|
+
def cancel: (
|
|
26
|
+
id: String,
|
|
27
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
28
|
+
) -> CloudpaymentsRuby::Models::OrderCancelResponse
|
|
29
|
+
|
|
30
|
+
def initialize: (client: CloudpaymentsRuby::Client) -> void
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Payments
|
|
4
|
+
class Tokens
|
|
5
|
+
def auth: (
|
|
6
|
+
account_id: String,
|
|
7
|
+
amount: Float,
|
|
8
|
+
token: String,
|
|
9
|
+
tr_initiator_code: Integer,
|
|
10
|
+
?currency: String,
|
|
11
|
+
?description: String,
|
|
12
|
+
?email: String,
|
|
13
|
+
?invoice_id: String,
|
|
14
|
+
?ip_address: String,
|
|
15
|
+
?json_data: top,
|
|
16
|
+
?payer: CloudpaymentsRuby::Payments::TokenAuthParams::Payer,
|
|
17
|
+
?payment_scheduled: Integer,
|
|
18
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
19
|
+
) -> CloudpaymentsRuby::Models::Payments::TokenAuthResponse
|
|
20
|
+
|
|
21
|
+
def charge: (
|
|
22
|
+
account_id: String,
|
|
23
|
+
amount: Float,
|
|
24
|
+
token: String,
|
|
25
|
+
tr_initiator_code: Integer,
|
|
26
|
+
?currency: String,
|
|
27
|
+
?description: String,
|
|
28
|
+
?email: String,
|
|
29
|
+
?invoice_id: String,
|
|
30
|
+
?ip_address: String,
|
|
31
|
+
?json_data: top,
|
|
32
|
+
?payer: CloudpaymentsRuby::Payments::TokenChargeParams::Payer,
|
|
33
|
+
?payment_scheduled: Integer,
|
|
34
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
35
|
+
) -> CloudpaymentsRuby::Models::Payments::TokenChargeResponse
|
|
36
|
+
|
|
37
|
+
def initialize: (client: CloudpaymentsRuby::Client) -> void
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Payments
|
|
4
|
+
attr_reader tokens: CloudpaymentsRuby::Resources::Payments::Tokens
|
|
5
|
+
|
|
6
|
+
def auth: (
|
|
7
|
+
amount: Float,
|
|
8
|
+
card_cryptogram_packet: String,
|
|
9
|
+
ip_address: String,
|
|
10
|
+
?account_id: String,
|
|
11
|
+
?culture_name: String,
|
|
12
|
+
?currency: String,
|
|
13
|
+
?description: String,
|
|
14
|
+
?email: String,
|
|
15
|
+
?invoice_id: String,
|
|
16
|
+
?json_data: top,
|
|
17
|
+
?name: String,
|
|
18
|
+
?payer: CloudpaymentsRuby::PaymentAuthParams::Payer,
|
|
19
|
+
?payment_url: String,
|
|
20
|
+
?save_card: bool,
|
|
21
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
22
|
+
) -> CloudpaymentsRuby::Models::payment_auth_response
|
|
23
|
+
|
|
24
|
+
def charge: (
|
|
25
|
+
amount: Float,
|
|
26
|
+
card_cryptogram_packet: String,
|
|
27
|
+
ip_address: String,
|
|
28
|
+
?account_id: String,
|
|
29
|
+
?culture_name: String,
|
|
30
|
+
?currency: String,
|
|
31
|
+
?description: String,
|
|
32
|
+
?email: String,
|
|
33
|
+
?invoice_id: String,
|
|
34
|
+
?json_data: top,
|
|
35
|
+
?name: String,
|
|
36
|
+
?payer: CloudpaymentsRuby::PaymentChargeParams::Payer,
|
|
37
|
+
?payment_url: String,
|
|
38
|
+
?save_card: bool,
|
|
39
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
40
|
+
) -> CloudpaymentsRuby::Models::payment_charge_response
|
|
41
|
+
|
|
42
|
+
def confirm: (
|
|
43
|
+
amount: Float,
|
|
44
|
+
transaction_id: Integer,
|
|
45
|
+
?json_data: top,
|
|
46
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
47
|
+
) -> CloudpaymentsRuby::Models::PaymentConfirmResponse
|
|
48
|
+
|
|
49
|
+
def post3ds: (
|
|
50
|
+
pa_res: String,
|
|
51
|
+
transaction_id: Integer,
|
|
52
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
53
|
+
) -> CloudpaymentsRuby::Models::PaymentPost3dsResponse
|
|
54
|
+
|
|
55
|
+
def refund: (
|
|
56
|
+
amount: Float,
|
|
57
|
+
transaction_id: Integer,
|
|
58
|
+
?json_data: top,
|
|
59
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
60
|
+
) -> CloudpaymentsRuby::Models::PaymentRefundResponse
|
|
61
|
+
|
|
62
|
+
def `void`: (
|
|
63
|
+
transaction_id: Integer,
|
|
64
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
65
|
+
) -> CloudpaymentsRuby::Models::PaymentVoidResponse
|
|
66
|
+
|
|
67
|
+
def initialize: (client: CloudpaymentsRuby::Client) -> void
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Subscriptions
|
|
4
|
+
def create: (
|
|
5
|
+
account_id: String,
|
|
6
|
+
amount: Float,
|
|
7
|
+
currency: String,
|
|
8
|
+
description: String,
|
|
9
|
+
interval: String,
|
|
10
|
+
period: Integer,
|
|
11
|
+
require_confirmation: bool,
|
|
12
|
+
start_date: Time,
|
|
13
|
+
token: String,
|
|
14
|
+
?customer_receipt: top,
|
|
15
|
+
?email: String,
|
|
16
|
+
?max_periods: Integer,
|
|
17
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
18
|
+
) -> CloudpaymentsRuby::Models::SubscriptionCreateResponse
|
|
19
|
+
|
|
20
|
+
def update: (
|
|
21
|
+
id: String,
|
|
22
|
+
?amount: Float,
|
|
23
|
+
?culture_name: String,
|
|
24
|
+
?currency: String,
|
|
25
|
+
?customer_receipt: top,
|
|
26
|
+
?description: String,
|
|
27
|
+
?interval: String,
|
|
28
|
+
?max_periods: Integer,
|
|
29
|
+
?period: Integer,
|
|
30
|
+
?require_confirmation: bool,
|
|
31
|
+
?start_date: Time,
|
|
32
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
33
|
+
) -> CloudpaymentsRuby::Models::SubscriptionUpdateResponse
|
|
34
|
+
|
|
35
|
+
def cancel: (
|
|
36
|
+
id: String,
|
|
37
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
38
|
+
) -> CloudpaymentsRuby::Models::SubscriptionCancelResponse
|
|
39
|
+
|
|
40
|
+
def find: (
|
|
41
|
+
account_id: String,
|
|
42
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
43
|
+
) -> CloudpaymentsRuby::Models::SubscriptionFindResponse
|
|
44
|
+
|
|
45
|
+
def get: (
|
|
46
|
+
id: String,
|
|
47
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
48
|
+
) -> CloudpaymentsRuby::Models::SubscriptionGetResponse
|
|
49
|
+
|
|
50
|
+
def initialize: (client: CloudpaymentsRuby::Client) -> void
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|