Logo: Relish

  1. Sign in

Project: Checkout v2.0

  • Change version

    1. v2.0

Consume a billing resource

As a client application customer
I want to consume a billing resource
So that I can see the detailed content of the requested billing

Background
Given
I use a valid token which authorizes access to the "Checkout::V2::BillingResource" scope
And
I authenticate as the following proxy user "johndoe"
And
the following billings exist
ID plan gateway status
1 subscription-package argus ok
2 subscription-package argus rejected
3 subscription-package argus pending
Scenarios
Get a single billing
When
I send a GET request for "checkout/2.0/billings/ID"
Then
the response status should be "200"
And
the response should be a JSON API resource of type "billings"
And
the resource should have an attribute "plan" that displays "plan"
And
the resource should have an attribute "gateway" that displays "gateway"
And
the resource should have an attribute "status" that displays "status"
Examples:
ID plan gateway status
1 subscription-package argus ok
2 subscription-package argus rejected
3 subscription-package argus pending

Last published over 4 years ago by Donaldo.