Skip to content

Commit

Permalink
Fix shopify order adjustment data mapping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandHewage committed Aug 17, 2023
1 parent 93a4c43 commit 76fa221
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion openapi/openai.audio/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.audio"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.audio"
version = "1.0.4"
version = "1.0.5"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/openai.chat/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.chat"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.chat"
version = "1.1.1"
version = "1.1.2"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/openai.embeddings/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.embeddings"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.embeddings"
version = "1.0.4"
version = "1.0.5"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/openai.finetunes/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.finetunes"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.finetunes"
version = "1.0.4"
version = "1.0.5"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/openai.images/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.images"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.images"
version = "1.0.4"
version = "1.0.5"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/openai.moderations/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.moderations"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.moderations"
version = "1.0.4"
version = "1.0.5"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/openai.text/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "openai.text"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/openai.text"
version = "1.0.4"
version = "1.0.5"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
2 changes: 1 addition & 1 deletion openapi/shopify.admin/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "shopify.admin"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/shopify.admin"
version = "2.4.1"
version = "2.4.2"
authors = ["Ballerina"]
[build-options]
observabilityIncluded = true
11 changes: 10 additions & 1 deletion openapi/shopify.admin/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3338,7 +3338,10 @@ components:
type: integer
description: The unique identifier for the refund that the order adjustment is associated with.
amount:
type: integer
type: object
oneOf:
- $ref: '#/components/schemas/Integer'
- $ref: '#/components/schemas/String'
description: The value of the discrepancy between the calculated refund and the actual refund. If the kind property's value is shipping_refund, then amount returns the value of shipping charges refunded to the customer.
tax_amount:
type: string
Expand Down Expand Up @@ -3958,6 +3961,12 @@ components:
type: integer
description: Webhook subscription count.
description: The webhook subscription count object.
Integer:
type: integer
description: Integer
String:
type: string
description: String

securitySchemes:
api_token:
Expand Down
7 changes: 6 additions & 1 deletion openapi/shopify.admin/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public type OrderAdjustment record {
# The unique identifier for the refund that the order adjustment is associated with.
int? refund_id?;
# The value of the discrepancy between the calculated refund and the actual refund. If the kind property's value is shipping_refund, then amount returns the value of shipping charges refunded to the customer.
int? amount?;
Integer|String? amount?;
# The taxes that are added to amount, such as applicable shipping taxes added to a shipping refund.
string? tax_amount?;
# The order adjustment type. Valid values are shipping_refund and refund_discrepancy.
Expand Down Expand Up @@ -1449,3 +1449,8 @@ public type CreateCustomer record {
# The Customer resource stores information about a shop's customers, such as their contact details, their order history, and whether they've agreed to receive email marketing.
Customer? customer?;
};

# Integer
public type Integer int;
# String
public type String string;

0 comments on commit 76fa221

Please sign in to comment.