Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Paging issues #218

Open
jjxtra opened this issue Feb 23, 2020 · 2 comments
Open

[BUG] Paging issues #218

jjxtra opened this issue Feb 23, 2020 · 2 comments
Labels
Type: Bug Something isn't working as documented

Comments

@jjxtra
Copy link

jjxtra commented Feb 23, 2020

The documentation at https://github.com/octokit/octokit.graphql.net/blob/master/docs/paging.md shows how to do paging. In an attempt to do manual paging, I always get the first page, regardless of whether I use the end cursor and "after" in a vars dictionary.

Attempting to use AllPages()... results in a strange expression error...

@DevilBoy6
Copy link

  • {

    "openapi": "3.0.2",
    "servers": [
    {
    "url": "https://api.centrobill.com",
    "description": "Payment page / server-to-server endpoint"
    },
    {
    "url": "http://feed.centrobill.com",
    "description": "Transaction history endpoint"
    }
    ],
    "info": {
    "description": "Centrobill API\n\n# Authentication\n\n",
    "version": "1.1.20",
    "title": "Centrobill Payment API"
    },
    "security": [
    {
    "ApiKeyAuth": []
    }
    ],
    "x-tagGroups": [
    {
    "name": "Server-to-server",
    "tags": [
    "Payment",
    "Payout",
    "Subscription",
    "Site",
    "Product",
    "Service",
    "Verification"
    ]
    },
    {
    "name": "Hosted payment page",
    "tags": [
    "Payment page"
    ]
    }
    ],
    "paths": {
    "/paymentPage": {
    "post": {
    "tags": [
    "Payment page"
    ],
    "summary": "Get URL to payment page",
    "description": "",
    "parameters": [
    {
    "name": "X-Request-ID",
    "in": "header",
    "description": "Unique ID of request",
    "required": false
    }
    ],
    "requestBody": {
    "required": true,
    "content": {
    "application/json": {
    "schema": {
    "type": "object",
    "properties": {
    "sku": {
    "type": "array",
    "items": {
    "oneOf": [
    {
    "$ref": "#/components/schemas/skuWIthSiteIdAndUrl"
    },
    {
    "$ref": "#/components/schemas/skuWIthSkuNameAndUrl"
    },
    {
    "$ref": "#/components/schemas/skuWIthSkuNameAndCustomPriceAndUrl"
    }
    ]
    }
    },
    "consumer": {
    "$ref": "#/components/schemas/consumerPaymentPage"
    },
    "template": {
    "$ref": "#/components/schemas/templatePaymentPage"
    },
    "payment": {
    "$ref": "#/components/schemas/paymentPaymentPage"
    },
    "metadata": {
    "$ref": "#/components/schemas/metadata"
    },
    "ttl": {
    "$ref": "#/components/schemas/ttl"
    }
    },
    "required": [
    "sku",
    "consumer"
    ]
    },
    "example": {
    "sku": [
    {
    "name": "TEST_EN_00",
    "siteId": "1811",
    "price": [
    {
    "offset": "0d",
    "amount": 29.37,
    "currency": "USD",
    "repeat": false
    },
    {
    "offset": "60d",
    "amount": 50,
    "currency": "USD",
    "repeat": false
    },
    {
    "offset": "30d",
    "amount": 30,
    "currency": "USD",
    "repeat": true
    }
    ],
    "currency": "USD",
    "title": "30 day recurring + First 30 Days For Free",
    "url": {
    "redirectUrl": "https://google.com/payment/centrobill/success",
    "ipnUrl": "https://google.com/callback"
    }
    }
    ],
    "consumer": {
    "id": "59024134",
    "externalId": "some-12958305390",
    "firstname": "John",
    "lastname": "Doe",
    "email": "[email protected]"
    },
    "payment": {
    "method": [
    "card",
    "sepa"
    ],
    "selected": "card",
    "secure": true,
    "test": false,
    "mid": "s938503530f"
    },
    "metadata": {
    "trackingId": "98530968732-93625235"
    },
    "ttl": 1200
    }
    }
    }
    },
    "responses": {
    "201": {
    "$ref": "#/components/responses/paymentPage-201"
    },
    "400": {
    "$ref": "#/components/responses/paymentPage-400"
    },
    "401": {
    "$ref": "#/components/responses/error-401"
    },
    "403": {
    "$ref": "#/components/responses/error-403"
    },
    "500": {
    "$ref": "#/components/responses/error-500"
    }
    },
    "callbacks": {
    "paymentChangeStatus": {
    "{$request.body.sku.ipnUrl}": {
    "summary": "Payment status callback",
    "post": {
    "summary": "Payment status callback",
    "requestBody": {
    "$ref": "#/components/callbacks/payment"
    },
    "responses": {
    "200": {
    "description": "Your server implementation should return this HTTP status code\nif the data was received successfully\n"
    },
    "201": {
    "description": "Your server implementation should return this HTTP status code\nif the data was received successfully\n"
    },
    "202": {
    "description": "Your server implementation should return this HTTP status code\nif the data was received successfully\n"
    }
    }
    }
    }
    }
    }
    }
    },
    "/tokenize": {
    "post": {
    "tags": [
    "Payment"
    ],
    "summary": "Generate card data token",
    "parameters": [
    {
    "name": "X-Request-ID",
    "in": "header",
    "description": "Unique ID of request",
    "required": false
    }
    ],
    "security": [],
    "requestBody": {
    "required": true,
    "content": {
    "application/json": {
    "schema": {
    "type": "object",
    "title": "Credit card",
    "properties": {
    "number": {
    "type": "string",
    "minLength": "12",
    "maxLength": "19",
    "title": "Card number"
    },
    "expirationYear": {
    "type": "string",
    "minLength": "2",
    "maxLength": "2",
    "title": "Card expiration year"
    },
    "expirationMonth": {
    "type": "string",
    "minLength": "2",
    "maxLength": "2",
    "title": "Card expiration month"
    },
    "cvv": {
    "type": "string",
    "minLength": "3",
    "maxLength": "4",
    "required": true,
    "title": "Card secure code"
    },
    "cardHolder": {
    "type": "string",
    "minLength": "1",
    "maxLength": "64",
    "example": "John Smith",
    "required": false,
    "title": "Cardholder full name"
    },
    "zip": {
    "$ref": "#/components/schemas/zip"

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

@github-actions github-actions bot added the Status: Stale Used by stalebot to clean house label Dec 3, 2022
@kfcampbell kfcampbell added Priority: Normal Type: Bug Something isn't working as documented labels Dec 5, 2022
@github-actions github-actions bot removed the Status: Stale Used by stalebot to clean house label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

4 participants