Skip to content

Update subscriptions.yaml #148

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

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
215 changes: 0 additions & 215 deletions openapi/subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2063,221 +2063,6 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/RestAPI.Configuration.Models.Error'
/api/agreements/v1/{id}:
patch:
tags:
- Subscriptions User Simulation
servers:
- url: https://api.sandbox.mobilepay.dk/recurringpayments-restapi
description: This endpoint is only available in sandbox environment.
summary: Accept/Reject agreement.
description: 'Possible status values: "Accepted", "Rejected".'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
- name: CorrelationId
in: header
description: CorrelationId used for logging
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantRequest'
application/json-patch+json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantRequest'
text/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantRequest'
application/*+json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantRequest'
responses:
'204':
description: Agreement updated successfully.
'400':
description: Something's wrong with request body.
content:
text/plain:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
application/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
text/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
'401':
description: Api key is wrong or not provided.
'403':
description: Forbidden in current environment
'404':
description: Agreement not found
'409':
description: Request didn't meet all business requirements.
'412':
description: Request didn't meet all business requirements.
content:
text/plain:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
application/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
text/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
'500':
description: General server or application error.
content:
text/plain:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
application/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
text/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.Error'
/api/users/v1/me/agreements/{agreementid}/oneoffpayments/{paymentid}:
patch:
tags:
- Subscriptions User Simulation
servers:
- url: https://api.sandbox.mobilepay.dk/recurringpayments-restapi
description: This endpoint is only available in sandbox environment.
summary: Accept/Reject one off payment.
description: 'Possible status values: "Accepted", "Rejected".'
parameters:
- name: agreementid
in: path
required: true
schema:
type: string
format: uuid
- name: paymentid
in: path
required: true
schema:
type: string
format: uuid
- name: CorrelationId
in: header
description: CorrelationId used for logging
schema:
type: string
requestBody:
content:
application/json-patch+json:
schema:
type: array
items:
$ref: '#/components/schemas/Microsoft.AspNetCore.JsonPatch.Operations.Operation'
nullable: true
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Microsoft.AspNetCore.JsonPatch.Operations.Operation'
nullable: true
text/json:
schema:
type: array
items:
$ref: '#/components/schemas/Microsoft.AspNetCore.JsonPatch.Operations.Operation'
nullable: true
application/*+json:
schema:
type: array
items:
$ref: '#/components/schemas/Microsoft.AspNetCore.JsonPatch.Operations.Operation'
nullable: true
responses:
'200':
description: Status of one off payment was successfully changed.
'403':
description: Forbidden in current environment
'404':
description: Not Found
'409':
description: Request didn't meet all business requirements.
/api/users/v1/me/agreements/{agreementid}:
patch:
tags:
- Subscriptions User Simulation
servers:
- url: https://api.sandbox.mobilepay.dk/recurringpayments-restapi
description: This endpoint is only available in sandbox environment.
summary: Cancel agreement.
description: 'Possible status values: "Canceled".'
parameters:
- name: agreementid
in: path
required: true
schema:
type: string
format: uuid
- name: CorrelationId
in: header
description: CorrelationId used for logging
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantCancelRequest'
application/json-patch+json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantCancelRequest'
text/json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantCancelRequest'
application/*+json:
schema:
$ref: '#/components/schemas/RestAPI.Models.User.UpdateAgreement4MerchantCancelRequest'
responses:
'204':
description: Agreement notification_on or status setting changed successfully.
'403':
description: Forbidden in current environment
'404':
description: Not Found
'409':
description: Domain error response
/api/users/me/payments/{paymentid}:
delete:
tags:
- Subscriptions User Simulation
servers:
- url: https://api.sandbox.mobilepay.dk/recurringpayments-restapi
description: This endpoint is only available in sandbox environment.
summary: Reject payment.
parameters:
- name: paymentid
in: path
required: true
schema:
type: string
format: uuid
- name: CorrelationId
in: header
description: CorrelationId used for logging
schema:
type: string
responses:
'204':
description: Payment rejected successfully
'403':
description: Forbidden in current environment
'409':
description: Domain error response
components:
schemas:
RestAPI.Models.Merchant.V3.GetSubscriptionProviderResponse:
Expand Down
Loading