unit_ruby_sdk 1.1.0 → 1.2.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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +175 -20
  3. data/lib/unit/api_resources/application_form_resource.rb +40 -0
  4. data/lib/unit/api_resources/authorization_request_resource.rb +49 -0
  5. data/lib/unit/api_resources/authorization_resource.rb +31 -0
  6. data/lib/unit/api_resources/card_resource.rb +8 -0
  7. data/lib/unit/api_resources/event_resource.rb +40 -0
  8. data/lib/unit/api_resources/fee_resource.rb +32 -0
  9. data/lib/unit/api_resources/payment_resource.rb +9 -0
  10. data/lib/unit/api_resources/received_payment_resource.rb +47 -0
  11. data/lib/unit/api_resources/recurring_payment_resource.rb +55 -0
  12. data/lib/unit/api_resources/repayment_resource.rb +41 -0
  13. data/lib/unit/api_resources/reward_resource.rb +41 -0
  14. data/lib/unit/api_resources/webhook_resource.rb +65 -0
  15. data/lib/unit/models/application/application.rb +98 -10
  16. data/lib/unit/models/application/create_business_application_request.rb +34 -13
  17. data/lib/unit/models/application/create_individual_application_request.rb +12 -8
  18. data/lib/unit/models/application/create_sole_proprietor_application_request.rb +113 -0
  19. data/lib/unit/models/application/create_trust_application_request.rb +67 -0
  20. data/lib/unit/models/application/patch_trust_application_request.rb +31 -0
  21. data/lib/unit/models/application_form/application_form.rb +43 -0
  22. data/lib/unit/models/application_form/create_application_form_request.rb +48 -0
  23. data/lib/unit/models/application_form/list_application_form_params.rb +30 -0
  24. data/lib/unit/models/authorization/authorization.rb +42 -0
  25. data/lib/unit/models/authorization/get_request.rb +22 -0
  26. data/lib/unit/models/authorization/list_request.rb +67 -0
  27. data/lib/unit/models/authorization_request/approve_request.rb +37 -0
  28. data/lib/unit/models/authorization_request/authorization_request.rb +55 -0
  29. data/lib/unit/models/authorization_request/decline_request.rb +31 -0
  30. data/lib/unit/models/authorization_request/list_authorization_params.rb +44 -0
  31. data/lib/unit/models/card/card.rb +102 -4
  32. data/lib/unit/models/card/create_business_credit_card_request.rb +29 -0
  33. data/lib/unit/models/card/create_business_debit_card_request.rb +10 -6
  34. data/lib/unit/models/card/create_business_virtual_credit_card_request.rb +25 -0
  35. data/lib/unit/models/card/create_business_virtual_debit_card_request.rb +10 -6
  36. data/lib/unit/models/card/create_individual_debit_card_request.rb +7 -3
  37. data/lib/unit/models/card/create_individual_virtual_card_request.rb +6 -3
  38. data/lib/unit/models/card/patch_business_card_request.rb +50 -0
  39. data/lib/unit/models/card/patch_business_credit_card_request.rb +22 -0
  40. data/lib/unit/models/card/patch_business_virtual_card_request.rb +43 -0
  41. data/lib/unit/models/card/patch_business_virtual_credit_card_request.rb +20 -0
  42. data/lib/unit/models/customer/list_customer_params.rb +4 -2
  43. data/lib/unit/models/event/event.rb +37 -0
  44. data/lib/unit/models/event/list_event_params.rb +37 -0
  45. data/lib/unit/models/fee/create_fee_request.rb +43 -0
  46. data/lib/unit/models/fee/fee.rb +34 -0
  47. data/lib/unit/models/fee/reverse_fee_request.rb +43 -0
  48. data/lib/unit/models/payment/batch_release_request_builder.rb +21 -0
  49. data/lib/unit/models/payment/create_batch_release_request.rb +54 -0
  50. data/lib/unit/models/payment/payment.rb +21 -1
  51. data/lib/unit/models/received_payment/list_payment_params.rb +51 -0
  52. data/lib/unit/models/received_payment/patch_payment_request.rb +31 -0
  53. data/lib/unit/models/received_payment/received_payment.rb +54 -0
  54. data/lib/unit/models/recurring_payment/create_recurring_credit_ach_payment_request.rb +52 -0
  55. data/lib/unit/models/recurring_payment/create_recurring_credit_book_payment_request.rb +54 -0
  56. data/lib/unit/models/recurring_payment/create_recurring_debit_ach_payment_request.rb +60 -0
  57. data/lib/unit/models/recurring_payment/list_recurring_payment_params.rb +60 -0
  58. data/lib/unit/models/recurring_payment/recurring_payment.rb +106 -0
  59. data/lib/unit/models/repayment/create_ach_repayment_request.rb +57 -0
  60. data/lib/unit/models/repayment/create_book_repayment_request.rb +53 -0
  61. data/lib/unit/models/repayment/list_repayment_params.rb +48 -0
  62. data/lib/unit/models/repayment/repayment.rb +67 -0
  63. data/lib/unit/models/reward/create_reward_request.rb +49 -0
  64. data/lib/unit/models/reward/get_request.rb +22 -0
  65. data/lib/unit/models/reward/list_reward_params.rb +65 -0
  66. data/lib/unit/models/reward/reward.rb +55 -0
  67. data/lib/unit/models/unit_response.rb +1 -1
  68. data/lib/unit/models/webhook/create_webhook_request.rb +49 -0
  69. data/lib/unit/models/webhook/list_webhook_params.rb +39 -0
  70. data/lib/unit/models/webhook/patch_webhook_request.rb +47 -0
  71. data/lib/unit/models/webhook/webhook.rb +80 -0
  72. data/lib/unit/types/application_form_prefill.rb +84 -0
  73. data/lib/unit/types/application_form_settings_override.rb +51 -0
  74. data/lib/unit/types/beneficial_owner.rb +15 -10
  75. data/lib/unit/types/beneficiary.rb +25 -0
  76. data/lib/unit/types/create_schedule.rb +38 -0
  77. data/lib/unit/types/evaluation_params.rb +4 -4
  78. data/lib/unit/types/grantor.rb +37 -0
  79. data/lib/unit/types/officer.rb +26 -13
  80. data/lib/unit/types/power_of_attorney_agent.rb +5 -12
  81. data/lib/unit/types/require_id_verification.rb +29 -0
  82. data/lib/unit/types/trust_contact.rb +34 -0
  83. data/lib/unit/types/trustee.rb +37 -0
  84. data/lib/unit/version.rb +1 -1
  85. data/lib/unit_ruby_sdk.rb +28 -0
  86. metadata +66 -2
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @see https://docs.unit.co/types#beneficiary
4
+ module Unit
5
+ module Types
6
+ class Beneficiary
7
+ attr_reader :full_name, :date_of_birth
8
+
9
+ # @param full_name [FullName]
10
+ # @param date_of_birth [Date]
11
+ def initialize(full_name, date_of_birth = nil)
12
+ @full_name = full_name
13
+ @date_of_birth = date_of_birth
14
+ end
15
+
16
+ def represent
17
+ payload = {
18
+ fullName: full_name.represent,
19
+ dateOfBirth: date_of_birth
20
+ }
21
+ payload.compact
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Type for creating a schedule for recurring payments
4
+ # @see https://docs.unit.co/types#create-schedule
5
+ module Unit
6
+ module Types
7
+ class CreateSchedule
8
+ attr_reader :interval, :day_of_month, :day_of_week, :start_time, :end_time, :total_number_of_payments
9
+
10
+ # @param interval [String]
11
+ # @param day_of_month [Integer]
12
+ # @param day_of_week [String] - optional
13
+ # @param start_time [String] - optional
14
+ # @param end_time [String] - optional
15
+ # @param total_number_of_payments [Integer] - optional
16
+ def initialize(interval, day_of_month, day_of_week = nil, start_time = nil, end_time = nil, total_number_of_payments = nil)
17
+ @interval = interval
18
+ @day_of_month = day_of_month
19
+ @day_of_week = day_of_week
20
+ @start_time = start_time
21
+ @end_time = end_time
22
+ @total_number_of_payments = total_number_of_payments
23
+ end
24
+
25
+ def represent
26
+ payload = {
27
+ interval: interval,
28
+ dayOfMonth: day_of_month,
29
+ dayOfWeek: day_of_week,
30
+ startTime: start_time,
31
+ endTime: end_time,
32
+ totalNumberOfPayments: total_number_of_payments
33
+ }
34
+ payload.compact!
35
+ end
36
+ end
37
+ end
38
+ end
@@ -8,14 +8,14 @@ module Unit
8
8
 
