recurly 2.18.19 → 2.18.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/recurly/subscription.rb +3 -3
- data/lib/recurly/tax_detail.rb +2 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly/webhook.rb +71 -69
- data/lib/recurly/webhook/prerenewal_notification.rb +6 -0
- data/lib/recurly/webhook/scheduled_subscription_update_notification.rb +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c82b3ed4385ef449530e65f3cf37fef29fc7b1459829672be9c0cc7557ec77
|
4
|
+
data.tar.gz: c8f9bdbcff45857a02bac6af75a82bd3f090ae332781e2df7592bf2f6776daaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a07c1273b0da9046fb4dcf5e490318eab5a28fd38d7390a5c8b7b516dfeb66f7cb1967931ac99c500a0bb0778fe09338ea213cd87f1186407ce3233f77133ad7
|
7
|
+
data.tar.gz: 9267adfa03c7c1da06f9abfd9f178d15a239c0e243467853f1880b15b778bec700c4874d96e28fd9419040474fb02a3d89381b40e17fb7cb953f624509a6377f
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
|
|
14
14
|
[Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
|
15
15
|
|
16
16
|
``` ruby
|
17
|
-
gem 'recurly', '~> 2.18.
|
17
|
+
gem 'recurly', '~> 2.18.20'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/subscription.rb
CHANGED
@@ -261,12 +261,12 @@ module Recurly
|
|
261
261
|
#
|
262
262
|
# @return [true, false] +true+ when successful, +false+ when unable to
|
263
263
|
# (e.g., the subscription is not active).
|
264
|
-
# @param
|
264
|
+
# @param next_bill_date [Time] when the subscription should renew.
|
265
265
|
# @param bulk [boolean] set to true for bulk updates (bypassing 60 second wait).
|
266
|
-
def postpone
|
266
|
+
def postpone next_bill_date, bulk=false
|
267
267
|
return false unless link? :postpone
|
268
268
|
reload follow_link(:postpone,
|
269
|
-
:params => { :
|
269
|
+
:params => { :next_bill_date => next_bill_date, :bulk => bulk }
|
270
270
|
)
|
271
271
|
true
|
272
272
|
end
|
data/lib/recurly/tax_detail.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
data/lib/recurly/webhook.rb
CHANGED
@@ -20,75 +20,77 @@ module Recurly
|
|
20
20
|
# ...
|
21
21
|
# end
|
22
22
|
module Webhook
|
23
|
-
autoload :Notification,
|
24
|
-
autoload :AccountNotification,
|
25
|
-
autoload :SubscriptionNotification,
|
26
|
-
autoload :InvoiceNotification,
|
27
|
-
autoload :ItemNotification,
|
28
|
-
autoload :TransactionNotification,
|
29
|
-
autoload :DunningNotification,
|
30
|
-
autoload :CreditPaymentNotification,
|
31
|
-
autoload :BillingInfoUpdatedNotification,
|
32
|
-
autoload :BillingInfoUpdateFailedNotification,
|
33
|
-
autoload :SubscriptionPausedNotification,
|
34
|
-
autoload :SubscriptionPauseCanceledNotification,'recurly/webhook/subscription_pause_canceled_notification'
|
35
|
-
autoload :SubscriptionPauseModifiedNotification,'recurly/webhook/subscription_pause_modified_notification'
|
36
|
-
autoload :PausedSubscriptionRenewalNotification,'recurly/webhook/paused_subscription_renewal_notification'
|
37
|
-
autoload :SubscriptionResumedNotification,
|
38
|
-
autoload :CanceledSubscriptionNotification,
|
39
|
-
autoload :ScheduledSubscriptionPauseNotification,'recurly/webhook/scheduled_subscription_pause_notification'
|
40
|
-
autoload :
|
41
|
-
autoload :
|
42
|
-
autoload :
|
43
|
-
autoload :
|
44
|
-
autoload :
|
45
|
-
autoload :
|
46
|
-
autoload :
|
47
|
-
autoload :
|
48
|
-
autoload :
|
49
|
-
autoload :
|
50
|
-
autoload :
|
51
|
-
autoload :
|
52
|
-
autoload :
|
53
|
-
autoload :
|
54
|
-
autoload :
|
55
|
-
autoload :
|
56
|
-
autoload :
|
57
|
-
autoload :
|
58
|
-
autoload :
|
59
|
-
autoload :
|
60
|
-
autoload :
|
61
|
-
autoload :
|
62
|
-
autoload :
|
63
|
-
autoload :
|
64
|
-
autoload :
|
65
|
-
autoload :
|
66
|
-
autoload :
|
67
|
-
autoload :
|
68
|
-
autoload :
|
69
|
-
autoload :
|
70
|
-
autoload :
|
71
|
-
autoload :
|
72
|
-
autoload :
|
73
|
-
autoload :
|
74
|
-
autoload :
|
75
|
-
autoload :
|
76
|
-
autoload :
|
77
|
-
autoload :
|
78
|
-
autoload :
|
79
|
-
autoload :
|
80
|
-
autoload :
|
81
|
-
autoload :
|
82
|
-
autoload :
|
83
|
-
autoload :
|
84
|
-
autoload :
|
85
|
-
autoload :
|
86
|
-
autoload :
|
87
|
-
autoload :
|
88
|
-
autoload :
|
89
|
-
autoload :
|
90
|
-
autoload :
|
91
|
-
autoload :
|
23
|
+
autoload :Notification, 'recurly/webhook/notification'
|
24
|
+
autoload :AccountNotification, 'recurly/webhook/account_notification'
|
25
|
+
autoload :SubscriptionNotification, 'recurly/webhook/subscription_notification'
|
26
|
+
autoload :InvoiceNotification, 'recurly/webhook/invoice_notification'
|
27
|
+
autoload :ItemNotification, 'recurly/webhook/item_notification'
|
28
|
+
autoload :TransactionNotification, 'recurly/webhook/transaction_notification'
|
29
|
+
autoload :DunningNotification, 'recurly/webhook/dunning_notification'
|
30
|
+
autoload :CreditPaymentNotification, 'recurly/webhook/credit_payment_notification'
|
31
|
+
autoload :BillingInfoUpdatedNotification, 'recurly/webhook/billing_info_updated_notification'
|
32
|
+
autoload :BillingInfoUpdateFailedNotification, 'recurly/webhook/billing_info_update_failed_notification'
|
33
|
+
autoload :SubscriptionPausedNotification, 'recurly/webhook/subscription_paused_notification'
|
34
|
+
autoload :SubscriptionPauseCanceledNotification, 'recurly/webhook/subscription_pause_canceled_notification'
|
35
|
+
autoload :SubscriptionPauseModifiedNotification, 'recurly/webhook/subscription_pause_modified_notification'
|
36
|
+
autoload :PausedSubscriptionRenewalNotification, 'recurly/webhook/paused_subscription_renewal_notification'
|
37
|
+
autoload :SubscriptionResumedNotification, 'recurly/webhook/subscription_resumed_notification'
|
38
|
+
autoload :CanceledSubscriptionNotification, 'recurly/webhook/canceled_subscription_notification'
|
39
|
+
autoload :ScheduledSubscriptionPauseNotification, 'recurly/webhook/scheduled_subscription_pause_notification'
|
40
|
+
autoload :ScheduledSubscriptionUpdateNotification, 'recurly/webhook/scheduled_subscription_update_notification'
|
41
|
+
autoload :CanceledAccountNotification, 'recurly/webhook/canceled_account_notification'
|
42
|
+
autoload :ClosedInvoiceNotification, 'recurly/webhook/closed_invoice_notification'
|
43
|
+
autoload :ClosedCreditInvoiceNotification, 'recurly/webhook/closed_credit_invoice_notification'
|
44
|
+
autoload :NewCreditInvoiceNotification, 'recurly/webhook/new_credit_invoice_notification'
|
45
|
+
autoload :ProcessingCreditInvoiceNotification, 'recurly/webhook/processing_credit_invoice_notification'
|
46
|
+
autoload :ReopenedCreditInvoiceNotification, 'recurly/webhook/reopened_credit_invoice_notification'
|
47
|
+
autoload :VoidedCreditInvoiceNotification, 'recurly/webhook/voided_credit_invoice_notification'
|
48
|
+
autoload :NewCreditPaymentNotification, 'recurly/webhook/new_credit_payment_notification'
|
49
|
+
autoload :VoidedCreditPaymentNotification, 'recurly/webhook/voided_credit_payment_notification'
|
50
|
+
autoload :ExpiredSubscriptionNotification, 'recurly/webhook/expired_subscription_notification'
|
51
|
+
autoload :FailedPaymentNotification, 'recurly/webhook/failed_payment_notification'
|
52
|
+
autoload :NewAccountNotification, 'recurly/webhook/new_account_notification'
|
53
|
+
autoload :UpdatedAccountNotification, 'recurly/webhook/updated_account_notification'
|
54
|
+
autoload :NewInvoiceNotification, 'recurly/webhook/new_invoice_notification'
|
55
|
+
autoload :NewChargeInvoiceNotification, 'recurly/webhook/new_charge_invoice_notification'
|
56
|
+
autoload :ProcessingChargeInvoiceNotification, 'recurly/webhook/processing_charge_invoice_notification'
|
57
|
+
autoload :PastDueChargeInvoiceNotification, 'recurly/webhook/past_due_charge_invoice_notification'
|
58
|
+
autoload :PaidChargeInvoiceNotification, 'recurly/webhook/paid_charge_invoice_notification'
|
59
|
+
autoload :FailedChargeInvoiceNotification, 'recurly/webhook/failed_charge_invoice_notification'
|
60
|
+
autoload :ReopenedChargeInvoiceNotification, 'recurly/webhook/reopened_charge_invoice_notification'
|
61
|
+
autoload :NewSubscriptionNotification, 'recurly/webhook/new_subscription_notification'
|
62
|
+
autoload :PastDueInvoiceNotification, 'recurly/webhook/past_due_invoice_notification'
|
63
|
+
autoload :ReactivatedAccountNotification, 'recurly/webhook/reactivated_account_notification'
|
64
|
+
autoload :RenewedSubscriptionNotification, 'recurly/webhook/renewed_subscription_notification'
|
65
|
+
autoload :SuccessfulPaymentNotification, 'recurly/webhook/successful_payment_notification'
|
66
|
+
autoload :SuccessfulRefundNotification, 'recurly/webhook/successful_refund_notification'
|
67
|
+
autoload :UpdatedSubscriptionNotification, 'recurly/webhook/updated_subscription_notification'
|
68
|
+
autoload :VoidPaymentNotification, 'recurly/webhook/void_payment_notification'
|
69
|
+
autoload :ProcessingPaymentNotification, 'recurly/webhook/processing_payment_notification'
|
70
|
+
autoload :ProcessingInvoiceNotification, 'recurly/webhook/processing_invoice_notification'
|
71
|
+
autoload :ScheduledPaymentNotification, 'recurly/webhook/scheduled_payment_notification'
|
72
|
+
autoload :NewDunningEventNotification, 'recurly/webhook/new_dunning_event_notification'
|
73
|
+
autoload :GiftCardNotification, 'recurly/webhook/gift_card_notification'
|
74
|
+
autoload :PurchasedGiftCardNotification, 'recurly/webhook/purchased_gift_card_notification'
|
75
|
+
autoload :UpdatedGiftCardNotification, 'recurly/webhook/updated_gift_card_notification'
|
76
|
+
autoload :RegeneratedGiftCardNotification, 'recurly/webhook/regenerated_gift_card_notification'
|
77
|
+
autoload :CanceledGiftCardNotification, 'recurly/webhook/canceled_gift_card_notification'
|
78
|
+
autoload :RedeemedGiftCardNotification, 'recurly/webhook/redeemed_gift_card_notification'
|
79
|
+
autoload :UpdatedBalanceGiftCardNotification, 'recurly/webhook/updated_balance_gift_card_notification'
|
80
|
+
autoload :NewUsageNotification, 'recurly/webhook/new_usage_notification'
|
81
|
+
autoload :TransactionAuthorizedNotification, 'recurly/webhook/transaction_authorized_notification'
|
82
|
+
autoload :LowBalanceGiftCardNotification, 'recurly/webhook/low_balance_gift_card_notification'
|
83
|
+
autoload :TransactionStatusUpdatedNotification, 'recurly/webhook/transaction_status_updated_notification'
|
84
|
+
autoload :UpdatedInvoiceNotification, 'recurly/webhook/updated_invoice_notification'
|
85
|
+
autoload :NewShippingAddressNotification, 'recurly/webhook/new_shipping_address_notification'
|
86
|
+
autoload :UpdatedShippingAddressNotification, 'recurly/webhook/updated_shipping_address_notification'
|
87
|
+
autoload :DeletedShippingAddressNotification, 'recurly/webhook/deleted_shipping_address_notification'
|
88
|
+
autoload :FraudInfoUpdatedNotification, 'recurly/webhook/fraud_info_updated_notification'
|
89
|
+
autoload :NewItemNotification, 'recurly/webhook/new_item_notification'
|
90
|
+
autoload :UpdatedItemNotification, 'recurly/webhook/updated_item_notification'
|
91
|
+
autoload :DeactivatedItemNotification, 'recurly/webhook/deactivated_item_notification'
|
92
|
+
autoload :ReactivatedItemNotification, 'recurly/webhook/reactivated_item_notification'
|
93
|
+
autoload :PrerenewalNotification, 'recurly/webhook/prerenewal_notification'
|
92
94
|
|
93
95
|
# This exception is raised if the Webhook Notification initialization fails
|
94
96
|
class NotificationError < Error
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.18.
|
4
|
+
version: 2.18.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -209,6 +209,7 @@ files:
|
|
209
209
|
- lib/recurly/webhook/past_due_charge_invoice_notification.rb
|
210
210
|
- lib/recurly/webhook/past_due_invoice_notification.rb
|
211
211
|
- lib/recurly/webhook/paused_subscription_renewal_notification.rb
|
212
|
+
- lib/recurly/webhook/prerenewal_notification.rb
|
212
213
|
- lib/recurly/webhook/processing_charge_invoice_notification.rb
|
213
214
|
- lib/recurly/webhook/processing_credit_invoice_notification.rb
|
214
215
|
- lib/recurly/webhook/processing_invoice_notification.rb
|
@@ -223,6 +224,7 @@ files:
|
|
223
224
|
- lib/recurly/webhook/reopened_credit_invoice_notification.rb
|
224
225
|
- lib/recurly/webhook/scheduled_payment_notification.rb
|
225
226
|
- lib/recurly/webhook/scheduled_subscription_pause_notification.rb
|
227
|
+
- lib/recurly/webhook/scheduled_subscription_update_notification.rb
|
226
228
|
- lib/recurly/webhook/subscription_notification.rb
|
227
229
|
- lib/recurly/webhook/subscription_pause_canceled_notification.rb
|
228
230
|
- lib/recurly/webhook/subscription_pause_modified_notification.rb
|