processout 2.22.0 → 2.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: babbd1a63d63b0ebe94c58fa14f863fc265e32f47865d53f62372650051fd0ba
4
- data.tar.gz: 2c1bfcde039845be58a8388098ba6b617eecc8a1e9faf4941ff797c069a9b1b8
3
+ metadata.gz: 3d280911eda6faab611f67131bfcb86fa143214033cb29b86e20ea03afc4324b
4
+ data.tar.gz: c7e980553c880a3f46970cf860e7476754791e8fd504d3f5566dcfef31816922
5
5
  SHA512:
6
- metadata.gz: e6799ebd461d8c11b1ffe2bc2c8da3f99b1dad389528926cd2242eff65609d772e437c42c8e228d11cbd19ae0bc299d5869b9c2872468a79a0c1ff5ee42a5d1c
7
- data.tar.gz: da18466d912d8548b13c0e47dabd295def6e326a92697d16c140bab9417b7a9ac5f36034a93af27933f73d3ab991aab63ccf7b28c566170296fe1452138efe60
6
+ metadata.gz: 76fe38fb62279b51207413862efb607f718c4ccf48302ba5a5d0b2c120438669bfb80bfb02f81e8dff58a91765e7f0af3dff1b8af37ca71797c7fd810fcf1170
7
+ data.tar.gz: 0373ddbffac8ed98de2b084343a1ba96d94a7fd1f48c19062a6fc1d7c4edecc61a3819f728d7e8917452a3122ba05c4c9306ce78833022d15b39e326b5172c9a
@@ -10,6 +10,7 @@ module ProcessOut
10
10
 
11
11
  attr_reader :type
12
12
  attr_reader :value
13
+ attr_reader :metadata
13
14
 
14
15
 
15
16
  def type=(val)
@@ -20,6 +21,10 @@ module ProcessOut
20
21
  @value = val
21
22
  end
22
23
 
24
+ def metadata=(val)
25
+ @metadata = val
26
+ end
27
+
23
28
 
24
29
  # Initializes the CustomerAction object
25
30
  # Params:
@@ -30,6 +35,7 @@ module ProcessOut
30
35
 
31
36
  self.type = data.fetch(:type, nil)
32
37
  self.value = data.fetch(:value, nil)
38
+ self.metadata = data.fetch(:metadata, nil)
33
39
 
34
40
  end
35
41
 
@@ -43,6 +49,7 @@ module ProcessOut
43
49
  {
44
50
  "type": self.type,
45
51
  "value": self.value,
52
+ "metadata": self.metadata,
46
53
  }.to_json
47
54
  end
48
55
 
@@ -59,6 +66,9 @@ module ProcessOut
59
66
  if data.include? "value"
60
67
  self.value = data["value"]
61
68
  end
69
+ if data.include? "metadata"
70
+ self.metadata = data["metadata"]
71
+ end
62
72
 
63
73
  self
64
74
  end
@@ -72,6 +82,7 @@ module ProcessOut
72
82
  end
73
83
  self.type = data.fetch(:type, self.type)
74
84
  self.value = data.fetch(:value, self.value)
85
+ self.metadata = data.fetch(:metadata, self.metadata)
75
86
 
76
87
  self
77
88
  end
@@ -19,6 +19,7 @@ module ProcessOut
19
19
  attr_reader :public_keys
20
20
  attr_reader :created_at
21
21
  attr_reader :enabled_at
22
+ attr_reader :processing_region
22
23
 
23
24
 
24
25
  def id=(val)
@@ -89,6 +90,10 @@ module ProcessOut
89
90
  @enabled_at = val
90
91
  end
91
92
 
93
+ def processing_region=(val)
94
+ @processing_region = val
95
+ end
96
+
92
97
 
93
98
  # Initializes the GatewayConfiguration object
94
99
  # Params:
@@ -108,6 +113,7 @@ module ProcessOut
108
113
  self.public_keys = data.fetch(:public_keys, nil)
109
114
  self.created_at = data.fetch(:created_at, nil)
110
115
  self.enabled_at = data.fetch(:enabled_at, nil)
