Skip to content

Commit

Permalink
Merge pull request #17 from chargebee/release/0.0.6
Browse files Browse the repository at this point in the history
Release/0.0.6
  • Loading branch information
cb-ashokmor authored Jan 31, 2024
2 parents 1e99823 + ba03f3d commit 340f700
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sonar_project_key=chargebee_cb-provider-spi
build_project_name=cb-provider-spi
build_group=org.chargebee.spi
build_version=0.0.4
build_version=0.0.6
# Artifactory config to be controlled at build time by CI/CD
artifactory_build_url=https://artifactory.url/maven/build
artifactory_publish_url=https://artifactory.url/maven/publish
13 changes: 13 additions & 0 deletions spec/spi/openapi_tax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ paths:
operationId: fetchCreditNote
parameters:
- $ref: '#/components/parameters/CreditNoteIdPathParam'
- $ref: '#/components/parameters/InvoiceIdQueryParam'
responses:
'200':
description: "Credit note retrieved successfully."
Expand Down Expand Up @@ -321,6 +322,7 @@ paths:
operationId: commitCreditNote
parameters:
- $ref: '#/components/parameters/CreditNoteIdPathParam'
- $ref: '#/components/parameters/InvoiceIdQueryParam'
responses:
'204':
description: Credit note committed successfully.
Expand All @@ -345,6 +347,7 @@ paths:
operationId: voidCreditNote
parameters:
- $ref: '#/components/parameters/CreditNoteIdPathParam'
- $ref: '#/components/parameters/InvoiceIdQueryParam'
responses:
'204':
description: "Credit note voided successfully."
Expand Down Expand Up @@ -987,6 +990,9 @@ components:
type: string
description: "The unique identifier of the invoice in Chargebee to which this credit note belongs."
maxLength: 50
invoiceId:
type: string
description: "The unique identifier of the invoice in the Tax Service Adapter or the Tax Service Provider."
creditNoteType:
$ref: '#/components/schemas/CreditNoteType'
documentDateTime:
Expand Down Expand Up @@ -1302,6 +1308,13 @@ components:
schema:
type: string
description: "The unique identifier of the invoice at the Tax Service Adapter or Tax Service Provider."
InvoiceIdQueryParam:
in: query
name: invoiceId
required: false
schema:
type: string
description: "The unique identifier of the invoice at the Tax Service Adapter or Tax Service Provider."
CreditNoteIdPathParam:
in: path
name: creditNoteId
Expand Down
4 changes: 2 additions & 2 deletions spec/spi/openapi_trn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ info:
- Translates API requests (as defined in this document) from Chargebee to the request format specified by the Service Provider's API.
- Translates API responses from the Service Provider APIs to the format understood by Chargebee (as defined in this document).
### Authorization
Chargebee uses HTTP header-based authorization for all the API endpoints associated with Service Adapter. We dynamically pass this authorization key in the HTTP header. The parameter that holds this key is found in the JSON object `api_configuration` quired for configuring your onboarding on Chargebee's marketplace. In the `api_configuration` object, our [Taxes Service Adapter SPI](https://chargebee.atlassian.net/l/cp/ca5aZ1mA) checks the authorization key parameter from `credential_configuration.id` and creates the HTTP header-based input query parameter for authorization. The `credential_configuration` is an array of objects with an `id` attribute, and the value of `id` is the parameter containing the authorization key.
Chargebee uses HTTP header-based authorization for all the API endpoints associated with Service Adapter. We dynamically pass this authorization key in the HTTP header. The parameter that holds this key is found in the JSON object `api_configuration` required for configuring your onboarding on Chargebee's marketplace. In the `api_configuration` object, our [Taxes Service Adapter SPI](https://chargebee.atlassian.net/l/cp/ca5aZ1mA) checks the authorization key parameter from `credential_configuration.id` and creates the HTTP header-based input query parameter for authorization. The `credential_configuration` is an array of objects with an `id` attribute, and the value of `id` is the parameter containing the authorization key.
Following are the JSON snippets for your reference.
Expand Down Expand Up @@ -539,4 +539,4 @@ components:
in: header
security:
- bearerAuth: []
- apiKey: []
- apiKey: []

0 comments on commit 340f700

Please sign in to comment.