increase 1.237.0 → 1.239.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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/beneficial_owner_list_params.rb +54 -0
  6. data/lib/increase/models/beneficial_owner_retrieve_params.rb +22 -0
  7. data/lib/increase/models/card_payment.rb +139 -90
  8. data/lib/increase/models/entity.rb +3 -207
  9. data/lib/increase/models/entity_beneficial_owner.rb +238 -0
  10. data/lib/increase/models/real_time_decision.rb +138 -86
  11. data/lib/increase/models.rb +6 -0
  12. data/lib/increase/resources/beneficial_owners.rb +67 -0
  13. data/lib/increase/version.rb +1 -1
  14. data/lib/increase.rb +4 -0
  15. data/rbi/increase/client.rbi +3 -0
  16. data/rbi/increase/models/beneficial_owner_list_params.rbi +89 -0
  17. data/rbi/increase/models/beneficial_owner_retrieve_params.rbi +46 -0
  18. data/rbi/increase/models/card_payment.rbi +316 -165
  19. data/rbi/increase/models/entity.rbi +3 -403
  20. data/rbi/increase/models/entity_beneficial_owner.rbi +412 -0
  21. data/rbi/increase/models/real_time_decision.rbi +316 -165
  22. data/rbi/increase/models.rbi +7 -0
  23. data/rbi/increase/resources/beneficial_owners.rbi +54 -0
  24. data/sig/increase/client.rbs +2 -0
  25. data/sig/increase/models/beneficial_owner_list_params.rbs +47 -0
  26. data/sig/increase/models/beneficial_owner_retrieve_params.rbs +24 -0
  27. data/sig/increase/models/card_payment.rbs +115 -67
  28. data/sig/increase/models/entity.rbs +4 -174
  29. data/sig/increase/models/entity_beneficial_owner.rbs +193 -0
  30. data/sig/increase/models/real_time_decision.rbs +114 -67
  31. data/sig/increase/models.rbs +6 -0
  32. data/sig/increase/resources/beneficial_owners.rbs +20 -0
  33. metadata +14 -2