9
9
  def initialize(use_selfie_verification = nil, required_verification = nil)
10
10
  @use_selfie_verification = use_selfie_verification
11
- @required_verificaion = required_verification
11
+ @required_verification = required_verification
12
12
  end
13
13
 
14
14
  def represent
15
15
  {
16
- use_selfie_verification: use_selfie_verification,
17
- required_verification: required_verification
18
- }
16
+ useSelfieVerification: use_selfie_verification,
17
+ requiredVerification: required_verification
18
+ }.compact!
19
19
  end
20
20
  end
21
21
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @see https://docs.unit.co/types#grantor
4
+ module Unit
5
+ module Types
6
+ class Grantor
7
+ attr_reader :full_name, :date_of_birth, :ssn, :email, :phone, :address
8
+
9
+ # @param full_name [FullName]
10
+ # @param ssn [String]
11
+ # @param email [String]
12
+ # @param phone [Phone]
13
+ # @param address [Address]
14
+ # @param date_of_birth [Date] - optional
15
+ def initialize(full_name, ssn, email, phone, address, date_of_birth = nil)
16
+ @full_name = full_name
17
+ @date_of_birth = date_of_birth
18
+ @ssn = ssn
19
+ @email = email
20
+ @phone = phone
21
+ @address = address
22
+ end
23
+
24
+ def represent
25
+ payload = {
26
+ fullName: full_name.represent,
27
+ dateOfBirth: date_of_birth,
28
+ ssn: ssn,
29
+ email: email,
30
+ phone: phone.represent,
31
+ address: address.represent
32
+ }
33
+ payload.compact
34
+ end
35
+ end
36
+ end
37
+ end
@@ -4,21 +4,24 @@ module Unit
4
4
  module Types