116
+ self.processing_region = data.fetch(:processing_region, nil)
111
117
 
112
118
  end
113
119
 
@@ -130,6 +136,7 @@ module ProcessOut
130
136
  "public_keys": self.public_keys,
131
137
  "created_at": self.created_at,
132
138
  "enabled_at": self.enabled_at,
139
+ "processing_region": self.processing_region,
133
140
  }.to_json
134
141
  end
135
142
 
@@ -173,6 +180,9 @@ module ProcessOut
173
180
  if data.include? "enabled_at"
174
181
  self.enabled_at = data["enabled_at"]
175
182
  end
183
+ if data.include? "processing_region"
184
+ self.processing_region = data["processing_region"]
185
+ end
176
186
 
177
187
  self
178
188
  end
@@ -195,6 +205,7 @@ module ProcessOut
195
205
  self.public_keys = data.fetch(:public_keys, self.public_keys)
196
206
  self.created_at = data.fetch(:created_at, self.created_at)
197
207
  self.enabled_at = data.fetch(:enabled_at, self.enabled_at)
208
+ self.processing_region = data.fetch(:processing_region, self.processing_region)
198
209
 
199
210
  self
200
211
  end
@@ -270,6 +281,7 @@ module ProcessOut
270
281
  "name" => @name,
271
282
  "enabled" => @enabled,
272
283
  "default_currency" => @default_currency,
284
+ "processing_region" => @processing_region,
273
285
  "settings" => options.fetch(:settings, nil),
274
286
  "sub_accounts_enabled" => options.fetch(:sub_accounts_enabled, nil)
275
287
  }
@@ -323,6 +335,7 @@ module ProcessOut
323
335
  "name" => @name,
324
336
  "enabled" => @enabled,
325
337
  "default_currency" => @default_currency,
338
+ "processing_region" => @processing_region,
326
339
  "settings" => options.fetch(:settings, nil),
327
340
  "sub_accounts_enabled" => options.fetch(:sub_accounts_enabled, nil)
328
341
  }
@@ -50,6 +50,7 @@ module ProcessOut
50
50
  attr_reader :payment_type
51
51
  attr_reader :initiation_type
52
52
  attr_reader :payment_intent
53
+ attr_reader :billing
53
54
 
54
55
 
55
56
  def id=(val)
@@ -356,6 +357,22 @@ module ProcessOut
356
357
  @payment_intent = val
357
358
  end
358
359
 
360
+ def billing=(val)
361
+ if val.nil?
362
+ @billing = val
363
+ return
364
+ end
365
+
366
+ if val.instance_of? InvoiceBilling
367
+ @billing = val
368
+ else
369
+ obj = InvoiceBilling.new(@client)
370
+ obj.fill_with_data(val)
371
+ @billing = obj
372
+ end
373
+
374
+ end
375
+
359
376
 
360
377
  # Initializes the Invoice object
361
378
  # Params:
@@ -406,6 +423,7 @@ module ProcessOut
406
423
  self.payment_type = data.fetch(:payment_type, nil)
407
424
  self.initiation_type = data.fetch(:initiation_type, nil)
408
425
  self.payment_intent = data.fetch(:payment_intent, nil)
426
+ self.billing = data.fetch(:billing, nil)
409
427
 
410
428
  end
411
429
 
@@ -459,6 +477,7 @@ module ProcessOut
459
477
  "payment_type": self.payment_type,
460
478
  "initiation_type": self.initiation_type,
461
479
  "payment_intent": self.payment_intent,
480
+ "billing": self.billing,
462
481
  }.to_json
463
482
  end
464
483
 
@@ -595,6 +614,9 @@ module ProcessOut
595
614
  if data.include? "payment_intent"
596
615
  self.payment_intent = data["payment_intent"]
597
616
  end
617
+ if data.include? "billing"
618
+ self.billing = data["billing"]
619
+ end
598
620
 
599
621
  self
600
622
  end
@@ -648,6 +670,7 @@ module ProcessOut
648
670
  self.payment_type = data.fetch(:payment_type, self.payment_type)
649
671
  self.initiation_type = data.fetch(:initiation_type, self.initiation_type)
