gocardless_pro 4.4.1 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 391ae6d45356b902c0a936c5bb167740fd9415d1213c146fd0ba9bdd5416cc4c
4
- data.tar.gz: cea405daca5960666de0eb79eaee3d963a1b3fba19df415cfef9f9e755ca719f
3
+ metadata.gz: a1ced5abf1ebe520340697c454607513d40ebc660ef68d3f993581575a3272dc
4
+ data.tar.gz: 978ae6ab6cbf29a4b7cf925fcf81c1646ae8ec9eb2591a36a64ae731b9a5d709
5
5
  SHA512:
6
- metadata.gz: 4a0890972bcdb70acf2d1b6834093226cd46aad6ef811b9edf00dd2235c6c9527165c6d6b50b1883fc5af8fd28ad77d1d69036dc7d3e1764a1cc89df5e8bff04
7
- data.tar.gz: 2c31f226752ba9ef70f61e1befb5cbc1c1d716c7f6d6f46b7c94ddb2d4b10f31e60e8b8611e956aadd163e2deadb24aef404796c29b8edbaee9d6080c4c35bf6
6
+ metadata.gz: b3cbbe0e10af62d3dc0ff25db33f9997661d79242da55b360ad53ecef09fcad5a8255012127d7e1c43ed2bbc57fd05c576ce4276021a6be76e68bfe5c79c2d0d
7
+ data.tar.gz: de56b12c5f6cf374e53cf3f98205c6cbe3b671b65b46b7b873bbf78f09921d62db452093940781e2bb3be17f69ad960ffafeeb0411c144305e42a4cebcad83d0
@@ -283,7 +283,7 @@ module GoCardlessPro
283
283
  'User-Agent' => "#{user_agent}",
284
284
  'Content-Type' => 'application/json',
285
285
  'GoCardless-Client-Library' => 'gocardless-pro-ruby',
286
- 'GoCardless-Client-Version' => '4.4.1',
286
+ 'GoCardless-Client-Version' => '4.5.0',
287
287
  },
288
288
  }
289
289
  end
@@ -24,6 +24,7 @@ module GoCardlessPro
24
24
  attr_reader :limits
25
25
  attr_reader :logo_url
26
26
  attr_reader :name
27
+ attr_reader :roles
27
28
  attr_reader :status
28
29
 
29
30
  # Initialize a institution resource instance
@@ -38,6 +39,7 @@ module GoCardlessPro
38
39
  @limits = object['limits']
39
40
  @logo_url = object['logo_url']
40
41
  @name = object['name']
42
+ @roles = object['roles']
41
43
  @status = object['status']
42
44
  @response = response
43
45
  end
@@ -18,7 +18,7 @@ module GoCardlessPro
18
18
  # the status of the outbound payment changes
19
19
  # (https://developer.gocardless.com/api-reference/#event-types-outbound-payment).
20
20
  #
21
- # ####Rate limiting
21
+ # Rate limiting
22
22
  #
23
23
  # Two rate limits apply to the Outbound Payments APIs:
24
24
  #
@@ -51,14 +51,14 @@ module GoCardlessPro
51
51
  # https://api.gocardless.com/events?payer_authorisation={id}&action=completed
52
52
  #
53
53
  #
54
- # Note that the `create` and `update` endpoints behave differently than
55
- # other existing `create` and `update` endpoints. The Payer Authorisation is
54
+ # Note that the create and update endpoints behave differently than
55
+ # other existing create and update endpoints. The Payer Authorisation is
56
56
  # still saved if incomplete data is provided.
57
- # We return the list of incomplete data in the `incomplete_fields` along
58
- # with the resources in the body of the response.
57
+ # We return the list of incomplete data in the incomplete_fields along with
58
+ # the resources in the body of the response.
59
59
  # The bank account details(account_number, bank_code & branch_code) must be
60
60
  # sent together rather than splitting across different request for both
61
- # `create` and `update` endpoints.
61
+ # create and update endpoints.
62
62
  #
63
63
  #
64
64
  # The API is designed to be flexible and allows you to collect information
@@ -23,6 +23,7 @@ module GoCardlessPro
23
23
  class Payment
24
24
  attr_reader :amount
25
25
  attr_reader :amount_refunded
26
+ attr_reader :app_fee
26
27
  attr_reader :charge_date
27
28
  attr_reader :created_at
28
29
  attr_reader :currency
@@ -43,6 +44,7 @@ module GoCardlessPro
43
44
 
44
45
  @amount = object['amount']
45
46
  @amount_refunded = object['amount_refunded']
47
+ @app_fee = object['app_fee']
46
48
  @charge_date = object['charge_date']
47
49
  @created_at = object['created_at']
48
50
  @currency = object['currency']
@@ -13,8 +13,8 @@ module GoCardlessPro
13
13
  # Deprecated: Redirect Flows are legacy APIs and cannot be used by new
14
14
  # integrators.
15
15
  # The Billing Request flow
16
- # (https://developer.gocardless.com/api-reference/#billing-requests) API
17
- # should be used for your payment flows.
16
+ # (https://developer.gocardless.com/api-reference/#billing-requests-billing-requests)
17
+ # API should be used for your payment flows.
18
18
  #
19
19
  # Redirect flows enable you to use GoCardless' hosted payment pages
20
20
  # (https://pay-sandbox.gocardless.com/AL000000AKFPFF) to set up mandates
@@ -11,9 +11,9 @@ module GoCardlessPro
11
11
  # Service for making requests to the BankAccountHolderVerification endpoints
12
12
  class BankAccountHolderVerificationsService < BaseService
13
13
  # Verify the account holder of the bank account. A complete verification can be
14
- # attached when creating an outbound payment. This endpoint allows partner
15
- # merchants to create Confirmation of Payee checks on customer bank accounts
16
- # before sending outbound payments.
14
+ # attached when creating an outbound payment.
15
+ # This endpoint allows partner merchants to create Confirmation of Payee checks
16
+ # on customer bank accounts before sending outbound payments.
17
17
  # Example URL: /bank_account_holder_verifications
18
18
  # @param options [Hash] parameters as a hash, under a params key.
19
19
  def create(options = {})
@@ -13,11 +13,15 @@ module GoCardlessPro
13
13
  # Performs a bank details lookup. As part of the lookup, a modulus check and
14
14
  # reachability check are performed.
15
15
  #
16
- # For UK-based bank accounts, where an account holder name is provided (and an
17
- # account number, a sort code or an iban
18
- # are already present), we verify that the account holder name and bank account
19
- # number match the details held by
20
- # the relevant bank.
16
+ # For UK or Eurozone-based bank accounts, where an account holder name is
17
+ # provided
18
+ # (and an account number, a sort code or an IBAN are already present), we verify
19
+ # that
20
+ # the account holder name and bank account number match the details held by the
21
+ # relevant bank.
22
+ # If there is no match, the endpoint will return a 422 - validation error on
23
+ # account_holder_name:
24
+ # "Account holder name does not match bank account details provided".
21
25
  #
22
26
  # If your request returns an error
23
27
  # (https://developer.gocardless.com/api-reference/#api-usage-errors) or the
@@ -10,8 +10,8 @@ module GoCardlessPro
10
10
  module Services
11
11
  # Service for making requests to the BillingRequest endpoints
12
12
  class BillingRequestsService < BaseService
13
- # Important: All properties associated with `subscription_request` and
14
- # `instalment_schedule_request` are only supported for ACH and PAD schemes.
13
+ # Important: All properties associated with subscription_request and
14
+ # instalment_schedule_request are only supported for ACH and PAD schemes.
15
15
  # Example URL: /billing_requests
16
16
  # @param options [Hash] parameters as a hash, under a params key.
17
17
  def create(options = {})
@@ -112,11 +112,15 @@ module GoCardlessPro
112
112
  # customer is requested to adjust the account number/routing number and
113
113
  # succeed in this check to continue with the flow.
114
114
  #
115
- # BACS scheme Payer Name Verification
115
+ # BACS and SEPA schemes Payer Name Verification
116
116
  # (https://hub.gocardless.com/s/article/Introduction-to-Payer-Name-Verification?language=en_GB)
117
- # is enabled by default for UK based bank accounts, meaning we verify the
118
- # account holder name and bank account
119
- # number match the details held by the relevant bank.
117
+ # is enabled by default for UK and Eurozone based bank accounts, meaning we
118
+ # verify the account holder name and bank account number/IBAN match
119
+ # the details held by the relevant bank. If there is no match, the endpoint will
120
+ # return a 422 - validation error on account_holder_name:
121
+ # "Account holder name does not match bank account details provided". Testing
122
+ # instructions are here
123
+ # (https://developer.gocardless.com/developer-tools/scenario-simulators/#payer_name_verification)
120
124
  # Example URL: /billing_requests/:identity/actions/collect_bank_account
121
125
  #
122
126
  # @param identity # Unique identifier, beginning with "BRQ".
@@ -3,5 +3,5 @@ end
3
3
 
4
4
  module GoCardlessPro
5
5
  # Current version of the GC gem
6
- VERSION = '4.4.1'
6
+ VERSION = '4.5.0'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocardless_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.1
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
@@ -49,56 +49,56 @@ dependencies:
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: 3.13.0
52
+ version: 3.13.2
53
53
  type: :development
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: 3.13.0
59
+ version: 3.13.2
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: webmock
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: 3.24.0
66
+ version: 3.26.2
67
67
  type: :development
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 3.24.0
73
+ version: 3.26.2
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: rubocop
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: 1.85.0
80
+ version: 1.89.0
81
81
  type: :development
82
82
  prerelease: false
83
83
  version_requirements: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 1.85.0
87
+ version: 1.89.0
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: yard
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 0.9.37
94
+ version: 0.9.45
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: 0.9.37
101
+ version: 0.9.45
102
102
  email:
103
103
  - engineering@gocardless.com
104
104
  executables: []