@@ -0,0 +1,238 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::BeneficialOwners#retrieve
6
+ class EntityBeneficialOwner < Increase::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The identifier of this beneficial owner.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute company_title
14
+ # This person's role or title within the entity.
15
+ #
16
+ # @return [String, nil]
17
+ required :company_title, String, nil?: true
18
+
19
+ # @!attribute created_at
20
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
21
+ # Beneficial Owner was created.
22
+ #
23
+ # @return [Time]
24
+ required :created_at, Time
25
+
26
+ # @!attribute individual
27
+ # Personal details for the beneficial owner.
28
+ #
29
+ # @return [Increase::Models::EntityBeneficialOwner::Individual]
30
+ required :individual, -> { Increase::EntityBeneficialOwner::Individual }
31
+
32
+ # @!attribute prongs
33
+ # Why this person is considered a beneficial owner of the entity.
34
+ #
35
+ # @return [Array<Symbol, Increase::Models::EntityBeneficialOwner::Prong>]
36
+ required :prongs, -> { Increase::Internal::Type::ArrayOf[enum: Increase::EntityBeneficialOwner::Prong] }
37
+
38
+ # @!attribute type
39
+ # A constant representing the object's type. For this resource it will always be
40
+ # `entity_beneficial_owner`.
41
+ #
42
+ # @return [Symbol, Increase::Models::EntityBeneficialOwner::Type]
43
+ required :type, enum: -> { Increase::EntityBeneficialOwner::Type }
44
+
45
+ # @!method initialize(id:, company_title:, created_at:, individual:, prongs:, type:)
46
+ # Some parameter documentations has been truncated, see
47
+ # {Increase::Models::EntityBeneficialOwner} for more details.
48
+ #
49
+ # @param id [String] The identifier of this beneficial owner.
50
+ #
51
+ # @param company_title [String, nil] This person's role or title within the entity.
52
+ #
53
+ # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Benefic
54
+ #
55
+ # @param individual [Increase::Models::EntityBeneficialOwner::Individual] Personal details for the beneficial owner.
56
+ #
57
+ # @param prongs [Array<Symbol, Increase::Models::EntityBeneficialOwner::Prong>] Why this person is considered a beneficial owner of the entity.
58
+ #
59
+ # @param type [Symbol, Increase::Models::EntityBeneficialOwner::Type] A constant representing the object's type. For this resource it will always be `
60
+
61
+ # @see Increase::Models::EntityBeneficialOwner#individual
62
+ class Individual < Increase::Internal::Type::BaseModel
63
+ # @!attribute address
64
+ # The person's address.
65
+ #
66
+ # @return [Increase::Models::EntityBeneficialOwner::Individual::Address]
67
+ required :address, -> { Increase::EntityBeneficialOwner::Individual::Address }
68
+
69
+ # @!attribute date_of_birth
70
+ # The person's date of birth in YYYY-MM-DD format.
71
+ #
72
+ # @return [Date]
73
+ required :date_of_birth, Date
74
+
75
+ # @!attribute identification
76
+ # A means of verifying the person's identity.
77
+ #
78
+ # @return [Increase::Models::EntityBeneficialOwner::Individual::Identification]
79
+ required :identification, -> { Increase::EntityBeneficialOwner::Individual::Identification }
80
+
81
+ # @!attribute name
82
+ # The person's legal name.
83
+ #
84
+ # @return [String]
85
+ required :name, String
86
+
87
+ # @!method initialize(address:, date_of_birth:, identification:, name:)
88
+ # Personal details for the beneficial owner.
89
+ #
90
+ # @param address [Increase::Models::EntityBeneficialOwner::Individual::Address] The person's address.
91
+ #
92
+ # @param date_of_birth [Date] The person's date of birth in YYYY-MM-DD format.
93
+ #
94
+ # @param identification [Increase::Models::EntityBeneficialOwner::Individual::Identification] A means of verifying the person's identity.
95
+ #
96
+ # @param name [String] The person's legal name.
97
+
98
+ # @see Increase::Models::EntityBeneficialOwner::Individual#address
99
+ class Address < Increase::Internal::Type::BaseModel
100
+ # @!attribute city
101
+ # The city, district, town, or village of the address.
102
+ #
103
+ # @return [String, nil]
104
+ required :city, String, nil?: true
105
+
106
+ # @!attribute country
107
+ # The two-letter ISO 3166-1 alpha-2 code for the country of the address.
108
+ #
109
+ # @return [String]
110
+ required :country, String
111
+
112
+ # @!attribute line1
113
+ # The first line of the address.
114
+ #
115
+ # @return [String]
116
+ required :line1, String
117
+
118
+ # @!attribute line2
119
+ # The second line of the address.
120
+ #
121
+ # @return [String, nil]
122
+ required :line2, String, nil?: true
123
+
124
+ # @!attribute state
125
+ # The two-letter United States Postal Service (USPS) abbreviation for the US
126
+ # state, province, or region of the address.
127
+ #
128
+ # @return [String, nil]
129
+ required :state, String, nil?: true
130
+
131
+ # @!attribute zip
132
+ # The ZIP or postal code of the address.
133
+ #
134
+ # @return [String, nil]
135
+ required :zip, String, nil?: true
136
+
137
+ # @!method initialize(city:, country:, line1:, line2:, state:, zip:)
138
+ # Some parameter documentations has been truncated, see
139
+ # {Increase::Models::EntityBeneficialOwner::Individual::Address} for more details.
140
+ #
141
+ # The person's address.
142
+ #
143
+ # @param city [String, nil] The city, district, town, or village of the address.
144
+ #
145
+ # @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address.
146
+ #
147
+ # @param line1 [String] The first line of the address.
148
+ #
149
+ # @param line2 [String, nil] The second line of the address.
150
+ #
151
+ # @param state [String, nil] The two-letter United States Postal Service (USPS) abbreviation for the US state
152
+ #
153
+ # @param zip [String, nil] The ZIP or postal code of the address.
154
+ end
155
+
156
+ # @see Increase::Models::EntityBeneficialOwner::Individual#identification
157
+ class Identification < Increase::Internal::Type::BaseModel
158
+ # @!attribute method_
159
+ # A method that can be used to verify the individual's identity.
160
+ #
161
+ # @return [Symbol, Increase::Models::EntityBeneficialOwner::Individual::Identification::Method]
162
+ required :method_,
163
+ enum: -> { Increase::EntityBeneficialOwner::Individual::Identification::Method },
164
+ api_name: :method
165
+
166
+ # @!attribute number_last4
167
+ # The last 4 digits of the identification number that can be used to verify the
168
+ # individual's identity.
169
+ #
170
+ # @return [String]
171
+ required :number_last4, String
172
+
173
+ # @!method initialize(method_:, number_last4:)
174
+ # Some parameter documentations has been truncated, see
175
+ # {Increase::Models::EntityBeneficialOwner::Individual::Identification} for more
176
+ # details.
177
+ #
178
+ # A means of verifying the person's identity.
179
+ #
180
+ # @param method_ [Symbol, Increase::Models::EntityBeneficialOwner::Individual::Identification::Method] A method that can be used to verify the individual's identity.
181
+ #
182
+ # @param number_last4 [String] The last 4 digits of the identification number that can be used to verify the in
183
+
184
+ # A method that can be used to verify the individual's identity.
185
+ #
186
+ # @see Increase::Models::EntityBeneficialOwner::Individual::Identification#method_
187
+ module Method
188
+ extend Increase::Internal::Type::Enum
189
+
190
+ # A social security number.
191
+ SOCIAL_SECURITY_NUMBER = :social_security_number
192
+
193
+ # An individual taxpayer identification number (ITIN).
194
+ INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER = :individual_taxpayer_identification_number
195
+
196
+ # A passport number.
197
+ PASSPORT = :passport
198
+
199
+ # A driver's license number.
200
+ DRIVERS_LICENSE = :drivers_license
201
+
202
+ # Another identifying document.
203
+ OTHER = :other
204
+
205
+ # @!method self.values
206
+ # @return [Array<Symbol>]
207
+ end
208
+ end
209
+ end
210
+
211
+ module Prong
212
+ extend Increase::Internal::Type::Enum
213
+
214
+ # A person with 25% or greater direct or indirect ownership of the entity.
215
+ OWNERSHIP = :ownership
216
+
217
+ # A person who manages, directs, or has significant control of the entity.
218
+ CONTROL = :control
219
+
220
+ # @!method self.values
221
+ # @return [Array<Symbol>]
222
+ end
223
+
224
+ # A constant representing the object's type. For this resource it will always be
225
+ # `entity_beneficial_owner`.
226
+ #
227
+ # @see Increase::Models::EntityBeneficialOwner#type
228
+ module Type
229
+ extend Increase::Internal::Type::Enum
230
+
231
+ ENTITY_BENEFICIAL_OWNER = :entity_beneficial_owner
232
+
233
+ # @!method self.values
234
+ # @return [Array<Symbol>]
235
+ end
236
+ end
237
+ end
238
+ end
@@ -198,12 +198,6 @@ module Increase
198
198
  # @return [String, nil]