5
5
  class Officer
6
6
  attr_reader :full_name, :date_of_birth, :address, :phone, :email,
7
- :status, :title, :ssn, :passport, :nationality
7
+ :status, :title, :ssn, :passport, :nationality,
8
+ :evaluation_params, :id_theft_score, :occupation,
9
+ :annual_income, :source_of_income
8
10
 
9
- # @param [FullName] full_name
10
- # @param [Date] date_of_birth
11
- # @param [Address] address
12
- # @param [Phone] phone
13
- # @param [String] email
14
- # @param [String] ssn
15
- # @param optional [String] status
16
- # @param optional [String] title
17
- # @param optional [String] passport
18
- # @param optional [String] nationality
11
+ # @param full_name [FullName]
12
+ # @param date_of_birth [Date]
13
+ # @param address [Address]
14
+ # @param phone [Phone]
15
+ # @param email [String]
16
+ # @param ssn [String]
17
+ # @param status [String] - optional
18
+ # @param title [String] - optional
19
+ # @param passport [String] - optional
20
+ # @param nationality [String] - optional
19
21
  def initialize(full_name, date_of_birth, address, phone, email, ssn,
20
22
  status = nil, title = nil, passport = nil,
21
- nationality = nil)
23
+ nationality = nil, evaluation_params = nil, id_theft_score = nil, occupation = nil,
24
+ annual_income = nil, source_of_income = nil)
22
25
  @full_name = full_name