650
672
  self.payment_intent = data.fetch(:payment_intent, self.payment_intent)
673
+ self.billing = data.fetch(:billing, self.billing)
651
674
 
652
675
  self
653
676
  end
@@ -697,6 +720,7 @@ module ProcessOut
697
720
  "allow_fallback_to_sale" => options.fetch(:allow_fallback_to_sale, nil),
698
721
  "auto_capture_at" => options.fetch(:auto_capture_at, nil),
699
722
  "metadata" => options.fetch(:metadata, nil),
723
+ "override_mac_blocking" => options.fetch(:override_mac_blocking, nil),
700
724
  "source" => source
701
725
  }
702
726
 
@@ -731,6 +755,8 @@ module ProcessOut
731
755
  "auto_capture_at" => options.fetch(:auto_capture_at, nil),
732
756
  "enable_three_d_s_2" => options.fetch(:enable_three_d_s_2, nil),
733
757
  "metadata" => options.fetch(:metadata, nil),
758
+ "capture_statement_descriptor" => options.fetch(:capture_statement_descriptor, nil),
759
+ "override_mac_blocking" => options.fetch(:override_mac_blocking, nil),
734
760
  "source" => source
735
761
  }
736
762
 
@@ -935,7 +961,8 @@ module ProcessOut
935
961
  "require_backend_capture" => @require_backend_capture,
936
962
  "external_fraud_tools" => @external_fraud_tools,
937
963
  "tax" => @tax,
938
- "payment_type" => @payment_type
964
+ "payment_type" => @payment_type,
965
+ "billing" => @billing
939
966
  }
940
967
 
941
968
  response = Response.new(request.post(path, data, options))
@@ -0,0 +1,125 @@
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 InvoiceBilling
10
+
11
+ attr_reader :address1
12
+ attr_reader :address2
13
+ attr_reader :city
14
+ attr_reader :state
15
+ attr_reader :country_code
16
+ attr_reader :zip
17
+
18
+
19
+ def address1=(val)
20
+ @address1 = val
21
+ end
22
+
23
+ def address2=(val)
24
+ @address2 = val
25
+ end
26
+
27
+ def city=(val)
28
+ @city = val
29
+ end
30
+
31
+ def state=(val)
32
+ @state = val
33
+ end
34
+
35
+ def country_code=(val)
36
+ @country_code = val
37
+ end
38
+
39
+ def zip=(val)
40
+ @zip = val
41
+ end
42
+
43
+
44
+ # Initializes the InvoiceBilling object
45
+ # Params:
46
+ # +client+:: +ProcessOut+ client instance
47
+ # +data+:: data that can be used to fill the object
48
+ def initialize(client, data = {})
49
+ @client = client
50
+
51
+ self.address1 = data.fetch(:address1, nil)
52
+ self.address2 = data.fetch(:address2, nil)
53
+ self.city = data.fetch(:city, nil)
54
+ self.state = data.fetch(:state, nil)
55
+ self.country_code = data.fetch(:country_code, nil)
56
+ self.zip = data.fetch(:zip, nil)
57
+
58
+ end
59
+
60
+ # Create a new InvoiceBilling using the current client
61
+ def new(data = {})
62
+ InvoiceBilling.new(@client, data)
63
+ end
64
+
65
+ # Overrides the JSON marshaller to only send the fields we want
66
+ def to_json(options)
67
+ {
68
+ "address1": self.address1,
69
+ "address2": self.address2,
70
+ "city": self.city,
71
+ "state": self.state,
72
+ "country_code": self.country_code,
73
+ "zip": self.zip,
74
+ }.to_json
75
+ end
76
+
77
+ # Fills the object with data coming from the API
78
+ # Params:
79
+ # +data+:: +Hash+ of data coming from the API
80
+ def fill_with_data(data)
81
+ if data.nil?
82
+ return self
83
+ end
84
+ if data.include? "address1"
85
+ self.address1 = data["address1"]
86
+ end
87
+ if data.include? "address2"
88
+ self.address2 = data["address2"]
89
+ end
90
+ if data.include? "city"
91
+ self.city = data["city"]
92
+ end
93
+ if data.include? "state"
94
+ self.state = data["state"]
95
+ end
96
+ if data.include? "country_code"
97
+ self.country_code = data["country_code"]
98
+ end
99
+ if data.include? "zip"
100
+ self.zip = data["zip"]
101
+ end
102
+
103
+ self
104
+ end
105
+
106
+ # Prefills the object with the data passed as parameters
107
+ # Params:
108
+ # +data+:: +Hash+ of data
109
+ def prefill(data)
110
+ if data.nil?
111
+ return self
112
+ end
113
+ self.address1 = data.fetch(:address1, self.address1)
114
+ self.address2 = data.fetch(:address2, self.address2)
115
+ self.city = data.fetch(:city, self.city)
116
+ self.state = data.fetch(:state, self.state)
117
+ self.country_code = data.fetch(:country_code, self.country_code)
118
+ self.zip = data.fetch(:zip, self.zip)
119
+
120
+ self
121
+ end
122
+
123
+
124
+ end
125
+ end
@@ -9,12 +9,17 @@ module ProcessOut
9
9
  class InvoiceExternalFraudTools
