PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / vendor / stripe / stripe-php / lib / Service / TestHelpers / Issuing / CardService.php

CardService.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php

77 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // File generated from our OpenAPI spec
4
5 namespace Stripe\Service\TestHelpers\Issuing;
6
7 class CardService extends \Stripe\Service\AbstractService
8 {
9 /**
10 * Updates the shipping status of the specified Issuing <code>Card</code> object to
11 * <code>delivered</code>.
12 *
13 * @param string $id
14 * @param null|array $params
15 * @param null|array|\Stripe\Util\RequestOptions $opts
16 *
17 * @throws \Stripe\Exception\ApiErrorException if the request fails
18 *
19 * @return \Stripe\Issuing\Card
20 */
21 public function deliverCard($id, $params = null, $opts = null)
22 {
23 return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/deliver', $id), $params, $opts);
24 }
25
26 /**
27 * Updates the shipping status of the specified Issuing <code>Card</code> object to
28 * <code>failure</code>.
29 *
30 * @param string $id
31 * @param null|array $params
32 * @param null|array|\Stripe\Util\RequestOptions $opts
33 *
34 * @throws \Stripe\Exception\ApiErrorException if the request fails
35 *
36 * @return \Stripe\Issuing\Card
37 */
38 public function failCard($id, $params = null, $opts = null)
39 {
40 return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/fail', $id), $params, $opts);
41 }
42
43 /**
44 * Updates the shipping status of the specified Issuing <code>Card</code> object to
45 * <code>returned</code>.
46 *
47 * @param string $id
48 * @param null|array $params
49 * @param null|array|\Stripe\Util\RequestOptions $opts
50 *
51 * @throws \Stripe\Exception\ApiErrorException if the request fails
52 *
53 * @return \Stripe\Issuing\Card
54 */
55 public function returnCard($id, $params = null, $opts = null)
56 {
57 return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/return', $id), $params, $opts);
58 }
59
60 /**
61 * Updates the shipping status of the specified Issuing <code>Card</code> object to
62 * <code>shipped</code>.
63 *
64 * @param string $id
65 * @param null|array $params
66 * @param null|array|\Stripe\Util\RequestOptions $opts
67 *
68 * @throws \Stripe\Exception\ApiErrorException if the request fails
69 *
70 * @return \Stripe\Issuing\Card
71 */
72 public function shipCard($id, $params = null, $opts = null)
73 {
74 return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/ship', $id), $params, $opts);
75 }
76 }
77