23
26
  @date_of_birth = date_of_birth
24
27
  @address = address
@@ -29,6 +32,11 @@ module Unit
29
32
  @ssn = ssn
30
33
  @passport = passport
31
34
  @nationality = nationality
35
+ @evaluation_params = evaluation_params
36
+ @id_theft_score = id_theft_score
37
+ @occupation = occupation
38
+ @annual_income = annual_income
39
+ @source_of_income = source_of_income
32
40
  end
33
41
 
34
42
  def represent
@@ -43,7 +51,12 @@ module Unit
43
51
  status: status,
44
52
  title: title,
45
53
  passport: passport,
46
- nationality: nationality
54
+ nationality: nationality,
55
+ evaluation_params: evaluation_params,
56
+ id_theft_score: id_theft_score,
57
+ occupation: occupation,
58
+ annual_income: annual_income,
59
+ source_of_income: source_of_income
47
60
  }
48
61
  payload.compact
49
62
  end
@@ -1,27 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "full_name"
4
- require_relative "address"
5
- require_relative "phone"
6
-
7
3
  module Unit
8
4
  module Types
9
5
  class PowerOfAttorneyAgent
10
- attr_reader :status, :full_name, :ssn, :passport, :nationality,
6
+ attr_reader :full_name, :ssn, :passport, :nationality,
11
7
  :date_of_birth, :address, :phone, :email, :jwt_subject
12
8
 
13
- # @param [String] status
14
9
  # @param [FullName] full_name
15
10
  # @param [String] ssn
16
- # @param [String] passport
17
11
  # @param [String] nationality
18
12
  # @param [Date] date_of_birth
19
13
  # @param [Address] address
20
14
  # @param [Phone] phone
21
15
  # @param [String] email
22
- # @param [String] jwt_subject
23
- def initialize(status, full_name, ssn, passport, nationality, date_of_birth, address, phone, email, jwt_subject)
24
- @status = status
16
+ # @param [String] passport - optional
17
+ # @param [String] jwt_subject - optional
18
+ def initialize(full_name, ssn, nationality, date_of_birth, address, phone, email, passport = nil, jwt_subject = nil)
25
19
  @full_name = full_name
26
20
  @ssn = ssn
27
21
  @passport = passport
@@ -35,7 +29,6 @@ module Unit
35
29
 
36
30
  def represent
37
31
  {
38
- status: status,
39
32
  fullName: full_name.represent,
40
33
  ssn: ssn,
41
34
  passport: passport,
@@ -45,7 +38,7 @@ module Unit
45
38
  phone: phone.represent,
46
39
  email: email,
47
40
  jwtSubject: jwt_subject
48
- }
41
+ }.compact!
49
42
  end
50
43
  end
51
44
  end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Type representing require id verification
