stripe_tester 0.1.3 → 0.1.4

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -1
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/stripe_webhooks/2012-02-23/account_updated.yml +28 -0
  5. data/stripe_webhooks/2012-02-23/balance_available.yml +17 -0
  6. data/stripe_webhooks/2012-02-23/charge_captured.yml +61 -0
  7. data/stripe_webhooks/2012-02-23/charge_dispute_closed.yml +23 -0
  8. data/stripe_webhooks/2012-02-23/charge_dispute_created.yml +23 -0
  9. data/stripe_webhooks/2012-02-23/charge_dispute_updated.yml +25 -0
  10. data/stripe_webhooks/2012-02-23/charge_failed.yml +61 -0
  11. data/stripe_webhooks/2012-02-23/charge_refunded.yml +61 -0
  12. data/stripe_webhooks/2012-02-23/charge_succeeded.yml +61 -0
  13. data/stripe_webhooks/2012-02-23/charge_updated.yml +63 -0
  14. data/stripe_webhooks/2012-02-23/coupon_created.yml +23 -0
  15. data/stripe_webhooks/2012-02-23/coupon_deleted.yml +23 -0
  16. data/stripe_webhooks/2012-02-23/customer_card_created.yml +31 -0
  17. data/stripe_webhooks/2012-02-23/customer_card_deleted.yml +31 -0
  18. data/stripe_webhooks/2012-02-23/customer_card_updated.yml +33 -0
  19. data/stripe_webhooks/2012-02-23/customer_created.yml +38 -0
  20. data/stripe_webhooks/2012-02-23/customer_deleted.yml +38 -0
  21. data/stripe_webhooks/2012-02-23/customer_discount_created.yml +30 -0
  22. data/stripe_webhooks/2012-02-23/customer_discount_deleted.yml +30 -0
  23. data/stripe_webhooks/2012-02-23/customer_discount_updated.yml +46 -0
  24. data/stripe_webhooks/2012-02-23/customer_subscription_created.yml +38 -0
  25. data/stripe_webhooks/2012-02-23/customer_subscription_deleted.yml +38 -0
  26. data/stripe_webhooks/2012-02-23/customer_subscription_trial_will_end.yml +38 -0
  27. data/stripe_webhooks/2012-02-23/customer_subscription_updated.yml +52 -0
  28. data/stripe_webhooks/2012-02-23/customer_updated.yml +40 -0
  29. data/stripe_webhooks/2012-02-23/invoice_created.yml +41 -0
  30. data/stripe_webhooks/2012-02-23/invoice_payment_failed.yml +41 -0
  31. data/stripe_webhooks/2012-02-23/invoice_payment_succeeded.yml +41 -0
  32. data/stripe_webhooks/2012-02-23/invoice_updated.yml +43 -0
  33. data/stripe_webhooks/2012-02-23/invoiceitem_created.yml +23 -0
  34. data/stripe_webhooks/2012-02-23/invoiceitem_deleted.yml +23 -0
  35. data/stripe_webhooks/2012-02-23/invoiceitem_updated.yml +25 -0
  36. data/stripe_webhooks/2012-02-23/plan_created.yml +21 -0
  37. data/stripe_webhooks/2012-02-23/plan_deleted.yml +21 -0
  38. data/stripe_webhooks/2012-02-23/plan_updated.yml +23 -0
  39. data/stripe_webhooks/2012-02-23/transfer_created.yml +29 -0
  40. data/stripe_webhooks/2012-02-23/transfer_failed.yml +29 -0
  41. data/stripe_webhooks/2012-02-23/transfer_paid.yml +29 -0
  42. data/stripe_webhooks/2012-02-23/transfer_updated.yml +31 -0
  43. metadata +41 -2
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.deleted
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ object: customer
11
+ created: 1415277627
12
+ id: cus_00000000000000
13
+ livemode: false
14
+ description:
15
+ email:
16
+ delinquent: false
17
+ metadata: {}
18
+ subscriptions:
19
+ object: list
20
+ total_count: 0
21
+ has_more: false
22
+ url: "/v1/customers/cus_561cVhkZeHvOXs/subscriptions"
23
+ data: []
24
+ count: 0
25
+ discount:
26
+ account_balance: 0
27
+ currency: usd
28
+ cards:
29
+ object: list
30
+ total_count: 0
31
+ has_more: false
32
+ url: "/v1/customers/cus_561cVhkZeHvOXs/cards"
33
+ data: []
34
+ count: 0
35
+ default_card:
36
+ next_recurring_charge:
37
+ active_card:
38
+ subscription:
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.discount.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ coupon:
11
+ id: 25OFF_00000000000000
12
+ created: 1415277638
13
+ percent_off: 25
14
+ amount_off:
15
+ currency: usd
16
+ object: coupon
17
+ livemode: false
18
+ duration: repeating
19
+ redeem_by:
20
+ max_redemptions:
21
+ times_redeemed: 0
22
+ duration_in_months: 3
23
+ valid: true
24
+ metadata: {}
25
+ start: 1415277638
26
+ object: discount
27
+ customer: cus_00000000000000
28
+ subscription:
29
+ end: 1423226438
30
+ id: di_00000000000000
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.discount.deleted
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ coupon:
11
+ id: 25OFF_00000000000000
12
+ created: 1415277644
13
+ percent_off: 25
14
+ amount_off:
15
+ currency: usd
16
+ object: coupon
17
+ livemode: false
18
+ duration: repeating
19
+ redeem_by:
20
+ max_redemptions:
21
+ times_redeemed: 0
22
+ duration_in_months: 3
23
+ valid: true
24
+ metadata: {}
25
+ start: 1415277644
26
+ object: discount
27
+ customer: cus_00000000000000
28
+ subscription:
29
+ end: 1423226444
30
+ id: di_00000000000000
@@ -0,0 +1,46 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.discount.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ coupon:
11
+ id: 25OFF_00000000000000
12
+ created: 1415277641
13
+ percent_off: 25
14
+ amount_off:
15
+ currency: usd
16
+ object: coupon
17
+ livemode: false
18
+ duration: repeating
19
+ redeem_by:
20
+ max_redemptions:
21
+ times_redeemed: 0
22
+ duration_in_months: 3
23
+ valid: true
24
+ metadata: {}
25
+ start: 1415277641
26
+ object: discount
27
+ customer: cus_00000000000000
28
+ subscription:
29
+ end: 1423226441
30
+ id: di_00000000000000
31
+ previous_attributes:
32
+ coupon:
33
+ id: OLD_COUPON_ID
34
+ created: 1415277641
35
+ percent_off: 25
36
+ amount_off:
37
+ currency: usd
38
+ object: coupon
39
+ livemode: false
40
+ duration: repeating
41
+ redeem_by:
42
+ max_redemptions:
43
+ times_redeemed: 0
44
+ duration_in_months: 3
45
+ valid: true
46
+ metadata: {}
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1415277647
26
+ status: active
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1415277647
30
+ current_period_end: 1417869647
31
+ ended_at:
32
+ trial_start:
33
+ trial_end:
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.deleted
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1415277653
26
+ status: canceled
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1415277653
30
+ current_period_end: 1417869653
31
+ ended_at: 1415245688
32
+ trial_start:
33
+ trial_end:
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.trial_will_end
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1415277658
26
+ status: trialing
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1415277658
30
+ current_period_end: 1417869658
31
+ ended_at:
32
+ trial_start: 1415245674
33
+ trial_end: 1415504874
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
@@ -0,0 +1,52 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1415277650
26
+ status: active
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1415277650
30
+ current_period_end: 1417869650
31
+ ended_at:
32
+ trial_start:
33
+ trial_end:
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
39
+ previous_attributes:
40
+ plan:
41
+ interval: month
42
+ name: Old plan
43
+ created: 1415277650
44
+ amount: 2000
45
+ currency: usd
46
+ id: OLD_PLAN_ID
47
+ object: plan
48
+ livemode: false
49
+ interval_count: 1
50
+ trial_period_days:
51
+ metadata: {}
52
+ statement_description:
@@ -0,0 +1,40 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ object: customer
11
+ created: 1415277624
12
+ id: cus_00000000000000
13
+ livemode: false
14
+ description:
15
+ email:
16
+ delinquent: false
17
+ metadata: {}
18
+ subscriptions:
19
+ object: list
20
+ total_count: 0
21
+ has_more: false
22
+ url: "/v1/customers/cus_561ctQna35C0Zq/subscriptions"
23
+ data: []
24
+ count: 0
25
+ discount:
26
+ account_balance: 0
27
+ currency: usd
28
+ cards:
29
+ object: list
30
+ total_count: 0
31
+ has_more: false
32
+ url: "/v1/customers/cus_561ctQna35C0Zq/cards"
33
+ data: []
34
+ count: 0
35
+ default_card:
36
+ next_recurring_charge:
37
+ active_card:
38
+ subscription:
39
+ previous_attributes:
40
+ description: Old description
@@ -0,0 +1,41 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1415277661
11
+ id: in_00000000000000
12
+ period_start: 1415277661
13
+ period_end: 1415277661
14
+ lines:
15
+ invoiceitems: []
16
+ prorations: []
17
+ subscriptions: []
18
+ subtotal: 0
19
+ total: 0
20
+ customer: cus_00000000000000
21
+ object: invoice
22
+ attempted: false
23
+ closed: false
24
+ forgiven: false
25
+ paid: true
26
+ livemode: false
27
+ attempt_count: 0
28
+ amount_due: 0
29
+ currency: usd
30
+ starting_balance: 0
31
+ ending_balance:
32
+ next_payment_attempt: 1415281261
33
+ webhooks_delivered_at:
34
+ charge:
35
+ discount:
36
+ application_fee:
37
+ subscription:
38
+ metadata: {}
39
+ statement_description:
40
+ description:
41
+ receipt_number:
@@ -0,0 +1,41 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_failed
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1415277671
11
+ id: in_00000000000000
12
+ period_start: 1415277671
13
+ period_end: 1415277671
14
+ lines:
15
+ invoiceitems: []
16
+ prorations: []
17
+ subscriptions: []
18
+ subtotal: 0
19
+ total: 0
20
+ customer: cus_00000000000000
21
+ object: invoice
22
+ attempted: true
23
+ closed: false
24
+ forgiven: false
25
+ paid: false
26
+ livemode: false
27
+ attempt_count: 0
28
+ amount_due: 0
29
+ currency: usd
30
+ starting_balance: 0
31
+ ending_balance:
32
+ next_payment_attempt: 1415281271
33
+ webhooks_delivered_at:
34
+ charge:
35
+ discount:
36
+ application_fee:
37
+ subscription:
38
+ metadata: {}
39
+ statement_description:
40
+ description:
41
+ receipt_number:
@@ -0,0 +1,41 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_succeeded
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1415277668
11
+ id: in_00000000000000
12
+ period_start: 1415277668
13
+ period_end: 1415277668
14
+ lines:
15
+ invoiceitems: []
16
+ prorations: []
17
+ subscriptions: []
18
+ subtotal: 0
19
+ total: 0
20
+ customer: cus_00000000000000
21
+ object: invoice
22
+ attempted: true
23
+ closed: true
24
+ forgiven: false
25
+ paid: true
26
+ livemode: false
27
+ attempt_count: 0
28
+ amount_due: 0
29
+ currency: usd
30
+ starting_balance: 0
31
+ ending_balance:
32
+ next_payment_attempt: 1415281268
33
+ webhooks_delivered_at:
34
+ charge: _00000000000000
35
+ discount:
36
+ application_fee:
37
+ subscription:
38
+ metadata: {}
39
+ statement_description:
40
+ description:
41
+ receipt_number:
@@ -0,0 +1,43 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1415277664
11
+ id: in_00000000000000
12
+ period_start: 1415277664
13
+ period_end: 1415277664
14
+ lines:
15
+ invoiceitems: []
16
+ prorations: []
17
+ subscriptions: []
18
+ subtotal: 0
19
+ total: 0
20
+ customer: cus_00000000000000
21
+ object: invoice
22
+ attempted: false
23
+ closed: false
24
+ forgiven: false
25
+ paid: false
26
+ livemode: false
27
+ attempt_count: 0
28
+ amount_due: 0
29
+ currency: usd
30
+ starting_balance: 0
31
+ ending_balance:
32
+ next_payment_attempt: 1415281264
33
+ webhooks_delivered_at:
34
+ charge:
35
+ discount:
36
+ application_fee:
37
+ subscription:
38
+ metadata: {}
39
+ statement_description:
40
+ description:
41
+ receipt_number:
42
+ previous_attributes:
43
+ lines: []
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ object: invoiceitem
11
+ id: ii_00000000000000
12
+ date: 1415277674
13
+ amount: 1000
14
+ livemode: false
15
+ proration: false
16
+ currency: usd
17
+ customer: cus_00000000000000
18
+ description: My First Invoice Item (created for API docs)
19
+ metadata: {}
20
+ invoice:
21
+ subscription:
22
+ quantity:
23
+ plan:
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.deleted
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ object: invoiceitem
11
+ id: ii_00000000000000
12
+ date: 1415277682
13
+ amount: 1000
14
+ livemode: false
15
+ proration: false
16
+ currency: usd
17
+ customer: cus_00000000000000
18
+ description: My First Invoice Item (created for API docs)
19
+ metadata: {}
20
+ invoice:
21
+ subscription:
22
+ quantity:
23
+ plan:
@@ -0,0 +1,25 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ object: invoiceitem
11
+ id: ii_00000000000000
12
+ date: 1415277679
13
+ amount: 1000
14
+ livemode: false
15
+ proration: false
16
+ currency: usd
17
+ customer: cus_00000000000000
18
+ description: My First Invoice Item (created for API docs)
19
+ metadata: {}
20
+ invoice:
21
+ subscription:
22
+ quantity:
23
+ plan:
24
+ previous_attributes:
25
+ amount: 2121
@@ -0,0 +1,21 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ interval: month
11
+ name: Gold Special
12
+ created: 1415277685
13
+ amount: 2000
14
+ currency: usd
15
+ id: gold_00000000000000
16
+ object: plan
17
+ livemode: false
18
+ interval_count: 1
19
+ trial_period_days:
20
+ metadata: {}
21
+ statement_description:
@@ -0,0 +1,21 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.deleted
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ interval: month
11
+ name: Gold Special
12
+ created: 1415277691
13
+ amount: 2000
14
+ currency: usd
15
+ id: gold_00000000000000
16
+ object: plan
17
+ livemode: false
18
+ interval_count: 1
19
+ trial_period_days:
20
+ metadata: {}
21
+ statement_description:
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ interval: month
11
+ name: Gold Special
12
+ created: 1415277688
13
+ amount: 2000
14
+ currency: usd
15
+ id: gold_00000000000000
16
+ object: plan
17
+ livemode: false
18
+ interval_count: 1
19
+ trial_period_days:
20
+ metadata: {}
21
+ statement_description:
22
+ previous_attributes:
23
+ name: Old name
@@ -0,0 +1,29 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: transfer.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: tr_00000000000000
11
+ object: transfer
12
+ created: 1415277695
13
+ date: 1415277695
14
+ livemode: false
15
+ amount: 1100
16
+ currency: usd
17
+ status: pending
18
+ type: bank_account
19
+ balance_transaction: txn_00000000000000
20
+ description: Transfer to test@example.com
21
+ failure_message:
22
+ failure_code:
23
+ metadata: {}
24
+ statement_description:
25
+ recipient: rp_00000000000000
26
+ fee: 0
27
+ fee_details: []
28
+ statement_descriptor:
29
+ account: