processout 4.0.0 → 6.0.0
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/.github/workflows/ci.yaml +1 -1
- data/lib/processout/apm_payment_processing_configuration.rb +81 -0
- data/lib/processout/card.rb +44 -0
- data/lib/processout/card_contact.rb +11 -0
- data/lib/processout/card_create_request.rb +37 -1
- data/lib/processout/card_scheme_details.rb +81 -0
- data/lib/processout/card_update_request.rb +36 -1
- data/lib/processout/customer.rb +0 -57
- data/lib/processout/device.rb +22 -0
- data/lib/processout/invoice.rb +89 -34
- data/lib/processout/invoice_device.rb +11 -0
- data/lib/processout/invoice_external_fraud_tools.rb +12 -0
- data/lib/processout/networking/request.rb +1 -1
- data/lib/processout/payment_processing_configuration.rb +93 -0
- data/lib/processout/project.rb +0 -61
- data/lib/processout/submerchant.rb +92 -0
- data/lib/processout/submerchant_mapping.rb +103 -0
- data/lib/processout/token.rb +15 -2
- data/lib/processout/transaction.rb +11 -34
- data/lib/processout/transaction_operation.rb +11 -0
- data/lib/processout/unsupported_feature_bypass.rb +11 -0
- data/lib/processout/version.rb +1 -1
- data/lib/processout.rb +40 -46
- metadata +12 -13
- data/lib/processout/activity.rb +0 -206
- data/lib/processout/addon.rb +0 -401
- data/lib/processout/coupon.rb +0 -352
- data/lib/processout/discount.rb +0 -360
- data/lib/processout/plan.rb +0 -368
- data/lib/processout/subscription.rb +0 -916
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# The content of this file was automatically generated
|
|
2
|
+
|
|
3
|
+
require "cgi"
|
|
4
|
+
require "json"
|
|
5
|
+
require "processout/networking/request"
|
|
6
|
+
require "processout/networking/response"
|
|
7
|
+
|
|
8
|
+
module ProcessOut
|
|
9
|
+
class SubmerchantMapping
|
|
10
|
+
|
|
11
|
+
attr_reader :submerchant_id
|
|
12
|
+
attr_reader :gateway_configuration_id
|
|
13
|
+
attr_reader :psp_submerchant_id
|
|
14
|
+
attr_reader :created_at
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def submerchant_id=(val)
|
|
18
|
+
@submerchant_id = val
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def gateway_configuration_id=(val)
|
|
22
|
+
@gateway_configuration_id = val
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def psp_submerchant_id=(val)
|
|
26
|
+
@psp_submerchant_id = val
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def created_at=(val)
|
|
30
|
+
@created_at = val
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Initializes the SubmerchantMapping object
|
|
35
|
+
# Params:
|
|
36
|
+
# +client+:: +ProcessOut+ client instance
|
|
37
|
+
# +data+:: data that can be used to fill the object
|
|
38
|
+
def initialize(client, data = {})
|
|
39
|
+
@client = client
|
|
40
|
+
|
|
41
|
+
self.submerchant_id = data.fetch(:submerchant_id, nil)
|
|
42
|
+
self.gateway_configuration_id = data.fetch(:gateway_configuration_id, nil)
|
|
43
|
+
self.psp_submerchant_id = data.fetch(:psp_submerchant_id, nil)
|
|
44
|
+
self.created_at = data.fetch(:created_at, nil)
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Create a new SubmerchantMapping using the current client
|
|
49
|
+
def new(data = {})
|
|
50
|
+
SubmerchantMapping.new(@client, data)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Overrides the JSON marshaller to only send the fields we want
|
|
54
|
+
def to_json(options)
|
|
55
|
+
{
|
|
56
|
+
"submerchant_id": self.submerchant_id,
|
|
57
|
+
"gateway_configuration_id": self.gateway_configuration_id,
|
|
58
|
+
"psp_submerchant_id": self.psp_submerchant_id,
|
|
59
|
+
"created_at": self.created_at,
|
|
60
|
+
}.to_json
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Fills the object with data coming from the API
|
|
64
|
+
# Params:
|
|
65
|
+
# +data+:: +Hash+ of data coming from the API
|
|
66
|
+
def fill_with_data(data)
|
|
67
|
+
if data.nil?
|
|
68
|
+
return self
|
|
69
|
+
end
|
|
70
|
+
if data.include? "submerchant_id"
|
|
71
|
+
self.submerchant_id = data["submerchant_id"]
|
|
72
|
+
end
|
|
73
|
+
if data.include? "gateway_configuration_id"
|
|
74
|
+
self.gateway_configuration_id = data["gateway_configuration_id"]
|
|
75
|
+
end
|
|
76
|
+
if data.include? "psp_submerchant_id"
|
|
77
|
+
self.psp_submerchant_id = data["psp_submerchant_id"]
|
|
78
|
+
end
|
|
79
|
+
if data.include? "created_at"
|
|
80
|
+
self.created_at = data["created_at"]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
self
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Prefills the object with the data passed as parameters
|
|
87
|
+
# Params:
|
|
88
|
+
# +data+:: +Hash+ of data
|
|
89
|
+
def prefill(data)
|
|
90
|
+
if data.nil?
|
|
91
|
+
return self
|
|
92
|
+
end
|
|
93
|
+
self.submerchant_id = data.fetch(:submerchant_id, self.submerchant_id)
|
|
94
|
+
self.gateway_configuration_id = data.fetch(:gateway_configuration_id, self.gateway_configuration_id)
|
|
95
|
+
self.psp_submerchant_id = data.fetch(:psp_submerchant_id, self.psp_submerchant_id)
|
|
96
|
+
self.created_at = data.fetch(:created_at, self.created_at)
|
|
97
|
+
|
|
98
|
+
self
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
end
|
|
103
|
+
end
|
data/lib/processout/token.rb
CHANGED
|
@@ -31,6 +31,7 @@ module ProcessOut
|
|
|
31
31
|
attr_reader :verification_status
|
|
32
32
|
attr_reader :can_get_balance
|
|
33
33
|
attr_reader :webhook_url
|
|
34
|
+
attr_reader :provision_network_token
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
def id=(val)
|
|
@@ -173,6 +174,10 @@ module ProcessOut
|
|
|
173
174
|
@webhook_url = val
|
|
174
175
|
end
|
|
175
176
|
|
|
177
|
+
def provision_network_token=(val)
|
|
178
|
+
@provision_network_token = val
|
|
179
|
+
end
|
|
180
|
+
|
|
176
181
|
|
|
177
182
|
# Initializes the Token object
|
|
178
183
|
# Params:
|
|
@@ -204,6 +209,7 @@ module ProcessOut
|
|
|
204
209
|
self.verification_status = data.fetch(:verification_status, nil)
|
|
205
210
|
self.can_get_balance = data.fetch(:can_get_balance, nil)
|
|
206
211
|
self.webhook_url = data.fetch(:webhook_url, nil)
|
|
212
|
+
self.provision_network_token = data.fetch(:provision_network_token, nil)
|
|
207
213
|
|
|
208
214
|
end
|
|
209
215
|
|
|
@@ -238,6 +244,7 @@ module ProcessOut
|
|
|
238
244
|
"verification_status": self.verification_status,
|
|
239
245
|
"can_get_balance": self.can_get_balance,
|
|
240
246
|
"webhook_url": self.webhook_url,
|
|
247
|
+
"provision_network_token": self.provision_network_token,
|
|
241
248
|
}.to_json
|
|
242
249
|
end
|
|
243
250
|
|
|
@@ -317,6 +324,9 @@ module ProcessOut
|
|
|
317
324
|
if data.include? "webhook_url"
|
|
318
325
|
self.webhook_url = data["webhook_url"]
|
|
319
326
|
end
|
|
327
|
+
if data.include? "provision_network_token"
|
|
328
|
+
self.provision_network_token = data["provision_network_token"]
|
|
329
|
+
end
|
|
320
330
|
|
|
321
331
|
self
|
|
322
332
|
end
|
|
@@ -351,6 +361,7 @@ module ProcessOut
|
|
|
351
361
|
self.verification_status = data.fetch(:verification_status, self.verification_status)
|
|
352
362
|
self.can_get_balance = data.fetch(:can_get_balance, self.can_get_balance)
|
|
353
363
|
self.webhook_url = data.fetch(:webhook_url, self.webhook_url)
|
|
364
|
+
self.provision_network_token = data.fetch(:provision_network_token, self.provision_network_token)
|
|
354
365
|
|
|
355
366
|
self
|
|
356
367
|
end
|
|
@@ -440,7 +451,8 @@ module ProcessOut
|
|
|
440
451
|
"set_default" => options.fetch(:set_default, nil),
|
|
441
452
|
"verify_statement_descriptor" => options.fetch(:verify_statement_descriptor, nil),
|
|
442
453
|
"invoice_return_url" => options.fetch(:invoice_return_url, nil),
|
|
443
|
-
"summary" => options.fetch(:summary, nil)
|
|
454
|
+
"summary" => options.fetch(:summary, nil),
|
|
455
|
+
"provision_network_token" => options.fetch(:provision_network_token, nil)
|
|
444
456
|
}
|
|
445
457
|
|
|
446
458
|
response = Response.new(request.post(path, data, options))
|
|
@@ -480,7 +492,8 @@ module ProcessOut
|
|
|
480
492
|
"set_default" => options.fetch(:set_default, nil),
|
|
481
493
|
"verify_statement_descriptor" => options.fetch(:verify_statement_descriptor, nil),
|
|
482
494
|
"invoice_return_url" => options.fetch(:invoice_return_url, nil),
|
|
483
|
-
"gateway_configuration_id" => options.fetch(:gateway_configuration_id, nil)
|
|
495
|
+
"gateway_configuration_id" => options.fetch(:gateway_configuration_id, nil),
|
|
496
|
+
"provision_network_token" => options.fetch(:provision_network_token, nil)
|
|
484
497
|
}
|
|
485
498
|
|
|
486
499
|
response = Response.new(request.put(path, data, options))
|
|
@@ -15,8 +15,6 @@ module ProcessOut
|
|
|
15
15
|
attr_reader :invoice_id
|
|
16
16
|
attr_reader :customer
|
|
17
17
|
attr_reader :customer_id
|
|
18
|
-
attr_reader :subscription
|
|
19
|
-
attr_reader :subscription_id
|
|
20
18
|
attr_reader :token
|
|
21
19
|
attr_reader :token_id
|
|
22
20
|
attr_reader :card
|
|
@@ -75,6 +73,7 @@ module ProcessOut
|
|
|
75
73
|
attr_reader :eci
|
|
76
74
|
attr_reader :native_apm
|
|
77
75
|
attr_reader :external_details
|
|
76
|
+
attr_reader :origin
|
|
78
77
|
|
|
79
78
|
|
|
80
79
|
def id=(val)
|
|
@@ -141,26 +140,6 @@ module ProcessOut
|
|
|
141
140
|
@customer_id = val
|
|
142
141
|
end
|
|
143
142
|
|
|
144
|
-
def subscription=(val)
|
|
145
|
-
if val.nil?
|
|
146
|
-
@subscription = val
|
|
147
|
-
return
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
if val.instance_of? Subscription
|
|
151
|
-
@subscription = val
|
|
152
|
-
else
|
|
153
|
-
obj = Subscription.new(@client)
|
|
154
|
-
obj.fill_with_data(val)
|
|
155
|
-
@subscription = obj
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def subscription_id=(val)
|
|
161
|
-
@subscription_id = val
|
|
162
|
-
end
|
|
163
|
-
|
|
164
143
|
def token=(val)
|
|
165
144
|
if val.nil?
|
|
166
145
|
@token = val
|
|
@@ -498,6 +477,10 @@ module ProcessOut
|
|
|
498
477
|
|
|
499
478
|
end
|
|
500
479
|
|
|
480
|
+
def origin=(val)
|
|
481
|
+
@origin = val
|
|
482
|
+
end
|
|
483
|
+
|
|
501
484
|
|
|
502
485
|
# Initializes the Transaction object
|
|
503
486
|
# Params:
|
|
@@ -513,8 +496,6 @@ module ProcessOut
|
|
|
513
496
|
self.invoice_id = data.fetch(:invoice_id, nil)
|
|
514
497
|
self.customer = data.fetch(:customer, nil)
|
|
515
498
|
self.customer_id = data.fetch(:customer_id, nil)
|
|
516
|
-
self.subscription = data.fetch(:subscription, nil)
|
|
517
|
-
self.subscription_id = data.fetch(:subscription_id, nil)
|
|
518
499
|
self.token = data.fetch(:token, nil)
|
|
519
500
|
self.token_id = data.fetch(:token_id, nil)
|
|
520
501
|
self.card = data.fetch(:card, nil)
|
|
@@ -573,6 +554,7 @@ module ProcessOut
|
|
|
573
554
|
self.eci = data.fetch(:eci, nil)
|
|
574
555
|
self.native_apm = data.fetch(:native_apm, nil)
|
|
575
556
|
self.external_details = data.fetch(:external_details, nil)
|
|
557
|
+
self.origin = data.fetch(:origin, nil)
|
|
576
558
|
|
|
577
559
|
end
|
|
578
560
|
|
|
@@ -591,8 +573,6 @@ module ProcessOut
|
|
|
591
573
|
"invoice_id": self.invoice_id,
|
|
592
574
|
"customer": self.customer,
|
|
593
575
|
"customer_id": self.customer_id,
|
|
594
|
-
"subscription": self.subscription,
|
|
595
|
-
"subscription_id": self.subscription_id,
|
|
596
576
|
"token": self.token,
|
|
597
577
|
"token_id": self.token_id,
|
|
598
578
|
"card": self.card,
|
|
@@ -651,6 +631,7 @@ module ProcessOut
|
|
|
651
631
|
"eci": self.eci,
|
|
652
632
|
"native_apm": self.native_apm,
|
|
653
633
|
"external_details": self.external_details,
|
|
634
|
+
"origin": self.origin,
|
|
654
635
|
}.to_json
|
|
655
636
|
end
|
|
656
637
|
|
|
@@ -682,12 +663,6 @@ module ProcessOut
|
|
|
682
663
|
if data.include? "customer_id"
|
|
683
664
|
self.customer_id = data["customer_id"]
|
|
684
665
|
end
|
|
685
|
-
if data.include? "subscription"
|
|
686
|
-
self.subscription = data["subscription"]
|
|
687
|
-
end
|
|
688
|
-
if data.include? "subscription_id"
|
|
689
|
-
self.subscription_id = data["subscription_id"]
|
|
690
|
-
end
|
|
691
666
|
if data.include? "token"
|
|
692
667
|
self.token = data["token"]
|
|
693
668
|
end
|
|
@@ -862,6 +837,9 @@ module ProcessOut
|
|
|
862
837
|
if data.include? "external_details"
|
|
863
838
|
self.external_details = data["external_details"]
|
|
864
839
|
end
|
|
840
|
+
if data.include? "origin"
|
|
841
|
+
self.origin = data["origin"]
|
|
842
|
+
end
|
|
865
843
|
|
|
866
844
|
self
|
|
867
845
|
end
|
|
@@ -880,8 +858,6 @@ module ProcessOut
|
|
|
880
858
|
self.invoice_id = data.fetch(:invoice_id, self.invoice_id)
|
|
881
859
|
self.customer = data.fetch(:customer, self.customer)
|
|
882
860
|
self.customer_id = data.fetch(:customer_id, self.customer_id)
|
|
883
|
-
self.subscription = data.fetch(:subscription, self.subscription)
|
|
884
|
-
self.subscription_id = data.fetch(:subscription_id, self.subscription_id)
|
|
885
861
|
self.token = data.fetch(:token, self.token)
|
|
886
862
|
self.token_id = data.fetch(:token_id, self.token_id)
|
|
887
863
|
self.card = data.fetch(:card, self.card)
|
|
@@ -940,6 +916,7 @@ module ProcessOut
|
|
|
940
916
|
self.eci = data.fetch(:eci, self.eci)
|
|
941
917
|
self.native_apm = data.fetch(:native_apm, self.native_apm)
|
|
942
918
|
self.external_details = data.fetch(:external_details, self.external_details)
|
|
919
|
+
self.origin = data.fetch(:origin, self.origin)
|
|
943
920
|
|
|
944
921
|
self
|
|
945
922
|
end
|
|
@@ -35,6 +35,7 @@ module ProcessOut
|
|
|
35
35
|
attr_reader :scheme_id
|
|
36
36
|
attr_reader :processed_with_network_token
|
|
37
37
|
attr_reader :payment_type
|
|
38
|
+
attr_reader :capture_type
|
|
38
39
|
attr_reader :metadata
|
|
39
40
|
attr_reader :gateway_fee
|
|
40
41
|
attr_reader :created_at
|
|
@@ -232,6 +233,10 @@ module ProcessOut
|
|
|
232
233
|
@payment_type = val
|
|
233
234
|
end
|
|
234
235
|
|
|
236
|
+
def capture_type=(val)
|
|
237
|
+
@capture_type = val
|
|
238
|
+
end
|
|
239
|
+
|
|
235
240
|
def metadata=(val)
|
|
236
241
|
@metadata = val
|
|
237
242
|
end
|
|
@@ -279,6 +284,7 @@ module ProcessOut
|
|
|
279
284
|
self.scheme_id = data.fetch(:scheme_id, nil)
|
|
280
285
|
self.processed_with_network_token = data.fetch(:processed_with_network_token, nil)
|
|
281
286
|
self.payment_type = data.fetch(:payment_type, nil)
|
|
287
|
+
self.capture_type = data.fetch(:capture_type, nil)
|
|
282
288
|
self.metadata = data.fetch(:metadata, nil)
|
|
283
289
|
self.gateway_fee = data.fetch(:gateway_fee, nil)
|
|
284
290
|
self.created_at = data.fetch(:created_at, nil)
|
|
@@ -320,6 +326,7 @@ module ProcessOut
|
|
|
320
326
|
"scheme_id": self.scheme_id,
|
|
321
327
|
"processed_with_network_token": self.processed_with_network_token,
|
|
322
328
|
"payment_type": self.payment_type,
|
|
329
|
+
"capture_type": self.capture_type,
|
|
323
330
|
"metadata": self.metadata,
|
|
324
331
|
"gateway_fee": self.gateway_fee,
|
|
325
332
|
"created_at": self.created_at,
|
|
@@ -414,6 +421,9 @@ module ProcessOut
|
|
|
414
421
|
if data.include? "payment_type"
|
|
415
422
|
self.payment_type = data["payment_type"]
|
|
416
423
|
end
|
|
424
|
+
if data.include? "capture_type"
|
|
425
|
+
self.capture_type = data["capture_type"]
|
|
426
|
+
end
|
|
417
427
|
if data.include? "metadata"
|
|
418
428
|
self.metadata = data["metadata"]
|
|
419
429
|
end
|
|
@@ -461,6 +471,7 @@ module ProcessOut
|
|
|
461
471
|
self.scheme_id = data.fetch(:scheme_id, self.scheme_id)
|
|
462
472
|
self.processed_with_network_token = data.fetch(:processed_with_network_token, self.processed_with_network_token)
|
|
463
473
|
self.payment_type = data.fetch(:payment_type, self.payment_type)
|
|
474
|
+
self.capture_type = data.fetch(:capture_type, self.capture_type)
|
|
464
475
|
self.metadata = data.fetch(:metadata, self.metadata)
|
|
465
476
|
self.gateway_fee = data.fetch(:gateway_fee, self.gateway_fee)
|
|
466
477
|
self.created_at = data.fetch(:created_at, self.created_at)
|
|
@@ -9,12 +9,17 @@ module ProcessOut
|
|
|
9
9
|
class UnsupportedFeatureBypass
|
|
10
10
|
|
|
11
11
|
attr_reader :incremental_authorization
|
|
12
|
+
attr_reader :split_payments
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
def incremental_authorization=(val)
|
|
15
16
|
@incremental_authorization = val
|
|
16
17
|
end
|
|
17
18
|
|
|
19
|
+
def split_payments=(val)
|
|
20
|
+
@split_payments = val
|
|
21
|
+
end
|
|
22
|
+
|
|
18
23
|
|
|
19
24
|
# Initializes the UnsupportedFeatureBypass object
|
|
20
25
|
# Params:
|
|
@@ -24,6 +29,7 @@ module ProcessOut
|
|
|
24
29
|
@client = client
|
|
25
30
|
|
|
26
31
|
self.incremental_authorization = data.fetch(:incremental_authorization, nil)
|
|
32
|
+
self.split_payments = data.fetch(:split_payments, nil)
|
|
27
33
|
|
|
28
34
|
end
|
|
29
35
|
|
|
@@ -36,6 +42,7 @@ module ProcessOut
|
|
|
36
42
|
def to_json(options)
|
|
37
43
|
{
|
|
38
44
|
"incremental_authorization": self.incremental_authorization,
|
|
45
|
+
"split_payments": self.split_payments,
|
|
39
46
|
}.to_json
|
|
40
47
|
end
|
|
41
48
|
|
|
@@ -49,6 +56,9 @@ module ProcessOut
|
|
|
49
56
|
if data.include? "incremental_authorization"
|
|
50
57
|
self.incremental_authorization = data["incremental_authorization"]
|
|
51
58
|
end
|
|
59
|
+
if data.include? "split_payments"
|
|
60
|
+
self.split_payments = data["split_payments"]
|
|
61
|
+
end
|
|
52
62
|
|
|
53
63
|
self
|
|
54
64
|
end
|
|
@@ -61,6 +71,7 @@ module ProcessOut
|
|
|
61
71
|
return self
|
|
62
72
|
end
|
|
63
73
|
self.incremental_authorization = data.fetch(:incremental_authorization, self.incremental_authorization)
|
|
74
|
+
self.split_payments = data.fetch(:split_payments, self.split_payments)
|
|
64
75
|
|
|
65
76
|
self
|
|
66
77
|
end
|
data/lib/processout/version.rb
CHANGED
data/lib/processout.rb
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
require "processout/version"
|
|
2
2
|
require "processout/gateway_request"
|
|
3
|
-
require "processout/activity"
|
|
4
|
-
require "processout/addon"
|
|
5
3
|
require "processout/api_version"
|
|
6
4
|
require "processout/apple_pay_alternative_merchant_certificates"
|
|
7
5
|
require "processout/alternative_merchant_certificate"
|
|
@@ -11,11 +9,9 @@ require "processout/balances_customer_action"
|
|
|
11
9
|
require "processout/card"
|
|
12
10
|
require "processout/card_information"
|
|
13
11
|
require "processout/phone"
|
|
14
|
-
require "processout/coupon"
|
|
15
12
|
require "processout/customer"
|
|
16
13
|
require "processout/customer_phone"
|
|
17
14
|
require "processout/token"
|
|
18
|
-
require "processout/discount"
|
|
19
15
|
require "processout/event"
|
|
20
16
|
require "processout/export_layout"
|
|
21
17
|
require "processout/export_layout_configuration"
|
|
@@ -38,6 +34,8 @@ require "processout/invoice_shipping"
|
|
|
38
34
|
require "processout/invoice_shipping_phone"
|
|
39
35
|
require "processout/invoice_billing"
|
|
40
36
|
require "processout/unsupported_feature_bypass"
|
|
37
|
+
require "processout/payment_processing_configuration"
|
|
38
|
+
require "processout/apm_payment_processing_configuration"
|
|
41
39
|
require "processout/invoice_detail"
|
|
42
40
|
require "processout/invoice_submerchant"
|
|
43
41
|
require "processout/submerchant_phone_number"
|
|
@@ -47,13 +45,13 @@ require "processout/dunning_action"
|
|
|
47
45
|
require "processout/payout"
|
|
48
46
|
require "processout/payout_item"
|
|
49
47
|
require "processout/payout_item_amount_breakdowns"
|
|
50
|
-
require "processout/plan"
|
|
51
48
|
require "processout/product"
|
|
52
49
|
require "processout/project"
|
|
53
50
|
require "processout/project_sftp_settings"
|
|
54
51
|
require "processout/project_sftp_settings_public"
|
|
55
52
|
require "processout/refund"
|
|
56
|
-
require "processout/
|
|
53
|
+
require "processout/submerchant"
|
|
54
|
+
require "processout/submerchant_mapping"
|
|
57
55
|
require "processout/transaction"
|
|
58
56
|
require "processout/native_apm_response"
|
|
59
57
|
require "processout/native_apm_parameter_definition"
|
|
@@ -65,11 +63,12 @@ require "processout/payment_data_three_ds_authentication"
|
|
|
65
63
|
require "processout/transaction_operation"
|
|
66
64
|
require "processout/webhook"
|
|
67
65
|
require "processout/webhook_endpoint"
|
|
66
|
+
require "processout/card_update_request"
|
|
67
|
+
require "processout/card_create_request"
|
|
68
|
+
require "processout/card_scheme_details"
|
|
68
69
|
require "processout/device"
|
|
69
70
|
require "processout/card_contact"
|
|
70
71
|
require "processout/card_shipping"
|
|
71
|
-
require "processout/card_update_request"
|
|
72
|
-
require "processout/card_create_request"
|
|
73
72
|
require "processout/error_codes"
|
|
74
73
|
require "processout/category_error_codes"
|
|
75
74
|
require "processout/external_three_ds"
|
|
@@ -88,16 +87,6 @@ module ProcessOut
|
|
|
88
87
|
@project_secret = project_secret
|
|
89
88
|
end
|
|
90
89
|
|
|
91
|
-
# Create a new Activity instance
|
|
92
|
-
def activity(data = {})
|
|
93
|
-
obj = Activity.new(self, data)
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Create a new Addon instance
|
|
97
|
-
def addon(data = {})
|
|
98
|
-
obj = Addon.new(self, data)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
90
|
# Create a new APIVersion instance
|
|
102
91
|
def api_version(data = {})
|
|
103
92
|
obj = APIVersion.new(self, data)
|
|
@@ -143,11 +132,6 @@ module ProcessOut
|
|
|
143
132
|
obj = Phone.new(self, data)
|
|
144
133
|
end
|
|
145
134
|
|
|
146
|
-
# Create a new Coupon instance
|
|
147
|
-
def coupon(data = {})
|
|
148
|
-
obj = Coupon.new(self, data)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
135
|
# Create a new Customer instance
|
|
152
136
|
def customer(data = {})
|
|
153
137
|
obj = Customer.new(self, data)
|
|
@@ -163,11 +147,6 @@ module ProcessOut
|
|
|
163
147
|
obj = Token.new(self, data)
|
|
164
148
|
end
|
|
165
149
|
|
|
166
|
-
# Create a new Discount instance
|
|
167
|
-
def discount(data = {})
|
|
168
|
-
obj = Discount.new(self, data)
|
|
169
|
-
end
|
|
170
|
-
|
|
171
150
|
# Create a new Event instance
|
|
172
151
|
def event(data = {})
|
|
173
152
|
obj = Event.new(self, data)
|
|
@@ -278,6 +257,16 @@ module ProcessOut
|
|
|
278
257
|
obj = UnsupportedFeatureBypass.new(self, data)
|
|
279
258
|
end
|
|
280
259
|
|
|
260
|
+
# Create a new PaymentProcessingConfiguration instance
|
|
261
|
+
def payment_processing_configuration(data = {})
|
|
262
|
+
obj = PaymentProcessingConfiguration.new(self, data)
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Create a new APMPaymentProcessingConfiguration instance
|
|
266
|
+
def apm_payment_processing_configuration(data = {})
|
|
267
|
+
obj = APMPaymentProcessingConfiguration.new(self, data)
|
|
268
|
+
end
|
|
269
|
+
|
|
281
270
|
# Create a new InvoiceDetail instance
|
|
282
271
|
def invoice_detail(data = {})
|
|
283
272
|
obj = InvoiceDetail.new(self, data)
|
|
@@ -323,11 +312,6 @@ module ProcessOut
|
|
|
323
312
|
obj = PayoutItemAmountBreakdowns.new(self, data)
|
|
324
313
|
end
|
|
325
314
|
|
|
326
|
-
# Create a new Plan instance
|
|
327
|
-
def plan(data = {})
|
|
328
|
-
obj = Plan.new(self, data)
|
|
329
|
-
end
|
|
330
|
-
|
|
331
315
|
# Create a new Product instance
|
|
332
316
|
def product(data = {})
|
|
333
317
|
obj = Product.new(self, data)
|
|
@@ -353,9 +337,14 @@ module ProcessOut
|
|
|
353
337
|
obj = Refund.new(self, data)
|
|
354
338
|
end
|
|
355
339
|
|
|
356
|
-
# Create a new
|
|
357
|
-
def
|
|
358
|
-
obj =
|
|
340
|
+
# Create a new Submerchant instance
|
|
341
|
+
def submerchant(data = {})
|
|
342
|
+
obj = Submerchant.new(self, data)
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Create a new SubmerchantMapping instance
|
|
346
|
+
def submerchant_mapping(data = {})
|
|
347
|
+
obj = SubmerchantMapping.new(self, data)
|
|
359
348
|
end
|
|
360
349
|
|
|
361
350
|
# Create a new Transaction instance
|
|
@@ -413,6 +402,21 @@ module ProcessOut
|
|
|
413
402
|
obj = WebhookEndpoint.new(self, data)
|
|
414
403
|
end
|
|
415
404
|
|
|
405
|
+
# Create a new CardUpdateRequest instance
|
|
406
|
+
def card_update_request(data = {})
|
|
407
|
+
obj = CardUpdateRequest.new(self, data)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Create a new CardCreateRequest instance
|
|
411
|
+
def card_create_request(data = {})
|
|
412
|
+
obj = CardCreateRequest.new(self, data)
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# Create a new CardSchemeDetails instance
|
|
416
|
+
def card_scheme_details(data = {})
|
|
417
|
+
obj = CardSchemeDetails.new(self, data)
|
|
418
|
+
end
|
|
419
|
+
|
|
416
420
|
# Create a new Device instance
|
|
417
421
|
def device(data = {})
|
|
418
422
|
obj = Device.new(self, data)
|
|
@@ -428,16 +432,6 @@ module ProcessOut
|
|
|
428
432
|
obj = CardShipping.new(self, data)
|
|
429
433
|
end
|
|
430
434
|
|
|
431
|
-
# Create a new CardUpdateRequest instance
|
|
432
|
-
def card_update_request(data = {})
|
|
433
|
-
obj = CardUpdateRequest.new(self, data)
|
|
434
|
-
end
|
|
435
|
-
|
|
436
|
-
# Create a new CardCreateRequest instance
|
|
437
|
-
def card_create_request(data = {})
|
|
438
|
-
obj = CardCreateRequest.new(self, data)
|
|
439
|
-
end
|
|
440
|
-
|
|
441
435
|
# Create a new ErrorCodes instance
|
|
442
436
|
def error_codes(data = {})
|
|
443
437
|
obj = ErrorCodes.new(self, data)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: processout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Manuel HUEZ
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -52,7 +52,7 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
|
-
description:
|
|
55
|
+
description:
|
|
56
56
|
email:
|
|
57
57
|
- manuel@processout.com
|
|
58
58
|
executables: []
|
|
@@ -74,10 +74,9 @@ files:
|
|
|
74
74
|
- bin/console
|
|
75
75
|
- bin/setup
|
|
76
76
|
- lib/processout.rb
|
|
77
|
-
- lib/processout/activity.rb
|
|
78
|
-
- lib/processout/addon.rb
|
|
79
77
|
- lib/processout/alternative_merchant_certificate.rb
|
|
80
78
|
- lib/processout/api_version.rb
|
|
79
|
+
- lib/processout/apm_payment_processing_configuration.rb
|
|
81
80
|
- lib/processout/apple_pay_alternative_merchant_certificates.rb
|
|
82
81
|
- lib/processout/balance.rb
|
|
83
82
|
- lib/processout/balances.rb
|
|
@@ -86,15 +85,14 @@ files:
|
|
|
86
85
|
- lib/processout/card_contact.rb
|
|
87
86
|
- lib/processout/card_create_request.rb
|
|
88
87
|
- lib/processout/card_information.rb
|
|
88
|
+
- lib/processout/card_scheme_details.rb
|
|
89
89
|
- lib/processout/card_shipping.rb
|
|
90
90
|
- lib/processout/card_update_request.rb
|
|
91
91
|
- lib/processout/category_error_codes.rb
|
|
92
|
-
- lib/processout/coupon.rb
|
|
93
92
|
- lib/processout/customer.rb
|
|
94
93
|
- lib/processout/customer_action.rb
|
|
95
94
|
- lib/processout/customer_phone.rb
|
|
96
95
|
- lib/processout/device.rb
|
|
97
|
-
- lib/processout/discount.rb
|
|
98
96
|
- lib/processout/dunning_action.rb
|
|
99
97
|
- lib/processout/error_codes.rb
|
|
100
98
|
- lib/processout/errors/authentication_error.rb
|
|
@@ -138,19 +136,20 @@ files:
|
|
|
138
136
|
- lib/processout/payment_data_network_authentication.rb
|
|
139
137
|
- lib/processout/payment_data_three_ds_authentication.rb
|
|
140
138
|
- lib/processout/payment_data_three_ds_request.rb
|
|
139
|
+
- lib/processout/payment_processing_configuration.rb
|
|
141
140
|
- lib/processout/payout.rb
|
|
142
141
|
- lib/processout/payout_item.rb
|
|
143
142
|
- lib/processout/payout_item_amount_breakdowns.rb
|
|
144
143
|
- lib/processout/phone.rb
|
|
145
|
-
- lib/processout/plan.rb
|
|
146
144
|
- lib/processout/product.rb
|
|
147
145
|
- lib/processout/project.rb
|
|
148
146
|
- lib/processout/project_sftp_settings.rb
|
|
149
147
|
- lib/processout/project_sftp_settings_public.rb
|
|
150
148
|
- lib/processout/refund.rb
|
|
149
|
+
- lib/processout/submerchant.rb
|
|
151
150
|
- lib/processout/submerchant_address.rb
|
|
151
|
+
- lib/processout/submerchant_mapping.rb
|
|
152
152
|
- lib/processout/submerchant_phone_number.rb
|
|
153
|
-
- lib/processout/subscription.rb
|
|
154
153
|
- lib/processout/three_ds.rb
|
|
155
154
|
- lib/processout/token.rb
|
|
156
155
|
- lib/processout/transaction.rb
|
|
@@ -164,7 +163,7 @@ homepage: https://docs.processout.com
|
|
|
164
163
|
licenses:
|
|
165
164
|
- MIT
|
|
166
165
|
metadata: {}
|
|
167
|
-
post_install_message:
|
|
166
|
+
post_install_message:
|
|
168
167
|
rdoc_options: []
|
|
169
168
|
require_paths:
|
|
170
169
|
- lib
|
|
@@ -179,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
179
178
|
- !ruby/object:Gem::Version
|
|
180
179
|
version: '0'
|
|
181
180
|
requirements: []
|
|
182
|
-
rubygems_version: 3.
|
|
183
|
-
signing_key:
|
|
181
|
+
rubygems_version: 3.4.20
|
|
182
|
+
signing_key:
|
|
184
183
|
specification_version: 4
|
|
185
184
|
summary: Ruby bindings for the ProcessOut API
|
|
186
185
|
test_files: []
|