199
199
  required :cardholder_name, String, nil?: true
200
200
 
201
- # @!attribute category
202
- # The category of the card authentication attempt.
203
- #
204
- # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::Category, nil]
205
- required :category, enum: -> { Increase::RealTimeDecision::CardAuthentication::Category }, nil?: true
206
-
207
201
  # @!attribute decision
208
202
  # Whether or not the authentication attempt was approved.
209
203
  #
@@ -249,6 +243,12 @@ module Increase
249
243
  # @return [String, nil]
250
244
  required :merchant_name, String, nil?: true
251
245
 
246
+ # @!attribute message_category
247
+ # The message category of the card authentication attempt.
248
+ #
249
+ # @return [Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory]
250
+ required :message_category, -> { Increase::RealTimeDecision::CardAuthentication::MessageCategory }
251
+
252
252
  # @!attribute prior_authenticated_card_payment_id
253
253
  # The ID of a prior Card Authentication that the requestor used to authenticate
254
254
  # this cardholder for a previous transaction.
@@ -256,26 +256,6 @@ module Increase
256
256
  # @return [String, nil]
257
257
  required :prior_authenticated_card_payment_id, String, nil?: true
258
258
 
259
- # @!attribute purchase_amount
260
- # The purchase amount in minor units.
261
- #
262
- # @return [Integer, nil]
263
- required :purchase_amount, Integer, nil?: true
264
-
265
- # @!attribute purchase_amount_cardholder_estimated
266
- # The purchase amount in the cardholder's currency (i.e., USD) estimated using
267
- # daily conversion rates from the card network.
268
- #
269
- # @return [Integer, nil]
270
- required :purchase_amount_cardholder_estimated, Integer, nil?: true
271
-
272
- # @!attribute purchase_currency
273
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
274
- # authentication attempt's purchase currency.
275
- #
276
- # @return [String, nil]
277
- required :purchase_currency, String, nil?: true
278
-
279
259
  # @!attribute requestor_authentication_indicator