4
+ # @see https://docs.unit.co/types#require-id-verification
5
+ module Unit
6
+ module Types
7
+ class RequireIdVerification
8
+ attr_reader :individual, :officer, :beneficial_owners
9
+
10
+ # @param individual [Boolean] - optional
11
+ # @param officer [Boolean] - optional
12
+ # @param beneficial_owners [Boolean] - optional
13
+ def initialize(individual = nil, officer = nil, beneficial_owners = nil)
14
+ @individual = individual
15
+ @officer = officer
16
+ @beneficial_owners = beneficial_owners
17
+ end
18
+
19
+ def represent
20
+ payload = {
21
+ individual: individual,
22
+ officer: officer,
23
+ beneficialOwners: beneficial_owners
24
+ }
25
+ payload.compact
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @see https://docs.unit.co/types#trustcontact
4
+ module Unit
5
+ module Types
6
+ class TrustContact
7
+ attr_reader :full_name, :email, :phone, :address, :jwt_subject
8
+
9
+ # @param full_name [FullName]
10
+ # @param email [String]
11
+ # @param phone [Phone]
12
+ # @param address [Address]
13
+ # @param jwt_subject [String] - optional
14
+ def initialize(full_name, email, phone, address, jwt_subject = nil)
15
+ @full_name = full_name
16
+ @email = email
17
+ @phone = phone
18
+ @address = address
19
+ @jwt_subject = jwt_subject
20
+ end
21
+
22
+ def represent
23
+ payload = {
24
+ fullName: full_name.represent,
25
+ email: email,
26
+ phone: phone.represent,
27
+ address: address.represent,
28
+ jwtSubject: jwt_subject
29
+ }
30
+ payload.compact
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @see https://docs.unit.co/types#trustee
4
+ module Unit
5
+ module Types
6
+ class Trustee
7
+ attr_reader :full_name, :ssn, :email, :phone, :address, :date_of_birth
8
+
9
+ # @param full_name [FullName]
10
+ # @param ssn [String]
11
+ # @param email [String]
12
+ # @param phone [Phone]
13
+ # @param address [Address]
14
+ # @param date_of_birth [Date] - optional
15
+ def initialize(full_name, ssn, email, phone, address, date_of_birth = nil)
16
+ @full_name = full_name
17
+ @ssn = ssn
18
+ @email = email
19
+ @phone = phone
20
+ @address = address
21
+ @date_of_birth = date_of_birth
22
+ end
23
+
24
+ def represent
25
+ payload = {
26
+ fullName: full_name.represent,
27
+ ssn: ssn,
28
+ email: email,
29
+ phone: phone.represent,
30
+ address: address.represent,
31
+ dateOfBirth: date_of_birth
32
+ }
33
+ payload.compact
34
+ end
35
+ end
36
+ end
37
+ end
data/lib/unit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unit
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
data/lib/unit_ruby_sdk.rb CHANGED
@@ -4,29 +4,49 @@ require_relative "unit/version"
4
4
 
5
5
  module Unit
6
6
  autoload :Application, "unit/models/application/application"
7
+ autoload :ApplicationForm, "unit/models/application_form/application_form"
7
8
  autoload :Customer, "unit/models/customer/customer"
8
9
  autoload :Account, "unit/models/account/account"
9
10
  autoload :ApiToken, "unit/models/api_token/api_token"
10
11
  autoload :Payment, "unit/models/payment/payment"
12
+ autoload :ReceivedPayment, "unit/models/received_payment/received_payment"
11
13
  autoload :Transaction, "unit/models/transaction/transaction"
12
14
  autoload :Card, "unit/models/card/card"
13
15
  autoload :Statement, "unit/models/statement/statement"
14
16
  autoload :AtmLocation, "unit/models/atm_location/atm_location"
15
17
  autoload :CheckDeposit, "unit/models/check_deposit/check_deposit"
16
18
  autoload :Counterparty, "unit/models/counterparty/counterparty"
19
+ autoload :Repayment, "unit/models/repayment/repayment"
20
+ autoload :Event, "unit/models/event/event"
21
+ autoload :Webhook, "unit/models/webhook/webhook"
22
+ autoload :Reward, "unit/models/reward/reward"
23
+ autoload :Fee, "unit/models/fee/fee"
24
+ autoload :Authorization, "unit/models/authorization/authorization"
25
+ autoload :AuthorizationRequest, "unit/models/authorization_request/authorization_request"
26
+ autoload :RecurringPayment, "unit/models/recurring_payment/recurring_payment"
17
27
 
18
28
  module Resource
19
29
  autoload :ApplicationResource, "unit/api_resources/application_resource"
30
+ autoload :ApplicationFormResource, "unit/api_resources/application_form_resource"
20
31
  autoload :CustomerResource, "unit/api_resources/customer_resource"
21
32
  autoload :AccountResource, "unit/api_resources/account_resource"
