diff --git a/lib/Resources/BankAuthorisation.php b/lib/Resources/BankAuthorisation.php index c648e25c..5c29fa04 100644 --- a/lib/Resources/BankAuthorisation.php +++ b/lib/Resources/BankAuthorisation.php @@ -11,16 +11,16 @@ * A thin wrapper around a bank_authorisation, providing access to its * attributes * - * @property-read $authorisation_type - * @property-read $authorised_at - * @property-read $created_at - * @property-read $expires_at - * @property-read $id - * @property-read $last_visited_at - * @property-read $links - * @property-read $qr_code_url - * @property-read $redirect_uri - * @property-read $url + * @property-read mixed $authorisation_type + * @property-read mixed $authorised_at + * @property-read mixed $created_at + * @property-read mixed $expires_at + * @property-read mixed $id + * @property-read mixed $last_visited_at + * @property-read mixed $links + * @property-read mixed $qr_code_url + * @property-read mixed $redirect_uri + * @property-read mixed $url */ class BankAuthorisation extends BaseResource { diff --git a/lib/Resources/BankDetailsLookup.php b/lib/Resources/BankDetailsLookup.php index cae5c87a..9fc6177b 100644 --- a/lib/Resources/BankDetailsLookup.php +++ b/lib/Resources/BankDetailsLookup.php @@ -11,9 +11,9 @@ * A thin wrapper around a bank_details_lookup, providing access to its * attributes * - * @property-read $available_debit_schemes - * @property-read $bank_name - * @property-read $bic + * @property-read mixed $available_debit_schemes + * @property-read mixed $bank_name + * @property-read mixed $bic */ class BankDetailsLookup extends BaseResource { diff --git a/lib/Resources/BillingRequest.php b/lib/Resources/BillingRequest.php index 030f5855..b2808838 100644 --- a/lib/Resources/BillingRequest.php +++ b/lib/Resources/BillingRequest.php @@ -11,17 +11,17 @@ * A thin wrapper around a billing_request, providing access to its * attributes * - * @property-read $actions - * @property-read $created_at - * @property-read $fallback_enabled - * @property-read $id - * @property-read $links - * @property-read $mandate_request - * @property-read $metadata - * @property-read $payment_request - * @property-read $purpose_code - * @property-read $resources - * @property-read $status + * @property-read mixed $actions + * @property-read mixed $created_at + * @property-read mixed $fallback_enabled + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $mandate_request + * @property-read mixed $metadata + * @property-read mixed $payment_request + * @property-read mixed $purpose_code + * @property-read mixed $resources + * @property-read mixed $status */ class BillingRequest extends BaseResource { diff --git a/lib/Resources/BillingRequestFlow.php b/lib/Resources/BillingRequestFlow.php index 696bd1b2..39c637e6 100644 --- a/lib/Resources/BillingRequestFlow.php +++ b/lib/Resources/BillingRequestFlow.php @@ -11,24 +11,24 @@ * A thin wrapper around a billing_request_flow, providing access to its * attributes * - * @property-read $authorisation_url - * @property-read $auto_fulfil - * @property-read $created_at - * @property-read $customer_details_captured - * @property-read $exit_uri - * @property-read $expires_at - * @property-read $id - * @property-read $language - * @property-read $links - * @property-read $lock_bank_account - * @property-read $lock_currency - * @property-read $lock_customer_details - * @property-read $prefilled_bank_account - * @property-read $prefilled_customer - * @property-read $redirect_uri - * @property-read $session_token - * @property-read $show_redirect_buttons - * @property-read $show_success_redirect_button + * @property-read mixed $authorisation_url + * @property-read mixed $auto_fulfil + * @property-read mixed $created_at + * @property-read mixed $customer_details_captured + * @property-read mixed $exit_uri + * @property-read mixed $expires_at + * @property-read mixed $id + * @property-read mixed $language + * @property-read mixed $links + * @property-read mixed $lock_bank_account + * @property-read mixed $lock_currency + * @property-read mixed $lock_customer_details + * @property-read mixed $prefilled_bank_account + * @property-read mixed $prefilled_customer + * @property-read mixed $redirect_uri + * @property-read mixed $session_token + * @property-read mixed $show_redirect_buttons + * @property-read mixed $show_success_redirect_button */ class BillingRequestFlow extends BaseResource { diff --git a/lib/Resources/BillingRequestTemplate.php b/lib/Resources/BillingRequestTemplate.php index 1545e7e3..10c0a893 100644 --- a/lib/Resources/BillingRequestTemplate.php +++ b/lib/Resources/BillingRequestTemplate.php @@ -11,23 +11,23 @@ * A thin wrapper around a billing_request_template, providing access to its * attributes * - * @property-read $authorisation_url - * @property-read $created_at - * @property-read $id - * @property-read $mandate_request_currency - * @property-read $mandate_request_description - * @property-read $mandate_request_metadata - * @property-read $mandate_request_scheme - * @property-read $mandate_request_verify - * @property-read $metadata - * @property-read $name - * @property-read $payment_request_amount - * @property-read $payment_request_currency - * @property-read $payment_request_description - * @property-read $payment_request_metadata - * @property-read $payment_request_scheme - * @property-read $redirect_uri - * @property-read $updated_at + * @property-read mixed $authorisation_url + * @property-read mixed $created_at + * @property-read mixed $id + * @property-read mixed $mandate_request_currency + * @property-read mixed $mandate_request_description + * @property-read mixed $mandate_request_metadata + * @property-read mixed $mandate_request_scheme + * @property-read mixed $mandate_request_verify + * @property-read mixed $metadata + * @property-read mixed $name + * @property-read mixed $payment_request_amount + * @property-read mixed $payment_request_currency + * @property-read mixed $payment_request_description + * @property-read mixed $payment_request_metadata + * @property-read mixed $payment_request_scheme + * @property-read mixed $redirect_uri + * @property-read mixed $updated_at */ class BillingRequestTemplate extends BaseResource { diff --git a/lib/Resources/Block.php b/lib/Resources/Block.php index d959b9f9..2f562120 100644 --- a/lib/Resources/Block.php +++ b/lib/Resources/Block.php @@ -11,14 +11,14 @@ * A thin wrapper around a block, providing access to its * attributes * - * @property-read $active - * @property-read $block_type - * @property-read $created_at - * @property-read $id - * @property-read $reason_description - * @property-read $reason_type - * @property-read $resource_reference - * @property-read $updated_at + * @property-read mixed $active + * @property-read mixed $block_type + * @property-read mixed $created_at + * @property-read mixed $id + * @property-read mixed $reason_description + * @property-read mixed $reason_type + * @property-read mixed $resource_reference + * @property-read mixed $updated_at */ class Block extends BaseResource { diff --git a/lib/Resources/Creditor.php b/lib/Resources/Creditor.php index bdbe9ad4..9b9ebf3e 100644 --- a/lib/Resources/Creditor.php +++ b/lib/Resources/Creditor.php @@ -11,27 +11,27 @@ * A thin wrapper around a creditor, providing access to its * attributes * - * @property-read $address_line1 - * @property-read $address_line2 - * @property-read $address_line3 - * @property-read $bank_reference_prefix - * @property-read $can_create_refunds - * @property-read $city - * @property-read $country_code - * @property-read $created_at - * @property-read $creditor_type - * @property-read $custom_payment_pages_enabled - * @property-read $fx_payout_currency - * @property-read $id - * @property-read $links - * @property-read $logo_url - * @property-read $mandate_imports_enabled - * @property-read $merchant_responsible_for_notifications - * @property-read $name - * @property-read $postal_code - * @property-read $region - * @property-read $scheme_identifiers - * @property-read $verification_status + * @property-read mixed $address_line1 + * @property-read mixed $address_line2 + * @property-read mixed $address_line3 + * @property-read mixed $bank_reference_prefix + * @property-read mixed $can_create_refunds + * @property-read mixed $city + * @property-read mixed $country_code + * @property-read mixed $created_at + * @property-read mixed $creditor_type + * @property-read mixed $custom_payment_pages_enabled + * @property-read mixed $fx_payout_currency + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $logo_url + * @property-read mixed $mandate_imports_enabled + * @property-read mixed $merchant_responsible_for_notifications + * @property-read mixed $name + * @property-read mixed $postal_code + * @property-read mixed $region + * @property-read mixed $scheme_identifiers + * @property-read mixed $verification_status */ class Creditor extends BaseResource { diff --git a/lib/Resources/CreditorBankAccount.php b/lib/Resources/CreditorBankAccount.php index 0094500a..ecbe2039 100644 --- a/lib/Resources/CreditorBankAccount.php +++ b/lib/Resources/CreditorBankAccount.php @@ -11,18 +11,18 @@ * A thin wrapper around a creditor_bank_account, providing access to its * attributes * - * @property-read $account_holder_name - * @property-read $account_number_ending - * @property-read $account_type - * @property-read $bank_name - * @property-read $country_code - * @property-read $created_at - * @property-read $currency - * @property-read $enabled - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $verification_status + * @property-read mixed $account_holder_name + * @property-read mixed $account_number_ending + * @property-read mixed $account_type + * @property-read mixed $bank_name + * @property-read mixed $country_code + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $enabled + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $verification_status */ class CreditorBankAccount extends BaseResource { diff --git a/lib/Resources/CurrencyExchangeRate.php b/lib/Resources/CurrencyExchangeRate.php index af6db237..541cb9bc 100644 --- a/lib/Resources/CurrencyExchangeRate.php +++ b/lib/Resources/CurrencyExchangeRate.php @@ -11,10 +11,10 @@ * A thin wrapper around a currency_exchange_rate, providing access to its * attributes * - * @property-read $rate - * @property-read $source - * @property-read $target - * @property-read $time + * @property-read mixed $rate + * @property-read mixed $source + * @property-read mixed $target + * @property-read mixed $time */ class CurrencyExchangeRate extends BaseResource { diff --git a/lib/Resources/Customer.php b/lib/Resources/Customer.php index 7088816c..e2632382 100644 --- a/lib/Resources/Customer.php +++ b/lib/Resources/Customer.php @@ -11,24 +11,24 @@ * A thin wrapper around a customer, providing access to its * attributes * - * @property-read $address_line1 - * @property-read $address_line2 - * @property-read $address_line3 - * @property-read $city - * @property-read $company_name - * @property-read $country_code - * @property-read $created_at - * @property-read $danish_identity_number - * @property-read $email - * @property-read $family_name - * @property-read $given_name - * @property-read $id - * @property-read $language - * @property-read $metadata - * @property-read $phone_number - * @property-read $postal_code - * @property-read $region - * @property-read $swedish_identity_number + * @property-read mixed $address_line1 + * @property-read mixed $address_line2 + * @property-read mixed $address_line3 + * @property-read mixed $city + * @property-read mixed $company_name + * @property-read mixed $country_code + * @property-read mixed $created_at + * @property-read mixed $danish_identity_number + * @property-read mixed $email + * @property-read mixed $family_name + * @property-read mixed $given_name + * @property-read mixed $id + * @property-read mixed $language + * @property-read mixed $metadata + * @property-read mixed $phone_number + * @property-read mixed $postal_code + * @property-read mixed $region + * @property-read mixed $swedish_identity_number */ class Customer extends BaseResource { diff --git a/lib/Resources/CustomerBankAccount.php b/lib/Resources/CustomerBankAccount.php index e132f24a..84b31ad6 100644 --- a/lib/Resources/CustomerBankAccount.php +++ b/lib/Resources/CustomerBankAccount.php @@ -11,17 +11,17 @@ * A thin wrapper around a customer_bank_account, providing access to its * attributes * - * @property-read $account_holder_name - * @property-read $account_number_ending - * @property-read $account_type - * @property-read $bank_name - * @property-read $country_code - * @property-read $created_at - * @property-read $currency - * @property-read $enabled - * @property-read $id - * @property-read $links - * @property-read $metadata + * @property-read mixed $account_holder_name + * @property-read mixed $account_number_ending + * @property-read mixed $account_type + * @property-read mixed $bank_name + * @property-read mixed $country_code + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $enabled + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata */ class CustomerBankAccount extends BaseResource { diff --git a/lib/Resources/CustomerNotification.php b/lib/Resources/CustomerNotification.php index cbe8a904..689bca2b 100644 --- a/lib/Resources/CustomerNotification.php +++ b/lib/Resources/CustomerNotification.php @@ -11,12 +11,12 @@ * A thin wrapper around a customer_notification, providing access to its * attributes * - * @property-read $action_taken - * @property-read $action_taken_at - * @property-read $action_taken_by - * @property-read $id - * @property-read $links - * @property-read $type + * @property-read mixed $action_taken + * @property-read mixed $action_taken_at + * @property-read mixed $action_taken_by + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $type */ class CustomerNotification extends BaseResource { diff --git a/lib/Resources/Event.php b/lib/Resources/Event.php index dd2a60cb..94f77042 100644 --- a/lib/Resources/Event.php +++ b/lib/Resources/Event.php @@ -11,15 +11,15 @@ * A thin wrapper around a event, providing access to its * attributes * - * @property-read $action - * @property-read $created_at - * @property-read $customer_notifications - * @property-read $details - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $resource_metadata - * @property-read $resource_type + * @property-read mixed $action + * @property-read mixed $created_at + * @property-read mixed $customer_notifications + * @property-read mixed $details + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $resource_metadata + * @property-read mixed $resource_type */ class Event extends BaseResource { diff --git a/lib/Resources/Export.php b/lib/Resources/Export.php index f38508d7..5194b828 100644 --- a/lib/Resources/Export.php +++ b/lib/Resources/Export.php @@ -11,11 +11,11 @@ * A thin wrapper around a export, providing access to its * attributes * - * @property-read $created_at - * @property-read $currency - * @property-read $download_url - * @property-read $export_type - * @property-read $id + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $download_url + * @property-read mixed $export_type + * @property-read mixed $id */ class Export extends BaseResource { diff --git a/lib/Resources/InstalmentSchedule.php b/lib/Resources/InstalmentSchedule.php index 6f09ef8d..3033cddb 100644 --- a/lib/Resources/InstalmentSchedule.php +++ b/lib/Resources/InstalmentSchedule.php @@ -11,15 +11,15 @@ * A thin wrapper around a instalment_schedule, providing access to its * attributes * - * @property-read $created_at - * @property-read $currency - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $name - * @property-read $payment_errors - * @property-read $status - * @property-read $total_amount + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $name + * @property-read mixed $payment_errors + * @property-read mixed $status + * @property-read mixed $total_amount */ class InstalmentSchedule extends BaseResource { diff --git a/lib/Resources/Institution.php b/lib/Resources/Institution.php index 1ed306bd..9b66aa8b 100644 --- a/lib/Resources/Institution.php +++ b/lib/Resources/Institution.php @@ -11,12 +11,12 @@ * A thin wrapper around a institution, providing access to its * attributes * - * @property-read $autocompletes_collect_bank_account - * @property-read $country_code - * @property-read $icon_url - * @property-read $id - * @property-read $logo_url - * @property-read $name + * @property-read mixed $autocompletes_collect_bank_account + * @property-read mixed $country_code + * @property-read mixed $icon_url + * @property-read mixed $id + * @property-read mixed $logo_url + * @property-read mixed $name */ class Institution extends BaseResource { diff --git a/lib/Resources/Logo.php b/lib/Resources/Logo.php index 4a2d83cb..0ab31201 100644 --- a/lib/Resources/Logo.php +++ b/lib/Resources/Logo.php @@ -11,7 +11,7 @@ * A thin wrapper around a logo, providing access to its * attributes * - * @property-read $id + * @property-read mixed $id */ class Logo extends BaseResource { diff --git a/lib/Resources/Mandate.php b/lib/Resources/Mandate.php index 3dc6d639..ac8dd8b7 100644 --- a/lib/Resources/Mandate.php +++ b/lib/Resources/Mandate.php @@ -11,20 +11,20 @@ * A thin wrapper around a mandate, providing access to its * attributes * - * @property-read $authorisation_source - * @property-read $consent_parameters - * @property-read $created_at - * @property-read $funds_settlement - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $next_possible_charge_date - * @property-read $next_possible_standard_ach_charge_date - * @property-read $payments_require_approval - * @property-read $reference - * @property-read $scheme - * @property-read $status - * @property-read $verified_at + * @property-read mixed $authorisation_source + * @property-read mixed $consent_parameters + * @property-read mixed $created_at + * @property-read mixed $funds_settlement + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $next_possible_charge_date + * @property-read mixed $next_possible_standard_ach_charge_date + * @property-read mixed $payments_require_approval + * @property-read mixed $reference + * @property-read mixed $scheme + * @property-read mixed $status + * @property-read mixed $verified_at */ class Mandate extends BaseResource { diff --git a/lib/Resources/MandateImport.php b/lib/Resources/MandateImport.php index c4a6720c..e3b33eba 100644 --- a/lib/Resources/MandateImport.php +++ b/lib/Resources/MandateImport.php @@ -11,11 +11,11 @@ * A thin wrapper around a mandate_import, providing access to its * attributes * - * @property-read $created_at - * @property-read $id - * @property-read $links - * @property-read $scheme - * @property-read $status + * @property-read mixed $created_at + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $scheme + * @property-read mixed $status */ class MandateImport extends BaseResource { diff --git a/lib/Resources/MandateImportEntry.php b/lib/Resources/MandateImportEntry.php index 19fd18f4..5d8f1f4b 100644 --- a/lib/Resources/MandateImportEntry.php +++ b/lib/Resources/MandateImportEntry.php @@ -11,9 +11,9 @@ * A thin wrapper around a mandate_import_entry, providing access to its * attributes * - * @property-read $created_at - * @property-read $links - * @property-read $record_identifier + * @property-read mixed $created_at + * @property-read mixed $links + * @property-read mixed $record_identifier */ class MandateImportEntry extends BaseResource { diff --git a/lib/Resources/MandatePdf.php b/lib/Resources/MandatePdf.php index ce9c2511..9cc67c60 100644 --- a/lib/Resources/MandatePdf.php +++ b/lib/Resources/MandatePdf.php @@ -11,8 +11,8 @@ * A thin wrapper around a mandate_pdf, providing access to its * attributes * - * @property-read $expires_at - * @property-read $url + * @property-read mixed $expires_at + * @property-read mixed $url */ class MandatePdf extends BaseResource { diff --git a/lib/Resources/NegativeBalanceLimit.php b/lib/Resources/NegativeBalanceLimit.php index 94996596..a22b0e68 100644 --- a/lib/Resources/NegativeBalanceLimit.php +++ b/lib/Resources/NegativeBalanceLimit.php @@ -11,11 +11,11 @@ * A thin wrapper around a negative_balance_limit, providing access to its * attributes * - * @property-read $balance_limit - * @property-read $created_at - * @property-read $currency - * @property-read $id - * @property-read $links + * @property-read mixed $balance_limit + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $id + * @property-read mixed $links */ class NegativeBalanceLimit extends BaseResource { diff --git a/lib/Resources/PayerAuthorisation.php b/lib/Resources/PayerAuthorisation.php index ec8452f5..f626589f 100644 --- a/lib/Resources/PayerAuthorisation.php +++ b/lib/Resources/PayerAuthorisation.php @@ -11,14 +11,14 @@ * A thin wrapper around a payer_authorisation, providing access to its * attributes * - * @property-read $bank_account - * @property-read $created_at - * @property-read $customer - * @property-read $id - * @property-read $incomplete_fields - * @property-read $links - * @property-read $mandate - * @property-read $status + * @property-read mixed $bank_account + * @property-read mixed $created_at + * @property-read mixed $customer + * @property-read mixed $id + * @property-read mixed $incomplete_fields + * @property-read mixed $links + * @property-read mixed $mandate + * @property-read mixed $status */ class PayerAuthorisation extends BaseResource { diff --git a/lib/Resources/PayerTheme.php b/lib/Resources/PayerTheme.php index 54d94ad6..7b6634f0 100644 --- a/lib/Resources/PayerTheme.php +++ b/lib/Resources/PayerTheme.php @@ -11,7 +11,7 @@ * A thin wrapper around a payer_theme, providing access to its * attributes * - * @property-read $id + * @property-read mixed $id */ class PayerTheme extends BaseResource { diff --git a/lib/Resources/Payment.php b/lib/Resources/Payment.php index 35fe98fe..12c43d66 100644 --- a/lib/Resources/Payment.php +++ b/lib/Resources/Payment.php @@ -11,20 +11,20 @@ * A thin wrapper around a payment, providing access to its * attributes * - * @property-read $amount - * @property-read $amount_refunded - * @property-read $charge_date - * @property-read $created_at - * @property-read $currency - * @property-read $description - * @property-read $faster_ach - * @property-read $fx - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $reference - * @property-read $retry_if_possible - * @property-read $status + * @property-read mixed $amount + * @property-read mixed $amount_refunded + * @property-read mixed $charge_date + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $description + * @property-read mixed $faster_ach + * @property-read mixed $fx + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $reference + * @property-read mixed $retry_if_possible + * @property-read mixed $status */ class Payment extends BaseResource { diff --git a/lib/Resources/Payout.php b/lib/Resources/Payout.php index 0c3182f2..35ef063b 100644 --- a/lib/Resources/Payout.php +++ b/lib/Resources/Payout.php @@ -11,19 +11,19 @@ * A thin wrapper around a payout, providing access to its * attributes * - * @property-read $amount - * @property-read $arrival_date - * @property-read $created_at - * @property-read $currency - * @property-read $deducted_fees - * @property-read $fx - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $payout_type - * @property-read $reference - * @property-read $status - * @property-read $tax_currency + * @property-read mixed $amount + * @property-read mixed $arrival_date + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $deducted_fees + * @property-read mixed $fx + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $payout_type + * @property-read mixed $reference + * @property-read mixed $status + * @property-read mixed $tax_currency */ class Payout extends BaseResource { diff --git a/lib/Resources/PayoutItem.php b/lib/Resources/PayoutItem.php index bcc2848f..6efdac90 100644 --- a/lib/Resources/PayoutItem.php +++ b/lib/Resources/PayoutItem.php @@ -11,10 +11,10 @@ * A thin wrapper around a payout_item, providing access to its * attributes * - * @property-read $amount - * @property-read $links - * @property-read $taxes - * @property-read $type + * @property-read mixed $amount + * @property-read mixed $links + * @property-read mixed $taxes + * @property-read mixed $type */ class PayoutItem extends BaseResource { diff --git a/lib/Resources/RedirectFlow.php b/lib/Resources/RedirectFlow.php index 5453eb2f..2e985291 100644 --- a/lib/Resources/RedirectFlow.php +++ b/lib/Resources/RedirectFlow.php @@ -11,17 +11,17 @@ * A thin wrapper around a redirect_flow, providing access to its * attributes * - * @property-read $confirmation_url - * @property-read $created_at - * @property-read $description - * @property-read $id - * @property-read $links - * @property-read $mandate_reference - * @property-read $metadata - * @property-read $redirect_url - * @property-read $scheme - * @property-read $session_token - * @property-read $success_redirect_url + * @property-read mixed $confirmation_url + * @property-read mixed $created_at + * @property-read mixed $description + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $mandate_reference + * @property-read mixed $metadata + * @property-read mixed $redirect_url + * @property-read mixed $scheme + * @property-read mixed $session_token + * @property-read mixed $success_redirect_url */ class RedirectFlow extends BaseResource { diff --git a/lib/Resources/Refund.php b/lib/Resources/Refund.php index d8d52bab..39b723ac 100644 --- a/lib/Resources/Refund.php +++ b/lib/Resources/Refund.php @@ -11,15 +11,15 @@ * A thin wrapper around a refund, providing access to its * attributes * - * @property-read $amount - * @property-read $created_at - * @property-read $currency - * @property-read $fx - * @property-read $id - * @property-read $links - * @property-read $metadata - * @property-read $reference - * @property-read $status + * @property-read mixed $amount + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $fx + * @property-read mixed $id + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $reference + * @property-read mixed $status */ class Refund extends BaseResource { diff --git a/lib/Resources/ScenarioSimulator.php b/lib/Resources/ScenarioSimulator.php index 756edcc7..13738e6d 100644 --- a/lib/Resources/ScenarioSimulator.php +++ b/lib/Resources/ScenarioSimulator.php @@ -11,7 +11,7 @@ * A thin wrapper around a scenario_simulator, providing access to its * attributes * - * @property-read $id + * @property-read mixed $id */ class ScenarioSimulator extends BaseResource { diff --git a/lib/Resources/SchemeIdentifier.php b/lib/Resources/SchemeIdentifier.php index 3af6cea4..b07740bc 100644 --- a/lib/Resources/SchemeIdentifier.php +++ b/lib/Resources/SchemeIdentifier.php @@ -11,24 +11,24 @@ * A thin wrapper around a scheme_identifier, providing access to its * attributes * - * @property-read $address_line1 - * @property-read $address_line2 - * @property-read $address_line3 - * @property-read $can_specify_mandate_reference - * @property-read $city - * @property-read $country_code - * @property-read $created_at - * @property-read $currency - * @property-read $email - * @property-read $id - * @property-read $minimum_advance_notice - * @property-read $name - * @property-read $phone_number - * @property-read $postal_code - * @property-read $reference - * @property-read $region - * @property-read $scheme - * @property-read $status + * @property-read mixed $address_line1 + * @property-read mixed $address_line2 + * @property-read mixed $address_line3 + * @property-read mixed $can_specify_mandate_reference + * @property-read mixed $city + * @property-read mixed $country_code + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $email + * @property-read mixed $id + * @property-read mixed $minimum_advance_notice + * @property-read mixed $name + * @property-read mixed $phone_number + * @property-read mixed $postal_code + * @property-read mixed $reference + * @property-read mixed $region + * @property-read mixed $scheme + * @property-read mixed $status */ class SchemeIdentifier extends BaseResource { diff --git a/lib/Resources/Subscription.php b/lib/Resources/Subscription.php index c963592e..e8e1f2c5 100644 --- a/lib/Resources/Subscription.php +++ b/lib/Resources/Subscription.php @@ -11,27 +11,27 @@ * A thin wrapper around a subscription, providing access to its * attributes * - * @property-read $amount - * @property-read $app_fee - * @property-read $count - * @property-read $created_at - * @property-read $currency - * @property-read $day_of_month - * @property-read $earliest_charge_date_after_resume - * @property-read $end_date - * @property-read $id - * @property-read $interval - * @property-read $interval_unit - * @property-read $links - * @property-read $metadata - * @property-read $month - * @property-read $name - * @property-read $parent_plan_paused - * @property-read $payment_reference - * @property-read $retry_if_possible - * @property-read $start_date - * @property-read $status - * @property-read $upcoming_payments + * @property-read mixed $amount + * @property-read mixed $app_fee + * @property-read mixed $count + * @property-read mixed $created_at + * @property-read mixed $currency + * @property-read mixed $day_of_month + * @property-read mixed $earliest_charge_date_after_resume + * @property-read mixed $end_date + * @property-read mixed $id + * @property-read mixed $interval + * @property-read mixed $interval_unit + * @property-read mixed $links + * @property-read mixed $metadata + * @property-read mixed $month + * @property-read mixed $name + * @property-read mixed $parent_plan_paused + * @property-read mixed $payment_reference + * @property-read mixed $retry_if_possible + * @property-read mixed $start_date + * @property-read mixed $status + * @property-read mixed $upcoming_payments */ class Subscription extends BaseResource { diff --git a/lib/Resources/TaxRate.php b/lib/Resources/TaxRate.php index e2ee1e73..1ef643d5 100644 --- a/lib/Resources/TaxRate.php +++ b/lib/Resources/TaxRate.php @@ -11,12 +11,12 @@ * A thin wrapper around a tax_rate, providing access to its * attributes * - * @property-read $end_date - * @property-read $id - * @property-read $jurisdiction - * @property-read $percentage - * @property-read $start_date - * @property-read $type + * @property-read mixed $end_date + * @property-read mixed $id + * @property-read mixed $jurisdiction + * @property-read mixed $percentage + * @property-read mixed $start_date + * @property-read mixed $type */ class TaxRate extends BaseResource { diff --git a/lib/Resources/TransferredMandate.php b/lib/Resources/TransferredMandate.php index f046266d..9344e6ec 100644 --- a/lib/Resources/TransferredMandate.php +++ b/lib/Resources/TransferredMandate.php @@ -11,10 +11,10 @@ * A thin wrapper around a transferred_mandate, providing access to its * attributes * - * @property-read $encrypted_customer_bank_details - * @property-read $encrypted_decryption_key - * @property-read $links - * @property-read $public_key_id + * @property-read mixed $encrypted_customer_bank_details + * @property-read mixed $encrypted_decryption_key + * @property-read mixed $links + * @property-read mixed $public_key_id */ class TransferredMandate extends BaseResource { diff --git a/lib/Resources/VerificationDetail.php b/lib/Resources/VerificationDetail.php index 7729c283..d4e00626 100644 --- a/lib/Resources/VerificationDetail.php +++ b/lib/Resources/VerificationDetail.php @@ -11,16 +11,16 @@ * A thin wrapper around a verification_detail, providing access to its * attributes * - * @property-read $address_line1 - * @property-read $address_line2 - * @property-read $address_line3 - * @property-read $city - * @property-read $company_number - * @property-read $description - * @property-read $directors - * @property-read $links - * @property-read $name - * @property-read $postal_code + * @property-read mixed $address_line1 + * @property-read mixed $address_line2 + * @property-read mixed $address_line3 + * @property-read mixed $city + * @property-read mixed $company_number + * @property-read mixed $description + * @property-read mixed $directors + * @property-read mixed $links + * @property-read mixed $name + * @property-read mixed $postal_code */ class VerificationDetail extends BaseResource { diff --git a/lib/Resources/Webhook.php b/lib/Resources/Webhook.php index e7332db2..7112eb8a 100644 --- a/lib/Resources/Webhook.php +++ b/lib/Resources/Webhook.php @@ -11,19 +11,19 @@ * A thin wrapper around a webhook, providing access to its * attributes * - * @property-read $created_at - * @property-read $id - * @property-read $is_test - * @property-read $request_body - * @property-read $request_headers - * @property-read $response_body - * @property-read $response_body_truncated - * @property-read $response_code - * @property-read $response_headers - * @property-read $response_headers_content_truncated - * @property-read $response_headers_count_truncated - * @property-read $successful - * @property-read $url + * @property-read mixed $created_at + * @property-read mixed $id + * @property-read mixed $is_test + * @property-read mixed $request_body + * @property-read mixed $request_headers + * @property-read mixed $response_body + * @property-read mixed $response_body_truncated + * @property-read mixed $response_code + * @property-read mixed $response_headers + * @property-read mixed $response_headers_content_truncated + * @property-read mixed $response_headers_count_truncated + * @property-read mixed $successful + * @property-read mixed $url */ class Webhook extends BaseResource { diff --git a/lib/Services/BankAuthorisationsService.php b/lib/Services/BankAuthorisationsService.php index cba9ac24..b12ee685 100644 --- a/lib/Services/BankAuthorisationsService.php +++ b/lib/Services/BankAuthorisationsService.php @@ -17,9 +17,6 @@ /** * Service that provides access to the BankAuthorisation * endpoints of the API - * - * @method create() - * @method get() */ class BankAuthorisationsService extends BaseService { @@ -33,7 +30,7 @@ class BankAuthorisationsService extends BaseService * * Example URL: /bank_authorisations * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return BankAuthorisation **/ public function create($params = array()) @@ -68,8 +65,8 @@ public function create($params = array()) * * Example URL: /bank_authorisations/:identity * - * @param string $identity Unique identifier, beginning with "BAU". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BAU". + * @param array $params An associative array for any params * @return BankAuthorisation **/ public function get($identity, $params = array()) diff --git a/lib/Services/BankDetailsLookupsService.php b/lib/Services/BankDetailsLookupsService.php index b02a8cd4..e3ac125a 100644 --- a/lib/Services/BankDetailsLookupsService.php +++ b/lib/Services/BankDetailsLookupsService.php @@ -17,8 +17,6 @@ /** * Service that provides access to the BankDetailsLookup * endpoints of the API - * - * @method create() */ class BankDetailsLookupsService extends BaseService { @@ -32,7 +30,7 @@ class BankDetailsLookupsService extends BaseService * * Example URL: /bank_details_lookups * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return BankDetailsLookup **/ public function create($params = array()) diff --git a/lib/Services/BillingRequestFlowsService.php b/lib/Services/BillingRequestFlowsService.php index 5fe4734f..cdb35f8d 100644 --- a/lib/Services/BillingRequestFlowsService.php +++ b/lib/Services/BillingRequestFlowsService.php @@ -17,9 +17,6 @@ /** * Service that provides access to the BillingRequestFlow * endpoints of the API - * - * @method create() - * @method initialise() */ class BillingRequestFlowsService extends BaseService { @@ -33,7 +30,7 @@ class BillingRequestFlowsService extends BaseService * * Example URL: /billing_request_flows * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return BillingRequestFlow **/ public function create($params = array()) @@ -57,8 +54,8 @@ public function create($params = array()) * * Example URL: /billing_request_flows/:identity/actions/initialise * - * @param string $identity Unique identifier, beginning with "BRF". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRF". + * @param array $params An associative array for any params * @return BillingRequestFlow **/ public function initialise($identity, $params = array()) diff --git a/lib/Services/BillingRequestTemplatesService.php b/lib/Services/BillingRequestTemplatesService.php index 08e75cdd..3e9ed10a 100644 --- a/lib/Services/BillingRequestTemplatesService.php +++ b/lib/Services/BillingRequestTemplatesService.php @@ -18,10 +18,7 @@ * Service that provides access to the BillingRequestTemplate * endpoints of the API * - * @method list() - * @method get() - * @method create() - * @method update() + * @method ListResponse list(array $params) */ class BillingRequestTemplatesService extends BaseService { @@ -35,7 +32,7 @@ class BillingRequestTemplatesService extends BaseService * * Example URL: /billing_request_templates * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -57,8 +54,8 @@ protected function _doList($params = array()) * * Example URL: /billing_request_templates/:identity * - * @param string $identity Unique identifier, beginning with "BRT". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRT". + * @param array $params An associative array for any params * @return BillingRequestTemplate **/ public function get($identity, $params = array()) @@ -86,7 +83,7 @@ public function get($identity, $params = array()) * * Example URL: /billing_request_templates * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return BillingRequestTemplate **/ public function create($params = array()) @@ -121,8 +118,8 @@ public function create($params = array()) * * Example URL: /billing_request_templates/:identity * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequestTemplate **/ public function update($identity, $params = array()) diff --git a/lib/Services/BillingRequestsService.php b/lib/Services/BillingRequestsService.php index 07a16ecc..47506d27 100644 --- a/lib/Services/BillingRequestsService.php +++ b/lib/Services/BillingRequestsService.php @@ -18,18 +18,7 @@ * Service that provides access to the BillingRequest * endpoints of the API * - * @method create() - * @method collectCustomerDetails() - * @method collectBankAccount() - * @method confirmPayerDetails() - * @method fulfil() - * @method cancel() - * @method list() - * @method get() - * @method notify() - * @method fallback() - * @method chooseCurrency() - * @method selectInstitution() + * @method ListResponse list(array $params) */ class BillingRequestsService extends BaseService { @@ -43,7 +32,7 @@ class BillingRequestsService extends BaseService * * Example URL: /billing_requests * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return BillingRequest **/ public function create($params = array()) @@ -78,8 +67,8 @@ public function create($params = array()) * * Example URL: /billing_requests/:identity/actions/collect_customer_details * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function collectCustomerDetails($identity, $params = array()) @@ -120,8 +109,8 @@ public function collectCustomerDetails($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/collect_bank_account * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function collectBankAccount($identity, $params = array()) @@ -162,8 +151,8 @@ public function collectBankAccount($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/confirm_payer_details * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function confirmPayerDetails($identity, $params = array()) @@ -204,8 +193,8 @@ public function confirmPayerDetails($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/fulfil * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function fulfil($identity, $params = array()) @@ -246,8 +235,8 @@ public function fulfil($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/cancel * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function cancel($identity, $params = array()) @@ -288,7 +277,7 @@ public function cancel($identity, $params = array()) * * Example URL: /billing_requests * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -310,8 +299,8 @@ protected function _doList($params = array()) * * Example URL: /billing_requests/:identity * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function get($identity, $params = array()) @@ -339,8 +328,8 @@ public function get($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/notify * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function notify($identity, $params = array()) @@ -381,8 +370,8 @@ public function notify($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/fallback * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function fallback($identity, $params = array()) @@ -423,8 +412,8 @@ public function fallback($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/choose_currency * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function chooseCurrency($identity, $params = array()) @@ -465,8 +454,8 @@ public function chooseCurrency($identity, $params = array()) * * Example URL: /billing_requests/:identity/actions/select_institution * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return BillingRequest **/ public function selectInstitution($identity, $params = array()) diff --git a/lib/Services/BlocksService.php b/lib/Services/BlocksService.php index cd9bf731..f9858186 100644 --- a/lib/Services/BlocksService.php +++ b/lib/Services/BlocksService.php @@ -18,12 +18,7 @@ * Service that provides access to the Block * endpoints of the API * - * @method create() - * @method get() - * @method list() - * @method disable() - * @method enable() - * @method blockByRef() + * @method ListResponse list(array $params) */ class BlocksService extends BaseService { @@ -37,7 +32,7 @@ class BlocksService extends BaseService * * Example URL: /blocks * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Block **/ public function create($params = array()) @@ -72,8 +67,8 @@ public function create($params = array()) * * Example URL: /blocks/:identity * - * @param string $identity Unique identifier, beginning with "BLC". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BLC". + * @param array $params An associative array for any params * @return Block **/ public function get($identity, $params = array()) @@ -101,7 +96,7 @@ public function get($identity, $params = array()) * * Example URL: /blocks * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -123,8 +118,8 @@ protected function _doList($params = array()) * * Example URL: /blocks/:identity/actions/disable * - * @param string $identity Unique identifier, beginning with "BLC". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BLC". + * @param array $params An associative array for any params * @return Block **/ public function disable($identity, $params = array()) @@ -165,8 +160,8 @@ public function disable($identity, $params = array()) * * Example URL: /blocks/:identity/actions/enable * - * @param string $identity Unique identifier, beginning with "BLC". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BLC". + * @param array $params An associative array for any params * @return Block **/ public function enable($identity, $params = array()) @@ -207,7 +202,7 @@ public function enable($identity, $params = array()) * * Example URL: /blocks/block_by_ref * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ public function blockByRef($params = array()) diff --git a/lib/Services/CreditorBankAccountsService.php b/lib/Services/CreditorBankAccountsService.php index c7c7c4af..3480a368 100644 --- a/lib/Services/CreditorBankAccountsService.php +++ b/lib/Services/CreditorBankAccountsService.php @@ -18,10 +18,7 @@ * Service that provides access to the CreditorBankAccount * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method disable() + * @method ListResponse list(array $params) */ class CreditorBankAccountsService extends BaseService { @@ -35,7 +32,7 @@ class CreditorBankAccountsService extends BaseService * * Example URL: /creditor_bank_accounts * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return CreditorBankAccount **/ public function create($params = array()) @@ -70,7 +67,7 @@ public function create($params = array()) * * Example URL: /creditor_bank_accounts * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -92,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /creditor_bank_accounts/:identity * - * @param string $identity Unique identifier, beginning with "BA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BA". + * @param array $params An associative array for any params * @return CreditorBankAccount **/ public function get($identity, $params = array()) @@ -121,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /creditor_bank_accounts/:identity/actions/disable * - * @param string $identity Unique identifier, beginning with "BA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BA". + * @param array $params An associative array for any params * @return CreditorBankAccount **/ public function disable($identity, $params = array()) diff --git a/lib/Services/CreditorsService.php b/lib/Services/CreditorsService.php index 57bdac14..c2c6ccf8 100644 --- a/lib/Services/CreditorsService.php +++ b/lib/Services/CreditorsService.php @@ -18,10 +18,7 @@ * Service that provides access to the Creditor * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() + * @method ListResponse list(array $params) */ class CreditorsService extends BaseService { @@ -35,7 +32,7 @@ class CreditorsService extends BaseService * * Example URL: /creditors * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Creditor **/ public function create($params = array()) @@ -70,7 +67,7 @@ public function create($params = array()) * * Example URL: /creditors * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -92,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /creditors/:identity * - * @param string $identity Unique identifier, beginning with "CR". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "CR". + * @param array $params An associative array for any params * @return Creditor **/ public function get($identity, $params = array()) @@ -121,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /creditors/:identity * - * @param string $identity Unique identifier, beginning with "CR". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "CR". + * @param array $params An associative array for any params * @return Creditor **/ public function update($identity, $params = array()) diff --git a/lib/Services/CurrencyExchangeRatesService.php b/lib/Services/CurrencyExchangeRatesService.php index 6aded6ac..6513aa2b 100644 --- a/lib/Services/CurrencyExchangeRatesService.php +++ b/lib/Services/CurrencyExchangeRatesService.php @@ -18,7 +18,7 @@ * Service that provides access to the CurrencyExchangeRate * endpoints of the API * - * @method list() + * @method ListResponse list(array $params) */ class CurrencyExchangeRatesService extends BaseService { @@ -32,7 +32,7 @@ class CurrencyExchangeRatesService extends BaseService * * Example URL: /currency_exchange_rates * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) diff --git a/lib/Services/CustomerBankAccountsService.php b/lib/Services/CustomerBankAccountsService.php index d846b0f1..428d883f 100644 --- a/lib/Services/CustomerBankAccountsService.php +++ b/lib/Services/CustomerBankAccountsService.php @@ -18,11 +18,7 @@ * Service that provides access to the CustomerBankAccount * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() - * @method disable() + * @method ListResponse list(array $params) */ class CustomerBankAccountsService extends BaseService { @@ -36,7 +32,7 @@ class CustomerBankAccountsService extends BaseService * * Example URL: /customer_bank_accounts * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return CustomerBankAccount **/ public function create($params = array()) @@ -71,7 +67,7 @@ public function create($params = array()) * * Example URL: /customer_bank_accounts * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -93,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /customer_bank_accounts/:identity * - * @param string $identity Unique identifier, beginning with "BA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BA". + * @param array $params An associative array for any params * @return CustomerBankAccount **/ public function get($identity, $params = array()) @@ -122,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /customer_bank_accounts/:identity * - * @param string $identity Unique identifier, beginning with "BA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BA". + * @param array $params An associative array for any params * @return CustomerBankAccount **/ public function update($identity, $params = array()) @@ -153,8 +149,8 @@ public function update($identity, $params = array()) * * Example URL: /customer_bank_accounts/:identity/actions/disable * - * @param string $identity Unique identifier, beginning with "BA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BA". + * @param array $params An associative array for any params * @return CustomerBankAccount **/ public function disable($identity, $params = array()) diff --git a/lib/Services/CustomerNotificationsService.php b/lib/Services/CustomerNotificationsService.php index aa885471..69f3f9d3 100644 --- a/lib/Services/CustomerNotificationsService.php +++ b/lib/Services/CustomerNotificationsService.php @@ -17,8 +17,6 @@ /** * Service that provides access to the CustomerNotification * endpoints of the API - * - * @method handle() */ class CustomerNotificationsService extends BaseService { @@ -32,8 +30,8 @@ class CustomerNotificationsService extends BaseService * * Example URL: /customer_notifications/:identity/actions/handle * - * @param string $identity The id of the notification. - * @param string[mixed] $params An associative array for any params + * @param string $identity The id of the notification. + * @param array $params An associative array for any params * @return CustomerNotification **/ public function handle($identity, $params = array()) diff --git a/lib/Services/CustomersService.php b/lib/Services/CustomersService.php index 808a626f..ee830d6d 100644 --- a/lib/Services/CustomersService.php +++ b/lib/Services/CustomersService.php @@ -18,11 +18,7 @@ * Service that provides access to the Customer * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() - * @method remove() + * @method ListResponse list(array $params) */ class CustomersService extends BaseService { @@ -36,7 +32,7 @@ class CustomersService extends BaseService * * Example URL: /customers * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Customer **/ public function create($params = array()) @@ -71,7 +67,7 @@ public function create($params = array()) * * Example URL: /customers * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -93,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /customers/:identity * - * @param string $identity Unique identifier, beginning with "CU". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "CU". + * @param array $params An associative array for any params * @return Customer **/ public function get($identity, $params = array()) @@ -122,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /customers/:identity * - * @param string $identity Unique identifier, beginning with "CU". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "CU". + * @param array $params An associative array for any params * @return Customer **/ public function update($identity, $params = array()) @@ -153,8 +149,8 @@ public function update($identity, $params = array()) * * Example URL: /customers/:identity * - * @param string $identity Unique identifier, beginning with "CU". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "CU". + * @param array $params An associative array for any params * @return Customer **/ public function remove($identity, $params = array()) diff --git a/lib/Services/EventsService.php b/lib/Services/EventsService.php index 16e181b3..635e645e 100644 --- a/lib/Services/EventsService.php +++ b/lib/Services/EventsService.php @@ -18,8 +18,7 @@ * Service that provides access to the Event * endpoints of the API * - * @method list() - * @method get() + * @method ListResponse list(array $params) */ class EventsService extends BaseService { @@ -33,7 +32,7 @@ class EventsService extends BaseService * * Example URL: /events * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -55,8 +54,8 @@ protected function _doList($params = array()) * * Example URL: /events/:identity * - * @param string $identity Unique identifier, beginning with "EV". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "EV". + * @param array $params An associative array for any params * @return Event **/ public function get($identity, $params = array()) diff --git a/lib/Services/ExportsService.php b/lib/Services/ExportsService.php index 7891106c..c4698357 100644 --- a/lib/Services/ExportsService.php +++ b/lib/Services/ExportsService.php @@ -18,8 +18,7 @@ * Service that provides access to the Export * endpoints of the API * - * @method get() - * @method list() + * @method ListResponse list(array $params) */ class ExportsService extends BaseService { @@ -33,8 +32,8 @@ class ExportsService extends BaseService * * Example URL: /exports/:identity * - * @param string $identity Unique identifier, beginning with "EX". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "EX". + * @param array $params An associative array for any params * @return Export **/ public function get($identity, $params = array()) @@ -62,7 +61,7 @@ public function get($identity, $params = array()) * * Example URL: /exports * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) diff --git a/lib/Services/InstalmentSchedulesService.php b/lib/Services/InstalmentSchedulesService.php index 0e7e3de7..c7079e06 100644 --- a/lib/Services/InstalmentSchedulesService.php +++ b/lib/Services/InstalmentSchedulesService.php @@ -18,12 +18,7 @@ * Service that provides access to the InstalmentSchedule * endpoints of the API * - * @method createWithDates() - * @method createWithSchedule() - * @method list() - * @method get() - * @method update() - * @method cancel() + * @method ListResponse list(array $params) */ class InstalmentSchedulesService extends BaseService { @@ -37,7 +32,7 @@ class InstalmentSchedulesService extends BaseService * * Example URL: /instalment_schedules * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return InstalmentSchedule **/ public function createWithDates($params = array()) @@ -72,7 +67,7 @@ public function createWithDates($params = array()) * * Example URL: /instalment_schedules * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return InstalmentSchedule **/ public function createWithSchedule($params = array()) @@ -107,7 +102,7 @@ public function createWithSchedule($params = array()) * * Example URL: /instalment_schedules * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -129,8 +124,8 @@ protected function _doList($params = array()) * * Example URL: /instalment_schedules/:identity * - * @param string $identity Unique identifier, beginning with "IS". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "IS". + * @param array $params An associative array for any params * @return InstalmentSchedule **/ public function get($identity, $params = array()) @@ -158,8 +153,8 @@ public function get($identity, $params = array()) * * Example URL: /instalment_schedules/:identity * - * @param string $identity Unique identifier, beginning with "IS". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "IS". + * @param array $params An associative array for any params * @return InstalmentSchedule **/ public function update($identity, $params = array()) @@ -189,8 +184,8 @@ public function update($identity, $params = array()) * * Example URL: /instalment_schedules/:identity/actions/cancel * - * @param string $identity Unique identifier, beginning with "IS". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "IS". + * @param array $params An associative array for any params * @return InstalmentSchedule **/ public function cancel($identity, $params = array()) diff --git a/lib/Services/InstitutionsService.php b/lib/Services/InstitutionsService.php index 9983b919..f49b6599 100644 --- a/lib/Services/InstitutionsService.php +++ b/lib/Services/InstitutionsService.php @@ -18,8 +18,7 @@ * Service that provides access to the Institution * endpoints of the API * - * @method list() - * @method listForBillingRequest() + * @method ListResponse list(array $params) */ class InstitutionsService extends BaseService { @@ -33,7 +32,7 @@ class InstitutionsService extends BaseService * * Example URL: /institutions * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -55,8 +54,8 @@ protected function _doList($params = array()) * * Example URL: /billing_requests/:identity/institutions * - * @param string $identity Unique identifier, beginning with "BRQ". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "BRQ". + * @param array $params An associative array for any params * @return ListResponse **/ public function listForBillingRequest($identity, $params = array()) diff --git a/lib/Services/LogosService.php b/lib/Services/LogosService.php index a3cd8974..9a809d1f 100644 --- a/lib/Services/LogosService.php +++ b/lib/Services/LogosService.php @@ -17,8 +17,6 @@ /** * Service that provides access to the Logo * endpoints of the API - * - * @method createForCreditor() */ class LogosService extends BaseService { @@ -32,7 +30,7 @@ class LogosService extends BaseService * * Example URL: /branding/logos * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Logo **/ public function createForCreditor($params = array()) diff --git a/lib/Services/MandateImportEntriesService.php b/lib/Services/MandateImportEntriesService.php index 8f13fec6..45c95560 100644 --- a/lib/Services/MandateImportEntriesService.php +++ b/lib/Services/MandateImportEntriesService.php @@ -18,8 +18,7 @@ * Service that provides access to the MandateImportEntry * endpoints of the API * - * @method create() - * @method list() + * @method ListResponse list(array $params) */ class MandateImportEntriesService extends BaseService { @@ -33,7 +32,7 @@ class MandateImportEntriesService extends BaseService * * Example URL: /mandate_import_entries * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return MandateImportEntry **/ public function create($params = array()) @@ -57,7 +56,7 @@ public function create($params = array()) * * Example URL: /mandate_import_entries * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) diff --git a/lib/Services/MandateImportsService.php b/lib/Services/MandateImportsService.php index 82c5b094..b32867ad 100644 --- a/lib/Services/MandateImportsService.php +++ b/lib/Services/MandateImportsService.php @@ -17,11 +17,6 @@ /** * Service that provides access to the MandateImport * endpoints of the API - * - * @method create() - * @method get() - * @method submit() - * @method cancel() */ class MandateImportsService extends BaseService { @@ -35,7 +30,7 @@ class MandateImportsService extends BaseService * * Example URL: /mandate_imports * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return MandateImport **/ public function create($params = array()) @@ -70,8 +65,8 @@ public function create($params = array()) * * Example URL: /mandate_imports/:identity * - * @param string $identity Unique identifier, beginning with "IM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "IM". + * @param array $params An associative array for any params * @return MandateImport **/ public function get($identity, $params = array()) @@ -99,8 +94,8 @@ public function get($identity, $params = array()) * * Example URL: /mandate_imports/:identity/actions/submit * - * @param string $identity Unique identifier, beginning with "IM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "IM". + * @param array $params An associative array for any params * @return MandateImport **/ public function submit($identity, $params = array()) @@ -141,8 +136,8 @@ public function submit($identity, $params = array()) * * Example URL: /mandate_imports/:identity/actions/cancel * - * @param string $identity Unique identifier, beginning with "IM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "IM". + * @param array $params An associative array for any params * @return MandateImport **/ public function cancel($identity, $params = array()) diff --git a/lib/Services/MandatePdfsService.php b/lib/Services/MandatePdfsService.php index 159a9780..65027dfc 100644 --- a/lib/Services/MandatePdfsService.php +++ b/lib/Services/MandatePdfsService.php @@ -17,8 +17,6 @@ /** * Service that provides access to the MandatePdf * endpoints of the API - * - * @method create() */ class MandatePdfsService extends BaseService { @@ -32,7 +30,7 @@ class MandatePdfsService extends BaseService * * Example URL: /mandate_pdfs * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return MandatePdf **/ public function create($params = array()) diff --git a/lib/Services/MandatesService.php b/lib/Services/MandatesService.php index 238fbf5e..80614f8a 100644 --- a/lib/Services/MandatesService.php +++ b/lib/Services/MandatesService.php @@ -18,12 +18,7 @@ * Service that provides access to the Mandate * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() - * @method cancel() - * @method reinstate() + * @method ListResponse list(array $params) */ class MandatesService extends BaseService { @@ -37,7 +32,7 @@ class MandatesService extends BaseService * * Example URL: /mandates * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Mandate **/ public function create($params = array()) @@ -72,7 +67,7 @@ public function create($params = array()) * * Example URL: /mandates * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -94,9 +89,9 @@ protected function _doList($params = array()) * * Example URL: /mandates/:identity * - * @param string $identity Unique identifier, beginning with "MD". Note that this - prefix may not apply to mandates created before 2016. - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "MD". Note that this + * prefix may not apply to mandates created before 2016. + * @param array $params An associative array for any params * @return Mandate **/ public function get($identity, $params = array()) @@ -124,9 +119,9 @@ public function get($identity, $params = array()) * * Example URL: /mandates/:identity * - * @param string $identity Unique identifier, beginning with "MD". Note that this - prefix may not apply to mandates created before 2016. - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "MD". Note that this + * prefix may not apply to mandates created before 2016. + * @param array $params An associative array for any params * @return Mandate **/ public function update($identity, $params = array()) @@ -156,9 +151,9 @@ public function update($identity, $params = array()) * * Example URL: /mandates/:identity/actions/cancel * - * @param string $identity Unique identifier, beginning with "MD". Note that this - prefix may not apply to mandates created before 2016. - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "MD". Note that this + * prefix may not apply to mandates created before 2016. + * @param array $params An associative array for any params * @return Mandate **/ public function cancel($identity, $params = array()) @@ -199,9 +194,9 @@ public function cancel($identity, $params = array()) * * Example URL: /mandates/:identity/actions/reinstate * - * @param string $identity Unique identifier, beginning with "MD". Note that this - prefix may not apply to mandates created before 2016. - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "MD". Note that this + * prefix may not apply to mandates created before 2016. + * @param array $params An associative array for any params * @return Mandate **/ public function reinstate($identity, $params = array()) diff --git a/lib/Services/NegativeBalanceLimitsService.php b/lib/Services/NegativeBalanceLimitsService.php index 1996be9f..2fdea6d2 100644 --- a/lib/Services/NegativeBalanceLimitsService.php +++ b/lib/Services/NegativeBalanceLimitsService.php @@ -18,8 +18,7 @@ * Service that provides access to the NegativeBalanceLimit * endpoints of the API * - * @method list() - * @method create() + * @method ListResponse list(array $params) */ class NegativeBalanceLimitsService extends BaseService { @@ -33,7 +32,7 @@ class NegativeBalanceLimitsService extends BaseService * * Example URL: /negative_balance_limits * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -55,7 +54,7 @@ protected function _doList($params = array()) * * Example URL: /negative_balance_limits * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return NegativeBalanceLimit **/ public function create($params = array()) diff --git a/lib/Services/PayerAuthorisationsService.php b/lib/Services/PayerAuthorisationsService.php index 26ca677a..549b4015 100644 --- a/lib/Services/PayerAuthorisationsService.php +++ b/lib/Services/PayerAuthorisationsService.php @@ -17,12 +17,6 @@ /** * Service that provides access to the PayerAuthorisation * endpoints of the API - * - * @method get() - * @method create() - * @method update() - * @method submit() - * @method confirm() */ class PayerAuthorisationsService extends BaseService { @@ -36,8 +30,8 @@ class PayerAuthorisationsService extends BaseService * * Example URL: /payer_authorisations/:identity * - * @param string $identity Unique identifier, beginning with "PA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PA". + * @param array $params An associative array for any params * @return PayerAuthorisation **/ public function get($identity, $params = array()) @@ -65,7 +59,7 @@ public function get($identity, $params = array()) * * Example URL: /payer_authorisations * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return PayerAuthorisation **/ public function create($params = array()) @@ -100,8 +94,8 @@ public function create($params = array()) * * Example URL: /payer_authorisations/:identity * - * @param string $identity Unique identifier, beginning with "PA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PA". + * @param array $params An associative array for any params * @return PayerAuthorisation **/ public function update($identity, $params = array()) @@ -131,8 +125,8 @@ public function update($identity, $params = array()) * * Example URL: /payer_authorisations/:identity/actions/submit * - * @param string $identity Unique identifier, beginning with "PA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PA". + * @param array $params An associative array for any params * @return PayerAuthorisation **/ public function submit($identity, $params = array()) @@ -173,8 +167,8 @@ public function submit($identity, $params = array()) * * Example URL: /payer_authorisations/:identity/actions/confirm * - * @param string $identity Unique identifier, beginning with "PA". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PA". + * @param array $params An associative array for any params * @return PayerAuthorisation **/ public function confirm($identity, $params = array()) diff --git a/lib/Services/PayerThemesService.php b/lib/Services/PayerThemesService.php index ff5ee5f1..8e02ddbb 100644 --- a/lib/Services/PayerThemesService.php +++ b/lib/Services/PayerThemesService.php @@ -17,8 +17,6 @@ /** * Service that provides access to the PayerTheme * endpoints of the API - * - * @method createForCreditor() */ class PayerThemesService extends BaseService { @@ -32,7 +30,7 @@ class PayerThemesService extends BaseService * * Example URL: /branding/payer_themes * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return PayerTheme **/ public function createForCreditor($params = array()) diff --git a/lib/Services/PaymentsService.php b/lib/Services/PaymentsService.php index 4d0f67db..8cd848aa 100644 --- a/lib/Services/PaymentsService.php +++ b/lib/Services/PaymentsService.php @@ -18,12 +18,7 @@ * Service that provides access to the Payment * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() - * @method cancel() - * @method retry() + * @method ListResponse list(array $params) */ class PaymentsService extends BaseService { @@ -37,7 +32,7 @@ class PaymentsService extends BaseService * * Example URL: /payments * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Payment **/ public function create($params = array()) @@ -72,7 +67,7 @@ public function create($params = array()) * * Example URL: /payments * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -94,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /payments/:identity * - * @param string $identity Unique identifier, beginning with "PM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PM". + * @param array $params An associative array for any params * @return Payment **/ public function get($identity, $params = array()) @@ -123,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /payments/:identity * - * @param string $identity Unique identifier, beginning with "PM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PM". + * @param array $params An associative array for any params * @return Payment **/ public function update($identity, $params = array()) @@ -154,8 +149,8 @@ public function update($identity, $params = array()) * * Example URL: /payments/:identity/actions/cancel * - * @param string $identity Unique identifier, beginning with "PM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PM". + * @param array $params An associative array for any params * @return Payment **/ public function cancel($identity, $params = array()) @@ -196,8 +191,8 @@ public function cancel($identity, $params = array()) * * Example URL: /payments/:identity/actions/retry * - * @param string $identity Unique identifier, beginning with "PM". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PM". + * @param array $params An associative array for any params * @return Payment **/ public function retry($identity, $params = array()) diff --git a/lib/Services/PayoutItemsService.php b/lib/Services/PayoutItemsService.php index 375e70f8..4f307848 100644 --- a/lib/Services/PayoutItemsService.php +++ b/lib/Services/PayoutItemsService.php @@ -18,7 +18,7 @@ * Service that provides access to the PayoutItem * endpoints of the API * - * @method list() + * @method ListResponse list(array $params) */ class PayoutItemsService extends BaseService { @@ -32,7 +32,7 @@ class PayoutItemsService extends BaseService * * Example URL: /payout_items * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) diff --git a/lib/Services/PayoutsService.php b/lib/Services/PayoutsService.php index 081a7a57..1e888fde 100644 --- a/lib/Services/PayoutsService.php +++ b/lib/Services/PayoutsService.php @@ -18,9 +18,7 @@ * Service that provides access to the Payout * endpoints of the API * - * @method list() - * @method get() - * @method update() + * @method ListResponse list(array $params) */ class PayoutsService extends BaseService { @@ -34,7 +32,7 @@ class PayoutsService extends BaseService * * Example URL: /payouts * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -56,8 +54,8 @@ protected function _doList($params = array()) * * Example URL: /payouts/:identity * - * @param string $identity Unique identifier, beginning with "PO". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PO". + * @param array $params An associative array for any params * @return Payout **/ public function get($identity, $params = array()) @@ -85,8 +83,8 @@ public function get($identity, $params = array()) * * Example URL: /payouts/:identity * - * @param string $identity Unique identifier, beginning with "PO". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "PO". + * @param array $params An associative array for any params * @return Payout **/ public function update($identity, $params = array()) diff --git a/lib/Services/RedirectFlowsService.php b/lib/Services/RedirectFlowsService.php index d784c661..222918d3 100644 --- a/lib/Services/RedirectFlowsService.php +++ b/lib/Services/RedirectFlowsService.php @@ -17,10 +17,6 @@ /** * Service that provides access to the RedirectFlow * endpoints of the API - * - * @method create() - * @method get() - * @method complete() */ class RedirectFlowsService extends BaseService { @@ -34,7 +30,7 @@ class RedirectFlowsService extends BaseService * * Example URL: /redirect_flows * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return RedirectFlow **/ public function create($params = array()) @@ -69,8 +65,8 @@ public function create($params = array()) * * Example URL: /redirect_flows/:identity * - * @param string $identity Unique identifier, beginning with "RE". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "RE". + * @param array $params An associative array for any params * @return RedirectFlow **/ public function get($identity, $params = array()) @@ -98,8 +94,8 @@ public function get($identity, $params = array()) * * Example URL: /redirect_flows/:identity/actions/complete * - * @param string $identity Unique identifier, beginning with "RE". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "RE". + * @param array $params An associative array for any params * @return RedirectFlow **/ public function complete($identity, $params = array()) diff --git a/lib/Services/RefundsService.php b/lib/Services/RefundsService.php index fe38954a..96c8faaf 100644 --- a/lib/Services/RefundsService.php +++ b/lib/Services/RefundsService.php @@ -18,10 +18,7 @@ * Service that provides access to the Refund * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() + * @method ListResponse list(array $params) */ class RefundsService extends BaseService { @@ -35,7 +32,7 @@ class RefundsService extends BaseService * * Example URL: /refunds * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Refund **/ public function create($params = array()) @@ -70,7 +67,7 @@ public function create($params = array()) * * Example URL: /refunds * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -92,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /refunds/:identity * - * @param string $identity Unique identifier, beginning with "RF". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "RF". + * @param array $params An associative array for any params * @return Refund **/ public function get($identity, $params = array()) @@ -121,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /refunds/:identity * - * @param string $identity Unique identifier, beginning with "RF". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "RF". + * @param array $params An associative array for any params * @return Refund **/ public function update($identity, $params = array()) diff --git a/lib/Services/ScenarioSimulatorsService.php b/lib/Services/ScenarioSimulatorsService.php index 06f9b3ff..2b73549f 100644 --- a/lib/Services/ScenarioSimulatorsService.php +++ b/lib/Services/ScenarioSimulatorsService.php @@ -17,7 +17,6 @@ /** * Service that provides access to the ScenarioSimulator * endpoints of the API - * @method run() */ class ScenarioSimulatorsService extends BaseService { @@ -27,164 +26,163 @@ class ScenarioSimulatorsService extends BaseService /** - * Simulate a scenario - * - * Example URL: /scenario_simulators/:identity/actions/run - * - * @param string $identity The unique identifier of the simulator, used to initiate - simulations. One of: -
    -
  • `creditor_verification_status_action_required`: Sets a - creditor's `verification status` to `action required`, - meaning that the creditor must provide further information - to GoCardless in order to verify their account to receive - payouts.
  • -
  • `creditor_verification_status_in_review`: Sets a - creditor's `verification status` to `in review`, meaning - that the creditor has provided all of the information - requested by GoCardless to verify their account, and is now - awaiting review.
  • -
  • `creditor_verification_status_successful`: Sets a - creditor's `verification status` to `successful`, meaning - that the creditor is fully verified and can receive - payouts.
  • -
  • `payment_confirmed`: Transitions a payment through to - `confirmed`. It must start in the `pending_submission` - state, and its mandate must be in the `activated` state - (unless it is a payment for ACH, BECS, BECS_NZ or SEPA, in - which cases the mandate may be `pending_submission`, since - their mandates are submitted with their first - payment).
  • -
  • `payment_paid_out`: Transitions a payment through to - `paid_out`, having been collected successfully and paid out - to you. It must start in the `pending_submission` state, - and its mandate must be in the `activated` state (unless it - is a payment for ACH, BECS, BECS_NZ or SEPA, in which cases - the mandate may be `pending_submission`, since their - mandates are submitted with their first payment).
  • -
  • `payment_failed`: Transitions a payment through to - `failed`. It must start in the `pending_submission` state, - and its mandate must be in the `activated` state (unless it - is a payment for ACH, BECS, BECS_NZ or SEPA, in which cases - the mandate may be `pending_submission`, since their - mandates are submitted with their first payment).
  • -
  • `payment_charged_back`: Behaves the same as the - `payout_paid_out` simulator, except that the payment is - transitioned to `charged_back` after it is paid out, having - been charged back by the customer.
  • -
  • `payment_chargeback_settled`: Behaves the same as the - `payment_charged_back` simulator, except that the charged - back payment is additionally included as a debit item in a - payout, thereby settling the charged back payment.
  • -
  • `payment_late_failure`: Transitions a payment through - to `late_failure`, having been apparently collected - successfully beforehand. It must start in the - `pending_submission` state, and its mandate must be in the - `activated` state (unless it is a payment for ACH, BECS, - BECS_NZ or SEPA, in which cases the mandate may be - `pending_submission`, since their mandates are submitted - with their first payment). Not compatible with Autogiro - mandates.
  • -
  • `payment_late_failure_settled`: Behaves the same as the - `payment_late_failure` simulator, except that the late - failure is additionally included as a debit item in a - payout, thereby settling the late failure.
  • -
  • `payment_submitted`: Transitions a payment to - `submitted`, without proceeding any further. It must start - in the `pending_submission` state.
  • -
  • `mandate_activated`: Transitions a mandate through to - `activated`, having been submitted to the banks and set up - successfully. It must start in the `pending_submission` - state. Not compatible with ACH, BECS, BECS_NZ and SEPA - mandates, which are submitted and activated with their - first payment.
  • -
  • `mandate_customer_approval_granted`: Transitions a - mandate through to `pending_submission`, as if the customer - approved the mandate creation. It must start in the - `pending_customer_approval` state. Compatible only with - Bacs and SEPA mandates, which support customer signatures - on the mandate. All payments associated with the mandate - will be transitioned to `pending_submission`. All - subscriptions associated with the mandate will become - `active`.
  • -
  • `mandate_customer_approval_skipped`: Transitions a - mandate through to `pending_submission`, as if the customer - skipped the mandate approval during the mandate creation - process. It must start in the `pending_customer_approval` - state. Compatible only with Bacs and SEPA mandates, which - support customer signatures on the mandate. All payments - associated with the mandate will be transitioned to - `pending_submission`. All subscriptions associated with the - mandate will become `active`.
  • -
  • `mandate_failed`: Transitions a mandate through to - `failed`, having been submitted to the banks but found to - be invalid (for example due to invalid bank details). It - must start in the `pending_submission` or `submitted` - states. Not compatible with SEPA mandates, which are - submitted with their first payment.
  • -
  • `mandate_expired`: Transitions a mandate through to - `expired`, having been submitted to the banks, set up - successfully and then expired because no collection - attempts were made against it for longer than the scheme's - dormancy period (13 months for Bacs, 3 years for SEPA, 15 - months for ACH, Betalingsservice, and BECS). It must start - in the `pending_submission` state. Not compatible with - Autogiro, BECS NZ, and PAD mandates, which do not - expire.
  • -
  • `mandate_transferred`: Transitions a mandate through to - `transferred`, having been submitted to the banks, set up - successfully and then moved to a new bank account due to - the customer using the UK's Current Account Switching - Service (CASS). It must start in the `pending_submission` - state. Only compatible with Bacs mandates.
  • -
  • `mandate_transferred_with_resubmission`: Transitions a - mandate through `transferred` and resubmits it to the - banks, can be caused be the UK's Current Account Switching - Service (CASS) or when a customer contacts GoCardless to - change their bank details. It must start in the - `pending_submission` state. Only compatible with Bacs - mandates.
  • -
  • `mandate_suspended_by_payer`: Transitions a mandate to - `suspended_by_payer`, as if payer has suspended the mandate - after it has been setup successfully. It must start in the - `activated` state. Only compatible with PAY_TO - mandates.
  • -
  • `refund_paid`: Transitions a refund to `paid`. It must - start in either the `pending_submission` or `submitted` - state.
  • -
  • `refund_settled`: Transitions a refund to `paid`, if - it's not already, then generates a payout that includes the - refund, thereby settling the funds. It must start in one of - `pending_submission`, `submitted` or `paid` states.
  • -
  • `refund_bounced`: Transitions a refund to `bounced`. It - must start in either the `pending_submission`, `submitted`, - or `paid` state.
  • -
  • `refund_returned`: Transitions a refund to - `refund_returned`. The refund must start in - `pending_submission`.
  • -
  • `payout_bounced`: Transitions a payout to `bounced`. It - must start in the `paid` state.
  • -
  • `billing_request_fulfilled`: Authorises the billing - request, and then fulfils it. The billing request must be - in the `pending` state, with all actions completed except - for `bank_authorisation`. Only billing requests with a - `payment_request` are supported.
  • -
  • `billing_request_fulfilled_and_payment_failed`: - Authorises the billing request, fulfils it, and moves the - associated payment to `failed`. The billing request must be - in the `pending` state, with all actions completed except - for `bank_authorisation`. Only billing requests with a - `payment_request` are supported.
  • -
  • `billing_request_fulfilled_and_payment_paid_out`: - Authorises the billing request, fulfils it, and moves the - associated payment to `paid_out`. The billing request must - be in the `pending` state, with all actions completed - except for `bank_authorisation`. Only billing requests with - a `payment_request` are supported.
  • -
- * @param string[mixed] $params An associative array for any params - * @return ScenarioSimulator - **/ + * Simulate a scenario + * + * Example URL: /scenario_simulators/:identity/actions/run + * + * @param string $identity The unique identifier of the simulator, used to initiate + * simulations. One of:
    + *
  • `creditor_verification_status_action_required`: Sets + * a creditor's `verification status` to `action required`, + * meaning that the creditor must provide further + * information to GoCardless in order to verify their + * account to receive payouts.
  • + *
  • `creditor_verification_status_in_review`: Sets a + * creditor's `verification status` to `in review`, meaning + * that the creditor has provided all of the information + * requested by GoCardless to verify their account, and is + * now awaiting review.
  • + *
  • `creditor_verification_status_successful`: Sets a + * creditor's `verification status` to `successful`, + * meaning that the creditor is fully verified and can + * receive payouts.
  • `payment_confirmed`: + * Transitions a payment through to `confirmed`. It must + * start in the `pending_submission` state, and its mandate + * must be in the `activated` state (unless it is a payment + * for ACH, BECS, BECS_NZ or SEPA, in which cases the + * mandate may be `pending_submission`, since their + * mandates are submitted with their first payment).
  • + *
  • `payment_paid_out`: Transitions a payment through to + * `paid_out`, having been collected successfully and paid + * out to you. It must start in the `pending_submission` + * state, and its mandate must be in the `activated` state + * (unless it is a payment for ACH, BECS, BECS_NZ or SEPA, + * in which cases the mandate may be `pending_submission`, + * since their mandates are submitted with their first + * payment).
  • `payment_failed`: Transitions a + * payment through to `failed`. It must start in the + * `pending_submission` state, and its mandate must be in + * the `activated` state (unless it is a payment for ACH, + * BECS, BECS_NZ or SEPA, in which cases the mandate may be + * `pending_submission`, since their mandates are submitted + * with their first payment).
  • + *
  • `payment_charged_back`: Behaves the same as the + * `payout_paid_out` simulator, except that the payment is + * transitioned to `charged_back` after it is paid out, + * having been charged back by the customer.
  • + *
  • `payment_chargeback_settled`: Behaves the same as + * the `payment_charged_back` simulator, except that the + * charged back payment is additionally included as a debit + * item in a payout, thereby settling the charged back + * payment.
  • `payment_late_failure`: Transitions a + * payment through to `late_failure`, having been + * apparently collected successfully beforehand. It must + * start in the `pending_submission` state, and its mandate + * must be in the `activated` state (unless it is a payment + * for ACH, BECS, BECS_NZ or SEPA, in which cases the + * mandate may be `pending_submission`, since their + * mandates are submitted with their first payment). Not + * compatible with Autogiro mandates.
  • + *
  • `payment_late_failure_settled`: Behaves the same as + * the `payment_late_failure` simulator, except that the + * late failure is additionally included as a debit item in + * a payout, thereby settling the late failure.
  • + *
  • `payment_submitted`: Transitions a payment to + * `submitted`, without proceeding any further. It must + * start in the `pending_submission` state.
  • + *
  • `mandate_activated`: Transitions a mandate through + * to `activated`, having been submitted to the banks and + * set up successfully. It must start in the + * `pending_submission` state. Not compatible with ACH, + * BECS, BECS_NZ and SEPA mandates, which are submitted and + * activated with their first payment.
  • + *
  • `mandate_customer_approval_granted`: Transitions a + * mandate through to `pending_submission`, as if the + * customer approved the mandate creation. It must start in + * the `pending_customer_approval` state. Compatible only + * with Bacs and SEPA mandates, which support customer + * signatures on the mandate. All payments associated with + * the mandate will be transitioned to + * `pending_submission`. All subscriptions associated with + * the mandate will become `active`.
  • + *
  • `mandate_customer_approval_skipped`: Transitions a + * mandate through to `pending_submission`, as if the + * customer skipped the mandate approval during the mandate + * creation process. It must start in the + * `pending_customer_approval` state. Compatible only with + * Bacs and SEPA mandates, which support customer + * signatures on the mandate. All payments associated with + * the mandate will be transitioned to + * `pending_submission`. All subscriptions associated with + * the mandate will become `active`.
  • + *
  • `mandate_failed`: Transitions a mandate through to + * `failed`, having been submitted to the banks but found + * to be invalid (for example due to invalid bank details). + * It must start in the `pending_submission` or `submitted` + * states. Not compatible with SEPA mandates, which are + * submitted with their first payment.
  • + *
  • `mandate_expired`: Transitions a mandate through to + * `expired`, having been submitted to the banks, set up + * successfully and then expired because no collection + * attempts were made against it for longer than the + * scheme's dormancy period (13 months for Bacs, 3 years + * for SEPA, 15 months for ACH, Betalingsservice, and + * BECS). It must start in the `pending_submission` state. + * Not compatible with Autogiro, BECS NZ, and PAD mandates, + * which do not expire.
  • `mandate_transferred`: + * Transitions a mandate through to `transferred`, having + * been submitted to the banks, set up successfully and + * then moved to a new bank account due to the customer + * using the UK's Current Account Switching Service (CASS). + * It must start in the `pending_submission` state. Only + * compatible with Bacs mandates.
  • + *
  • `mandate_transferred_with_resubmission`: Transitions + * a mandate through `transferred` and resubmits it to the + * banks, can be caused be the UK's Current Account + * Switching Service (CASS) or when a customer contacts + * GoCardless to change their bank details. It must start + * in the `pending_submission` state. Only compatible with + * Bacs mandates.
  • `mandate_suspended_by_payer`: + * Transitions a mandate to `suspended_by_payer`, as if + * payer has suspended the mandate after it has been setup + * successfully. It must start in the `activated` state. + * Only compatible with PAY_TO mandates.
  • + *
  • `refund_paid`: Transitions a refund to `paid`. It + * must start in either the `pending_submission` or + * `submitted` state.
  • `refund_settled`: + * Transitions a refund to `paid`, if it's not already, + * then generates a payout that includes the refund, + * thereby settling the funds. It must start in one of + * `pending_submission`, `submitted` or `paid` states.
  • + *
  • `refund_bounced`: Transitions a refund to `bounced`. + * It must start in either the `pending_submission`, + * `submitted`, or `paid` state.
  • + *
  • `refund_returned`: Transitions a refund to + * `refund_returned`. The refund must start in + * `pending_submission`.
  • `payout_bounced`: + * Transitions a payout to `bounced`. It must start in the + * `paid` state.
  • `billing_request_fulfilled`: + * Authorises the billing request, and then fulfils it. The + * billing request must be in the `pending` state, with all + * actions completed except for `bank_authorisation`. Only + * billing requests with a `payment_request` are + * supported.
  • + *
  • `billing_request_fulfilled_and_payment_failed`: + * Authorises the billing request, fulfils it, and moves + * the associated payment to `failed`. The billing request + * must be in the `pending` state, with all actions + * completed except for `bank_authorisation`. Only billing + * requests with a `payment_request` are supported.
  • + *
  • `billing_request_fulfilled_and_payment_paid_out`: + * Authorises the billing request, fulfils it, and moves + * the associated payment to `paid_out`. The billing + * request must be in the `pending` state, with all actions + * completed except for `bank_authorisation`. Only billing + * requests with a `payment_request` are supported.
  • + *
+ * @param array $params An associative array for any params + * @return ScenarioSimulator + **/ public function run($identity, $params = array()) { $path = Util::subUrl( @@ -195,9 +193,9 @@ public function run($identity, $params = array()) ) ); if(isset($params['params'])) { - $params['body'] = json_encode(array("data" => (object)$params['params'])); + $params['body'] = json_encode(array("data" => (object)$params['params'])); - unset($params['params']); + unset($params['params']); } diff --git a/lib/Services/SchemeIdentifiersService.php b/lib/Services/SchemeIdentifiersService.php index e864d6e4..807f07f5 100644 --- a/lib/Services/SchemeIdentifiersService.php +++ b/lib/Services/SchemeIdentifiersService.php @@ -18,9 +18,7 @@ * Service that provides access to the SchemeIdentifier * endpoints of the API * - * @method create() - * @method list() - * @method get() + * @method ListResponse list(array $params) */ class SchemeIdentifiersService extends BaseService { @@ -34,7 +32,7 @@ class SchemeIdentifiersService extends BaseService * * Example URL: /scheme_identifiers * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return SchemeIdentifier **/ public function create($params = array()) @@ -69,7 +67,7 @@ public function create($params = array()) * * Example URL: /scheme_identifiers * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -91,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /scheme_identifiers/:identity * - * @param string $identity Unique identifier, usually beginning with "SU". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, usually beginning with "SU". + * @param array $params An associative array for any params * @return SchemeIdentifier **/ public function get($identity, $params = array()) diff --git a/lib/Services/SubscriptionsService.php b/lib/Services/SubscriptionsService.php index e94504b4..a121b662 100644 --- a/lib/Services/SubscriptionsService.php +++ b/lib/Services/SubscriptionsService.php @@ -18,13 +18,7 @@ * Service that provides access to the Subscription * endpoints of the API * - * @method create() - * @method list() - * @method get() - * @method update() - * @method pause() - * @method resume() - * @method cancel() + * @method ListResponse list(array $params) */ class SubscriptionsService extends BaseService { @@ -38,7 +32,7 @@ class SubscriptionsService extends BaseService * * Example URL: /subscriptions * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return Subscription **/ public function create($params = array()) @@ -73,7 +67,7 @@ public function create($params = array()) * * Example URL: /subscriptions * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -95,8 +89,8 @@ protected function _doList($params = array()) * * Example URL: /subscriptions/:identity * - * @param string $identity Unique identifier, beginning with "SB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "SB". + * @param array $params An associative array for any params * @return Subscription **/ public function get($identity, $params = array()) @@ -124,8 +118,8 @@ public function get($identity, $params = array()) * * Example URL: /subscriptions/:identity * - * @param string $identity Unique identifier, beginning with "SB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "SB". + * @param array $params An associative array for any params * @return Subscription **/ public function update($identity, $params = array()) @@ -155,8 +149,8 @@ public function update($identity, $params = array()) * * Example URL: /subscriptions/:identity/actions/pause * - * @param string $identity Unique identifier, beginning with "SB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "SB". + * @param array $params An associative array for any params * @return Subscription **/ public function pause($identity, $params = array()) @@ -197,8 +191,8 @@ public function pause($identity, $params = array()) * * Example URL: /subscriptions/:identity/actions/resume * - * @param string $identity Unique identifier, beginning with "SB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "SB". + * @param array $params An associative array for any params * @return Subscription **/ public function resume($identity, $params = array()) @@ -239,8 +233,8 @@ public function resume($identity, $params = array()) * * Example URL: /subscriptions/:identity/actions/cancel * - * @param string $identity Unique identifier, beginning with "SB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "SB". + * @param array $params An associative array for any params * @return Subscription **/ public function cancel($identity, $params = array()) diff --git a/lib/Services/TaxRatesService.php b/lib/Services/TaxRatesService.php index b31fba4a..f6b6f5c2 100644 --- a/lib/Services/TaxRatesService.php +++ b/lib/Services/TaxRatesService.php @@ -18,8 +18,7 @@ * Service that provides access to the TaxRate * endpoints of the API * - * @method list() - * @method get() + * @method ListResponse list(array $params) */ class TaxRatesService extends BaseService { @@ -33,7 +32,7 @@ class TaxRatesService extends BaseService * * Example URL: /tax_rates * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -55,9 +54,9 @@ protected function _doList($params = array()) * * Example URL: /tax_rates/:identity * - * @param string $identity The unique identifier created by the jurisdiction, tax type - and version - * @param string[mixed] $params An associative array for any params + * @param string $identity The unique identifier created by the jurisdiction, tax type + * and version + * @param array $params An associative array for any params * @return TaxRate **/ public function get($identity, $params = array()) diff --git a/lib/Services/TransferredMandatesService.php b/lib/Services/TransferredMandatesService.php index 626579dc..9b41c046 100644 --- a/lib/Services/TransferredMandatesService.php +++ b/lib/Services/TransferredMandatesService.php @@ -17,8 +17,6 @@ /** * Service that provides access to the TransferredMandate * endpoints of the API - * - * @method transferredMandates() */ class TransferredMandatesService extends BaseService { @@ -32,9 +30,9 @@ class TransferredMandatesService extends BaseService * * Example URL: /transferred_mandates/:identity * - * @param string $identity Unique identifier, beginning with "MD". Note that this - prefix may not apply to mandates created before 2016. - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "MD". Note that this + * prefix may not apply to mandates created before 2016. + * @param array $params An associative array for any params * @return TransferredMandate **/ public function transferredMandates($identity, $params = array()) diff --git a/lib/Services/VerificationDetailsService.php b/lib/Services/VerificationDetailsService.php index d8969471..300e30c1 100644 --- a/lib/Services/VerificationDetailsService.php +++ b/lib/Services/VerificationDetailsService.php @@ -18,8 +18,7 @@ * Service that provides access to the VerificationDetail * endpoints of the API * - * @method create() - * @method list() + * @method ListResponse list(array $params) */ class VerificationDetailsService extends BaseService { @@ -33,7 +32,7 @@ class VerificationDetailsService extends BaseService * * Example URL: /verification_details * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return VerificationDetail **/ public function create($params = array()) @@ -57,7 +56,7 @@ public function create($params = array()) * * Example URL: /verification_details * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) diff --git a/lib/Services/WebhooksService.php b/lib/Services/WebhooksService.php index 6214bb8a..f4350ef4 100644 --- a/lib/Services/WebhooksService.php +++ b/lib/Services/WebhooksService.php @@ -18,9 +18,7 @@ * Service that provides access to the Webhook * endpoints of the API * - * @method list() - * @method get() - * @method retry() + * @method ListResponse list(array $params) */ class WebhooksService extends BaseService { @@ -34,7 +32,7 @@ class WebhooksService extends BaseService * * Example URL: /webhooks * - * @param string[mixed] $params An associative array for any params + * @param array $params An associative array for any params * @return ListResponse **/ protected function _doList($params = array()) @@ -56,8 +54,8 @@ protected function _doList($params = array()) * * Example URL: /webhooks/:identity * - * @param string $identity Unique identifier, beginning with "WB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "WB". + * @param array $params An associative array for any params * @return Webhook **/ public function get($identity, $params = array()) @@ -85,8 +83,8 @@ public function get($identity, $params = array()) * * Example URL: /webhooks/:identity/actions/retry * - * @param string $identity Unique identifier, beginning with "WB". - * @param string[mixed] $params An associative array for any params + * @param string $identity Unique identifier, beginning with "WB". + * @param array $params An associative array for any params * @return Webhook **/ public function retry($identity, $params = array()) diff --git a/lib/Webhook.php b/lib/Webhook.php index 7fa4311a..12f7386c 100644 --- a/lib/Webhook.php +++ b/lib/Webhook.php @@ -22,9 +22,9 @@ class Webhook * `Webhook-Signature` header * @param string $webhook_endpoint_secret the webhook endpoint secret for your webhook * endpoint, as configured in your GoCardless Dashboard - * @return GoCardlessPro\Resources\Event[] the events included in the + * @return Resources\Event[] the events included in the * webhook - * @raises GoCardlessPro\Core\Exception\InvalidSignatureException if the + * @throws Core\Exception\InvalidSignatureException if the * signature header specified does not match the signature computed using the * request body and webhook endpoint secret */ diff --git a/tests/fixtures/bank_authorisations.json b/tests/fixtures/bank_authorisations.json index 8fdfe8b3..941ef4f2 100644 --- a/tests/fixtures/bank_authorisations.json +++ b/tests/fixtures/bank_authorisations.json @@ -3,13 +3,13 @@ "method": "POST", "path_template": "/bank_authorisations", "url_params": {}, - "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 8081","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-08-13T10:12:28.280Z","expires_at":"2024-08-13T10:12:28.280Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} + "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 8081","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-08-13T10:13:10.601Z","expires_at":"2024-08-13T10:13:10.601Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} }, "get": { "method": "GET", "path_template": "/bank_authorisations/:identity", "url_params": {"identity": "BAU123"}, - "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 7887","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-08-13T10:12:28.280Z","expires_at":"2024-08-13T10:12:28.280Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} + "body": {"bank_authorisations":{"authorisation_type":"example authorisation_type 7887","authorised_at":"2020-01-01T12:00:00.000Z","created_at":"2024-08-13T10:13:10.601Z","expires_at":"2024-08-13T10:13:10.601Z","id":"BAU123","last_visited_at":"2020-01-01T12:00:00.000Z","links":{"billing_request":"BRQ123","institution":"monzo"},"qr_code_url":"https://pay.gocardless.com/obauth/BAU123/qr_code","redirect_uri":"https://my-website.com/abc/callback","url":"https://pay.gocardless.com/obauth/BAU123"}} } } diff --git a/tests/fixtures/billing_request_flows.json b/tests/fixtures/billing_request_flows.json index 8179ea67..fec7d8f8 100644 --- a/tests/fixtures/billing_request_flows.json +++ b/tests/fixtures/billing_request_flows.json @@ -3,13 +3,13 @@ "method": "POST", "path_template": "/billing_request_flows", "url_params": {}, - "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":false,"created_at":"2024-08-13T10:12:28.283Z","customer_details_captured":true,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-08-13T10:12:28.283Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"lock_currency":false,"lock_customer_details":true,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":true,"show_success_redirect_button":true}} + "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":false,"created_at":"2024-08-13T10:13:10.604Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-08-13T10:13:10.604Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":true,"lock_currency":true,"lock_customer_details":true,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":false,"show_success_redirect_button":true}} }, "initialise": { "method": "POST", "path_template": "/billing_request_flows/:identity/actions/initialise", "url_params": {"identity": "BRF123"}, - "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":false,"created_at":"2024-08-13T10:12:28.283Z","customer_details_captured":false,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-08-13T10:12:28.283Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"lock_currency":true,"lock_customer_details":false,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":false,"show_success_redirect_button":true}} + "body": {"billing_request_flows":{"authorisation_url":"https://monzo.com/abc-123-things","auto_fulfil":true,"created_at":"2024-08-13T10:13:10.604Z","customer_details_captured":true,"exit_uri":"https://my-website.com/abc/callback","expires_at":"2024-08-13T10:13:10.604Z","id":"BRF123","language":"en","links":{"billing_request":"BRQ123"},"lock_bank_account":false,"lock_currency":false,"lock_customer_details":false,"prefilled_bank_account":{"account_type":"savings"},"prefilled_customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"redirect_uri":"https://my-website.com/abc/callback","session_token":"sesh_123","show_redirect_buttons":false,"show_success_redirect_button":false}} } } diff --git a/tests/fixtures/billing_requests.json b/tests/fixtures/billing_requests.json index 5e1ac6e6..0597b803 100644 --- a/tests/fixtures/billing_requests.json +++ b/tests/fixtures/billing_requests.json @@ -3,73 +3,73 @@ "method": "POST", "path_template": "/billing_requests", "url_params": {}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9106"],"bank_authorisation":{"adapter":"example adapter 4728","authorisation_type":"example authorisation_type 3274"},"collect_customer_details":{"default_country_code":"example default_country_code 1211","incomplete_fields":{"customer":["example customer 3237"],"customer_billing_detail":["example customer_billing_detail 1445"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8287","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2888","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 1847","constraints":{"end_date":"example end_date 3300","max_amount_per_payment":694,"periodic_limits":[{"alignment":"calendar","max_payments":2081,"max_total_amount":2540,"period":"day"}],"start_date":"example start_date 456"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5089"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 5466"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"tax","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 9947"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8047"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1847"],"bank_authorisation":{"adapter":"example adapter 4059","authorisation_type":"example authorisation_type 2081"},"collect_customer_details":{"default_country_code":"example default_country_code 1318","incomplete_fields":{"customer":["example customer 4425"],"customer_billing_detail":["example customer_billing_detail 2540"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8511","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 694","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3274","constraints":{"end_date":"example end_date 6258","max_amount_per_payment":8047,"periodic_limits":[{"alignment":"calendar","max_payments":495,"max_total_amount":9106,"period":"month"}],"start_date":"example start_date 1528"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1445"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 5089"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"gambling","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 3300"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 456"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "collect_customer_details": { "method": "POST", "path_template": "/billing_requests/:identity/actions/collect_customer_details", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 2790"],"bank_authorisation":{"adapter":"example adapter 3015","authorisation_type":"example authorisation_type 5541"},"collect_customer_details":{"default_country_code":"example default_country_code 6831","incomplete_fields":{"customer":["example customer 408"],"customer_billing_detail":["example customer_billing_detail 7387"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 6159","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1353","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 5356","constraints":{"end_date":"example end_date 5026","max_amount_per_payment":6413,"periodic_limits":[{"alignment":"creation_date","max_payments":5194,"max_total_amount":3090,"period":"year"}],"start_date":"example start_date 1485"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1737"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 7189"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"pension","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 4324"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 4078"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 4147"],"bank_authorisation":{"adapter":"example adapter 2433","authorisation_type":"example authorisation_type 563"},"collect_customer_details":{"default_country_code":"example default_country_code 6413","incomplete_fields":{"customer":["example customer 3090"],"customer_billing_detail":["example customer_billing_detail 5194"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3721","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 7189","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 7387","constraints":{"end_date":"example end_date 6831","max_amount_per_payment":5429,"periodic_limits":[{"alignment":"calendar","max_payments":1485,"max_total_amount":631,"period":"month"}],"start_date":"example start_date 5026"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 2790"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 4078"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 1957"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 1353"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "collect_bank_account": { "method": "POST", "path_template": "/billing_requests/:identity/actions/collect_bank_account", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1577"],"bank_authorisation":{"adapter":"example adapter 5094","authorisation_type":"example authorisation_type 5447"},"collect_customer_details":{"default_country_code":"example default_country_code 7463","incomplete_fields":{"customer":["example customer 7996"],"customer_billing_detail":["example customer_billing_detail 6420"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8705","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3000","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 156","constraints":{"end_date":"example end_date 8266","max_amount_per_payment":9828,"periodic_limits":[{"alignment":"calendar","max_payments":4783,"max_total_amount":7202,"period":"week"}],"start_date":"example start_date 1563"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9002"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 2888"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"other","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 2451"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8510"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 9002"],"bank_authorisation":{"adapter":"example adapter 1563","authorisation_type":"example authorisation_type 4376"},"collect_customer_details":{"default_country_code":"example default_country_code 9718","incomplete_fields":{"customer":["example customer 5094"],"customer_billing_detail":["example customer_billing_detail 5447"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 7996","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 6420","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 9703","constraints":{"end_date":"example end_date 2451","max_amount_per_payment":8510,"periodic_limits":[{"alignment":"creation_date","max_payments":9828,"max_total_amount":8266,"period":"week"}],"start_date":"example start_date 9355"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3000"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 7202"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"loan","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 7463"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 1577"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "confirm_payer_details": { "method": "POST", "path_template": "/billing_requests/:identity/actions/confirm_payer_details", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1598"],"bank_authorisation":{"adapter":"example adapter 1351","authorisation_type":"example authorisation_type 7425"},"collect_customer_details":{"default_country_code":"example default_country_code 1515","incomplete_fields":{"customer":["example customer 9757"],"customer_billing_detail":["example customer_billing_detail 3687"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 9843","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2205","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 953","constraints":{"end_date":"example end_date 9241","max_amount_per_payment":59,"periodic_limits":[{"alignment":"calendar","max_payments":3891,"max_total_amount":8643,"period":"year"}],"start_date":"example start_date 3133"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9336"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 9107"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 552"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 6503"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 7425"],"bank_authorisation":{"adapter":"example adapter 1598","authorisation_type":"example authorisation_type 2205"},"collect_customer_details":{"default_country_code":"example default_country_code 1351","incomplete_fields":{"customer":["example customer 1515"],"customer_billing_detail":["example customer_billing_detail 9757"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 9241","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3133","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3033","constraints":{"end_date":"example end_date 2546","max_amount_per_payment":9107,"periodic_limits":[{"alignment":"creation_date","max_payments":8878,"max_total_amount":2002,"period":"week"}],"start_date":"example start_date 9336"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7940"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 8010"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"personal","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 1137"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 953"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "fulfil": { "method": "POST", "path_template": "/billing_requests/:identity/actions/fulfil", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1270"],"bank_authorisation":{"adapter":"example adapter 493","authorisation_type":"example authorisation_type 3086"},"collect_customer_details":{"default_country_code":"example default_country_code 2066","incomplete_fields":{"customer":["example customer 3981"],"customer_billing_detail":["example customer_billing_detail 2079"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8590","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3632","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 8582","constraints":{"end_date":"example end_date 1297","max_amount_per_payment":9267,"periodic_limits":[{"alignment":"calendar","max_payments":5894,"max_total_amount":9271,"period":"month"}],"start_date":"example start_date 5384"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5802"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 8981"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 3410"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 5285"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 3410"],"bank_authorisation":{"adapter":"example adapter 3098","authorisation_type":"example authorisation_type 8553"},"collect_customer_details":{"default_country_code":"example default_country_code 5285","incomplete_fields":{"customer":["example customer 8590"],"customer_billing_detail":["example customer_billing_detail 3632"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 1297","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 5384","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3981","constraints":{"end_date":"example end_date 2066","max_amount_per_payment":1270,"periodic_limits":[{"alignment":"creation_date","max_payments":8981,"max_total_amount":9819,"period":"week"}],"start_date":"example start_date 2079"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7726"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 6137"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"other","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 8591"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 8582"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "cancel": { "method": "POST", "path_template": "/billing_requests/:identity/actions/cancel", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 3616"],"bank_authorisation":{"adapter":"example adapter 7839","authorisation_type":"example authorisation_type 540"},"collect_customer_details":{"default_country_code":"example default_country_code 5786","incomplete_fields":{"customer":["example customer 7051"],"customer_billing_detail":["example customer_billing_detail 8076"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 4801","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 9183","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3612","constraints":{"end_date":"example end_date 3749","max_amount_per_payment":1528,"periodic_limits":[{"alignment":"calendar","max_payments":2818,"max_total_amount":1224,"period":"year"}],"start_date":"example start_date 4547"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5710"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 364"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"salary","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 7351"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 3640"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 540"],"bank_authorisation":{"adapter":"example adapter 5786","authorisation_type":"example authorisation_type 7051"},"collect_customer_details":{"default_country_code":"example default_country_code 7351","incomplete_fields":{"customer":["example customer 8076"],"customer_billing_detail":["example customer_billing_detail 3640"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8844","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 364","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 2818","constraints":{"end_date":"example end_date 7903","max_amount_per_payment":1224,"periodic_limits":[{"alignment":"calendar","max_payments":4547,"max_total_amount":3616,"period":"month"}],"start_date":"example start_date 4384"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3749"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 4885"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"pension","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 9183"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 2305"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "list": { "method": "GET", "path_template": "/billing_requests", "url_params": {}, - "body": {"billing_requests":[{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3162","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 4904","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 7578","constraints":{"end_date":"example end_date 7822","max_amount_per_payment":1223,"periodic_limits":[{"alignment":"calendar","max_payments":1968,"max_total_amount":7743,"period":"year"}],"start_date":"example start_date 8154"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3231"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"always"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 4535"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"},{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 4162","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 565","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 4657","constraints":{"end_date":"example end_date 6720","max_amount_per_payment":783,"periodic_limits":[{"alignment":"calendar","max_payments":3039,"max_total_amount":9700,"period":"year"}],"start_date":"example start_date 1359"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4415"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 8247"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"}],"meta":{"cursors":{"after":"example after 2258","before":"example before 1602"},"limit":50}} + "body": {"billing_requests":[{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 4535","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 440","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 3767","constraints":{"end_date":"example end_date 7578","max_amount_per_payment":8154,"periodic_limits":[{"alignment":"calendar","max_payments":4208,"max_total_amount":7342,"period":"year"}],"start_date":"example start_date 3231"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1602"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 3710"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"},{"created_at":"2015-01-01T12:00:00.000Z","id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8247","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8010","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 4415","constraints":{"end_date":"example end_date 9371","max_amount_per_payment":3039,"periodic_limits":[{"alignment":"calendar","max_payments":9513,"max_total_amount":3430,"period":"flexible"}],"start_date":"example start_date 6720"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 4904"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 2984"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"status":"pending"}],"meta":{"cursors":{"after":"example after 565","before":"example before 4162"},"limit":50}} }, "get": { "method": "GET", "path_template": "/billing_requests/:identity", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 8666"],"bank_authorisation":{"adapter":"example adapter 9456","authorisation_type":"example authorisation_type 6200"},"collect_customer_details":{"default_country_code":"example default_country_code 2048","incomplete_fields":{"customer":["example customer 6756"],"customer_billing_detail":["example customer_billing_detail 5695"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 8318","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 3756","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 8831","constraints":{"end_date":"example end_date 3447","max_amount_per_payment":292,"periodic_limits":[{"alignment":"creation_date","max_payments":1888,"max_total_amount":9888,"period":"year"}],"start_date":"example start_date 1162"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 5320"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 6829"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"mortgage","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 7807"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 2019"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 8318"],"bank_authorisation":{"adapter":"example adapter 9103","authorisation_type":"example authorisation_type 9888"},"collect_customer_details":{"default_country_code":"example default_country_code 3756","incomplete_fields":{"customer":["example customer 2019"],"customer_billing_detail":["example customer_billing_detail 7807"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3447","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1162","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 2048","constraints":{"end_date":"example end_date 1092","max_amount_per_payment":8831,"periodic_limits":[{"alignment":"calendar","max_payments":6200,"max_total_amount":8666,"period":"day"}],"start_date":"example start_date 6629"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7886"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 6611"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"mortgage","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 5399"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 5320"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "notify": { "method": "POST", "path_template": "/billing_requests/:identity/actions/notify", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1464"],"bank_authorisation":{"adapter":"example adapter 1661","authorisation_type":"example authorisation_type 60"},"collect_customer_details":{"default_country_code":"example default_country_code 2420","incomplete_fields":{"customer":["example customer 2954"],"customer_billing_detail":["example customer_billing_detail 1079"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 6157","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 8652","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 2181","constraints":{"end_date":"example end_date 9386","max_amount_per_payment":1853,"periodic_limits":[{"alignment":"calendar","max_payments":1393,"max_total_amount":417,"period":"day"}],"start_date":"example start_date 8996"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8675"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 7029"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 1757"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 1181"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1757"],"bank_authorisation":{"adapter":"example adapter 2954","authorisation_type":"example authorisation_type 1464"},"collect_customer_details":{"default_country_code":"example default_country_code 2060","incomplete_fields":{"customer":["example customer 9551"],"customer_billing_detail":["example customer_billing_detail 1181"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3922","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 7029","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"web","consent_type":"example consent_type 1853","constraints":{"end_date":"example end_date 417","max_amount_per_payment":1393,"periodic_limits":[{"alignment":"calendar","max_payments":2632,"max_total_amount":9386,"period":"week"}],"start_date":"example start_date 8795"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 8675"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 60"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"retail","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 260"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 2520"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "fallback": { "method": "POST", "path_template": "/billing_requests/:identity/actions/fallback", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 4637"],"bank_authorisation":{"adapter":"example adapter 1533","authorisation_type":"example authorisation_type 5561"},"collect_customer_details":{"default_country_code":"example default_country_code 9516","incomplete_fields":{"customer":["example customer 7039"],"customer_billing_detail":["example customer_billing_detail 600"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 1215","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 1719","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 421","constraints":{"end_date":"example end_date 8662","max_amount_per_payment":5740,"periodic_limits":[{"alignment":"creation_date","max_payments":3173,"max_total_amount":9284,"period":"day"}],"start_date":"example start_date 1040"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 574"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 8070"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"gambling","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 1509"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 6685"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 2390"],"bank_authorisation":{"adapter":"example adapter 2869","authorisation_type":"example authorisation_type 574"},"collect_customer_details":{"default_country_code":"example default_country_code 235","incomplete_fields":{"customer":["example customer 6443"],"customer_billing_detail":["example customer_billing_detail 421"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 9516","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 600","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 6000","constraints":{"end_date":"example end_date 5740","max_amount_per_payment":1509,"periodic_limits":[{"alignment":"creation_date","max_payments":1215,"max_total_amount":1040,"period":"flexible"}],"start_date":"example start_date 8662"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 9284"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"recommended"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 1533"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"other","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 8070"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 6336"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "choose_currency": { "method": "POST", "path_template": "/billing_requests/:identity/actions/choose_currency", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1544"],"bank_authorisation":{"adapter":"example adapter 3338","authorisation_type":"example authorisation_type 3472"},"collect_customer_details":{"default_country_code":"example default_country_code 2395","incomplete_fields":{"customer":["example customer 2174"],"customer_billing_detail":["example customer_billing_detail 1237"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 4511","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 5343","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 1606","constraints":{"end_date":"example end_date 9648","max_amount_per_payment":3352,"periodic_limits":[{"alignment":"calendar","max_payments":7420,"max_total_amount":6117,"period":"week"}],"start_date":"example start_date 8151"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 3479"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"direct","links":{"payment":"example payment 129"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 3524"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 7293"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 855"],"bank_authorisation":{"adapter":"example adapter 4231","authorisation_type":"example authorisation_type 8721"},"collect_customer_details":{"default_country_code":"example default_country_code 3479","incomplete_fields":{"customer":["example customer 129"],"customer_billing_detail":["example customer_billing_detail 6592"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":false,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 2174","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 2395","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 3524","constraints":{"end_date":"example end_date 8682","max_amount_per_payment":7420,"periodic_limits":[{"alignment":"creation_date","max_payments":6117,"max_total_amount":371,"period":"month"}],"start_date":"example start_date 5265"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 7293"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"minimum"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 3472"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"pension","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 5343"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 4511"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} }, "select_institution": { "method": "POST", "path_template": "/billing_requests/:identity/actions/select_institution", "url_params": {"identity": "BRQ123"}, - "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 1657"],"bank_authorisation":{"adapter":"example adapter 6724","authorisation_type":"example authorisation_type 7587"},"collect_customer_details":{"default_country_code":"example default_country_code 259","incomplete_fields":{"customer":["example customer 3546"],"customer_billing_detail":["example customer_billing_detail 9723"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 9867","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 9859","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"telephone","consent_type":"example consent_type 2286","constraints":{"end_date":"example end_date 7008","max_amount_per_payment":5528,"periodic_limits":[{"alignment":"calendar","max_payments":3653,"max_total_amount":2375,"period":"flexible"}],"start_date":"example start_date 8408"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 106"},"metadata":{},"payer_requested_dual_signature":false,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 4658"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"salary","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 6039"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 3374"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} + "body": {"billing_requests":{"actions":[{"available_currencies":["example available_currencies 4658"],"bank_authorisation":{"adapter":"example adapter 4467","authorisation_type":"example authorisation_type 6114"},"collect_customer_details":{"default_country_code":"example default_country_code 106","incomplete_fields":{"customer":["example customer 2286"],"customer_billing_detail":["example customer_billing_detail 6537"]}},"completes_actions":["collect_bank_account"],"institution_guess_status":"pending","required":true,"requires_actions":["collect_bank_account"],"status":"pending","type":"collect_bank_details"}],"created_at":"2015-01-01T12:00:00.000Z","fallback_enabled":true,"id":"BRQ123","links":{"bank_authorisation":"example bank_authorisation 3546","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","customer_billing_detail":"example customer_billing_detail 259","mandate_request":"MRQ123","mandate_request_mandate":"MD123","organisation":"OR123","payment_provider":"PP123","payment_request":"PRQ123","payment_request_payment":"PM123"},"mandate_request":{"authorisation_source":"paper","consent_type":"example consent_type 9859","constraints":{"end_date":"example end_date 7008","max_amount_per_payment":5528,"periodic_limits":[{"alignment":"calendar","max_payments":3653,"max_total_amount":2375,"period":"flexible"}],"start_date":"example start_date 8408"},"currency":"GBP","description":"Top-up Payment","links":{"mandate":"example mandate 1053"},"metadata":{},"payer_requested_dual_signature":true,"scheme":"bacs","verify":"when_available"},"metadata":{},"payment_request":{"amount":1000,"app_fee":100,"currency":"GBP","description":"Top-up Payment","funds_settlement":"managed","links":{"payment":"example payment 1657"},"metadata":{},"reference":"some-custom-ref","scheme":"faster_payments"},"purpose_code":"dependant_support","resources":{"customer":{"company_name":"Hamilton Trading Ltd.","created_at":"2014-01-01T12:00:00.000Z","email":"user@example.com","family_name":"Osborne","given_name":"Frank","id":"CU123","language":"en","metadata":{},"phone_number":"+64 4 817 9999"},"customer_bank_account":{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"customer":"example customer 7587"},"metadata":{}},"customer_billing_detail":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","danish_identity_number":"220550-6218","id":"CU123","ip_address":"127.0.0.1","postal_code":"NW1 6XE","region":"Greater London","schemes":["example schemes 6724"],"swedish_identity_number":"556564-5404"}},"status":"pending"}} } } diff --git a/tests/fixtures/blocks.json b/tests/fixtures/blocks.json index 4d94180a..3bd480d3 100644 --- a/tests/fixtures/blocks.json +++ b/tests/fixtures/blocks.json @@ -15,25 +15,25 @@ "method": "GET", "path_template": "/blocks", "url_params": {}, - "body": {"blocks":[{"active":true,"block_type":"example block_type 7653","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 2120","reason_type":"example reason_type 8240","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 9081","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7276","reason_type":"example reason_type 4405","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 7871","before":"example before 8345"},"limit":50}} + "body": {"blocks":[{"active":true,"block_type":"example block_type 7653","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7871","reason_type":"example reason_type 8345","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 2120","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 8240","reason_type":"example reason_type 9081","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 7276","before":"example before 4405"},"limit":50}} }, "disable": { "method": "POST", "path_template": "/blocks/:identity/actions/disable", "url_params": {"identity": "BLC123"}, - "body": {"blocks":{"active":true,"block_type":"example block_type 1509","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 556","reason_type":"example reason_type 1466","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} + "body": {"blocks":{"active":true,"block_type":"example block_type 556","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 1466","reason_type":"example reason_type 1509","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} }, "enable": { "method": "POST", "path_template": "/blocks/:identity/actions/enable", "url_params": {"identity": "BLC123"}, - "body": {"blocks":{"active":true,"block_type":"example block_type 7695","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 4834","reason_type":"example reason_type 580","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} + "body": {"blocks":{"active":true,"block_type":"example block_type 580","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 7695","reason_type":"example reason_type 4834","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}} }, "block_by_ref": { "method": "POST", "path_template": "/blocks/block_by_ref", "url_params": {}, - "body": {"blocks":[{"active":true,"block_type":"example block_type 4267","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 8477","reason_type":"example reason_type 1478","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 3380","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 4993","reason_type":"example reason_type 2175","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 2631","before":"example before 3808"},"limit":50}} + "body": {"blocks":[{"active":true,"block_type":"example block_type 1478","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 4993","reason_type":"example reason_type 2175","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"},{"active":true,"block_type":"example block_type 3380","created_at":"2014-01-01T12:00:00.000Z","id":"BLC123","reason_description":"example reason_description 2631","reason_type":"example reason_type 3808","resource_reference":"example@example.com","updated_at":"2014-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 8477","before":"example before 4267"},"limit":50}} } } diff --git a/tests/fixtures/creditor_bank_accounts.json b/tests/fixtures/creditor_bank_accounts.json index 771cc3cb..43b1a9ea 100644 --- a/tests/fixtures/creditor_bank_accounts.json +++ b/tests/fixtures/creditor_bank_accounts.json @@ -9,7 +9,7 @@ "method": "GET", "path_template": "/creditor_bank_accounts", "url_params": {}, - "body": {"creditor_bank_accounts":[{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"creditor":"CR123"},"metadata":{},"verification_status":"successful"},{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"creditor":"CR123"},"metadata":{},"verification_status":"successful"}],"meta":{"cursors":{"after":"example after 3483","before":"example before 3654"},"limit":50}} + "body": {"creditor_bank_accounts":[{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"creditor":"CR123"},"metadata":{},"verification_status":"successful"},{"account_holder_name":"Billie Jean","account_number_ending":"1234","account_type":"savings","bank_name":"BARCLAYS BANK PLC","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","enabled":true,"id":"BA123","links":{"creditor":"CR123"},"metadata":{},"verification_status":"successful"}],"meta":{"cursors":{"after":"example after 3654","before":"example before 3483"},"limit":50}} }, "get": { "method": "GET", diff --git a/tests/fixtures/creditors.json b/tests/fixtures/creditors.json index 3dcfe380..f53dddfc 100644 --- a/tests/fixtures/creditors.json +++ b/tests/fixtures/creditors.json @@ -3,25 +3,25 @@ "method": "POST", "path_template": "/creditors", "url_params": {}, - "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 8558","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 8265","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2884","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 442","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} + "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 442","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 8265","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2884","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 8558","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} }, "list": { "method": "GET", "path_template": "/creditors", "url_params": {}, - "body": {"creditors":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 3162","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9023","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 9673","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 6972","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 496","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 5527","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 9253","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 9158","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}],"meta":{"cursors":{"after":"example after 5048","before":"example before 5513"},"limit":50}} + "body": {"creditors":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9023","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 6972","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 9673","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3162","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9158","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 9253","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 496","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 5527","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}],"meta":{"cursors":{"after":"example after 5513","before":"example before 5048"},"limit":50}} }, "get": { "method": "GET", "path_template": "/creditors/:identity", "url_params": {"identity": "CR123"}, - "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9731","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 3740","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 1306","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2574","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} + "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 1306","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 3740","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 9731","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2574","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} }, "update": { "method": "PUT", "path_template": "/creditors/:identity", "url_params": {"identity": "CR123"}, - "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 5402","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 8531","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 2677","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2332","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} + "body": {"creditors":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 5402","bank_reference_prefix":"ACME","can_create_refunds":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","creditor_type":"company","custom_payment_pages_enabled":true,"fx_payout_currency":"EUR","id":"CR123","links":{"default_aud_payout_account":"BA234","default_cad_payout_account":"BA792","default_dkk_payout_account":"BA790","default_eur_payout_account":"BA456","default_gbp_payout_account":"BA123","default_nzd_payout_account":"BA791","default_sek_payout_account":"BA789","default_usd_payout_account":"BA792"},"logo_url":"https://uploads.gocardless.com/logo.png","mandate_imports_enabled":true,"merchant_responsible_for_notifications":true,"name":"Acme","postal_code":"EC1V 7LQ","region":"example region 2677","scheme_identifiers":[{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 8531","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 2332","region":"Greater London","scheme":"bacs","status":"pending"}],"verification_status":"action_required"}} } } diff --git a/tests/fixtures/customer_notifications.json b/tests/fixtures/customer_notifications.json index b9f0f441..f11a21c0 100644 --- a/tests/fixtures/customer_notifications.json +++ b/tests/fixtures/customer_notifications.json @@ -3,7 +3,7 @@ "method": "POST", "path_template": "/customer_notifications/:identity/actions/handle", "url_params": {"identity": "PCN123"}, - "body": {"customer_notifications":{"action_taken":"example action_taken 4806","action_taken_at":"2024-08-13T10:12:28.290Z","action_taken_by":"example action_taken_by 6494","id":"PCN123","links":{"customer":"CU123","event":"EV123","mandate":"MD123","payment":"PM123","refund":"RF123","subscription":"SB123"},"type":"payment_created"}} + "body": {"customer_notifications":{"action_taken":"example action_taken 4806","action_taken_at":"2024-08-13T10:13:10.611Z","action_taken_by":"example action_taken_by 6494","id":"PCN123","links":{"customer":"CU123","event":"EV123","mandate":"MD123","payment":"PM123","refund":"RF123","subscription":"SB123"},"type":"payment_created"}} } } diff --git a/tests/fixtures/events.json b/tests/fixtures/events.json index 73a3f148..937839ce 100644 --- a/tests/fixtures/events.json +++ b/tests/fixtures/events.json @@ -3,13 +3,13 @@ "method": "GET", "path_template": "/events", "url_params": {}, - "body": {"events":[{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-13T10:12:28.291Z","id":"PCN123","mandatory":true,"type":"example type 8999"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"},{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-13T10:12:28.291Z","id":"PCN123","mandatory":true,"type":"example type 1420"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}],"meta":{"cursors":{"after":"example after 7759","before":"example before 4007"},"limit":50}} + "body": {"events":[{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-13T10:13:10.611Z","id":"PCN123","mandatory":true,"type":"example type 8999"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"},{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-13T10:13:10.611Z","id":"PCN123","mandatory":true,"type":"example type 1420"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}],"meta":{"cursors":{"after":"example after 4007","before":"example before 7759"},"limit":50}} }, "get": { "method": "GET", "path_template": "/events/:identity", "url_params": {"identity": "EV123"}, - "body": {"events":{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-13T10:12:28.291Z","id":"PCN123","mandatory":true,"type":"example type 7124"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}} + "body": {"events":{"action":"cancelled","created_at":"2014-01-01T12:00:00.000Z","customer_notifications":[{"deadline":"2024-08-13T10:13:10.611Z","id":"PCN123","mandatory":false,"type":"example type 3357"}],"details":{"bank_account_id":"BA123","cause":"bank_account_disabled","currency":"GBP","description":"Customer's bank account closed","item_count":10,"not_retried_reason":"failure_filter_applied","origin":"bank","property":"fx_payout_currency","reason_code":"ADDACS-B","scheme":"bacs","will_attempt_retry":true},"id":"EV123","links":{"bank_authorisation":"BAU123","billing_request":"BRQ123","billing_request_flow":"BRF123","creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","instalment_schedule":"IS123","mandate":"MD123","mandate_request_mandate":"MD123","new_customer_bank_account":"BA123","new_mandate":"MD123","organisation":"OR123","parent_event":"EV123","payer_authorisation":"PAU123","payment":"PM123","payment_request_payment":"PM123","payout":"PO123","previous_customer_bank_account":"BA123","refund":"RF123","scheme_identifier":"SU123","subscription":"SB123"},"metadata":{},"resource_metadata":{},"resource_type":"mandates"}} } } diff --git a/tests/fixtures/instalment_schedules.json b/tests/fixtures/instalment_schedules.json index 327d2388..bc56412e 100644 --- a/tests/fixtures/instalment_schedules.json +++ b/tests/fixtures/instalment_schedules.json @@ -15,7 +15,7 @@ "method": "GET", "path_template": "/instalment_schedules", "url_params": {}, - "body": {"instalment_schedules":[{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000},{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000}],"meta":{"cursors":{"after":"example after 5740","before":"example before 8089"},"limit":50}} + "body": {"instalment_schedules":[{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000},{"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"IS123","links":{"customer":"CU123","mandate":"MD123","payments":["PM123","PM456"]},"metadata":{},"name":"Invoice 4404","payment_errors":{"0":[{"field":"charge_date","message":"must be on or after mandate's next_possible_customer_charge_date"}]},"status":"active","total_amount":1000}],"meta":{"cursors":{"after":"example after 8089","before":"example before 5740"},"limit":50}} }, "get": { "method": "GET", diff --git a/tests/fixtures/institutions.json b/tests/fixtures/institutions.json index e06e95a9..cda504d4 100644 --- a/tests/fixtures/institutions.json +++ b/tests/fixtures/institutions.json @@ -3,7 +3,7 @@ "method": "GET", "path_template": "/institutions", "url_params": {}, - "body": {"institutions":[{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"},{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"}],"meta":{"cursors":{"after":"example after 545","before":"example before 5814"},"limit":50}} + "body": {"institutions":[{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"},{"autocompletes_collect_bank_account":true,"country_code":"GB","icon_url":"https://gocardless/assets/icons/monzo","id":"monzo","logo_url":"https://gocardless/assets/logos/monzo","name":"VAT"}],"meta":{"cursors":{"after":"example after 5814","before":"example before 545"},"limit":50}} }, "list_for_billing_request": { "method": "GET", diff --git a/tests/fixtures/mandates.json b/tests/fixtures/mandates.json index ac7d9b99..71350d20 100644 --- a/tests/fixtures/mandates.json +++ b/tests/fixtures/mandates.json @@ -9,31 +9,31 @@ "method": "GET", "path_template": "/mandates", "url_params": {}, - "body": {"mandates":[{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 7807","max_amount_per_payment":3780,"periods":[{"max_amount_per_period":3017,"max_payments_per_period":1262,"period":"year"}],"start_date":"example start_date 9759"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"},{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 8033","max_amount_per_payment":2474,"periods":[{"max_amount_per_period":1723,"max_payments_per_period":894,"period":"flexible"}],"start_date":"example start_date 3922"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 4377","before":"example before 5275"},"limit":50}} + "body": {"mandates":[{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 5275","max_amount_per_payment":4377,"periods":[{"max_amount_per_period":973,"max_payments_per_period":3017,"period":"month"}],"start_date":"example start_date 9759"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"},{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 1723","max_amount_per_payment":894,"periods":[{"max_amount_per_period":1406,"max_payments_per_period":2474,"period":"day"}],"start_date":"example start_date 3544"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}],"meta":{"cursors":{"after":"example after 7574","before":"example before 8610"},"limit":50}} }, "get": { "method": "GET", "path_template": "/mandates/:identity", "url_params": {"identity": "MD123"}, - "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 909","max_amount_per_payment":9277,"periods":[{"max_amount_per_period":2523,"max_payments_per_period":5395,"period":"flexible"}],"start_date":"example start_date 7650"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 909","max_amount_per_payment":9277,"periods":[{"max_amount_per_period":2523,"max_payments_per_period":5395,"period":"flexible"}],"start_date":"example start_date 7650"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "update": { "method": "PUT", "path_template": "/mandates/:identity", "url_params": {"identity": "MD123"}, - "body": {"mandates":{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 7208","max_amount_per_payment":8198,"periods":[{"max_amount_per_period":8879,"max_payments_per_period":3354,"period":"flexible"}],"start_date":"example start_date 4721"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 4721","max_amount_per_payment":7587,"periods":[{"max_amount_per_period":8879,"max_payments_per_period":8198,"period":"flexible"}],"start_date":"example start_date 3354"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "cancel": { "method": "POST", "path_template": "/mandates/:identity/actions/cancel", "url_params": {"identity": "MD123"}, - "body": {"mandates":{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 9488","max_amount_per_payment":10,"periods":[{"max_amount_per_period":9301,"max_payments_per_period":3921,"period":"month"}],"start_date":"example start_date 8849"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"paper","consent_parameters":{"end_date":"example end_date 10","max_amount_per_payment":3921,"periods":[{"max_amount_per_period":9301,"max_payments_per_period":8849,"period":"month"}],"start_date":"example start_date 9488"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} }, "reinstate": { "method": "POST", "path_template": "/mandates/:identity/actions/reinstate", "url_params": {"identity": "MD123"}, - "body": {"mandates":{"authorisation_source":"telephone","consent_parameters":{"end_date":"example end_date 5596","max_amount_per_payment":9466,"periods":[{"max_amount_per_period":4401,"max_payments_per_period":8140,"period":"flexible"}],"start_date":"example start_date 3973"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"direct","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} + "body": {"mandates":{"authorisation_source":"web","consent_parameters":{"end_date":"example end_date 4401","max_amount_per_payment":8140,"periods":[{"max_amount_per_period":5596,"max_payments_per_period":9466,"period":"year"}],"start_date":"example start_date 8374"},"created_at":"2014-01-01T12:00:00.000Z","funds_settlement":"managed","id":"MD123","links":{"creditor":"CR123","customer":"CU123","customer_bank_account":"BA123","new_mandate":"MD123"},"metadata":{},"next_possible_charge_date":"2014-10-27","next_possible_standard_ach_charge_date":"2014-10-27","payments_require_approval":false,"reference":"REF-123","scheme":"bacs","status":"pending_submission","verified_at":"2021-01-01T12:00:00.000Z"}} } } diff --git a/tests/fixtures/negative_balance_limits.json b/tests/fixtures/negative_balance_limits.json index 828501a0..a11eaf27 100644 --- a/tests/fixtures/negative_balance_limits.json +++ b/tests/fixtures/negative_balance_limits.json @@ -3,7 +3,7 @@ "method": "GET", "path_template": "/negative_balance_limits", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 9959","before":"example before 5214"},"limit":50},"negative_balance_limits":[{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}},{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}}]} + "body": {"meta":{"cursors":{"after":"example after 5214","before":"example before 9959"},"limit":50},"negative_balance_limits":[{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}},{"balance_limit":10000,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","id":"NBL123","links":{"creator_user":"US123","creditor":"CR123"}}]} }, "create": { "method": "POST", diff --git a/tests/fixtures/payer_authorisations.json b/tests/fixtures/payer_authorisations.json index eb0544aa..d11c6a3e 100644 --- a/tests/fixtures/payer_authorisations.json +++ b/tests/fixtures/payer_authorisations.json @@ -3,31 +3,31 @@ "method": "GET", "path_template": "/payer_authorisations/:identity", "url_params": {"identity": "PA123"}, - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 325","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1446","message":"example message 9921","request_pointer":"example request_pointer 6244"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 325","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 9921","message":"example message 6244","request_pointer":"example request_pointer 1446"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "create": { "method": "POST", "path_template": "/payer_authorisations", "url_params": {}, - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 1488","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1436","message":"example message 6487","request_pointer":"example request_pointer 7063"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 7063","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 6487","message":"example message 1488","request_pointer":"example request_pointer 1436"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "update": { "method": "PUT", "path_template": "/payer_authorisations/:identity", "url_params": {"identity": "PA123"}, - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8223","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1925","message":"example message 9026","request_pointer":"example request_pointer 9219"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8223","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 9219","message":"example message 1925","request_pointer":"example request_pointer 9026"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "submit": { "method": "POST", "path_template": "/payer_authorisations/:identity/actions/submit", "url_params": {"identity": "PA123"}, - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 3176","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 9200","message":"example message 3114","request_pointer":"example request_pointer 8730"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 9200","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 3176","message":"example message 3114","request_pointer":"example request_pointer 8730"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} }, "confirm": { "method": "POST", "path_template": "/payer_authorisations/:identity/actions/confirm", "url_params": {"identity": "PA123"}, - "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8619","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 1300","message":"example message 8051","request_pointer":"example request_pointer 9434"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} + "body": {"payer_authorisations":{"bank_account":{"account_holder_name":"Billie Jean","account_number":"55779911","account_number_ending":"1234","account_number_suffix":"00","account_type":"savings","bank_code":"example bank_code 8619","branch_code":"20-00-00","country_code":"GB","currency":"EUR","iban":"GB60BARC20000055779911","metadata":{}},"created_at":"2020-01-01T12:00:00.000Z","customer":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","city":"London","company_name":"Hamilton Trading Ltd.","country_code":"GB","danish_identity_number":"220550-6218","email":"user@example.com","family_name":"Osborne","given_name":"Frank","locale":"en-GB","metadata":{},"postal_code":"NW1 6XE","region":"Greater London","swedish_identity_number":"556564-5404"},"id":"PA123","incomplete_fields":[{"field":"example field 8051","message":"example message 9434","request_pointer":"example request_pointer 1300"}],"links":{"bank_account":"BA123","customer":"CU123","mandate":"MD123"},"mandate":{"metadata":{},"payer_ip_address":"127.0.0.1","reference":"REF-123","scheme":"bacs"},"status":"created"}} } } diff --git a/tests/fixtures/payments.json b/tests/fixtures/payments.json index 22c9ac05..46ec8fd7 100644 --- a/tests/fixtures/payments.json +++ b/tests/fixtures/payments.json @@ -3,13 +3,13 @@ "method": "POST", "path_template": "/payments", "url_params": {}, - "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":true,"status":"submitted"}} + "body": {"payments":{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":true,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}} }, "list": { "method": "GET", "path_template": "/payments", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 541","before":"example before 7045"},"limit":50},"payments":[{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"},{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}]} + "body": {"meta":{"cursors":{"after":"example after 7221","before":"example before 7694"},"limit":50},"payments":[{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":true,"status":"submitted"},{"amount":1000,"amount_refunded":150,"charge_date":"2014-05-21","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","description":"One-off upgrade fee","faster_ach":false,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PM123","links":{"creditor":"CR123","instalment_schedule":"IS123","mandate":"MD123","payout":"PO123","subscription":"SU123"},"metadata":{},"reference":"WINEBOX001","retry_if_possible":false,"status":"submitted"}]} }, "get": { "method": "GET", diff --git a/tests/fixtures/payout_items.json b/tests/fixtures/payout_items.json index 73fbff6a..b53f1aa9 100644 --- a/tests/fixtures/payout_items.json +++ b/tests/fixtures/payout_items.json @@ -3,7 +3,7 @@ "method": "GET", "path_template": "/payout_items", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 6316","before":"example before 6813"},"limit":50},"payout_items":[{"amount":"45.0","links":{"mandate":"MD123","payment":"PM123","refund":"RF123"},"taxes":[{"amount":"1.1","currency":"EUR","destination_amount":"1.1","destination_currency":"EUR","exchange_rate":"1.11205","tax_rate_id":"GB_VAT_1"}],"type":"payment_paid_out"},{"amount":"45.0","links":{"mandate":"MD123","payment":"PM123","refund":"RF123"},"taxes":[{"amount":"1.1","currency":"EUR","destination_amount":"1.1","destination_currency":"EUR","exchange_rate":"1.11205","tax_rate_id":"GB_VAT_1"}],"type":"payment_paid_out"}]} + "body": {"meta":{"cursors":{"after":"example after 6813","before":"example before 6316"},"limit":50},"payout_items":[{"amount":"45.0","links":{"mandate":"MD123","payment":"PM123","refund":"RF123"},"taxes":[{"amount":"1.1","currency":"EUR","destination_amount":"1.1","destination_currency":"EUR","exchange_rate":"1.11205","tax_rate_id":"GB_VAT_1"}],"type":"payment_paid_out"},{"amount":"45.0","links":{"mandate":"MD123","payment":"PM123","refund":"RF123"},"taxes":[{"amount":"1.1","currency":"EUR","destination_amount":"1.1","destination_currency":"EUR","exchange_rate":"1.11205","tax_rate_id":"GB_VAT_1"}],"type":"payment_paid_out"}]} } } diff --git a/tests/fixtures/payouts.json b/tests/fixtures/payouts.json index 1816a1a6..2165a3d0 100644 --- a/tests/fixtures/payouts.json +++ b/tests/fixtures/payouts.json @@ -3,7 +3,7 @@ "method": "GET", "path_template": "/payouts", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 9719","before":"example before 1582"},"limit":50},"payouts":[{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"},{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"}]} + "body": {"meta":{"cursors":{"after":"example after 1582","before":"example before 9719"},"limit":50},"payouts":[{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"},{"amount":1000,"arrival_date":"2014-01-01","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","deducted_fees":20,"fx":{"estimated_exchange_rate":"1.1234567890","exchange_rate":"1.1234567890","fx_amount":1150,"fx_currency":"EUR"},"id":"PO123","links":{"creditor":"CR123","creditor_bank_account":"BA123"},"metadata":{"salesforce_id":"ABCD1234"},"payout_type":"merchant","reference":"ref-1","status":"pending","tax_currency":"EUR"}]} }, "get": { "method": "GET", diff --git a/tests/fixtures/scheme_identifiers.json b/tests/fixtures/scheme_identifiers.json index db05d5a8..e7ddfb5b 100644 --- a/tests/fixtures/scheme_identifiers.json +++ b/tests/fixtures/scheme_identifiers.json @@ -3,7 +3,7 @@ "method": "POST", "path_template": "/scheme_identifiers", "url_params": {}, - "body": {"scheme_identifiers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 6217","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 3963","region":"Greater London","scheme":"bacs","status":"pending"}} + "body": {"scheme_identifiers":{"address_line1":"221B Baker Street","address_line2":"Marylebone","address_line3":"City of Westminster","can_specify_mandate_reference":false,"city":"London","country_code":"GB","created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","email":"user@example.com","id":"SU123","minimum_advance_notice":3,"name":"example name 3963","phone_number":"+44 20 1234 1234","postal_code":"NW1 6XE","reference":"example reference 6217","region":"Greater London","scheme":"bacs","status":"pending"}} }, "list": { "method": "GET", diff --git a/tests/fixtures/subscriptions.json b/tests/fixtures/subscriptions.json index beab82eb..832bd274 100644 --- a/tests/fixtures/subscriptions.json +++ b/tests/fixtures/subscriptions.json @@ -27,19 +27,19 @@ "method": "POST", "path_template": "/subscriptions/:identity/actions/pause", "url_params": {"identity": "SB123"}, - "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":true,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} + "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":true,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} }, "resume": { "method": "POST", "path_template": "/subscriptions/:identity/actions/resume", "url_params": {"identity": "SB123"}, - "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":true,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} + "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":true,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} }, "cancel": { "method": "POST", "path_template": "/subscriptions/:identity/actions/cancel", "url_params": {"identity": "SB123"}, - "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":false,"payment_reference":"GOLDPLAN","retry_if_possible":true,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} + "body": {"subscriptions":{"amount":1000,"app_fee":100,"count":5,"created_at":"2014-01-01T12:00:00.000Z","currency":"EUR","day_of_month":28,"earliest_charge_date_after_resume":"2014-11-03","end_date":"2015-10-21","id":"SB123","interval":1,"interval_unit":"monthly","links":{"mandate":"MD123"},"metadata":{},"month":"january","name":"12 month subscription","parent_plan_paused":true,"payment_reference":"GOLDPLAN","retry_if_possible":false,"start_date":"2014-10-21","status":"active","upcoming_payments":[{"amount":2500,"charge_date":"2014-11-03"}]}} } } diff --git a/tests/fixtures/tax_rates.json b/tests/fixtures/tax_rates.json index 07739b32..19ffb047 100644 --- a/tests/fixtures/tax_rates.json +++ b/tests/fixtures/tax_rates.json @@ -3,7 +3,7 @@ "method": "GET", "path_template": "/tax_rates", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 3360","before":"example before 9953"},"limit":50},"tax_rates":[{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"},{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"}]} + "body": {"meta":{"cursors":{"after":"example after 9953","before":"example before 3360"},"limit":50},"tax_rates":[{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"},{"end_date":"2014-01-01","id":"GB_VAT_1","jurisdiction":"GBP","percentage":"20.0","start_date":"2014-01-01","type":"VAT"}]} }, "get": { "method": "GET", diff --git a/tests/fixtures/transferred_mandates.json b/tests/fixtures/transferred_mandates.json index a220403e..c404c12f 100644 --- a/tests/fixtures/transferred_mandates.json +++ b/tests/fixtures/transferred_mandates.json @@ -3,7 +3,7 @@ "method": "GET", "path_template": "/transferred_mandates/:identity", "url_params": {"identity": "MD123"}, - "body": {"transferred_mandates":{"encrypted_customer_bank_details":"example encrypted_customer_bank_details 5985","encrypted_decryption_key":"example encrypted_decryption_key 5721","links":{"customer_bank_account":"BA123","mandate":"MD123"},"public_key_id":"example public_key_id 894"}} + "body": {"transferred_mandates":{"encrypted_customer_bank_details":"example encrypted_customer_bank_details 5721","encrypted_decryption_key":"example encrypted_decryption_key 894","links":{"customer_bank_account":"BA123","mandate":"MD123"},"public_key_id":"example public_key_id 5985"}} } } diff --git a/tests/fixtures/verification_details.json b/tests/fixtures/verification_details.json index 6502a45b..1d01fd69 100644 --- a/tests/fixtures/verification_details.json +++ b/tests/fixtures/verification_details.json @@ -3,13 +3,13 @@ "method": "POST", "path_template": "/verification_details", "url_params": {}, - "body": {"verification_details":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 6213","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 9401"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}} + "body": {"verification_details":{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 9401","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 6213"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}} }, "list": { "method": "GET", "path_template": "/verification_details", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 4721","before":"example before 4283"},"limit":50},"verification_details":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 7328","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 1757"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 6262","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 6184"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}]} + "body": {"meta":{"cursors":{"after":"example after 4721","before":"example before 4283"},"limit":50},"verification_details":[{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 7328","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 1757"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"},{"address_line1":"338-346 Goswell Road","address_line2":"Islington","address_line3":"example address_line3 6184","city":"London","company_number":"07495895","description":"Wine and cheese seller","directors":[{"city":"London","country_code":"GB","date_of_birth":"1986-02-19","family_name":"Jones","given_name":"Tom","postal_code":"EC1V 7LQ","street":"example street 6262"}],"links":{"creditor":"CR123"},"name":"Acme Limited","postal_code":"EC1V 7LQ"}]} } } diff --git a/tests/fixtures/webhooks.json b/tests/fixtures/webhooks.json index 258b5778..2484fb77 100644 --- a/tests/fixtures/webhooks.json +++ b/tests/fixtures/webhooks.json @@ -3,19 +3,19 @@ "method": "GET", "path_template": "/webhooks", "url_params": {}, - "body": {"meta":{"cursors":{"after":"example after 7694","before":"example before 4740"},"limit":50},"webhooks":[{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 1350","request_headers":{},"response_body":"example response_body 1315","response_body_truncated":true,"response_code":6591,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":true,"successful":true,"url":"https://example.com/webhooks"},{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 6452","request_headers":{},"response_body":"example response_body 2283","response_body_truncated":false,"response_code":9695,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}]} + "body": {"meta":{"cursors":{"after":"example after 7694","before":"example before 4740"},"limit":50},"webhooks":[{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 3401","request_headers":{},"response_body":"example response_body 6591","response_body_truncated":true,"response_code":5540,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"},{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":true,"request_body":"example request_body 6452","request_headers":{},"response_body":"example response_body 5707","response_body_truncated":false,"response_code":4769,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}]} }, "get": { "method": "GET", "path_template": "/webhooks/:identity", "url_params": {"identity": "WB123"}, - "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":true,"request_body":"example request_body 8098","request_headers":{},"response_body":"example response_body 1590","response_body_truncated":false,"response_code":3414,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}} + "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 7182","request_headers":{},"response_body":"example response_body 7417","response_body_truncated":false,"response_code":3882,"response_headers":{},"response_headers_content_truncated":true,"response_headers_count_truncated":true,"successful":true,"url":"https://example.com/webhooks"}} }, "retry": { "method": "POST", "path_template": "/webhooks/:identity/actions/retry", "url_params": {"identity": "WB123"}, - "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 7251","request_headers":{},"response_body":"example response_body 1526","response_body_truncated":true,"response_code":8825,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":false,"successful":false,"url":"https://example.com/webhooks"}} + "body": {"webhooks":{"created_at":"2014-01-01T12:00:00.000Z","id":"WB123","is_test":false,"request_body":"example request_body 2243","request_headers":{},"response_body":"example response_body 7251","response_body_truncated":true,"response_code":4196,"response_headers":{},"response_headers_content_truncated":false,"response_headers_count_truncated":true,"successful":false,"url":"https://example.com/webhooks"}} } }