280
260
  # The 3DS requestor authentication indicator describes why the authentication
281
261
  # attempt is performed, such as for a recurring transaction.
@@ -356,14 +336,6 @@ module Increase
356
336
  # @return [String]
357
337
  required :three_d_secure_server_transaction_id, String
358
338
 
359
- # @!attribute transaction_type
360
- # The type of transaction being authenticated.
361
- #
362
- # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::TransactionType, nil]
363
- required :transaction_type,
364
- enum: -> { Increase::RealTimeDecision::CardAuthentication::TransactionType },
365
- nil?: true
366
-
367
339
  # @!attribute upcoming_card_payment_id
368
340
  # The identifier of the Card Payment this authentication attempt will belong to.
369
341
  # Available in the API once the card authentication has completed.
@@ -371,7 +343,7 @@ module Increase
371
343
  # @return [String]
372
344
  required :upcoming_card_payment_id, String
373
345
 
374
- # @!method initialize(access_control_server_transaction_id:, account_id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, cardholder_email:, cardholder_name:, category:, decision:, device_channel:, directory_server_transaction_id:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, prior_authenticated_card_payment_id:, purchase_amount:, purchase_amount_cardholder_estimated:, purchase_currency:, requestor_authentication_indicator:, requestor_challenge_indicator:, requestor_name:, requestor_url:, shipping_address_city:, shipping_address_country:, shipping_address_line1:, shipping_address_line2:, shipping_address_line3:, shipping_address_postal_code:, shipping_address_state:, three_d_secure_server_transaction_id:, transaction_type:, upcoming_card_payment_id:)
346
+ # @!method initialize(access_control_server_transaction_id:, account_id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, cardholder_email:, cardholder_name:, decision:, device_channel:, directory_server_transaction_id:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, message_category:, prior_authenticated_card_payment_id:, requestor_authentication_indicator:, requestor_challenge_indicator:, requestor_name:, requestor_url:, shipping_address_city:, shipping_address_country:, shipping_address_line1:, shipping_address_line2:, shipping_address_line3:, shipping_address_postal_code:, shipping_address_state:, three_d_secure_server_transaction_id:, upcoming_card_payment_id:)
375
347
  # Some parameter documentations has been truncated, see
376
348
  # {Increase::Models::RealTimeDecision::CardAuthentication} for more details.
377
349
  #
@@ -401,8 +373,6 @@ module Increase
401
373
  #
402
374
  # @param cardholder_name [String, nil] The name of the cardholder.
403
375
  #
404
- # @param category [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::Category, nil] The category of the card authentication attempt.
405
- #
406
376
  # @param decision [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::Decision, nil] Whether or not the authentication attempt was approved.
407
377
  #
408
378
  # @param device_channel [Increase::Models::RealTimeDecision::CardAuthentication::DeviceChannel] The device channel of the card authentication attempt.
@@ -417,13 +387,9 @@ module Increase
417
387
  #
418
388
  # @param merchant_name [String, nil] The name of the merchant.
419
389
  #
420
- # @param prior_authenticated_card_payment_id [String, nil] The ID of a prior Card Authentication that the requestor used to authenticate th
390
+ # @param message_category [Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory] The message category of the card authentication attempt.
421
391
  #
422
- # @param purchase_amount [Integer, nil] The purchase amount in minor units.
423
- #
424
- # @param purchase_amount_cardholder_estimated [Integer, nil] The purchase amount in the cardholder's currency (i.e., USD) estimated using dai
425
- #
426
- # @param purchase_currency [String, nil] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the authenticati
392
+ # @param prior_authenticated_card_payment_id [String, nil] The ID of a prior Card Authentication that the requestor used to authenticate th
427
393
  #
428
394
  # @param requestor_authentication_indicator [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::RequestorAuthenticationIndicator, nil] The 3DS requestor authentication indicator describes why the authentication atte
429
395
  #
@@ -449,26 +415,8 @@ module Increase
449
415
  #
