|
113 | 113 | 'CreateCharge' => [ |
114 | 114 | 'httpMethod' => 'POST', |
115 | 115 | 'uri' => '/v1/charges', |
116 | | - 'summary' => 'Create a new charge (either card or customer is needed)', |
| 116 | + 'summary' => 'Create a new charge (either source or customer is needed)', |
117 | 117 | 'errorResponses' => $errors, |
118 | 118 | 'parameters' => [ |
119 | 119 | 'amount' => [ |
|
134 | 134 | 'type' => 'string', |
135 | 135 | 'required' => false |
136 | 136 | ], |
137 | | - 'card' => [ |
138 | | - 'description' => 'Unique card identifier (can either be an ID or a hash)', |
| 137 | + 'source' => [ |
| 138 | + 'description' => 'Unique source (can either be an ID or a hash)', |
139 | 139 | 'location' => 'query', |
140 | 140 | 'type' => ['string', 'array'], |
141 | 141 | 'required' => false |
|
159 | 159 | 'type' => 'array', |
160 | 160 | 'required' => false |
161 | 161 | ], |
162 | | - 'statement_description' => [ |
163 | | - 'description' => 'An arbitrary string to be displayed alongside your company name on your customer\'s credit card statement', |
| 162 | + 'statement_descriptor' => [ |
| 163 | + 'description' => 'An arbitrary string to be displayed alongside your customer\'s credit card statement', |
164 | 164 | 'location' => 'query', |
165 | 165 | 'type' => 'string', |
166 | 166 | 'required' => false |
|
400 | 400 | 'type' => 'integer', |
401 | 401 | 'required' => false |
402 | 402 | ], |
403 | | - 'card' => [ |
404 | | - 'description' => 'Unique card identifier (can either be an ID or a hash)', |
| 403 | + 'source' => [ |
| 404 | + 'description' => 'Unique source identifier (can either be an ID or a hash)', |
405 | 405 | 'location' => 'query', |
406 | 406 | 'type' => ['string', 'array'], |
407 | 407 | 'required' => false |
|
578 | 578 | 'type' => 'integer', |
579 | 579 | 'required' => false |
580 | 580 | ], |
581 | | - 'card' => [ |
582 | | - 'description' => 'Unique card identifier (can either be an ID or a hash)', |
| 581 | + 'source' => [ |
| 582 | + 'description' => 'Unique source identifier (can either be an ID or a hash)', |
583 | 583 | 'location' => 'query', |
584 | 584 | 'type' => ['string', 'array'], |
585 | 585 | 'required' => false |
|
1424 | 1424 | 'type' => 'array', |
1425 | 1425 | 'required' => false |
1426 | 1426 | ], |
1427 | | - 'statement_description' => [ |
1428 | | - 'description' => 'An arbitrary string to be displayed alongside your company name on your customer\'s credit card statement', |
| 1427 | + 'statement_descriptor' => [ |
| 1428 | + 'description' => 'An arbitrary string to be displayed alongside your customer\'s credit card statement', |
1429 | 1429 | 'location' => 'query', |
1430 | 1430 | 'type' => 'string', |
1431 | 1431 | 'required' => false |
|
1553 | 1553 | 'type' => 'array', |
1554 | 1554 | 'required' => false |
1555 | 1555 | ], |
1556 | | - 'statement_description' => [ |
1557 | | - 'description' => 'An arbitrary string to be displayed alongside your company name on your customer\'s credit card statement', |
| 1556 | + 'statement_descriptor' => [ |
| 1557 | + 'description' => 'An arbitrary string to be displayed alongside your customer\'s credit card statement', |
1558 | 1558 | 'location' => 'query', |
1559 | 1559 | 'type' => 'string', |
1560 | 1560 | 'required' => false |
|
1859 | 1859 | 'type' => 'string', |
1860 | 1860 | 'required' => false |
1861 | 1861 | ], |
1862 | | - 'statement_description' => [ |
| 1862 | + 'statement_descriptor' => [ |
1863 | 1863 | 'description' => 'Extra information about a charge for the customer\'s credit card statement', |
1864 | 1864 | 'location' => 'query', |
1865 | 1865 | 'type' => 'string', |
|
2134 | 2134 | 'type' => 'string', |
2135 | 2135 | 'required' => false |
2136 | 2136 | ], |
2137 | | - 'statement_description' => [ |
| 2137 | + 'statement_descriptor' => [ |
2138 | 2138 | 'description' => 'Extra information about a charge for the customer\'s credit card statement', |
2139 | 2139 | 'location' => 'query', |
2140 | 2140 | 'type' => 'string', |
|
2411 | 2411 | * -------------------------------------------------------------------------------- |
2412 | 2412 | */ |
2413 | 2413 |
|
2414 | | - 'CloseDispute' => [ |
2415 | | - 'httpMethod' => 'POST', |
2416 | | - 'uri' => '/v1/charges/{charge}/dispute/close', |
2417 | | - 'summary' => 'Close a dispute', |
| 2414 | + 'GetDispute' => [ |
| 2415 | + 'httpMethod' => 'GET', |
| 2416 | + 'uri' => '/v1/disputes/{id}', |
| 2417 | + 'summary' => 'Get an existing dispute', |
2418 | 2418 | 'errorResponses' => $errors, |
2419 | 2419 | 'parameters' => [ |
2420 | | - 'charge' => [ |
2421 | | - 'description' => 'ID of the charge to close the dispute', |
| 2420 | + 'id' => [ |
| 2421 | + 'description' => 'Unique identifier of the dispute', |
2422 | 2422 | 'location' => 'uri', |
2423 | 2423 | 'type' => 'string', |
2424 | 2424 | 'required' => true |
|
2428 | 2428 | 'location' => 'query', |
2429 | 2429 | 'type' => 'array', |
2430 | 2430 | 'required' => false |
| 2431 | + ] |
| 2432 | + ] |
| 2433 | + ], |
| 2434 | + |
| 2435 | + 'GetDisputes' => [ |
| 2436 | + 'httpMethod' => 'GET', |
| 2437 | + 'uri' => '/v1/disputes', |
| 2438 | + 'summary' => 'Get existing disputes', |
| 2439 | + 'errorResponses' => $errors, |
| 2440 | + 'parameters' => [ |
| 2441 | + 'limit' => [ |
| 2442 | + 'description' => 'Limit on how many disputes are retrieved', |
| 2443 | + 'location' => 'query', |
| 2444 | + 'type' => 'integer', |
| 2445 | + 'min' => 1, |
| 2446 | + 'max' => 100, |
| 2447 | + 'required' => false |
2431 | 2448 | ], |
2432 | | - 'idempotency_key' => [ |
2433 | | - 'description' => 'An indempotency key that prevents accidentally performing the same POST operation twice', |
2434 | | - 'location' => 'header', |
2435 | | - 'sentAs' => 'Idempotency-Key', |
| 2449 | + 'starting_after' => [ |
| 2450 | + 'description' => 'A cursor for use in the pagination', |
| 2451 | + 'location' => 'query', |
| 2452 | + 'type' => 'string', |
| 2453 | + 'required' => false |
| 2454 | + ], |
| 2455 | + 'ending_before' => [ |
| 2456 | + 'description' => 'A cursor for use in the pagination', |
| 2457 | + 'location' => 'query', |
| 2458 | + 'type' => 'string', |
| 2459 | + 'required' => false |
| 2460 | + ], |
| 2461 | + 'created' => [ |
| 2462 | + 'description' => 'A filter based on the "created" field. Can be an exact UTC timestamp, or a hash', |
| 2463 | + 'location' => 'query', |
| 2464 | + 'required' => false |
| 2465 | + ], |
| 2466 | + 'customer' => [ |
| 2467 | + 'description' => 'Only return invoices for a specific customer', |
| 2468 | + 'location' => 'query', |
2436 | 2469 | 'type' => 'string', |
2437 | 2470 | 'required' => false |
| 2471 | + ], |
| 2472 | + 'expand' => [ |
| 2473 | + 'description' => 'Allow to expand some properties', |
| 2474 | + 'location' => 'query', |
| 2475 | + 'type' => 'array', |
| 2476 | + 'required' => false |
| 2477 | + ], |
| 2478 | + 'include' => [ |
| 2479 | + 'description' => 'Allow to include some additional properties', |
| 2480 | + 'location' => 'query', |
| 2481 | + 'type' => 'array', |
| 2482 | + 'required' => false |
2438 | 2483 | ] |
2439 | 2484 | ] |
2440 | 2485 | ], |
2441 | 2486 |
|
2442 | 2487 | 'UpdateDispute' => [ |
2443 | 2488 | 'httpMethod' => 'POST', |
2444 | | - 'uri' => '/v1/charges/{charge}/dispute', |
| 2489 | + 'uri' => '/v1/disputes/{id}', |
2445 | 2490 | 'summary' => 'Update a dispute', |
2446 | 2491 | 'errorResponses' => $errors, |
2447 | 2492 | 'parameters' => [ |
2448 | | - 'charge' => [ |
2449 | | - 'description' => 'ID of the charge to update the dispute', |
| 2493 | + 'id' => [ |
| 2494 | + 'description' => 'ID of the dispute to update', |
2450 | 2495 | 'location' => 'uri', |
2451 | 2496 | 'type' => 'string', |
2452 | 2497 | 'required' => true |
2453 | 2498 | ], |
2454 | 2499 | 'evidence' => [ |
2455 | | - 'description' => 'Evidence text', |
| 2500 | + 'description' => 'Evidence hash', |
2456 | 2501 | 'location' => 'query', |
2457 | | - 'type' => 'string', |
| 2502 | + 'type' => 'array', |
2458 | 2503 | 'required' => false |
2459 | 2504 | ], |
2460 | 2505 | 'metadata' => [ |
|
2479 | 2524 | ] |
2480 | 2525 | ], |
2481 | 2526 |
|
| 2527 | + 'CloseDispute' => [ |
| 2528 | + 'httpMethod' => 'POST', |
| 2529 | + 'uri' => '/v1/disputes/{id}/close', |
| 2530 | + 'summary' => 'Close a dispute', |
| 2531 | + 'errorResponses' => $errors, |
| 2532 | + 'parameters' => [ |
| 2533 | + 'charge' => [ |
| 2534 | + 'description' => 'ID of the charge to close the dispute', |
| 2535 | + 'location' => 'uri', |
| 2536 | + 'type' => 'string', |
| 2537 | + 'required' => true |
| 2538 | + ], |
| 2539 | + 'expand' => [ |
| 2540 | + 'description' => 'Allow to expand some properties', |
| 2541 | + 'location' => 'query', |
| 2542 | + 'type' => 'array', |
| 2543 | + 'required' => false |
| 2544 | + ], |
| 2545 | + 'idempotency_key' => [ |
| 2546 | + 'description' => 'An indempotency key that prevents accidentally performing the same POST operation twice', |
| 2547 | + 'location' => 'header', |
| 2548 | + 'sentAs' => 'Idempotency-Key', |
| 2549 | + 'type' => 'string', |
| 2550 | + 'required' => false |
| 2551 | + ] |
| 2552 | + ] |
| 2553 | + ], |
| 2554 | + |
2482 | 2555 | /** |
2483 | 2556 | * -------------------------------------------------------------------------------- |
2484 | 2557 | * TRANSFER RELATED METHODS |
|
2545 | 2618 | 'type' => 'string', |
2546 | 2619 | 'required' => false |
2547 | 2620 | ], |
2548 | | - 'statement_description' => [ |
| 2621 | + 'statement_descriptor' => [ |
2549 | 2622 | 'description' => 'An arbitrary string which will be displayed on the recipient\'s bank statement', |
2550 | 2623 | 'location' => 'query', |
2551 | 2624 | 'type' => 'string', |
|
0 commit comments