Make DFC API docs deterministic

This commit is contained in:
Maikel Linke
2024-10-15 15:47:31 +11:00
parent 781fcf21b9
commit d1ebe4e1d1
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ RSpec.describe "AffiliateSalesData", swagger_doc: "dfc.yaml", rswag_autodoc: tru
before do
order = create(:order_with_totals_and_distribution, :completed)
order.variants.first.product.update!(name: "Tomato")
ConnectedApps::AffiliateSalesData.new(
enterprise: order.distributor
).connect({})

View File

@@ -99,7 +99,7 @@ paths:
dfc-b:hasPostalCode: '20170'
dfc-b:supplies:
"@type": dfc-b:SuppliedProduct
dfc-b:name: 'Product #3 - 3355'
dfc-b:name: Tomato
dfc-b:hasQuantity:
"@type": dfc-b:QuantitativeValue
dfc-b:hasUnit: dfc-m:Gram