22
33
  autoload :ApiTokenResource, "unit/api_resources/api_token_resource"
23
34
  autoload :PaymentResource, "unit/api_resources/payment_resource"
35
+ autoload :ReceivedPaymentResource, "unit/api_resources/received_payment_resource"
24
36
  autoload :TransactionResource, "unit/api_resources/transaction_resource"
25
37
  autoload :CardResource, "unit/api_resources/card_resource"
26
38
  autoload :StatementResource, "unit/api_resources/statement_resource"
27
39
  autoload :AtmLocationResource, "unit/api_resources/atm_location_resource"
28
40
  autoload :CheckDepositResource, "unit/api_resources/check_deposit_resource"
29
41
  autoload :CounterpartyResource, "unit/api_resources/counterparty_resource"
42
+ autoload :RepaymentResource, "unit/api_resources/repayment_resource"
43
+ autoload :EventResource, "unit/api_resources/event_resource"
44
+ autoload :WebhookResource, "unit/api_resources/webhook_resource"
45
+ autoload :RewardResource, "unit/api_resources/reward_resource"
46
+ autoload :FeeResource, "unit/api_resources/fee_resource"
47
+ autoload :AuthorizationResource, "unit/api_resources/authorization_resource"
48
+ autoload :AuthorizationRequestResource, "unit/api_resources/authorization_request_resource"
49
+ autoload :RecurringPaymentResource, "unit/api_resources/recurring_payment_resource"
30
50
  end
31
51
 
32
52
  module Types
@@ -47,6 +67,14 @@ module Unit
47
67
  autoload :RestrictedResource, "unit/types/restricted_resource"
48
68
  autoload :DocumentFileType, "unit/types/document_file_type"
49
69
  autoload :Coordinates, "unit/types/coordinates"
70
+ autoload :TrustContact, "unit/types/trust_contact"
71
+ autoload :Trustee, "unit/types/trustee"
72
+ autoload :Grantor, "unit/types/grantor"
73
+ autoload :Beneficiary, "unit/types/beneficiary"
74
+ autoload :CreateSchedule, "unit/types/create_schedule"
75
+ autoload :ApplicationFormSettingsOverride, "unit/types/application_form_settings_override"
76
+ autoload :ApplicationFormPrefill, "unit/types/application_form_prefill"
77
+ autoload :RequireIdVerification, "unit/types/require_id_verification"
50
78
  end
51
79
 
52
80
  autoload :UnitErrorPayload, "unit/errors/unit_error_payload"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unit_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unit
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot_rails
@@ -96,16 +96,26 @@ files:
96
96
  - Rakefile
97
97
  - lib/unit/api_resources/account_resource.rb
98
98
  - lib/unit/api_resources/api_token_resource.rb
99
+ - lib/unit/api_resources/application_form_resource.rb
99
100
  - lib/unit/api_resources/application_resource.rb
100
101
  - lib/unit/api_resources/atm_location_resource.rb
102
+ - lib/unit/api_resources/authorization_request_resource.rb
103
+ - lib/unit/api_resources/authorization_resource.rb
101
104
  - lib/unit/api_resources/base_resource.rb
102
105
  - lib/unit/api_resources/card_resource.rb
103
106
  - lib/unit/api_resources/check_deposit_resource.rb
104
107
  - lib/unit/api_resources/counterparty_resource.rb
105
108
  - lib/unit/api_resources/customer_resource.rb
109
+ - lib/unit/api_resources/event_resource.rb
110
+ - lib/unit/api_resources/fee_resource.rb
106
111
  - lib/unit/api_resources/payment_resource.rb
112
+ - lib/unit/api_resources/received_payment_resource.rb
113
+ - lib/unit/api_resources/recurring_payment_resource.rb
114
+ - lib/unit/api_resources/repayment_resource.rb
115
+ - lib/unit/api_resources/reward_resource.rb
107
116
  - lib/unit/api_resources/statement_resource.rb
108
117
  - lib/unit/api_resources/transaction_resource.rb