10
10
 
11
11
  attr_reader :forter
12
+ attr_reader :signifyd
12
13
 
13
14
 
14
15
  def forter=(val)
15
16
  @forter = val
16
17
  end
17
18
 
19
+ def signifyd=(val)
20
+ @signifyd = val
21
+ end
22
+
18
23
 
19
24
  # Initializes the InvoiceExternalFraudTools object
20
25
  # Params:
@@ -24,6 +29,7 @@ module ProcessOut
24
29
  @client = client
25
30
 
26
31
  self.forter = data.fetch(:forter, nil)
32
+ self.signifyd = data.fetch(:signifyd, nil)
27
33
 
28
34
  end
29
35
 
@@ -36,6 +42,7 @@ module ProcessOut
36
42
  def to_json(options)
37
43
  {
38
44
  "forter": self.forter,
45
+ "signifyd": self.signifyd,
39
46
  }.to_json
40
47
  end
41
48
 
@@ -49,6 +56,9 @@ module ProcessOut
49
56
  if data.include? "forter"
50
57
  self.forter = data["forter"]
51
58
  end
59
+ if data.include? "signifyd"
60
+ self.signifyd = data["signifyd"]
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.forter = data.fetch(:forter, self.forter)
74
+ self.signifyd = data.fetch(:signifyd, self.signifyd)
64
75
 
65
76
  self
66
77
  end
@@ -13,7 +13,7 @@ module ProcessOut
13
13
  req.basic_auth @client.project_id, @client.project_secret
14
14
  req.content_type = "application/json"
15
15
  req["API-Version"] = "1.4.0.0"
16
- req["User-Agent"] = "ProcessOut Ruby-Bindings/2.22.0"
16
+ req["User-Agent"] = "ProcessOut Ruby-Bindings/2.24.0"
17
17
 
18
18
  unless options.nil?
19
19
  req["Idempotency-Key"] = options.fetch(:idempotency_key, "")
@@ -424,7 +424,9 @@ module ProcessOut
424
424
  "device" => options.fetch(:device, nil),
425
425
  "verify" => options.fetch(:verify, nil),
426
426
  "verify_metadata" => options.fetch(:verify_metadata, nil),
427
- "set_default" => options.fetch(:set_default, nil)
427
+ "set_default" => options.fetch(:set_default, nil),
428
+ "verify_statement_descriptor" => options.fetch(:verify_statement_descriptor, nil),
429
+ "invoice_return_url" => options.fetch(:invoice_return_url, nil)
428
430
  }
429
431
 
430
432
  response = Response.new(request.post(path, data, options))
@@ -455,7 +457,9 @@ module ProcessOut
455
457
  "device" => options.fetch(:device, nil),
456
458
  "verify" => options.fetch(:verify, nil),
457
459
  "verify_metadata" => options.fetch(:verify_metadata, nil),
458
- "set_default" => options.fetch(:set_default, nil)
460
+ "set_default" => options.fetch(:set_default, nil),
461
+ "verify_statement_descriptor" => options.fetch(:verify_statement_descriptor, nil),
462
+ "invoice_return_url" => options.fetch(:invoice_return_url, nil)
459
463
  }
460
464
 
461
465
  response = Response.new(request.put(path, data, options))
@@ -22,6 +22,7 @@ module ProcessOut
22
22
  attr_reader :card
23
23
  attr_reader :card_id
24
24
  attr_reader :gateway_configuration
25
+ attr_reader :external_three_d_s_gateway_configuration
25
26
  attr_reader :gateway_configuration_id
26
27
  attr_reader :operations
27
28
  attr_reader :refunds
@@ -63,6 +64,9 @@ module ProcessOut
63
64
  attr_reader :three_d_s
64
65
  attr_reader :cvc_check
65
66
  attr_reader :avs_check
67
+ attr_reader :initial_scheme_transaction_id
68
+ attr_reader :scheme_id
69
+ attr_reader :payment_type
66
70
 
67
71
 
68
72
  def id=(val)
@@ -205,6 +209,22 @@ module ProcessOut
205
209
 
206
210
  end
207
211
 
212
+ def external_three_d_s_gateway_configuration=(val)
213
+ if val.nil?
214
+ @external_three_d_s_gateway_configuration = val
215
+ return
216
+ end
217
+
218
+ if val.instance_of? GatewayConfiguration
219
+ @external_three_d_s_gateway_configuration = val
220
+ else
221
+ obj = GatewayConfiguration.new(@client)
222
+ obj.fill_with_data(val)
223
+ @external_three_d_s_gateway_configuration = obj
224
+ end
225
+
226
+ end
227
+
208
228
  def gateway_configuration_id=(val)
209
229
  @gateway_configuration_id = val
210
230
  end
@@ -413,6 +433,18 @@ module ProcessOut
413
433
  @avs_check = val
414
434
  end
415
435
 
436
+ def initial_scheme_transaction_id=(val)
437
+ @initial_scheme_transaction_id = val
438
+ end
439
+
440
+ def scheme_id=(val)
441
+ @scheme_id = val
442
+ end
443
+
444
+ def payment_type=(val)
445
+ @payment_type = val
446
+ end
447
+
416
448
 
417
449
  # Initializes the Transaction object
418
450
  # Params:
@@ -435,6 +467,7 @@ module ProcessOut
435
467
  self.card = data.fetch(:card, nil)
436
468
  self.card_id = data.fetch(:card_id, nil)
437
469
  self.gateway_configuration = data.fetch(:gateway_configuration, nil)
470
+ self.external_three_d_s_gateway_configuration = data.fetch(:external_three_d_s_gateway_configuration, nil)
438
471
  self.gateway_configuration_id = data.fetch(:gateway_configuration_id, nil)
439
472
  self.operations = data.fetch(:operations, nil)
440
473
  self.refunds = data.fetch(:refunds, nil)
@@ -476,6 +509,9 @@ module ProcessOut
476
509
  self.three_d_s = data.fetch(:three_d_s, nil)
477
510
  self.cvc_check = data.fetch(:cvc_check, nil)
478
511
  self.avs_check = data.fetch(:avs_check, nil)
512
+ self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, nil)
513
+ self.scheme_id = data.fetch(:scheme_id, nil)
514
+ self.payment_type = data.fetch(:payment_type, nil)
479
515
 
480
516
  end
481
517
 
@@ -501,6 +537,7 @@ module ProcessOut
501
537
  "card": self.card,
502
538
  "card_id": self.card_id,
503
539
  "gateway_configuration": self.gateway_configuration,
540
+ "external_three_d_s_gateway_configuration": self.external_three_d_s_gateway_configuration,
504
541
  "gateway_configuration_id": self.gateway_configuration_id,
505
542
  "operations": self.operations,
506
543
  "refunds": self.refunds,
@@ -542,6 +579,9 @@ module ProcessOut
542
579
  "three_d_s": self.three_d_s,
543
580
  "cvc_check": self.cvc_check,
544
581
  "avs_check": self.avs_check,