450
416
  # @param three_d_secure_server_transaction_id [String] A unique identifier assigned by the 3DS Server initiating the authentication att
451
417
  #
452
- # @param transaction_type [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::TransactionType, nil] The type of transaction being authenticated.
453
- #
454
418
  # @param upcoming_card_payment_id [String] The identifier of the Card Payment this authentication attempt will belong to. A
455
419
 
456
- # The category of the card authentication attempt.
457
- #
458
- # @see Increase::Models::RealTimeDecision::CardAuthentication#category
459
- module Category
460
- extend Increase::Internal::Type::Enum
461
-
462
- # The authentication attempt is for a payment.
463
- PAYMENT_AUTHENTICATION = :payment_authentication
464
-
465
- # The authentication attempt is not for a payment.
466
- NON_PAYMENT_AUTHENTICATION = :non_payment_authentication
467
-
468
- # @!method self.values
469
- # @return [Array<Symbol>]
470
- end
471
-
472
420
  # Whether or not the authentication attempt was approved.
473
421
  #
474
422
  # @see Increase::Models::RealTimeDecision::CardAuthentication#decision
@@ -689,6 +637,135 @@ module Increase
689
637
  end
690
638
  end
691
639
 
640
+ # @see Increase::Models::RealTimeDecision::CardAuthentication#message_category
641
+ class MessageCategory < Increase::Internal::Type::BaseModel
642
+ # @!attribute category
643
+ # The category of the card authentication attempt.
644
+ #
645
+ # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Category]
646
+ required :category, enum: -> { Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category }
647
+
648
+ # @!attribute non_payment
649
+ # Fields specific to non-payment authentication attempts.
650
+ #
651
+ # @return [Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment, nil]
652
+ required :non_payment,
653
+ -> { Increase::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment },
654
+ nil?: true
655
+
656
+ # @!attribute payment
657
+ # Fields specific to payment authentication attempts.
658
+ #
659
+ # @return [Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment, nil]
660
+ required :payment,
661
+ -> { Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment },
662
+ nil?: true
663
+
664
+ # @!method initialize(category:, non_payment:, payment:)
665
+ # The message category of the card authentication attempt.
666
+ #
667
+ # @param category [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Category] The category of the card authentication attempt.
668
+ #
669
+ # @param non_payment [Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment, nil] Fields specific to non-payment authentication attempts.
670
+ #
671
+ # @param payment [Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment, nil] Fields specific to payment authentication attempts.
672
+
673
+ # The category of the card authentication attempt.
674
+ #
675
+ # @see Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory#category
676
+ module Category
677
+ extend Increase::Internal::Type::Enum
678
+
679
+ # The authentication attempt is for a payment.
680
+ PAYMENT_AUTHENTICATION = :payment_authentication
681
+
682
+ # The authentication attempt is not for a payment.
683
+ NON_PAYMENT_AUTHENTICATION = :non_payment_authentication
684
+
685
+ # @!method self.values
686
+ # @return [Array<Symbol>]
687
+ end
688
+
689
+ # @see Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory#non_payment
690
+ class NonPayment < Increase::Internal::Type::BaseModel
691
+ # @!method initialize
692
+ # Fields specific to non-payment authentication attempts.
693
+ end
694
+
695
+ # @see Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory#payment
696
+ class Payment < Increase::Internal::Type::BaseModel
697
+ # @!attribute purchase_amount
698
+ # The purchase amount in minor units.
699
+ #
700
+ # @return [Integer]
701
+ required :purchase_amount, Integer
702
+
703
+ # @!attribute purchase_amount_cardholder_estimated
704
+ # The purchase amount in the cardholder's currency (i.e., USD) estimated using
705
+ # daily conversion rates from the card network.
706
+ #
707
+ # @return [Integer, nil]
708
+ required :purchase_amount_cardholder_estimated, Integer, nil?: true
709
+
710
+ # @!attribute purchase_currency
711
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
712
+ # authentication attempt's purchase currency.
713
+ #
714
+ # @return [String]
715
+ required :purchase_currency, String
716
+
717
+ # @!attribute transaction_type
718
+ # The type of transaction being authenticated.
719
+ #
720
+ # @return [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType, nil]
721
+ required :transaction_type,
722
+ enum: -> {
723
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType
724
+ },
725
+ nil?: true
726
+
727
+ # @!method initialize(purchase_amount:, purchase_amount_cardholder_estimated:, purchase_currency:, transaction_type:)
728
+ # Some parameter documentations has been truncated, see
729
+ # {Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment}
730
+ # for more details.
731
+ #
732
+ # Fields specific to payment authentication attempts.
733
+ #
734
+ # @param purchase_amount [Integer] The purchase amount in minor units.
735
+ #
736
+ # @param purchase_amount_cardholder_estimated [Integer, nil] The purchase amount in the cardholder's currency (i.e., USD) estimated using dai
737
+ #
738
+ # @param purchase_currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the authenticati
739
+ #
740
+ # @param transaction_type [Symbol, Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType, nil] The type of transaction being authenticated.
741
+
742
+ # The type of transaction being authenticated.
743
+ #
744
+ # @see Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment#transaction_type
745
+ module TransactionType
746
+ extend Increase::Internal::Type::Enum
747
+
748
+ # Purchase of goods or services.
749
+ GOODS_SERVICE_PURCHASE = :goods_service_purchase
750
+
751
+ # Check acceptance.
752
+ CHECK_ACCEPTANCE = :check_acceptance
753
+
754
+ # Account funding.
755
+ ACCOUNT_FUNDING = :account_funding
756
+
757
+ # Quasi-cash transaction.
758
+ QUASI_CASH_TRANSACTION = :quasi_cash_transaction
759
+
760
+ # Prepaid activation and load.
761
+ PREPAID_ACTIVATION_AND_LOAD = :prepaid_activation_and_load
762
+
763
+ # @!method self.values
764
+ # @return [Array<Symbol>]
765
+ end
766
+ end
767
+ end
768
+
692
769
  # The 3DS requestor authentication indicator describes why the authentication