118
+ - lib/unit/api_resources/webhook_resource.rb
109
119
  - lib/unit/errors/unit_error.rb
110
120
  - lib/unit/errors/unit_error_payload.rb
111
121
  - lib/unit/models/account/account.rb
@@ -130,19 +140,38 @@ files:
130
140
  - lib/unit/models/application/application.rb
131
141
  - lib/unit/models/application/create_business_application_request.rb
132
142
  - lib/unit/models/application/create_individual_application_request.rb
143
+ - lib/unit/models/application/create_sole_proprietor_application_request.rb
144
+ - lib/unit/models/application/create_trust_application_request.rb
133
145
  - lib/unit/models/application/list_application_params.rb
134
146
  - lib/unit/models/application/patch_application_request.rb
147
+ - lib/unit/models/application/patch_trust_application_request.rb
135
148
  - lib/unit/models/application/upload_document_request.rb
149
+ - lib/unit/models/application_form/application_form.rb
150
+ - lib/unit/models/application_form/create_application_form_request.rb
151
+ - lib/unit/models/application_form/list_application_form_params.rb
136
152
  - lib/unit/models/atm_location/atm_location.rb
137
153
  - lib/unit/models/atm_location/list_by_address_params.rb
138
154
  - lib/unit/models/atm_location/list_by_coordinates_params.rb
139
155
  - lib/unit/models/atm_location/list_by_postal_code_params.rb
156
+ - lib/unit/models/authorization/authorization.rb
157
+ - lib/unit/models/authorization/get_request.rb
158
+ - lib/unit/models/authorization/list_request.rb
159
+ - lib/unit/models/authorization_request/approve_request.rb
160
+ - lib/unit/models/authorization_request/authorization_request.rb
161
+ - lib/unit/models/authorization_request/decline_request.rb
162
+ - lib/unit/models/authorization_request/list_authorization_params.rb
140
163
  - lib/unit/models/card/card.rb
164
+ - lib/unit/models/card/create_business_credit_card_request.rb
141
165
  - lib/unit/models/card/create_business_debit_card_request.rb
166
+ - lib/unit/models/card/create_business_virtual_credit_card_request.rb
142
167
  - lib/unit/models/card/create_business_virtual_debit_card_request.rb
143
168
  - lib/unit/models/card/create_individual_debit_card_request.rb
144
169
  - lib/unit/models/card/create_individual_virtual_card_request.rb
145
170
  - lib/unit/models/card/list_card_params.rb
171
+ - lib/unit/models/card/patch_business_card_request.rb
172
+ - lib/unit/models/card/patch_business_credit_card_request.rb
173
+ - lib/unit/models/card/patch_business_virtual_card_request.rb
174
+ - lib/unit/models/card/patch_business_virtual_credit_card_request.rb
146
175
  - lib/unit/models/card/replace_card_request.rb
147
176
  - lib/unit/models/check_deposit/check_deposit.rb
148
177
  - lib/unit/models/check_deposit/create_check_deposit_request.rb
@@ -163,8 +192,15 @@ files:
163
192
  - lib/unit/models/customer/patch_business_customer_request.rb
164
193
  - lib/unit/models/customer/patch_individual_customer_request.rb
165
194
  - lib/unit/models/customer/remove_authorized_users_request.rb
195
+ - lib/unit/models/event/event.rb
196
+ - lib/unit/models/event/list_event_params.rb
197
+ - lib/unit/models/fee/create_fee_request.rb
198
+ - lib/unit/models/fee/fee.rb
199
+ - lib/unit/models/fee/reverse_fee_request.rb
200
+ - lib/unit/models/payment/batch_release_request_builder.rb
166
201
  - lib/unit/models/payment/bulk_payment_request.rb
167
202
  - lib/unit/models/payment/create_ach_payment_inline_request.rb
203
+ - lib/unit/models/payment/create_batch_release_request.rb
168
204
  - lib/unit/models/payment/create_book_payment_request.rb
