mock_chargebee 0.0.9 → 0.0.10

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: 3f41b56f20e82e2cffff78ffd4e71aee15e165ee3ca3503ecdde77d9f77c2adc
4
- data.tar.gz: 1085bda9c628e4ed8d58ddc7637157471240c30bcf3a993eef0d69f368a1822b
3
+ metadata.gz: ba35b1bccf05af34b795bb7e842c2c154b733d10901efee6ad1a62e86c210da1
4
+ data.tar.gz: 7dd874bfdbfac8a865a6bc9d569c84d93845a2585fd08f660e9c30e0bac2b8a9
5
5
  SHA512:
6
- metadata.gz: cb13e1fc57de840a309f818110205922e38045bd75997b44e7a35b133b87db4d22bb00d6e14244071fc0e392091c7471796b7f0bddd0a088c7856d77471fa154
7
- data.tar.gz: 21a4c7a64dbfe9ce96c00d2cc12d2bcbdd9305a28d921a22e281c0b47b467ac89284f91c88475c3f8e94f5d11ab64f7a56856445e0a924e3d1ecd7c71e0a13c0
6
+ metadata.gz: 76bdaec258a452d977527ab7461058cf2b597e8999b9c8a6d2ade838d191d9d368b3d9ad46fac791f61fa8b291b5151d3cd7c1aac017663994fc7be9e3da1c4a
7
+ data.tar.gz: e33f5580422c46b0a8eb2e34a95fdda1071640fef069d68a76852957e78a7418e14a46dfcab64f3d50c5b6582d13a8ea205f756cc7180d4dccad6e7522e8cf34
@@ -0,0 +1,65 @@
1
+ {
2
+ "invoices": [
3
+ {
4
+ "adjustment_credit_notes": [],
5
+ "amount_adjusted": 0,
6
+ "amount_due": 895,
7
+ "amount_paid": 0,
8
+ "amount_to_collect": 895,
9
+ "applied_credits": [],
10
+ "base_currency_code": "USD",
11
+ "credits_applied": 0,
12
+ "currency_code": "USD",
13
+ "customer_id": "__test__KyVnHhSBWSjWC2p",
14
+ "date": 1517501348,
15
+ "deleted": false,
16
+ "due_date": 1517501348,
17
+ "dunning_attempts": [],
18
+ "exchange_rate": 1,
19
+ "first_invoice": true,
20
+ "has_advance_charges": false,
21
+ "id": "__demo_inv__1",
22
+ "is_gifted": false,
23
+ "issued_credit_notes": [],
24
+ "line_items": [
25
+ {
26
+ "amount": 895,
27
+ "customer_id": "__test__KyVnHhSBWSjWC2p",
28
+ "date_from": 1517501348,
29
+ "date_to": 1519920548,
30
+ "description": "No Trial",
31
+ "discount_amount": 0,
32
+ "entity_id": "no_trial",
33
+ "entity_type": "plan",
34
+ "id": "li___test__KyVnHhSBWSjXc2r",
35
+ "is_taxed": false,
36
+ "item_level_discount_amount": 0,
37
+ "object": "line_item",
38
+ "pricing_model": "per_unit",
39
+ "quantity": 1,
40
+ "subscription_id": "__test__KyVnHhSBWSjWC2p",
41
+ "tax_amount": 0,
42
+ "tax_exempt_reason": "tax_not_configured",
43
+ "unit_amount": 895
44
+ }
45
+ ],
46
+ "linked_orders": [],
47
+ "linked_payments": [],
48
+ "net_term_days": 0,
49
+ "new_sales_amount": 895,
50
+ "object": "invoice",
51
+ "price_type": "tax_exclusive",
52
+ "recurring": true,
53
+ "resource_version": 1517501348000,
54
+ "round_off_amount": 0,
55
+ "status": "payment_due",
56
+ "sub_total": 895,
57
+ "subscription_id": "__test__KyVnHhSBWSjWC2p",
58
+ "tax": 0,
59
+ "term_finalized": true,
60
+ "total": 895,
61
+ "updated_at": 1517501348,
62
+ "write_off_amount": 0
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,15 @@
1
+ module MockChargebee
2
+ module RequestHandlers
3
+ class UnbilledCharges < Base
4
+ load_fixtures :invoice_unbilled_charges_response
5
+
6
+ private
7
+
8
+ def post
9
+ Models::Subscription.find(params['subscription_id'])
10
+
11
+ invoice_unbilled_charges_response_fixture
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MockChargebee
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Cass
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,6 +110,7 @@ files:
110
110
  - lib/mock_chargebee/errors.rb
111
111
  - lib/mock_chargebee/fixtures/coupon.json
112
112
  - lib/mock_chargebee/fixtures/customer.json
113
+ - lib/mock_chargebee/fixtures/invoice_unbilled_charges_response.json
113
114
  - lib/mock_chargebee/fixtures/payment_source.json
114
115
  - lib/mock_chargebee/fixtures/plan.json
115
116
  - lib/mock_chargebee/fixtures/portal_session.json
@@ -224,6 +225,7 @@ files:
224
225
  - lib/mock_chargebee/request_handlers/plans.rb
225
226
  - lib/mock_chargebee/request_handlers/portal_sessions.rb
226
227
  - lib/mock_chargebee/request_handlers/subscriptions.rb
228
+ - lib/mock_chargebee/request_handlers/unbilled_charges.rb
227
229
  - lib/mock_chargebee/services/apply_coupons.rb
228
230
  - lib/mock_chargebee/util.rb
229
231
  - lib/mock_chargebee/validations/base.rb