processout 2.17.0 → 2.20.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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. metadata +4 -65
  3. data/.gitignore +0 -52
  4. data/.rspec +0 -2
  5. data/.travis.yml +0 -5
  6. data/Dockerfile +0 -7
  7. data/Gemfile +0 -4
  8. data/LICENSE.txt +0 -21
  9. data/Makefile +0 -4
  10. data/README.md +0 -12
  11. data/Rakefile +0 -6
  12. data/bin/console +0 -14
  13. data/bin/setup +0 -8
  14. data/lib/processout/activity.rb +0 -206
  15. data/lib/processout/addon.rb +0 -401
  16. data/lib/processout/api_request.rb +0 -295
  17. data/lib/processout/api_version.rb +0 -92
  18. data/lib/processout/balance.rb +0 -81
  19. data/lib/processout/balances.rb +0 -111
  20. data/lib/processout/card.rb +0 -503
  21. data/lib/processout/card_information.rb +0 -164
  22. data/lib/processout/coupon.rb +0 -352
  23. data/lib/processout/customer.rb +0 -755
  24. data/lib/processout/customer_action.rb +0 -81
  25. data/lib/processout/discount.rb +0 -360
  26. data/lib/processout/dunning_action.rb +0 -81
  27. data/lib/processout/errors/authentication_error.rb +0 -9
  28. data/lib/processout/errors/generic_error.rb +0 -9
  29. data/lib/processout/errors/internal_error.rb +0 -9
  30. data/lib/processout/errors/notfound_error.rb +0 -9
  31. data/lib/processout/errors/validation_error.rb +0 -9
  32. data/lib/processout/event.rb +0 -237
  33. data/lib/processout/gateway.rb +0 -210
  34. data/lib/processout/gateway_configuration.rb +0 -346
  35. data/lib/processout/gateway_request.rb +0 -26
  36. data/lib/processout/invoice.rb +0 -945
  37. data/lib/processout/invoice_detail.rb +0 -224
  38. data/lib/processout/invoice_device.rb +0 -92
  39. data/lib/processout/invoice_external_fraud_tools.rb +0 -70
  40. data/lib/processout/invoice_risk.rb +0 -81
  41. data/lib/processout/invoice_shipping.rb +0 -191
  42. data/lib/processout/invoice_tax.rb +0 -81
  43. data/lib/processout/networking/request.rb +0 -102
  44. data/lib/processout/networking/response.rb +0 -67
  45. data/lib/processout/payment_data_network_authentication.rb +0 -70
  46. data/lib/processout/payment_data_three_ds_authentication.rb +0 -70
  47. data/lib/processout/payment_data_three_ds_request.rb +0 -103
  48. data/lib/processout/payout.rb +0 -379
  49. data/lib/processout/payout_item.rb +0 -238
  50. data/lib/processout/plan.rb +0 -368
  51. data/lib/processout/product.rb +0 -368
  52. data/lib/processout/project.rb +0 -353
  53. data/lib/processout/refund.rb +0 -265
  54. data/lib/processout/subscription.rb +0 -910
  55. data/lib/processout/three_ds.rb +0 -158
  56. data/lib/processout/token.rb +0 -482
  57. data/lib/processout/transaction.rb +0 -894
  58. data/lib/processout/transaction_operation.rb +0 -418
  59. data/lib/processout/version.rb +0 -3
  60. data/lib/processout/webhook.rb +0 -237
  61. data/lib/processout/webhook_endpoint.rb +0 -149
  62. data/lib/processout.rb +0 -251
  63. data/processout.gemspec +0 -26