693
770
  # attempt is performed, such as for a recurring transaction.
694
771
  #
@@ -761,31 +838,6 @@ module Increase
761
838
  # @!method self.values
762
839
  # @return [Array<Symbol>]
763
840
  end
764
-
765
- # The type of transaction being authenticated.
766
- #
767
- # @see Increase::Models::RealTimeDecision::CardAuthentication#transaction_type
768
- module TransactionType
769
- extend Increase::Internal::Type::Enum
770
-
771
- # Purchase of goods or services.
772
- GOODS_SERVICE_PURCHASE = :goods_service_purchase
773
-
774
- # Check acceptance.
775
- CHECK_ACCEPTANCE = :check_acceptance
776
-
777
- # Account funding.
778
- ACCOUNT_FUNDING = :account_funding
779
-
780
- # Quasi-cash transaction.
781
- QUASI_CASH_TRANSACTION = :quasi_cash_transaction
782
-
783
- # Prepaid activation and load.
784
- PREPAID_ACTIVATION_AND_LOAD = :prepaid_activation_and_load
785
-
786
- # @!method self.values
787
- # @return [Array<Symbol>]
788
- end
789
841
  end
790
842
 
791
843
  # @see Increase::Models::RealTimeDecision#card_authentication_challenge
@@ -103,6 +103,10 @@ module Increase
103
103
 
104
104
  BalanceLookup = Increase::Models::BalanceLookup
105
105
 
106
+ BeneficialOwnerListParams = Increase::Models::BeneficialOwnerListParams
107
+
108
+ BeneficialOwnerRetrieveParams = Increase::Models::BeneficialOwnerRetrieveParams
109
+
106
110
  BookkeepingAccount = Increase::Models::BookkeepingAccount
107
111
 
108
112
  BookkeepingAccountBalanceParams = Increase::Models::BookkeepingAccountBalanceParams
@@ -255,6 +259,8 @@ module Increase
255
259
 
256
260
  EntityArchiveParams = Increase::Models::EntityArchiveParams
257
261
 
262
+ EntityBeneficialOwner = Increase::Models::EntityBeneficialOwner
263
+
258
264
  EntityCreateBeneficialOwnerParams = Increase::Models::EntityCreateBeneficialOwnerParams
259
265
 