582
+ "initial_scheme_transaction_id": self.initial_scheme_transaction_id,
583
+ "scheme_id": self.scheme_id,
584
+ "payment_type": self.payment_type,
545
585
  }.to_json
546
586
  end
547
587
 
@@ -594,6 +634,9 @@ module ProcessOut
594
634
  if data.include? "gateway_configuration"
595
635
  self.gateway_configuration = data["gateway_configuration"]
596
636
  end
637
+ if data.include? "external_three_d_s_gateway_configuration"
638
+ self.external_three_d_s_gateway_configuration = data["external_three_d_s_gateway_configuration"]
639
+ end
597
640
  if data.include? "gateway_configuration_id"
598
641
  self.gateway_configuration_id = data["gateway_configuration_id"]
599
642
  end
@@ -717,6 +760,15 @@ module ProcessOut
717
760
  if data.include? "avs_check"
718
761
  self.avs_check = data["avs_check"]
719
762
  end
763
+ if data.include? "initial_scheme_transaction_id"
764
+ self.initial_scheme_transaction_id = data["initial_scheme_transaction_id"]
765
+ end
766
+ if data.include? "scheme_id"
767
+ self.scheme_id = data["scheme_id"]
768
+ end
769
+ if data.include? "payment_type"
770
+ self.payment_type = data["payment_type"]
771
+ end
720
772
 
721
773
  self
722
774
  end
@@ -742,6 +794,7 @@ module ProcessOut
742
794
  self.card = data.fetch(:card, self.card)
743
795
  self.card_id = data.fetch(:card_id, self.card_id)
744
796
  self.gateway_configuration = data.fetch(:gateway_configuration, self.gateway_configuration)
797
+ self.external_three_d_s_gateway_configuration = data.fetch(:external_three_d_s_gateway_configuration, self.external_three_d_s_gateway_configuration)
745
798
  self.gateway_configuration_id = data.fetch(:gateway_configuration_id, self.gateway_configuration_id)
746
799
  self.operations = data.fetch(:operations, self.operations)
747
800
  self.refunds = data.fetch(:refunds, self.refunds)
@@ -783,6 +836,9 @@ module ProcessOut
783
836
  self.three_d_s = data.fetch(:three_d_s, self.three_d_s)
784
837
  self.cvc_check = data.fetch(:cvc_check, self.cvc_check)
785
838
  self.avs_check = data.fetch(:avs_check, self.avs_check)
839
+ self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, self.initial_scheme_transaction_id)
840
+ self.scheme_id = data.fetch(:scheme_id, self.scheme_id)
841
+ self.payment_type = data.fetch(:payment_type, self.payment_type)
786
842
 
787
843
  self
788
844
  end
@@ -30,6 +30,9 @@ module ProcessOut
30
30
  attr_reader :payment_data_three_d_s_request
31
31
  attr_reader :payment_data_three_d_s_authentication
32
32
  attr_reader :payment_data_network_authentication
33
+ attr_reader :initial_scheme_transaction_id
34
+ attr_reader :scheme_id
35
+ attr_reader :payment_type
33
36
  attr_reader :metadata
34
37
  attr_reader :gateway_fee
35
38
  attr_reader :created_at
@@ -207,6 +210,18 @@ module ProcessOut
207
210
 
208
211
  end
209
212
 
213
+ def initial_scheme_transaction_id=(val)
214
+ @initial_scheme_transaction_id = val
215
+ end
216
+
217
+ def scheme_id=(val)
218
+ @scheme_id = val
219
+ end
220
+
221
+ def payment_type=(val)
222
+ @payment_type = val
223
+ end
224
+
210
225
  def metadata=(val)
211
226
  @metadata = val
212
227
  end
@@ -249,6 +264,9 @@ module ProcessOut
249
264
  self.payment_data_three_d_s_request = data.fetch(:payment_data_three_d_s_request, nil)
250
265
  self.payment_data_three_d_s_authentication = data.fetch(:payment_data_three_d_s_authentication, nil)
251
266
  self.payment_data_network_authentication = data.fetch(:payment_data_network_authentication, nil)
267
+ self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, nil)
268
+ self.scheme_id = data.fetch(:scheme_id, nil)
269
+ self.payment_type = data.fetch(:payment_type, nil)
252
270
  self.metadata = data.fetch(:metadata, nil)
253
271
  self.gateway_fee = data.fetch(:gateway_fee, nil)
254
272
  self.created_at = data.fetch(:created_at, nil)
@@ -285,6 +303,9 @@ module ProcessOut
285
303
  "payment_data_three_d_s_request": self.payment_data_three_d_s_request,
286
304
  "payment_data_three_d_s_authentication": self.payment_data_three_d_s_authentication,
287
305
  "payment_data_network_authentication": self.payment_data_network_authentication,
306
+ "initial_scheme_transaction_id": self.initial_scheme_transaction_id,
307
+ "scheme_id": self.scheme_id,
308
+ "payment_type": self.payment_type,
288
309
  "metadata": self.metadata,
289
310
  "gateway_fee": self.gateway_fee,
290
311
  "created_at": self.created_at,
@@ -364,6 +385,15 @@ module ProcessOut
364
385
  if data.include? "payment_data_network_authentication"
365
386
  self.payment_data_network_authentication = data["payment_data_network_authentication"]
366
387
  end
388
+ if data.include? "initial_scheme_transaction_id"
389
+ self.initial_scheme_transaction_id = data["initial_scheme_transaction_id"]
390
+ end
391
+ if data.include? "scheme_id"
392
+ self.scheme_id = data["scheme_id"]
393
+ end
394
+ if data.include? "payment_type"
395
+ self.payment_type = data["payment_type"]
396
+ end
367
397
  if data.include? "metadata"
368
398
  self.metadata = data["metadata"]
369
399
  end
@@ -406,6 +436,9 @@ module ProcessOut
406
436
  self.payment_data_three_d_s_request = data.fetch(:payment_data_three_d_s_request, self.payment_data_three_d_s_request)
407
437
  self.payment_data_three_d_s_authentication = data.fetch(:payment_data_three_d_s_authentication, self.payment_data_three_d_s_authentication)
408
438
  self.payment_data_network_authentication = data.fetch(:payment_data_network_authentication, self.payment_data_network_authentication)
439
+ self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, self.initial_scheme_transaction_id)
440
+ self.scheme_id = data.fetch(:scheme_id, self.scheme_id)
441
+ self.payment_type = data.fetch(:payment_type, self.payment_type)
409
442
  self.metadata = data.fetch(:metadata, self.metadata)
410
443
  self.gateway_fee = data.fetch(:gateway_fee, self.gateway_fee)
411
444
  self.created_at = data.fetch(:created_at, self.created_at)
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "2.22.0"
2
+ VERSION = "2.24.0"
3
3
  end
data/lib/processout.rb CHANGED
@@ -23,6 +23,7 @@ require "processout/invoice_external_fraud_tools"
23
23
  require "processout/invoice_risk"
24
24
  require "processout/invoice_device"
25
25
  require "processout/invoice_shipping"
26
+ require "processout/invoice_billing"
26
27
  require "processout/invoice_detail"
27
28
  require "processout/customer_action"
28
29
  require "processout/dunning_action"
@@ -168,6 +169,11 @@ module ProcessOut
168
169
  obj = InvoiceShipping.new(self, data)
169
170
  end
170
171
 
172
+ # Create a new InvoiceBilling instance
173
+ def invoice_billing(data = {})
174
+ obj = InvoiceBilling.new(self, data)
175
+ end
176
+
171
177
  # Create a new InvoiceDetail instance
172
178
  def invoice_detail(data = {})
173
179
  obj = InvoiceDetail.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: 2.22.0
4
+ version: 2.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel HUEZ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-14 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -96,6 +96,7 @@ files:
96
96
  - lib/processout/gateway_configuration.rb
97
97
  - lib/processout/gateway_request.rb
98
98
  - lib/processout/invoice.rb
99
+ - lib/processout/invoice_billing.rb
99
100
  - lib/processout/invoice_detail.rb
100
101
  - lib/processout/invoice_device.rb
101
102
  - lib/processout/invoice_external_fraud_tools.rb