@@ -1,92 +0,0 @@
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 APIVersion
10
-
11
- attr_reader :name
12
- attr_reader :description
13
- attr_reader :created_at
14
-
15
-
16
- def name=(val)
17
- @name = val
18
- end
19
-
20
- def description=(val)
21
- @description = val
22
- end
23
-
24
- def created_at=(val)
25
- @created_at = val
26
- end
27
-
28
-
29
- # Initializes the APIVersion object
30
- # Params:
31
- # +client+:: +ProcessOut+ client instance
32
- # +data+:: data that can be used to fill the object
33
- def initialize(client, data = {})
34
- @client = client
35
-
36
- self.name = data.fetch(:name, nil)
37
- self.description = data.fetch(:description, nil)
38
- self.created_at = data.fetch(:created_at, nil)
39
-
40
- end
41
-
42
- # Create a new APIVersion using the current client
43
- def new(data = {})
44
- APIVersion.new(@client, data)
45
- end
46
-
47
- # Overrides the JSON marshaller to only send the fields we want
48
- def to_json(options)
49
- {
50
- "name": self.name,
51
- "description": self.description,
52
- "created_at": self.created_at,
53
- }.to_json
54
- end
55
-
56
- # Fills the object with data coming from the API
57
- # Params:
58
- # +data+:: +Hash+ of data coming from the API
59
- def fill_with_data(data)
60
- if data.nil?
61
- return self
62
- end
63
- if data.include? "name"
64
- self.name = data["name"]
65
- end
66
- if data.include? "description"
67
- self.description = data["description"]
68
- end
69
- if data.include? "created_at"
70
- self.created_at = data["created_at"]
71
- end
72
-
73
- self
74
- end
75
-
76
- # Prefills the object with the data passed as parameters
77
- # Params:
78
- # +data+:: +Hash+ of data
79
- def prefill(data)
80
- if data.nil?
81
- return self
82
- end
83
- self.name = data.fetch(:name, self.name)
84
- self.description = data.fetch(:description, self.description)
85
- self.created_at = data.fetch(:created_at, self.created_at)
86
-
87
- self
88
- end
89
-
90
-
91
- end
92
- end
@@ -1,81 +0,0 @@
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 Balance
10
-
11
- attr_reader :amount
12
- attr_reader :currency
13
-
14
-
15
- def amount=(val)
16
- @amount = val
17
- end
18
-
19
- def currency=(val)
20
- @currency = val
21
- end
22
-
23
-
24
- # Initializes the Balance object
25
- # Params:
26
- # +client+:: +ProcessOut+ client instance
27
- # +data+:: data that can be used to fill the object
28
- def initialize(client, data = {})
29
- @client = client
30
-
31
- self.amount = data.fetch(:amount, nil)
32
- self.currency = data.fetch(:currency, nil)
33
-
34
- end
35
-
36
- # Create a new Balance using the current client
37
- def new(data = {})
38
- Balance.new(@client, data)
39
- end
40
-
41
- # Overrides the JSON marshaller to only send the fields we want
42
- def to_json(options)
43
- {
44
- "amount": self.amount,
45
- "currency": self.currency,
46
- }.to_json
47
- end
48
-
49
- # Fills the object with data coming from the API
50
- # Params:
51
- # +data+:: +Hash+ of data coming from the API
52
- def fill_with_data(data)
53
- if data.nil?
54
- return self
55
- end
56
- if data.include? "amount"
57
- self.amount = data["amount"]
58
- end
59
- if data.include? "currency"
60
- self.currency = data["currency"]
61
- end
62
-
63
- self
64
- end
65
-
66
- # Prefills the object with the data passed as parameters
67
- # Params:
68
- # +data+:: +Hash+ of data
69
- def prefill(data)
70
- if data.nil?
71
- return self
72
- end
73
- self.amount = data.fetch(:amount, self.amount)
74
- self.currency = data.fetch(:currency, self.currency)
75
-
76
- self
77
- end
78
-
79
-
80
- end
81
- end
@@ -1,111 +0,0 @@
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 Balances
10
-
11
- attr_reader :vouchers
12
-
13
-
14
- def vouchers=(val)
15
- if val.nil?
16
- @vouchers = []
17
- return
18
- end
19
-
20
- if val.length > 0 and val[0].instance_of? Balance
21
- @vouchers = val
22
- else
23
- l = Array.new
24
- for v in val
25
- obj = Balance.new(@client)
26
- obj.fill_with_data(v)
27
- l.push(obj)
28
- end
29
- @vouchers = l
30
- end
31
-
32
- end
33
-
34
-
35
- # Initializes the Balances object
36
- # Params:
37
- # +client+:: +ProcessOut+ client instance
38
- # +data+:: data that can be used to fill the object
39
- def initialize(client, data = {})
40
- @client = client
41
-
42
- self.vouchers = data.fetch(:vouchers, nil)
43
-
44
- end
45
-
46
- # Create a new Balances using the current client
47
- def new(data = {})
48
- Balances.new(@client, data)
49
- end
50
-
51
- # Overrides the JSON marshaller to only send the fields we want
52
- def to_json(options)
53
- {
54
- "vouchers": self.vouchers,
55
- }.to_json
56
- end
57
-
58
- # Fills the object with data coming from the API
59
- # Params:
60
- # +data+:: +Hash+ of data coming from the API
61
- def fill_with_data(data)
62
- if data.nil?
63
- return self
64
- end
65
- if data.include? "vouchers"
66
- self.vouchers = data["vouchers"]
67
- end
68
-
69
- self
70
- end
71
-
72
- # Prefills the object with the data passed as parameters
73
- # Params:
74
- # +data+:: +Hash+ of data
75
- def prefill(data)
76
- if data.nil?
77
- return self
78
- end
79
- self.vouchers = data.fetch(:vouchers, self.vouchers)
80
-
81
- self
82
- end
83
-
84
- # Fetch a customer token's balance
85
- # Params:
86
- # +token_id+:: ID of the customer's token
87
- # +options+:: +Hash+ of options
88
- def find(token_id, options = {})
89
- self.prefill(options)
90
-
91
- request = Request.new(@client)
92
- path = "/balances/tokens/" + CGI.escape(token_id) + ""
93
- data = {
94
-
95
- }
96
-
97
- response = Response.new(request.get(path, data, options))
98
- return_values = Array.new
99
-
100
- body = response.body
101
- body = body["balances"]
102
- balances = Balances.new(@client)
103
- return_values.push(balances.fill_with_data(body))
104
-
105
-
106
- return_values[0]
107
- end
108
-
109
-
110
- end
111
- end