1 | <?php |
||
7 | class Schedule extends AbstractResource |
||
8 | { |
||
9 | const RESOURCE_NAME = 'schedules'; |
||
10 | |||
11 | /** |
||
12 | * Creates a new Schedule. |
||
13 | * |
||
14 | * Available params are: |
||
15 | * - amount: The amount in cents for the payment. [Required] |
||
16 | * - card_number: A valid credit /debit card number. [Required] |
||
17 | * - expiration_month: Integer representation of month. [Required] |
||
18 | * - expiration_year: Integer represantation of a valid expiration year. [Required] |
||
19 | * - cvv: Card verification value. Three or four (American express) digits. [Required] |
||
20 | * - holder_name: First and last name of the card holder. [Required] |
||
21 | * - description: A string 255 chars max for schedule description. [Required] |
||
22 | * - schedule_type: String, one of "percentage" or "amount" [Required] |
||
23 | * - schedule_rates: Percentage rates separated with ";" when |
||
24 | * schedule_type is "percentage". Each rate must be an |
||
25 | * integer with sum not over 100. [Required] |
||
26 | * - schedule_dates: Dates separated with ";" char. Dates must be in ISO 8601 format. [Required] |
||
27 | * - customer_email: A valid email address for customer [Required] |
||
28 | * |
||
29 | * @param array $params |
||
30 | * @return stdClass |
||
31 | */ |
||
32 | public static function create(array $params) |
||
36 | |||
37 | /** |
||
38 | * Updates an existing schedule. |
||
39 | * |
||
40 | * Available params are: |
||
41 | * - description: A string 255 chars max for schedule description. [Required] |
||
42 | * - schedule_type: String, one of "percentage" or "amount" [Required] |
||
43 | * - schedule_rates: Percentage rates separated with ";" when |
||
44 | * schedule_type is "percentage". Each rate must be an |
||
45 | * integer with sum not over 100. [Required] |
||
46 | * - schedule_dates: Dates separated with ";" char. Dates must be in ISO 8601 format. [Required] |
||
47 | * |
||
48 | * {@inheritdoc} |
||
49 | * |
||
50 | */ |
||
51 | public static function update($token, array $params) |
||
55 | } |
||
56 |