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,158 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription =
|
|
4
|
+
{
|
|
5
|
+
account_id: String,
|
|
6
|
+
amount: Float,
|
|
7
|
+
culture_name: String,
|
|
8
|
+
currency: String,
|
|
9
|
+
currency_code: Integer,
|
|
10
|
+
failed_transactions_number: Integer,
|
|
11
|
+
id: String,
|
|
12
|
+
interval: String,
|
|
13
|
+
interval_code: Integer,
|
|
14
|
+
period: Integer,
|
|
15
|
+
require_confirmation: bool,
|
|
16
|
+
start_date: String,
|
|
17
|
+
start_date_iso: String,
|
|
18
|
+
status: String,
|
|
19
|
+
status_code: Integer,
|
|
20
|
+
successful_transactions_number: Integer,
|
|
21
|
+
description: String,
|
|
22
|
+
email: String,
|
|
23
|
+
failover_scheme_id: String,
|
|
24
|
+
last_transaction_date: String,
|
|
25
|
+
last_transaction_date_iso: String,
|
|
26
|
+
max_periods: Integer,
|
|
27
|
+
next_transaction_date: String,
|
|
28
|
+
next_transaction_date_iso: String,
|
|
29
|
+
receipt: top
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
class Subscription < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
33
|
+
attr_accessor account_id: String
|
|
34
|
+
|
|
35
|
+
attr_accessor amount: Float
|
|
36
|
+
|
|
37
|
+
attr_accessor culture_name: String
|
|
38
|
+
|
|
39
|
+
attr_accessor currency: String
|
|
40
|
+
|
|
41
|
+
attr_accessor currency_code: Integer
|
|
42
|
+
|
|
43
|
+
attr_accessor failed_transactions_number: Integer
|
|
44
|
+
|
|
45
|
+
attr_accessor id: String
|
|
46
|
+
|
|
47
|
+
attr_accessor interval: String
|
|
48
|
+
|
|
49
|
+
attr_accessor interval_code: Integer
|
|
50
|
+
|
|
51
|
+
attr_accessor period: Integer
|
|
52
|
+
|
|
53
|
+
attr_accessor require_confirmation: bool
|
|
54
|
+
|
|
55
|
+
attr_accessor start_date: String
|
|
56
|
+
|
|
57
|
+
attr_accessor start_date_iso: String
|
|
58
|
+
|
|
59
|
+
attr_accessor status: String
|
|
60
|
+
|
|
61
|
+
attr_accessor status_code: Integer
|
|
62
|
+
|
|
63
|
+
attr_accessor successful_transactions_number: Integer
|
|
64
|
+
|
|
65
|
+
attr_reader description: String?
|
|
66
|
+
|
|
67
|
+
def description=: (String) -> String
|
|
68
|
+
|
|
69
|
+
attr_reader email: String?
|
|
70
|
+
|
|
71
|
+
def email=: (String) -> String
|
|
72
|
+
|
|
73
|
+
attr_reader failover_scheme_id: String?
|
|
74
|
+
|
|
75
|
+
def failover_scheme_id=: (String) -> String
|
|
76
|
+
|
|
77
|
+
attr_reader last_transaction_date: String?
|
|
78
|
+
|
|
79
|
+
def last_transaction_date=: (String) -> String
|
|
80
|
+
|
|
81
|
+
attr_reader last_transaction_date_iso: String?
|
|
82
|
+
|
|
83
|
+
def last_transaction_date_iso=: (String) -> String
|
|
84
|
+
|
|
85
|
+
attr_reader max_periods: Integer?
|
|
86
|
+
|
|
87
|
+
def max_periods=: (Integer) -> Integer
|
|
88
|
+
|
|
89
|
+
attr_reader next_transaction_date: String?
|
|
90
|
+
|
|
91
|
+
def next_transaction_date=: (String) -> String
|
|
92
|
+
|
|
93
|
+
attr_reader next_transaction_date_iso: String?
|
|
94
|
+
|
|
95
|
+
def next_transaction_date_iso=: (String) -> String
|
|
96
|
+
|
|
97
|
+
attr_reader receipt: top?
|
|
98
|
+
|
|
99
|
+
def receipt=: (top) -> top
|
|
100
|
+
|
|
101
|
+
def initialize: (
|
|
102
|
+
account_id: String,
|
|
103
|
+
amount: Float,
|
|
104
|
+
culture_name: String,
|
|
105
|
+
currency: String,
|
|
106
|
+
currency_code: Integer,
|
|
107
|
+
failed_transactions_number: Integer,
|
|
108
|
+
id: String,
|
|
109
|
+
interval: String,
|
|
110
|
+
interval_code: Integer,
|
|
111
|
+
period: Integer,
|
|
112
|
+
require_confirmation: bool,
|
|
113
|
+
start_date: String,
|
|
114
|
+
start_date_iso: String,
|
|
115
|
+
status: String,
|
|
116
|
+
status_code: Integer,
|
|
117
|
+
successful_transactions_number: Integer,
|
|
118
|
+
?description: String,
|
|
119
|
+
?email: String,
|
|
120
|
+
?failover_scheme_id: String,
|
|
121
|
+
?last_transaction_date: String,
|
|
122
|
+
?last_transaction_date_iso: String,
|
|
123
|
+
?max_periods: Integer,
|
|
124
|
+
?next_transaction_date: String,
|
|
125
|
+
?next_transaction_date_iso: String,
|
|
126
|
+
?receipt: top
|
|
127
|
+
) -> void
|
|
128
|
+
|
|
129
|
+
def to_hash: -> {
|
|
130
|
+
account_id: String,
|
|
131
|
+
amount: Float,
|
|
132
|
+
culture_name: String,
|
|
133
|
+
currency: String,
|
|
134
|
+
currency_code: Integer,
|
|
135
|
+
failed_transactions_number: Integer,
|
|
136
|
+
id: String,
|
|
137
|
+
interval: String,
|
|
138
|
+
interval_code: Integer,
|
|
139
|
+
period: Integer,
|
|
140
|
+
require_confirmation: bool,
|
|
141
|
+
start_date: String,
|
|
142
|
+
start_date_iso: String,
|
|
143
|
+
status: String,
|
|
144
|
+
status_code: Integer,
|
|
145
|
+
successful_transactions_number: Integer,
|
|
146
|
+
description: String,
|
|
147
|
+
email: String,
|
|
148
|
+
failover_scheme_id: String,
|
|
149
|
+
last_transaction_date: String,
|
|
150
|
+
last_transaction_date_iso: String,
|
|
151
|
+
max_periods: Integer,
|
|
152
|
+
next_transaction_date: String,
|
|
153
|
+
next_transaction_date_iso: String,
|
|
154
|
+
receipt: top
|
|
155
|
+
}
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_cancel_params =
|
|
4
|
+
{ id: String } & CloudpaymentsRuby::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SubscriptionCancelParams < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
7
|
+
extend CloudpaymentsRuby::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include CloudpaymentsRuby::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: CloudpaymentsRuby::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_cancel_response = { success: bool, message: String }
|
|
4
|
+
|
|
5
|
+
class SubscriptionCancelResponse < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor success: bool
|
|
7
|
+
|
|
8
|
+
attr_reader message: String?
|
|
9
|
+
|
|
10
|
+
def message=: (String) -> String
|
|
11
|
+
|
|
12
|
+
def initialize: (success: bool, ?message: String) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { success: bool, message: String }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_create_params =
|
|
4
|
+
{
|
|
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
|
+
}
|
|
18
|
+
& CloudpaymentsRuby::Internal::Type::request_parameters
|
|
19
|
+
|
|
20
|
+
class SubscriptionCreateParams < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
21
|
+
extend CloudpaymentsRuby::Internal::Type::RequestParameters::Converter
|
|
22
|
+
include CloudpaymentsRuby::Internal::Type::RequestParameters
|
|
23
|
+
|
|
24
|
+
attr_accessor account_id: String
|
|
25
|
+
|
|
26
|
+
attr_accessor amount: Float
|
|
27
|
+
|
|
28
|
+
attr_accessor currency: String
|
|
29
|
+
|
|
30
|
+
attr_accessor description: String
|
|
31
|
+
|
|
32
|
+
attr_accessor interval: String
|
|
33
|
+
|
|
34
|
+
attr_accessor period: Integer
|
|
35
|
+
|
|
36
|
+
attr_accessor require_confirmation: bool
|
|
37
|
+
|
|
38
|
+
attr_accessor start_date: Time
|
|
39
|
+
|
|
40
|
+
attr_accessor token: String
|
|
41
|
+
|
|
42
|
+
attr_reader customer_receipt: top?
|
|
43
|
+
|
|
44
|
+
def customer_receipt=: (top) -> top
|
|
45
|
+
|
|
46
|
+
attr_reader email: String?
|
|
47
|
+
|
|
48
|
+
def email=: (String) -> String
|
|
49
|
+
|
|
50
|
+
attr_reader max_periods: Integer?
|
|
51
|
+
|
|
52
|
+
def max_periods=: (Integer) -> Integer
|
|
53
|
+
|
|
54
|
+
def initialize: (
|
|
55
|
+
account_id: String,
|
|
56
|
+
amount: Float,
|
|
57
|
+
currency: String,
|
|
58
|
+
description: String,
|
|
59
|
+
interval: String,
|
|
60
|
+
period: Integer,
|
|
61
|
+
require_confirmation: bool,
|
|
62
|
+
start_date: Time,
|
|
63
|
+
token: String,
|
|
64
|
+
?customer_receipt: top,
|
|
65
|
+
?email: String,
|
|
66
|
+
?max_periods: Integer,
|
|
67
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
account_id: String,
|
|
72
|
+
amount: Float,
|
|
73
|
+
currency: String,
|
|
74
|
+
description: String,
|
|
75
|
+
interval: String,
|
|
76
|
+
period: Integer,
|
|
77
|
+
require_confirmation: bool,
|
|
78
|
+
start_date: Time,
|
|
79
|
+
token: String,
|
|
80
|
+
customer_receipt: top,
|
|
81
|
+
email: String,
|
|
82
|
+
max_periods: Integer,
|
|
83
|
+
request_options: CloudpaymentsRuby::RequestOptions
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_create_response =
|
|
4
|
+
{ success: bool, message: String, model: CloudpaymentsRuby::Subscription }
|
|
5
|
+
|
|
6
|
+
class SubscriptionCreateResponse < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor success: bool
|
|
8
|
+
|
|
9
|
+
attr_reader message: String?
|
|
10
|
+
|
|
11
|
+
def message=: (String) -> String
|
|
12
|
+
|
|
13
|
+
attr_reader model: CloudpaymentsRuby::Subscription?
|
|
14
|
+
|
|
15
|
+
def model=: (
|
|
16
|
+
CloudpaymentsRuby::Subscription
|
|
17
|
+
) -> CloudpaymentsRuby::Subscription
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
success: bool,
|
|
21
|
+
?message: String,
|
|
22
|
+
?model: CloudpaymentsRuby::Subscription
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
success: bool,
|
|
27
|
+
message: String,
|
|
28
|
+
model: CloudpaymentsRuby::Subscription
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_find_params =
|
|
4
|
+
{ account_id: String }
|
|
5
|
+
& CloudpaymentsRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class SubscriptionFindParams < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
8
|
+
extend CloudpaymentsRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include CloudpaymentsRuby::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor account_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
account_id: String,
|
|
15
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
account_id: String,
|
|
20
|
+
request_options: CloudpaymentsRuby::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_find_response =
|
|
4
|
+
{
|
|
5
|
+
success: bool,
|
|
6
|
+
message: String,
|
|
7
|
+
model: ::Array[CloudpaymentsRuby::Subscription]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SubscriptionFindResponse < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor success: bool
|
|
12
|
+
|
|
13
|
+
attr_reader message: String?
|
|
14
|
+
|
|
15
|
+
def message=: (String) -> String
|
|
16
|
+
|
|
17
|
+
attr_reader model: ::Array[CloudpaymentsRuby::Subscription]?
|
|
18
|
+
|
|
19
|
+
def model=: (
|
|
20
|
+
::Array[CloudpaymentsRuby::Subscription]
|
|
21
|
+
) -> ::Array[CloudpaymentsRuby::Subscription]
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
success: bool,
|
|
25
|
+
?message: String,
|
|
26
|
+
?model: ::Array[CloudpaymentsRuby::Subscription]
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
success: bool,
|
|
31
|
+
message: String,
|
|
32
|
+
model: ::Array[CloudpaymentsRuby::Subscription]
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_get_params =
|
|
4
|
+
{ id: String } & CloudpaymentsRuby::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SubscriptionGetParams < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
7
|
+
extend CloudpaymentsRuby::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include CloudpaymentsRuby::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
id: String,
|
|
19
|
+
request_options: CloudpaymentsRuby::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_get_response =
|
|
4
|
+
{ success: bool, message: String, model: CloudpaymentsRuby::Subscription }
|
|
5
|
+
|
|
6
|
+
class SubscriptionGetResponse < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor success: bool
|
|
8
|
+
|
|
9
|
+
attr_reader message: String?
|
|
10
|
+
|
|
11
|
+
def message=: (String) -> String
|
|
12
|
+
|
|
13
|
+
attr_reader model: CloudpaymentsRuby::Subscription?
|
|
14
|
+
|
|
15
|
+
def model=: (
|
|
16
|
+
CloudpaymentsRuby::Subscription
|
|
17
|
+
) -> CloudpaymentsRuby::Subscription
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
success: bool,
|
|
21
|
+
?message: String,
|
|
22
|
+
?model: CloudpaymentsRuby::Subscription
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
success: bool,
|
|
27
|
+
message: String,
|
|
28
|
+
model: CloudpaymentsRuby::Subscription
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_update_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Float,
|
|
7
|
+
culture_name: String,
|
|
8
|
+
currency: String,
|
|
9
|
+
customer_receipt: top,
|
|
10
|
+
description: String,
|
|
11
|
+
interval: String,
|
|
12
|
+
max_periods: Integer,
|
|
13
|
+
period: Integer,
|
|
14
|
+
require_confirmation: bool,
|
|
15
|
+
start_date: Time
|
|
16
|
+
}
|
|
17
|
+
& CloudpaymentsRuby::Internal::Type::request_parameters
|
|
18
|
+
|
|
19
|
+
class SubscriptionUpdateParams < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
20
|
+
extend CloudpaymentsRuby::Internal::Type::RequestParameters::Converter
|
|
21
|
+
include CloudpaymentsRuby::Internal::Type::RequestParameters
|
|
22
|
+
|
|
23
|
+
attr_accessor id: String
|
|
24
|
+
|
|
25
|
+
attr_reader amount: Float?
|
|
26
|
+
|
|
27
|
+
def amount=: (Float) -> Float
|
|
28
|
+
|
|
29
|
+
attr_reader culture_name: String?
|
|
30
|
+
|
|
31
|
+
def culture_name=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader currency: String?
|
|
34
|
+
|
|
35
|
+
def currency=: (String) -> String
|
|
36
|
+
|
|
37
|
+
attr_reader customer_receipt: top?
|
|
38
|
+
|
|
39
|
+
def customer_receipt=: (top) -> top
|
|
40
|
+
|
|
41
|
+
attr_reader description: String?
|
|
42
|
+
|
|
43
|
+
def description=: (String) -> String
|
|
44
|
+
|
|
45
|
+
attr_reader interval: String?
|
|
46
|
+
|
|
47
|
+
def interval=: (String) -> String
|
|
48
|
+
|
|
49
|
+
attr_reader max_periods: Integer?
|
|
50
|
+
|
|
51
|
+
def max_periods=: (Integer) -> Integer
|
|
52
|
+
|
|
53
|
+
attr_reader period: Integer?
|
|
54
|
+
|
|
55
|
+
def period=: (Integer) -> Integer
|
|
56
|
+
|
|
57
|
+
attr_reader require_confirmation: bool?
|
|
58
|
+
|
|
59
|
+
def require_confirmation=: (bool) -> bool
|
|
60
|
+
|
|
61
|
+
attr_reader start_date: Time?
|
|
62
|
+
|
|
63
|
+
def start_date=: (Time) -> Time
|
|
64
|
+
|
|
65
|
+
def initialize: (
|
|
66
|
+
id: String,
|
|
67
|
+
?amount: Float,
|
|
68
|
+
?culture_name: String,
|
|
69
|
+
?currency: String,
|
|
70
|
+
?customer_receipt: top,
|
|
71
|
+
?description: String,
|
|
72
|
+
?interval: String,
|
|
73
|
+
?max_periods: Integer,
|
|
74
|
+
?period: Integer,
|
|
75
|
+
?require_confirmation: bool,
|
|
76
|
+
?start_date: Time,
|
|
77
|
+
?request_options: CloudpaymentsRuby::request_opts
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
id: String,
|
|
82
|
+
amount: Float,
|
|
83
|
+
culture_name: String,
|
|
84
|
+
currency: String,
|
|
85
|
+
customer_receipt: top,
|
|
86
|
+
description: String,
|
|
87
|
+
interval: String,
|
|
88
|
+
max_periods: Integer,
|
|
89
|
+
period: Integer,
|
|
90
|
+
require_confirmation: bool,
|
|
91
|
+
start_date: Time,
|
|
92
|
+
request_options: CloudpaymentsRuby::RequestOptions
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module CloudpaymentsRuby
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_update_response =
|
|
4
|
+
{ success: bool, message: String, model: CloudpaymentsRuby::Subscription }
|
|
5
|
+
|
|
6
|
+
class SubscriptionUpdateResponse < CloudpaymentsRuby::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor success: bool
|
|
8
|
+
|
|
9
|
+
attr_reader message: String?
|
|
10
|
+
|
|
11
|
+
def message=: (String) -> String
|
|
12
|
+
|
|
13
|
+
attr_reader model: CloudpaymentsRuby::Subscription?
|
|
14
|
+
|
|
15
|
+
def model=: (
|
|
16
|
+
CloudpaymentsRuby::Subscription
|
|
17
|
+
) -> CloudpaymentsRuby::Subscription
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
success: bool,
|
|
21
|
+
?message: String,
|
|
22
|
+
?model: CloudpaymentsRuby::Subscription
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
success: bool,
|
|
27
|
+
message: String,
|
|
28
|
+
model: CloudpaymentsRuby::Subscription
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|