Skip to content

Commit

Permalink
ACP-3507 Renamed paymentServiceProviderData to preOrderPaymentData
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed Sep 19, 2024
1 parent 243441e commit 459c516
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
46 changes: 23 additions & 23 deletions resources/api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,25 +158,6 @@ paths:

components:
schemas:
InitializePaymentResponse:
properties:
isSuccessful:
type: boolean
redirectUrl:
type: string
description: 'URL for payment authorization'
message:
type: string
nullable: true
paymentProviderData:
type: object
additionalProperties:
type: string
description: 'Key-value object with attributes that can be forwarded to the PSP implementation. https://swagger.io/docs/specification/data-models/dictionaries/'
example:
clientId: '#061280'
publishableKey: '#061114'

InitializePaymentRequest:
type: object
required:
Expand Down Expand Up @@ -252,13 +233,32 @@ components:
description: 'Provides checkout summary page URL.'
type: string
example: 'https://example.com/summary'

InitializePaymentResponse:
properties:
isSuccessful:
type: boolean
redirectUrl:
type: string
description: 'URL for payment authorization'
message:
type: string
nullable: true
paymentProviderData:
type: object
additionalProperties:
type: string
description: 'Key-value object with attributes that can be forwarded to the PSP implementation. https://swagger.io/docs/specification/data-models/dictionaries/'
example:
clientId: '#061280'
publishableKey: '#061114'

ConfirmPreOrderPaymentRequest:
type: object
required:
- orderData
- orderReference
- paymentServiceProviderData
- preOrderPaymentData
properties:
orderData:
description: 'Order data.'
Expand Down Expand Up @@ -320,7 +320,7 @@ components:
orderReference:
type: string
example: 'DE-123456'
paymentServiceProviderData:
preOrderPaymentData:
description: 'Key-value object with attributes that can be forwarded to the PSP implementation. https://swagger.io/docs/specification/data-models/dictionaries/'
type: string
additionalProperties:
Expand All @@ -341,9 +341,9 @@ components:
CancelPreOrderPaymentRequest:
type: object
required:
- paymentServiceProviderData
- preOrderPaymentData
properties:
paymentServiceProviderData:
preOrderPaymentData:
description: 'Key-value object with attributes that can be forwarded to the PSP implementation. https://swagger.io/docs/specification/data-models/dictionaries/'
type: string
additionalProperties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<property name="transactionId" type="string"/>
<property name="tenantIdentifier" type="string"/>
<property name="orderReference" type="string"/>
<property name="paymentServiceProviderData" type="array" associative="true" singular="paymentServiceProviderDatum"/>
<property name="preOrderPaymentData" type="array" associative="true" singular="preOrderPaymentDatum"/>
</transfer>

<transfer name="ConfirmPreOrderPaymentResponse" strict="true">
Expand All @@ -78,7 +78,7 @@
<property name="payment" type="Payment"/>
<property name="transactionId" type="string"/>
<property name="tenantIdentifier" type="string"/>
<property name="paymentServiceProviderData" type="array" associative="true" singular="paymentServiceProviderDatum"/>
<property name="preOrderPaymentData" type="array" associative="true" singular="preOrderPaymentDatum"/>
</transfer>

<transfer name="CancelPreOrderPaymentResponse" strict="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<property name="transactionId" type="string"/>
<property name="tenantIdentifier" type="string"/>
<property name="orderReference" type="string"/>
<property name="paymentServiceProviderData" type="array" associative="true" singular="paymentServiceProviderDatum"/>
<property name="preOrderPaymentData" type="array" associative="true" singular="preOrderPaymentDatum"/>
</transfer>

<transfer name="ConfirmPreOrderPaymentResponse" strict="true">
Expand All @@ -24,7 +24,7 @@
<property name="payment" type="Payment"/>
<property name="transactionId" type="string"/>
<property name="tenantIdentifier" type="string"/>
<property name="paymentServiceProviderData" type="array" associative="true" singular="paymentServiceProviderDatum"/>
<property name="preOrderPaymentData" type="array" associative="true" singular="preOrderPaymentDatum"/>
</transfer>

<transfer name="CancelPreOrderPaymentResponse" strict="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface AppPaymentPlatformCancelPreOrderPluginInterface extends AppPaymentPlat
* - Receives a `CancelPreOrderPaymentRequestTransfer` with:
* - `appConfig`
* - `payment`
* - `paymentServiceProviderData`
* - `preOrderPaymentData`
* - Returns a `CancelPreOrderPaymentResponseTransfer`.
* - Requires `CancelPreOrderPaymentResponseTransfer::isSuccessful`to be set.
* - Requires `CancelPreOrderPaymentResponseTransfer::message` to be set when the 3rd party provider could not process the request or any other issue occurs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface AppPaymentPlatformConfirmPreOrderPluginInterface extends AppPaymentPla
* - `appConfig`
* - `payment`
* - `orderReference`
* - `paymentServiceProviderData`
* - `preOrderPaymentData`
* - Returns a `ConfirmPreOrderPaymentResponseTransfer`.
* - Requires `ConfirmPreOrderPaymentResponseTransfer::isSuccessful`to be set.
* - Requires `ConfirmPreOrderPaymentResponseTransfer::message` to be set when the 3rd party provider could not process the request or any other issue occurs.
Expand Down

0 comments on commit 459c516

Please sign in to comment.