260
266
  EntityCreateParams = Increase::Models::EntityCreateParams
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class BeneficialOwners
6
+ # Retrieve a Beneficial Owner
7
+ #
8
+ # @overload retrieve(entity_beneficial_owner_id, request_options: {})
9
+ #
10
+ # @param entity_beneficial_owner_id [String] The identifier of the Beneficial Owner to retrieve.
11
+ #
12
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
13
+ #
14
+ # @return [Increase::Models::EntityBeneficialOwner]
15
+ #
16
+ # @see Increase::Models::BeneficialOwnerRetrieveParams
17
+ def retrieve(entity_beneficial_owner_id, params = {})
18
+ @client.request(
19
+ method: :get,
20
+ path: ["entity_beneficial_owners/%1$s", entity_beneficial_owner_id],
21
+ model: Increase::EntityBeneficialOwner,
22
+ options: params[:request_options]
23
+ )
24
+ end
25
+
26
+ # Some parameter documentations has been truncated, see
27
+ # {Increase::Models::BeneficialOwnerListParams} for more details.
28
+ #
29
+ # List Beneficial Owners
30
+ #
31
+ # @overload list(entity_id:, cursor: nil, idempotency_key: nil, limit: nil, request_options: {})
32
+ #
33
+ # @param entity_id [String] The identifier of the Entity to list beneficial owners for. Only `corporation` e
34
+ #
35
+ # @param cursor [String] Return the page of entries after this one.
36
+ #
37
+ # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
38
+ #
39
+ # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
40
+ #
41
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
42
+ #
43
+ # @return [Increase::Internal::Page<Increase::Models::EntityBeneficialOwner>]
44
+ #
45
+ # @see Increase::Models::BeneficialOwnerListParams
46
+ def list(params)
47
+ parsed, options = Increase::BeneficialOwnerListParams.dump_request(params)
48
+ query = Increase::Internal::Util.encode_query_params(parsed)
49
+ @client.request(
50
+ method: :get,
51
+ path: "entity_beneficial_owners",
52
+ query: query,
53
+ page: Increase::Internal::Page,
54
+ model: Increase::EntityBeneficialOwner,
55
+ options: options
56
+ )
57
+ end
58
+
59
+ # @api private
60
+ #
61
+ # @param client [Increase::Client]
62
+ def initialize(client:)
63
+ @client = client
64
+ end
65
+ end
66
+ end
67
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.237.0"
4
+ VERSION = "1.239.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -85,6 +85,8 @@ require_relative "increase/models/ach_transfer_create_params"
85
85
  require_relative "increase/models/ach_transfer_list_params"
86
86
  require_relative "increase/models/ach_transfer_retrieve_params"
87
87
  require_relative "increase/models/balance_lookup"
88
+ require_relative "increase/models/beneficial_owner_list_params"
89
+ require_relative "increase/models/beneficial_owner_retrieve_params"
88
90
  require_relative "increase/models/bookkeeping_account"
89
91
  require_relative "increase/models/bookkeeping_account_balance_params"
90
92
  require_relative "increase/models/bookkeeping_account_create_params"
@@ -161,6 +163,7 @@ require_relative "increase/models/digital_wallet_token_retrieve_params"
161
163
  require_relative "increase/models/entity"
162
164
  require_relative "increase/models/entity_archive_beneficial_owner_params"
163
165
  require_relative "increase/models/entity_archive_params"
166
+ require_relative "increase/models/entity_beneficial_owner"
164
167
  require_relative "increase/models/entity_create_beneficial_owner_params"
165
168
  require_relative "increase/models/entity_create_params"
166
169
  require_relative "increase/models/entity_list_params"
@@ -359,6 +362,7 @@ require_relative "increase/resources/account_statements"
359
362
  require_relative "increase/resources/account_transfers"
360
363
  require_relative "increase/resources/ach_prenotifications"
361
364
  require_relative "increase/resources/ach_transfers"
365
+ require_relative "increase/resources/beneficial_owners"
362
366
  require_relative "increase/resources/bookkeeping_accounts"
363
367
  require_relative "increase/resources/bookkeeping_entries"
364
368
  require_relative "increase/resources/bookkeeping_entry_sets"
@@ -124,6 +124,9 @@ module Increase
124
124
  sig { returns(Increase::Resources::Entities) }
125
125
  attr_reader :entities
126
126
 
127
+ sig { returns(Increase::Resources::BeneficialOwners) }
128
+ attr_reader :beneficial_owners
129
+
127
130
  sig { returns(Increase::Resources::SupplementalDocuments) }
128
131
  attr_reader :supplemental_documents
129
132