169
205
  - lib/unit/models/payment/create_payment_linked_request.rb
170
206
  - lib/unit/models/payment/create_wire_payment_request.rb
@@ -174,6 +210,22 @@ files:
174
210
  - lib/unit/models/payment/patch_ach_payment_request.rb
175
211
  - lib/unit/models/payment/patch_book_payment_request.rb
176
212
  - lib/unit/models/payment/payment.rb
213
+ - lib/unit/models/received_payment/list_payment_params.rb
214
+ - lib/unit/models/received_payment/patch_payment_request.rb
215
+ - lib/unit/models/received_payment/received_payment.rb
216
+ - lib/unit/models/recurring_payment/create_recurring_credit_ach_payment_request.rb
217
+ - lib/unit/models/recurring_payment/create_recurring_credit_book_payment_request.rb
218
+ - lib/unit/models/recurring_payment/create_recurring_debit_ach_payment_request.rb
219
+ - lib/unit/models/recurring_payment/list_recurring_payment_params.rb
220
+ - lib/unit/models/recurring_payment/recurring_payment.rb
221
+ - lib/unit/models/repayment/create_ach_repayment_request.rb
222
+ - lib/unit/models/repayment/create_book_repayment_request.rb
223
+ - lib/unit/models/repayment/list_repayment_params.rb
224
+ - lib/unit/models/repayment/repayment.rb
225
+ - lib/unit/models/reward/create_reward_request.rb
226
+ - lib/unit/models/reward/get_request.rb
227
+ - lib/unit/models/reward/list_reward_params.rb
228
+ - lib/unit/models/reward/reward.rb
177
229
  - lib/unit/models/statement/get_bank_verification_pdf.rb
178
230
  - lib/unit/models/statement/get_html_by_id_request.rb
179
231
  - lib/unit/models/statement/get_pdf_by_id_request.rb
@@ -187,22 +239,34 @@ files:
187
239
  - lib/unit/models/transaction/transaction.rb
188
240
  - lib/unit/models/unit_resource.rb
189
241
  - lib/unit/models/unit_response.rb
242
+ - lib/unit/models/webhook/create_webhook_request.rb
243
+ - lib/unit/models/webhook/list_webhook_params.rb
244
+ - lib/unit/models/webhook/patch_webhook_request.rb
245
+ - lib/unit/models/webhook/webhook.rb
190
246
  - lib/unit/types/address.rb
247
+ - lib/unit/types/application_form_prefill.rb
248
+ - lib/unit/types/application_form_settings_override.rb
191
249
  - lib/unit/types/authorized_user.rb
192
250
  - lib/unit/types/beneficial_owner.rb
251
+ - lib/unit/types/beneficiary.rb
193
252
  - lib/unit/types/business_contact.rb
194
253
  - lib/unit/types/coordinates.rb
195
254
  - lib/unit/types/counterparty.rb
255
+ - lib/unit/types/create_schedule.rb
196
256
  - lib/unit/types/device_fingerprint.rb
197
257
  - lib/unit/types/document_file_type.rb
198
258
  - lib/unit/types/evaluation_params.rb
199
259
  - lib/unit/types/full_name.rb
260
+ - lib/unit/types/grantor.rb
200
261
  - lib/unit/types/officer.rb
201
262
  - lib/unit/types/phone.rb
202
263
  - lib/unit/types/power_of_attorney_agent.rb
203
264
  - lib/unit/types/relationship.rb
204
265
  - lib/unit/types/relationship_array.rb
266
+ - lib/unit/types/require_id_verification.rb
205
267
  - lib/unit/types/restricted_resource.rb
268
+ - lib/unit/types/trust_contact.rb
269
+ - lib/unit/types/trustee.rb
206
270
  - lib/unit/types/wire_counterparty.rb
207
271
  - lib/unit/utils/http_helper.rb
208
272
  - lib/unit/version.rb