gocardless_pro 3.0.0 → 3.1.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: 6e7c9c7f865d0173f9fc0f2a577c04178c49f5aea6dcb15499dec10f97eaf2b8
4
- data.tar.gz: fe2d4c30469b84f035028d73a9d3edd4f8298306c0f35b3c0eef09653f235182
3
+ metadata.gz: 1180067531d66341e77cd81bd3b9e757e26f68b2a48d3a5abfe3da5a429242b4
4
+ data.tar.gz: eaccc3cea586a9b3a68ea034e22ff173b7caa3fc5af9f67a7c3f748e8bb987da
5
5
  SHA512:
6
- metadata.gz: a705da86320bda9c898ead0194d23350adbc8280048b0bb01f4f75b5cac1fc010869dbee793f507424640521aea3eb3a26e6d9d988a60809d17a042f1123d085
7
- data.tar.gz: 756f6bddc3ba9d8aa5fd944f20427b74990e2dae69f2d30ca378f06ef4007c786d152e98abf8dc95000079261c28965436f0d63faeb096eb7e98f1ffacb8fe83
6
+ metadata.gz: dbb0c59030fa86f1424e933bd7a92f9a3d1fbfff9c299ef40ec16085c650c57f2cd08eab262eb44ffc382c7a239840b15056cd9ada8e98a09c787246163cfe08
7
+ data.tar.gz: 53dc984d011636663a47cf8df47cabe910f77478baa1be333dec18edad6ebe9379cc42ea9c4939a8ee224a214f2b30eda9a083972a446cacc9532755795c78d8
@@ -233,7 +233,7 @@ module GoCardlessPro
233
233
  'User-Agent' => "#{user_agent}",
234
234
  'Content-Type' => 'application/json',
235
235
  'GoCardless-Client-Library' => 'gocardless-pro-ruby',
236
- 'GoCardless-Client-Version' => '3.0.0'
236
+ 'GoCardless-Client-Version' => '3.1.0'
237
237
  }
238
238
  }
239
239
  end
@@ -10,18 +10,20 @@ module GoCardlessPro
10
10
  module Resources
11
11
  # Represents an instance of a billing_request resource returned from the API
12
12
 
13
- # Billing Requests help create resources that require input or action from a
14
- # customer. An example of required input might be additional customer
15
- # billing
16
- # details, while an action would be asking a customer to authorise a payment
17
- # using their mobile banking app.
13
+ # Billing Requests help create resources that require input or action from
14
+ # a customer. An example of required input might be additional customer
15
+ # billing details, while an action would be asking a customer to authorise a
16
+ # payment using their mobile banking app.
18
17
  #
19
18
  # See [Billing Requests:
20
19
  # Overview](https://developer.gocardless.com/getting-started/billing-requests/overview/)
21
- # for how-to's, explanations and tutorials.
20
+ # for how-to's, explanations and tutorials. <p
21
+ # class="notice"><strong>Important</strong>: All properties associated with
22
+ # `subscription_request` and `instalment_schedule_request` are only
23
+ # supported for ACH and PAD schemes.</p>
22
24
  class BillingRequest
23
- attr_reader :actions, :created_at, :fallback_enabled, :id, :mandate_request, :metadata, :payment_request,
24
- :purpose_code, :resources, :status, :subscription_request
25
+ attr_reader :actions, :created_at, :fallback_enabled, :fallback_occurred, :id, :instalment_schedule_request,
26
+ :mandate_request, :metadata, :payment_request, :purpose_code, :resources, :status, :subscription_request
25
27
 
26
28
  # Initialize a billing_request resource instance
27
29
  # @param object [Hash] an object returned from the API
@@ -31,7 +33,9 @@ module GoCardlessPro
31
33
  @actions = object['actions']
32
34
  @created_at = object['created_at']
33
35
  @fallback_enabled = object['fallback_enabled']
36
+ @fallback_occurred = object['fallback_occurred']
34
37
  @id = object['id']
38
+ @instalment_schedule_request = object['instalment_schedule_request']
35
39
  @links = object['links']
36
40
  @mandate_request = object['mandate_request']
37
41
  @metadata = object['metadata']
@@ -82,6 +86,14 @@ module GoCardlessPro
82
86
  @links['customer_billing_detail']
83
87
  end
84
88
 
89
+ def instalment_schedule_request
90
+ @links['instalment_schedule_request']
91
+ end
92
+
93
+ def instalment_schedule_request_instalment_schedule
94
+ @links['instalment_schedule_request_instalment_schedule']
95
+ end
96
+
85
97
  def mandate_request
86
98
  @links['mandate_request']
87
99
  end
@@ -109,6 +121,10 @@ module GoCardlessPro
109
121
  def subscription_request
110
122
  @links['subscription_request']
111
123
  end
124
+
125
+ def subscription_request_subscription
126
+ @links['subscription_request_subscription']
127
+ end
112
128
  end
113
129
  end
114
130
  end
@@ -15,7 +15,7 @@ module GoCardlessPro
15
15
  # authorisation (such as open banking single payments).
16
16
  class BillingRequestFlow
17
17
  attr_reader :authorisation_url, :auto_fulfil, :created_at, :customer_details_captured, :exit_uri, :expires_at,
18
- :id, :language, :lock_bank_account, :lock_currency, :lock_customer_details, :prefilled_bank_account, :prefilled_customer, :redirect_uri, :session_token, :show_redirect_buttons, :show_success_redirect_button
18
+ :id, :language, :lock_bank_account, :lock_currency, :lock_customer_details, :prefilled_bank_account, :prefilled_customer, :redirect_uri, :session_token, :show_redirect_buttons, :show_success_redirect_button, :skip_success_screen
19
19
 
20
20
  # Initialize a billing_request_flow resource instance
21
21
  # @param object [Hash] an object returned from the API
@@ -40,6 +40,7 @@ module GoCardlessPro
40
40
  @session_token = object['session_token']
41
41
  @show_redirect_buttons = object['show_redirect_buttons']
42
42
  @show_success_redirect_button = object['show_success_redirect_button']
43
+ @skip_success_screen = object['skip_success_screen']
43
44
  @response = response
44
45
  end
45
46
 
@@ -10,7 +10,9 @@ module GoCardlessPro
10
10
  module Services
11
11
  # Service for making requests to the BillingRequest endpoints
12
12
  class BillingRequestsService < BaseService
13
- #
13
+ # <p class="notice"><strong>Important</strong>: All properties associated with
14
+ # `subscription_request` and `instalment_schedule_request` are only supported
15
+ # for ACH and PAD schemes.</p>
14
16
  # Example URL: /billing_requests
15
17
  # @param options [Hash] parameters as a hash, under a params key.
16
18
  def create(options = {})
@@ -3,5 +3,5 @@ end
3
3
 
4
4
  module GoCardlessPro
5
5
  # Current version of the GC gem
6
- VERSION = '3.0.0'
6
+ VERSION = '3.1.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocardless_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday