lunixi-sdk 1.3.1 → 2.2.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 +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +44 -9
- data/README.tr.md +39 -8
- data/docs/card-rewards.md +21 -0
- data/docs/ruby.en.md +11 -1
- data/docs/ruby.tr.md +11 -1
- data/lib/lunixi/bank_connect.rb +132 -15
- data/lib/lunixi/bank_connect_filters.rb +13 -3
- data/lib/lunixi/bank_connect_pos.rb +165 -0
- data/lib/lunixi/bank_connect_values.rb +127 -5
- data/lib/lunixi/card_requests.rb +34 -5
- data/lib/lunixi/client.rb +15 -8
- data/lib/lunixi/direct_method_payment_request.rb +27 -3
- data/lib/lunixi/fraud.rb +3 -2
- data/lib/lunixi/fraud_uk_claims.rb +127 -0
- data/lib/lunixi/fraud_values.rb +46 -0
- data/lib/lunixi/marketplace.rb +8 -2
- data/lib/lunixi/order_details.rb +115 -0
- data/lib/lunixi/payment_link_rules.rb +13 -1
- data/lib/lunixi/payment_link_values.rb +9 -3
- data/lib/lunixi/payment_links.rb +3 -1
- data/lib/lunixi/payment_values.rb +22 -2
- data/lib/lunixi/payments.rb +45 -9
- data/lib/lunixi/product_webhooks.rb +17 -1
- data/lib/lunixi/route_table.rb +10 -5
- data/lib/lunixi/routing_pin.rb +247 -0
- data/lib/lunixi/sanction.rb +77 -17
- data/lib/lunixi/sanction_batch.rb +215 -0
- data/lib/lunixi/sanction_values.rb +289 -5
- data/lib/lunixi/split_payment.rb +22 -2
- data/lib/lunixi/subscription_resources.rb +3 -1
- data/lib/lunixi/subscription_routing.rb +70 -0
- data/lib/lunixi/subscription_values.rb +40 -4
- data/lib/lunixi/subscriptions.rb +22 -2
- data/lib/lunixi/version.rb +1 -1
- data/lib/lunixi/wallet_resources.rb +7 -2
- data/lib/lunixi/wallet_routes.rb +5 -2
- data/lib/lunixi.rb +7 -0
- metadata +9 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lunixi
|
|
4
|
+
# routing of a subscription with a pin (SUBSCRIPTION_ROUTING_FIELDS): the pin of its charges
|
|
5
|
+
# (requested, given fields only) and, while the charges are stopped by the pin, the block (block_code
|
|
6
|
+
# payment.routing.*, block_reason a RoutingPinReason value or nil, blocked_at ISO 8601).
|
|
7
|
+
class SubscriptionRouting
|
|
8
|
+
attr_reader :requested, :block_code, :block_reason, :blocked_at, :raw
|
|
9
|
+
|
|
10
|
+
# routing of a subscription (or of a response's data), or nil without a pin.
|
|
11
|
+
def self.from_subscription(subscription)
|
|
12
|
+
data = subscription.is_a?(Hash) && subscription.key?('data') ? subscription['data'] : subscription
|
|
13
|
+
routing = data.is_a?(Hash) ? data['routing'] : nil
|
|
14
|
+
routing.is_a?(Hash) ? new(routing.transform_keys(&:to_s)) : nil
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The given fields of a pin Hash (providerCode, credentialId, mode).
|
|
18
|
+
def self.pin_of(value)
|
|
19
|
+
return {} unless value.is_a?(Hash)
|
|
20
|
+
|
|
21
|
+
value.transform_keys(&:to_s).slice(*ROUTING_PIN_FIELDS).select { |_, entry| entry.is_a?(String) && !entry.empty? }
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def initialize(data)
|
|
25
|
+
@raw = data.freeze
|
|
26
|
+
@requested = self.class.pin_of(data['requested']).freeze
|
|
27
|
+
block = data['blocked'].is_a?(Hash) ? data['blocked'].transform_keys(&:to_s) : nil
|
|
28
|
+
@blocked = !block.nil?
|
|
29
|
+
@block_code = block && text(block['code'])
|
|
30
|
+
@block_reason = block && text(block['reason'])
|
|
31
|
+
@blocked_at = block && text(block['at'])
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# True while the charges are stopped by the pin.
|
|
35
|
+
def blocked?
|
|
36
|
+
@blocked
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
private
|
|
40
|
+
|
|
41
|
+
def text(value)
|
|
42
|
+
value.is_a?(String) && !value.empty? ? value : nil
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# The data of a verified subscription.routing_pin_blocked webhook (SUBSCRIPTION_ROUTING_PIN_BLOCKED_FIELDS);
|
|
47
|
+
# raw keeps the whole data.
|
|
48
|
+
class SubscriptionRoutingPinBlocked
|
|
49
|
+
attr_reader :subscription_id, :invoice_id, :routing, :code, :reason, :blocked_at, :raw
|
|
50
|
+
|
|
51
|
+
# event_type and data of the verified event; another type raises ConfigurationError.
|
|
52
|
+
def self.from_event(event_type, data)
|
|
53
|
+
unless event_type == SubscriptionEvents::ROUTING_PIN_BLOCKED
|
|
54
|
+
raise ConfigurationError, "Expected a '#{SubscriptionEvents::ROUTING_PIN_BLOCKED}' event, got '#{event_type}'"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
new(data.is_a?(Hash) ? data.transform_keys(&:to_s) : {})
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def initialize(data)
|
|
61
|
+
@raw = data.freeze
|
|
62
|
+
@subscription_id = data['subscriptionId'].to_s
|
|
63
|
+
@invoice_id = data['invoiceId'].to_s
|
|
64
|
+
@routing = SubscriptionRouting.pin_of(data['routing']).freeze
|
|
65
|
+
@code = data['code'].to_s
|
|
66
|
+
@reason = data['reason'].is_a?(String) && !data['reason'].empty? ? data['reason'] : nil
|
|
67
|
+
@blocked_at = data['blockedAt'].is_a?(String) && !data['blockedAt'].empty? ? data['blockedAt'] : nil
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
module Lunixi
|
|
3
|
+
module Lunixi # rubocop:disable Metrics/ModuleLength -- one constant group per catalog value set
|
|
4
4
|
# Subscription values and routes (/api/v1/subscriptions, and the portal-link routes under
|
|
5
5
|
# /api/panel/v1/subscriptions/portal). The same codes as the Node and PHP SDKs.
|
|
6
6
|
|
|
@@ -41,6 +41,13 @@ module Lunixi
|
|
|
41
41
|
ALL = [DRAFT, OPEN, PAID, UNCOLLECTIBLE, VOID].freeze
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
# Errors of customers.upsert: a missing or invalid customer field (details.field).
|
|
45
|
+
module SubscriptionCustomerErrorCode
|
|
46
|
+
FIELD_REQUIRED = 'subscription.customer.field_required'
|
|
47
|
+
FIELD_INVALID = 'subscription.customer.field_invalid'
|
|
48
|
+
ALL = [FIELD_REQUIRED, FIELD_INVALID].freeze
|
|
49
|
+
end
|
|
50
|
+
|
|
44
51
|
# How invoices are collected (collectionMethod): the saved card is charged each cycle (AUTO_CHARGE,
|
|
45
52
|
# the default), the invoice is finalised but not charged (SEND_INVOICE), or collection is up to you
|
|
46
53
|
# (MANUAL).
|
|
@@ -99,8 +106,16 @@ module Lunixi
|
|
|
99
106
|
PENDING_CHANGE_APPLIED = 'subscription.pending_change_applied'
|
|
100
107
|
PAYMENT_CARD_SWAPPED = 'subscription.payment_card_swapped'
|
|
101
108
|
PAYMENT_METHOD_LOST = 'subscription.payment_method_lost'
|
|
109
|
+
# A charge stopped because of the subscription's routing pin (a STRICT target cannot take it); data:
|
|
110
|
+
# SUBSCRIPTION_ROUTING_PIN_BLOCKED_FIELDS. The subscription waits in PAST_DUE (not canceled, not
|
|
111
|
+
# UNPAID) and the invoice is not retried automatically: change the pin with update_routing (the open
|
|
112
|
+
# invoice is charged again in the next retry round) or, once the connection is fixed, retry the
|
|
113
|
+
# invoice. Sent once per block.
|
|
114
|
+
ROUTING_PIN_BLOCKED = 'subscription.routing_pin_blocked'
|
|
102
115
|
INVOICE_CREATED = 'invoice.created'
|
|
103
116
|
INVOICE_PAID = 'invoice.paid'
|
|
117
|
+
# data.retryable false (with nextRetryAt nil): the charge stopped because of the routing pin and is
|
|
118
|
+
# not retried automatically.
|
|
104
119
|
INVOICE_PAYMENT_FAILED = 'invoice.payment_failed'
|
|
105
120
|
INVOICE_VOIDED = 'invoice.voided'
|
|
106
121
|
CARD_ADDED = 'card.added'
|
|
@@ -110,7 +125,8 @@ module Lunixi
|
|
|
110
125
|
CARD_EXPIRING_SOON = 'card.expiring_soon'
|
|
111
126
|
CARD_EXPIRED = 'card.expired'
|
|
112
127
|
ALL = [CREATED, ACTIVATED, TRIAL_WILL_END, PAUSED, RESUMED, CANCEL_SCHEDULED, CANCELED, UPGRADED, DOWNGRADED, PLAN_CHANGE_SCHEDULED,
|
|
113
|
-
PENDING_CHANGE_APPLIED, PAYMENT_CARD_SWAPPED, PAYMENT_METHOD_LOST, INVOICE_CREATED, INVOICE_PAID,
|
|
128
|
+
PENDING_CHANGE_APPLIED, PAYMENT_CARD_SWAPPED, PAYMENT_METHOD_LOST, ROUTING_PIN_BLOCKED, INVOICE_CREATED, INVOICE_PAID,
|
|
129
|
+
INVOICE_PAYMENT_FAILED,
|
|
114
130
|
INVOICE_VOIDED, CARD_ADDED, CARD_SET_DEFAULT, CARD_UPDATED, CARD_DEACTIVATED, CARD_EXPIRING_SOON, CARD_EXPIRED].freeze
|
|
115
131
|
end
|
|
116
132
|
|
|
@@ -122,6 +138,17 @@ module Lunixi
|
|
|
122
138
|
# Fields of a plan's billing rule.
|
|
123
139
|
SUBSCRIPTION_BILLING_RULE_FIELDS = %w[frequency interval byMonthDay byWeekDay timezone lastDayOfMonthFix count].freeze
|
|
124
140
|
|
|
141
|
+
# Fields of a subscription's routing (only on a subscription with a pin): requested (the pin; a field
|
|
142
|
+
# not given is nil) and blocked (SUBSCRIPTION_ROUTING_BLOCK_FIELDS, or nil).
|
|
143
|
+
SUBSCRIPTION_ROUTING_FIELDS = %w[requested blocked].freeze
|
|
144
|
+
|
|
145
|
+
# Fields of routing.blocked: code (payment.routing.*), reason (a RoutingPinReason value or nil), at
|
|
146
|
+
# (ISO 8601).
|
|
147
|
+
SUBSCRIPTION_ROUTING_BLOCK_FIELDS = %w[code reason at].freeze
|
|
148
|
+
|
|
149
|
+
# Fields of the subscription.routing_pin_blocked event data.
|
|
150
|
+
SUBSCRIPTION_ROUTING_PIN_BLOCKED_FIELDS = %w[subscriptionId invoiceId routing code reason blockedAt].freeze
|
|
151
|
+
|
|
125
152
|
subscriptions_base = '/api/v1/subscriptions'
|
|
126
153
|
portal_panel = '/api/panel/v1/subscriptions/portal'
|
|
127
154
|
cursor_query = %w[pageSize pageToken].freeze
|
|
@@ -137,7 +164,7 @@ module Lunixi
|
|
|
137
164
|
'create' => route.call('POST', "#{subscriptions_base}/subscriptions",
|
|
138
165
|
idempotency_key: 'required', required: %w[customerId planId idempotencyKey],
|
|
139
166
|
optional: %w[paymentCardId paymentMethodId collectionMethod priceUpdatePolicy entitlementPolicy billingTimezone startsAt
|
|
140
|
-
chargeOnCreate billingCycleAnchorOverride skipTrial metadata]),
|
|
167
|
+
chargeOnCreate billingCycleAnchorOverride skipTrial metadata routing]),
|
|
141
168
|
'get' => route.call('GET', "#{subscriptions_base}/subscriptions/:subscriptionId"),
|
|
142
169
|
'list' => route.call('GET', "#{subscriptions_base}/subscriptions", query: %w[customerId status] + cursor_query),
|
|
143
170
|
'cancel' => route.call('POST', "#{subscriptions_base}/subscriptions/:subscriptionId/cancel", required: %w[cancelAtPeriodEnd], optional: %w[reason]),
|
|
@@ -145,6 +172,9 @@ module Lunixi
|
|
|
145
172
|
'resume' => route.call('POST', "#{subscriptions_base}/subscriptions/:subscriptionId/resume"),
|
|
146
173
|
'changePlan' => route.call('POST', "#{subscriptions_base}/subscriptions/:subscriptionId/change-plan",
|
|
147
174
|
idempotency_key: 'optional', required: %w[newPlanId], optional: %w[behavior reason idempotencyKey]),
|
|
175
|
+
# routing nil removes the pin; the key is required (an empty body is 400).
|
|
176
|
+
'updateRouting' => route.call('POST', "#{subscriptions_base}/subscriptions/:subscriptionId/routing",
|
|
177
|
+
required: %w[routing], optional: %w[reason]),
|
|
148
178
|
'auditLogs' => route.call('GET', "#{subscriptions_base}/subscriptions/:subscriptionId/audit-logs", query: %w[limit pageToken]),
|
|
149
179
|
|
|
150
180
|
'plans.create' => route.call('POST', "#{subscriptions_base}/plans",
|
|
@@ -157,8 +187,14 @@ module Lunixi
|
|
|
157
187
|
'plans.translations' => route.call('GET', "#{subscriptions_base}/plans/:planId/translations"),
|
|
158
188
|
'plans.upsertTranslation' => route.call('PATCH', "#{subscriptions_base}/plans/:planId/translations/:locale", free: true),
|
|
159
189
|
|
|
190
|
+
# Renewals take the buyer from this record: identity and billing details are required (400
|
|
191
|
+
# subscription.customer.field_required).
|
|
160
192
|
'customers.upsert' => route.call('PUT', "#{subscriptions_base}/customers",
|
|
161
|
-
idempotency_key: 'optional',
|
|
193
|
+
idempotency_key: 'optional',
|
|
194
|
+
required: %w[externalId name surname email gsmNumber identityNumber billingAddress billingCity billingCountry
|
|
195
|
+
billingZipCode],
|
|
196
|
+
optional: %w[billingContactName shippingContactName shippingAddress shippingCity shippingCountry
|
|
197
|
+
shippingZipCode]),
|
|
162
198
|
'customers.get' => route.call('GET', "#{subscriptions_base}/customers/:customerId"),
|
|
163
199
|
'customers.getByExternalId' => route.call('GET', "#{subscriptions_base}/customers/by-external/:externalId"),
|
|
164
200
|
'customers.list' => route.call('GET', "#{subscriptions_base}/customers", query: %w[search includeArchived] + cursor_query),
|
data/lib/lunixi/subscriptions.rb
CHANGED
|
@@ -60,8 +60,11 @@ module Lunixi
|
|
|
60
60
|
|
|
61
61
|
# { customerId, planId, paymentCardId?, paymentMethodId?, collectionMethod?, priceUpdatePolicy?,
|
|
62
62
|
# entitlementPolicy?, billingTimezone?, startsAt?, chargeOnCreate?, billingCycleAnchorOverride?,
|
|
63
|
-
# skipTrial?, metadata? }. The Idempotency-Key is required (idempotency_key: or the request's
|
|
64
|
-
# idempotencyKey; both given, they must agree) and is sent in the body as well.
|
|
63
|
+
# skipTrial?, metadata?, routing? }. The Idempotency-Key is required (idempotency_key: or the request's
|
|
64
|
+
# idempotencyKey; both given, they must agree) and is sent in the body as well. routing
|
|
65
|
+
# ({ providerCode:, credentialId:, mode: }) is stored on the subscription and sent with every period
|
|
66
|
+
# charge and retry; these charges have no 3D Secure step, so a STRICT target that needs it answers
|
|
67
|
+
# 422 payment.routing.pin_not_eligible and the charge is not retried daily.
|
|
65
68
|
def create(request, idempotency_key: nil)
|
|
66
69
|
body = RouteRequest.wire_hash!(request, 'create request')
|
|
67
70
|
key = RouteTable.idempotency_key_of('create', body, idempotency_key)
|
|
@@ -71,6 +74,7 @@ module Lunixi
|
|
|
71
74
|
SubscriptionRules.boolean!(body, 'skipTrial')
|
|
72
75
|
raise ConfigurationError, "'metadata' must be a Hash." if body.key?('metadata') && !body['metadata'].is_a?(Hash)
|
|
73
76
|
|
|
77
|
+
RoutingPin.field!(body)
|
|
74
78
|
@routes.data('create', body: body, idempotency_key: key)
|
|
75
79
|
end
|
|
76
80
|
|
|
@@ -115,6 +119,22 @@ module Lunixi
|
|
|
115
119
|
@routes.data('changePlan', params: { 'subscriptionId' => subscription_id }, body: body, idempotency_key: key)
|
|
116
120
|
end
|
|
117
121
|
|
|
122
|
+
# Changes the routing pin of the subscription's charges (POST …/subscriptions/{id}/routing). routing
|
|
123
|
+
# is a pin Hash ({ providerCode:, credentialId:, mode: }) or nil to remove the pin (normal routing);
|
|
124
|
+
# reason (at most 500 characters) goes to the audit trail. The block mark is cleared and an open
|
|
125
|
+
# invoice held by the old pin is charged again in the next retry round. Returns the subscription
|
|
126
|
+
# (read its pin with Lunixi::SubscriptionRouting.from_subscription).
|
|
127
|
+
def update_routing(subscription_id, routing, reason: nil)
|
|
128
|
+
body = { 'routing' => routing.nil? ? nil : RoutingPin.pin!(routing) }
|
|
129
|
+
unless reason.nil? || reason == ''
|
|
130
|
+
raise ConfigurationError, 'reason must be a String' unless reason.is_a?(String)
|
|
131
|
+
raise ConfigurationError, 'reason must be at most 500 characters' if reason.length > 500
|
|
132
|
+
|
|
133
|
+
body['reason'] = reason
|
|
134
|
+
end
|
|
135
|
+
@routes.data('updateRouting', params: { 'subscriptionId' => subscription_id }, body: body, null_fields: %w[routing])
|
|
136
|
+
end
|
|
137
|
+
|
|
118
138
|
# The audit trail of a subscription; filters limit, pageToken.
|
|
119
139
|
def audit_logs(subscription_id, **filters)
|
|
120
140
|
@routes.token_page('auditLogs', params: { 'subscriptionId' => subscription_id }, query: filters)
|
data/lib/lunixi/version.rb
CHANGED
|
@@ -258,9 +258,14 @@ module Lunixi
|
|
|
258
258
|
end
|
|
259
259
|
|
|
260
260
|
# Starts a card top-up. Render checkoutFormContent (or follow redirectUrl / threeDsHtml); the wallet is
|
|
261
|
-
# credited when the payment completes (wallet.topup.completed).
|
|
261
|
+
# credited when the payment completes (wallet.topup.completed). buyer and billingAddress are required
|
|
262
|
+
# (OrderDetails, no basket), shippingAddress is optional; a missing field raises ConfigurationError
|
|
263
|
+
# naming its path before sending.
|
|
262
264
|
def start_card(request, idempotency_key: nil)
|
|
263
|
-
|
|
265
|
+
route = WALLET_ROUTES.fetch('startCardTopup')
|
|
266
|
+
body = RouteRequest.fields!(request || {}, route['required'], route['optional'], 'startCardTopup')
|
|
267
|
+
OrderDetails.check!(body, 'A wallet card top-up', basket: false)
|
|
268
|
+
@invoker.data('startCardTopup', body: body, idempotency_key: idempotency_key)
|
|
264
269
|
end
|
|
265
270
|
|
|
266
271
|
# { operation, history }
|
data/lib/lunixi/wallet_routes.rb
CHANGED
|
@@ -82,9 +82,12 @@ module Lunixi
|
|
|
82
82
|
'getOperation' => route.call('GET', '/operations/:operationId', idempotency_key: false),
|
|
83
83
|
'getOperationReceipt' => route.call('GET', '/operations/:operationId/receipt', idempotency_key: false),
|
|
84
84
|
|
|
85
|
+
# The payment provider requires the buyer (buyer.ip: the user's browser IP) and the billing address;
|
|
86
|
+
# a missing field is 400 payment.order.field_required with the paths in details.fields.
|
|
85
87
|
'startCardTopup' => route.call('POST', '/topups/card',
|
|
86
|
-
idempotency_key: true, required: %w[creditWalletAccountId amount currency],
|
|
87
|
-
optional: %w[fundingMerchantId savedCardUserKey savedCardToken savedConsumerToken savedPublicCardStorageToken
|
|
88
|
+
idempotency_key: true, required: %w[creditWalletAccountId amount currency buyer billingAddress],
|
|
89
|
+
optional: %w[fundingMerchantId savedCardUserKey savedCardToken savedConsumerToken savedPublicCardStorageToken
|
|
90
|
+
returnUrl shippingAddress]),
|
|
88
91
|
'getTopup' => route.call('GET', '/topups/:operationId', idempotency_key: false),
|
|
89
92
|
# The gateway DTO marks approverPrincipal optional, but the wallet service refuses the refund without
|
|
90
93
|
# it (400 WALLET_VALIDATION): it is required in practice.
|
data/lib/lunixi.rb
CHANGED
|
@@ -9,6 +9,8 @@ require_relative 'lunixi/product_category'
|
|
|
9
9
|
require_relative 'lunixi/signer'
|
|
10
10
|
require_relative 'lunixi/transport'
|
|
11
11
|
require_relative 'lunixi/payment_values'
|
|
12
|
+
require_relative 'lunixi/routing_pin'
|
|
13
|
+
require_relative 'lunixi/order_details'
|
|
12
14
|
require_relative 'lunixi/method_fields'
|
|
13
15
|
require_relative 'lunixi/promissory_note'
|
|
14
16
|
require_relative 'lunixi/bank_transfer'
|
|
@@ -19,6 +21,8 @@ require_relative 'lunixi/card_requests'
|
|
|
19
21
|
require_relative 'lunixi/payments'
|
|
20
22
|
require_relative 'lunixi/reference'
|
|
21
23
|
require_relative 'lunixi/checkout'
|
|
24
|
+
require_relative 'lunixi/fraud_values'
|
|
25
|
+
require_relative 'lunixi/fraud_uk_claims'
|
|
22
26
|
require_relative 'lunixi/fraud'
|
|
23
27
|
require_relative 'lunixi/payment_link_values'
|
|
24
28
|
require_relative 'lunixi/payment_link_rules'
|
|
@@ -50,7 +54,9 @@ require_relative 'lunixi/wallet_resources'
|
|
|
50
54
|
require_relative 'lunixi/bank_connect_values'
|
|
51
55
|
require_relative 'lunixi/bank_connect_filters'
|
|
52
56
|
require_relative 'lunixi/bank_connect'
|
|
57
|
+
require_relative 'lunixi/bank_connect_pos'
|
|
53
58
|
require_relative 'lunixi/sanction_values'
|
|
59
|
+
require_relative 'lunixi/sanction_batch'
|
|
54
60
|
require_relative 'lunixi/sanction'
|
|
55
61
|
require_relative 'lunixi/insurance_values'
|
|
56
62
|
require_relative 'lunixi/insurance_request'
|
|
@@ -58,6 +64,7 @@ require_relative 'lunixi/insurance'
|
|
|
58
64
|
require_relative 'lunixi/route_table'
|
|
59
65
|
require_relative 'lunixi/subscription_values'
|
|
60
66
|
require_relative 'lunixi/subscriptions'
|
|
67
|
+
require_relative 'lunixi/subscription_routing'
|
|
61
68
|
require_relative 'lunixi/subscription_resources'
|
|
62
69
|
require_relative 'lunixi/kyc_values'
|
|
63
70
|
require_relative 'lunixi/kyc'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lunixi-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lunixi
|
|
@@ -106,6 +106,7 @@ files:
|
|
|
106
106
|
- README.tr.md
|
|
107
107
|
- SECURITY.md
|
|
108
108
|
- docs/PUBLISHING.md
|
|
109
|
+
- docs/card-rewards.md
|
|
109
110
|
- docs/rails.en.md
|
|
110
111
|
- docs/rails.tr.md
|
|
111
112
|
- docs/ruby.en.md
|
|
@@ -113,6 +114,7 @@ files:
|
|
|
113
114
|
- lib/lunixi.rb
|
|
114
115
|
- lib/lunixi/bank_connect.rb
|
|
115
116
|
- lib/lunixi/bank_connect_filters.rb
|
|
117
|
+
- lib/lunixi/bank_connect_pos.rb
|
|
116
118
|
- lib/lunixi/bank_connect_values.rb
|
|
117
119
|
- lib/lunixi/bank_transfer.rb
|
|
118
120
|
- lib/lunixi/card_requests.rb
|
|
@@ -122,6 +124,8 @@ files:
|
|
|
122
124
|
- lib/lunixi/enabled_installments.rb
|
|
123
125
|
- lib/lunixi/errors.rb
|
|
124
126
|
- lib/lunixi/fraud.rb
|
|
127
|
+
- lib/lunixi/fraud_uk_claims.rb
|
|
128
|
+
- lib/lunixi/fraud_values.rb
|
|
125
129
|
- lib/lunixi/identity.rb
|
|
126
130
|
- lib/lunixi/identity_values.rb
|
|
127
131
|
- lib/lunixi/insurance.rb
|
|
@@ -134,6 +138,7 @@ files:
|
|
|
134
138
|
- lib/lunixi/marketplace_values.rb
|
|
135
139
|
- lib/lunixi/method_fields.rb
|
|
136
140
|
- lib/lunixi/money.rb
|
|
141
|
+
- lib/lunixi/order_details.rb
|
|
137
142
|
- lib/lunixi/payment_link_filters.rb
|
|
138
143
|
- lib/lunixi/payment_link_image_rules.rb
|
|
139
144
|
- lib/lunixi/payment_link_rules.rb
|
|
@@ -165,11 +170,14 @@ files:
|
|
|
165
170
|
- lib/lunixi/route_response.rb
|
|
166
171
|
- lib/lunixi/route_table.rb
|
|
167
172
|
- lib/lunixi/route_value.rb
|
|
173
|
+
- lib/lunixi/routing_pin.rb
|
|
168
174
|
- lib/lunixi/sanction.rb
|
|
175
|
+
- lib/lunixi/sanction_batch.rb
|
|
169
176
|
- lib/lunixi/sanction_values.rb
|
|
170
177
|
- lib/lunixi/signer.rb
|
|
171
178
|
- lib/lunixi/split_payment.rb
|
|
172
179
|
- lib/lunixi/subscription_resources.rb
|
|
180
|
+
- lib/lunixi/subscription_routing.rb
|
|
173
181
|
- lib/lunixi/subscription_values.rb
|
|
174
182
|
- lib/lunixi/subscriptions.rb
|
|
175
183
|
- lib/lunixi/transport.rb
|